/* Self-hosted (latin + latin-ext) so no visitor request reaches Google. */
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./assets/fonts/ibm-plex-mono-latin-ext-600.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./assets/fonts/ibm-plex-mono-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/ibm-plex-mono-latin-ext-700.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/ibm-plex-mono-latin-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(./assets/fonts/ibm-plex-sans-latin-ext-var.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(./assets/fonts/ibm-plex-sans-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(./assets/fonts/ibm-plex-sans-latin-ext-var.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(./assets/fonts/ibm-plex-sans-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(./assets/fonts/ibm-plex-sans-latin-ext-var.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(./assets/fonts/ibm-plex-sans-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(./assets/fonts/ibm-plex-sans-latin-ext-var.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(./assets/fonts/ibm-plex-sans-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/montserrat-latin-ext-var-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/montserrat-latin-var-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(./assets/fonts/montserrat-latin-ext-var-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(./assets/fonts/montserrat-latin-var-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/montserrat-latin-ext-var.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./assets/fonts/montserrat-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(./assets/fonts/montserrat-latin-ext-var.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(./assets/fonts/montserrat-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(./assets/fonts/montserrat-latin-ext-var.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(./assets/fonts/montserrat-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* STOVIG — stylesheet built to the approved mockups
   (Csatolmányok/STOVIG_final_Fooldal.png, STOVIG_final_Rolunk.png).
   Every colour below was sampled from those renders. */

:root {
  --color-bg: #ffffff;
  --color-band: #f5f6f8; /* EGYEDI IGÉNYEKRE band */
  --color-surface: #eff2f4; /* CTA strip */
  --color-border: #e9edf2; /* card outline */
  --color-rule: #e6eaf0; /* hairline divider */

  /* Headings are a deep navy in the mockup; the footer is the cooler #1c2630. */
  --color-ink: #0f1f3d;
  --color-ink-2: #414e63;
  --color-ink-3: #6b7688;
  --color-footer: #1c2630;

  --color-accent: #fe4c01;
  --color-accent-hover: #e04200;
  --color-accent-soft: #fff1ea;
  --color-on-ink: #ffffff;
  --color-on-ink-muted: #c7cdd4;
  /* Form outcomes (from RackInspect): never colour-only, each has its own text. */
  --color-success: #205842;
  --color-success-soft: #eef8f2;
  --color-error: #8a2f25;
  --color-error-soft: #fff2ef;

  --rgb-ink: 15 31 61;
  --rgb-accent: 254 76 1;

  --shadow-xs: 0 1px 2px rgb(var(--rgb-ink) / 0.05);
  --shadow-sm: 0 2px 10px rgb(var(--rgb-ink) / 0.06);
  --shadow-md: 0 10px 30px rgb(var(--rgb-ink) / 0.08);
  --ring-focus:
    0 0 0 2px var(--color-bg), 0 0 0 5px rgb(var(--rgb-accent) / 0.85);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Slight overshoot: gives hover/press a spring feel without a JS physics lib. */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-micro: 200ms;
  --dur-fast: 160ms;
  --dur-base: 260ms;
  --dur-reveal: 640ms;
  --header-h: 72px;
  --radius: 12px;

  --font-body:
    "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-heading:
    "Montserrat", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --leading-body: 1.65;
  --leading-heading: 1.12;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  /* Short pages (legal placeholders): main grows so the footer sits at the bottom. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-ink-2);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  line-height: var(--leading-heading);
  /* Long Hungarian compounds break only when they genuinely cannot fit,
     which keeps 200% zoom free of overflow without breaking mid-word. */
  overflow-wrap: break-word;
  hyphens: auto;
}

p {
  margin: 0;
}

/* Long Hungarian compounds must not set a min-content width that forces the
   multi-column grids wider than the page at large text sizes. */
p,
li,
strong,
span,
a {
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 0;
  box-shadow: var(--ring-focus);
  border-radius: 4px;
}

.shell {
  width: min(1040px, 100% - 3.75rem);
  margin-inline: auto;
}

main {
  flex: 1 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 60;
  padding: 0.75rem 1.1rem;
  border-radius: 6px;
  background: var(--color-footer);
  color: var(--color-on-ink);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus-visible {
  top: 1rem;
}

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-ink);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-arrow {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
}

.btn-arrow svg {
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------------ *
 * Header
 * ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.logo {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
}

.logo img {
  width: 176px;
  height: auto;
}

.desktop-nav {
  display: none;
  margin-left: auto;
  gap: 2.1rem;
}

.desktop-nav a {
  position: relative;
  padding-block: 0.4rem;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: var(--color-accent);
}

/* Active page: accent colour, an accent underline, and aria-current in the
   markup — never colour alone. */
.desktop-nav a.is-active {
  color: var(--color-accent);
}

.desktop-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-accent);
}

.header-actions {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-end;
  margin-left: auto;
}

.header-actions .btn {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform var(--dur-fast) var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: grid;
  max-height: 0;
  padding-inline: 1.875rem;
  overflow: hidden;
  border-bottom: 1px solid transparent;
  transition:
    max-height var(--dur-base) var(--ease-out),
    padding var(--dur-base) var(--ease-out);
}

.mobile-nav.is-open {
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: 0.75rem 1.25rem;
  border-bottom-color: var(--color-rule);
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.mobile-nav a.is-active {
  color: var(--color-accent);
}

/* ------------------------------------------------------------------ *
 * Shared section furniture
 * ------------------------------------------------------------------ */

.section-white {
  background: var(--color-bg);
}

section {
  padding-block: 2rem;
}

.rule {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--color-accent);
}

.eyebrow {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Centred section title with the short accent underline of the mockup. */
.section-head {
  margin-bottom: 1.75rem;
  text-align: center;
}

.section-head.left {
  text-align: left;
}

.section-head.left h2::after {
  margin-left: 0;
}

.section-head h2 {
  display: inline-block;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.55rem auto 0;
  background: var(--color-accent);
}

/* Labelled stand-in for imagery that must be a genuine DUMETA/STOVIG photo. */
.media-slot {
  display: grid;
  place-items: center;
  aspect-ratio: var(--media-ratio, auto);
  padding: 1.5rem;
  border: 1px dashed var(--color-rule);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      -45deg,
      rgb(var(--rgb-ink) / 0.02) 0 10px,
      transparent 10px 20px
    ),
    var(--color-surface);
  text-align: center;
}

.media-slot-label {
  display: grid;
  gap: 0.3rem;
  width: 100%;
  max-width: 34ch;
}

.media-slot-label strong {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 0.88rem;
}

.media-slot-label span {
  color: var(--color-ink-2);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */

.hero {
  --hero-gutter: calc((100% - min(1040px, 100% - 3.75rem)) / 2);
  position: relative;
  display: flex;
  flex-direction: column;
  padding-block: 0 2.5rem;
  overflow: hidden;
}

/* Stacked layouts lead with the headline; the imagery follows it. */
.hero-media {
  order: 2;
  width: min(1040px, calc(100% - 3.75rem));
  margin-inline: auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding-block: 2rem 0;
}

.hero-lockup {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hero-stovig {
  width: min(100%, 460px);
  height: auto;
}

/* Dark benefit panel beside the product image. A <dl>, so each benefit stays
   bound to its supporting line without the styling. */
.hero-benefits {
  display: grid;
  gap: 0.75rem 1.5rem;
  width: 100%;
  margin: 0.5rem 0 0;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-ink);
  color: var(--color-on-ink);
}

.hero-benefit {
  padding-left: 0.875rem;
  border-left: 2px solid rgb(255 255 255 / 0.18);
}

.hero-benefit dt {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-on-ink);
}

.hero-benefit dd {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-on-ink-muted);
}

/* Single-operator handling is the lead benefit, so it carries the accent. */
.hero-benefit.is-emphasis {
  border-left-color: var(--color-accent);
}

.hero-benefit.is-emphasis dt {
  color: var(--color-accent);
}

.hero-benefit.is-emphasis dd {
  color: var(--color-on-ink);
}

.hero-zenit {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-divider {
  width: 2px;
  height: 2.2rem;
  background: var(--color-ink);
  opacity: 0.35;
}

.hero-lockup-pair .hero-stovig {
  width: min(100%, 250px);
}

.hero h1 {
  font-size: clamp(1.6rem, 4.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  /* A headline never hyphenates: it breaks at the authored line breaks. */
  hyphens: none;
}

/* The about headline carries three long lines, so it sets smaller than the
   home headline — as in the mockup. */
.page-about .hero h1 {
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
}

.hero-lead {
  max-width: 46ch;
  color: var(--color-ink-2);
}

.hero-media {
  margin-top: 1.5rem;
  min-height: 220px;
}

/* ------------------------------------------------------------------ *
 * Two-card row
 * ------------------------------------------------------------------ */

.duo-grid {
  display: grid;
  gap: 1rem;
}

.duo-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow-xs);
}

.duo-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.duo-card-head h3 {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.duo-icon,
.step-icon,
.competence-icon,
.cta-icon,
.stat-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--color-accent);
}

.duo-icon svg {
  width: 44px;
  height: 44px;
}

.duo-rule {
  width: 100%;
  height: 1px;
  margin: 1.5rem 0;
  border: 0;
  background: var(--color-rule);
}

.stat-row {
  /* Narrow widths wrap the stats; the designed single row is restored once the
     card is wide enough for it (see the 1000px breakpoint). */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 0.9rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-body {
  display: grid;
}

.stat-over,
.stat-caption {
  color: var(--color-ink-3);
  font-family: var(--font-heading);
  font-size: clamp(0.5rem, 0.92vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.stat-value {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 1.5vw, 1.12rem);
  white-space: nowrap;
  font-weight: 800;
  line-height: 1.2;
}

.footnote {
  margin-top: 1.5rem;
  color: var(--color-ink-3);
  font-size: 0.78rem;
}

.duo-media {
  margin-top: 1.25rem;
  min-height: 180px;
  flex: 1;
}

/* ------------------------------------------------------------------ *
 * Process row
 * ------------------------------------------------------------------ */

.process-grid {
  display: grid;
  gap: 1.5rem;
}

.process-lead h3 {
  margin-bottom: 0.75rem;
  hyphens: none;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
}

.process-lead p {
  color: var(--color-ink-2);
}

.step-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  flex: 1 1 160px;
  justify-items: center;
  gap: 0.5rem;
  padding: 1.35rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.step-icon svg {
  width: 40px;
  height: 40px;
}

.step h3 {
  font-size: clamp(0.7rem, 1.05vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  hyphens: none;
}

.step p {
  color: var(--color-ink-2);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ *
 * Split band
 * ------------------------------------------------------------------ */

.section-split {
  padding-block: 0;
  margin-block: 2rem;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  width: min(1040px, calc(100% - 3.75rem));
  margin-inline: auto;
  background: var(--color-band);
}

.section-split {
  background: var(--color-bg);
}

.split-media {
  width: 100%;
  min-width: 0;
  min-height: 240px;
  border: 0;
  border-radius: 0;
}

.split-body {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: 1.75rem 1.875rem 2.25rem;
}

.split-body h2 {
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  font-weight: 800;
  text-transform: uppercase;
}

.split-body p {
  color: var(--color-ink-2);
}

.split-body .accent-line {
  color: var(--color-accent);
  font-weight: 700;
}

/* ------------------------------------------------------------------ *
 * Competence row
 * ------------------------------------------------------------------ */

/* The side photograph escapes to the section's own edge, so this section
   reproduces the shell's gutter locally instead of widening the shared shell. */
.section-competence {
  container-type: inline-size;
  --competence-gutter: calc((100cqw - min(1040px, 100cqw - 3.75rem)) / 2);
  padding-block: 2rem;
  background: var(--color-surface);
}

.competence-grid {
  display: grid;
  gap: 1.5rem;
}

.competence-body {
  padding-inline: var(--competence-gutter);
}

.competence-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.competence-item {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  min-width: 0;
}

.competence-icon svg {
  width: 44px;
  height: 44px;
}

.competence-label {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  hyphens: none;
}

.competence-note {
  max-width: 52ch;
  color: var(--color-ink-2);
}

.competence-media {
  position: relative;
  border: 0;
  border-radius: 0;
}

/* ------------------------------------------------------------------ *
 * Conversion band
 * ------------------------------------------------------------------ */

.cta-band {
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.cta-icon svg {
  width: 46px;
  height: 46px;
  color: var(--color-ink);
}

.cta-copy strong {
  display: block;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.cta-copy p {
  margin-top: 0.35rem;
  color: var(--color-ink-2);
  font-size: 0.9rem;
}

.cta-button {
  justify-self: start;
}

/* ------------------------------------------------------------------ *
 * Prose page (references)
 * ------------------------------------------------------------------ */

.page-h1 {
  margin: 0 auto 1.5rem;
  width: min(1040px, 100% - 3.75rem);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
}

.prose-block {
  display: grid;
  gap: 0.75rem;
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

.prose-block h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
}

.prose-block p {
  color: var(--color-ink-2);
}

.legal-document {
  max-width: 85ch;
  overflow-wrap: anywhere;
  color: var(--color-ink-2);
}

.legal-document h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--color-ink);
  scroll-margin-top: 7rem;
}

.legal-document p { margin-bottom: 0.75rem; }
.legal-document ul { padding-left: 1.5rem; }
.legal-document a { text-decoration: underline; }
.legal-table { overflow-x: auto; margin-block: 1rem; }
.legal-document table { width: 100%; border-collapse: collapse; }
.legal-document th,
.legal-document td {
  padding: 0.6rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

/* min-height with an aspect-ratio would widen the slot past a narrow screen. */
.prose-media {
  width: 100%;
}

/* FAQ (gyik.html): layout and rhythm ported from the RackInspect GYIK at the
   client's request; native <details>, no animation, so reduced motion needs no
   special case. Focus ring comes from the global :focus-visible. */
.section-faq {
  padding-block: 0 clamp(2rem, 5vw, 3.5rem);
}

/* RackInspect gives the FAQ title breathing room under the header. */
.page-faq .page-h1 {
  margin-top: clamp(2rem, 6vw, 4.5rem);
}

.faq-intro,
.faq-topics,
.faq-group {
  max-width: 72ch;
}

.faq-intro {
  margin: 0 0 1.5rem;
  line-height: 1.7;
  color: var(--color-ink-2);
}

.faq-topics ul {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.faq-topics a {
  color: var(--color-accent);
  text-decoration: none;
}

.faq-topics a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.faq-group {
  padding: 0;
}

.faq-group h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  scroll-margin-top: 6rem;
  hyphens: auto;
  overflow-wrap: break-word;
}

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

.faq-item summary {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  font-weight: 600;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}

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

.faq-q { flex: 1; }
.faq-num { flex: none; margin-right: -0.65rem; }

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--color-accent);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-answer {
  padding: 0 0 1rem;
  line-height: 1.7;
  color: var(--color-ink-2);
}

.faq-answer p { margin: 0 0 0.9rem; }
.faq-answer ul { margin: 0 0 1.1rem 1.25rem; }
.faq-answer li { margin-bottom: 0.4rem; }

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */

.site-footer {
  padding-block: 2.25rem;
  background: var(--color-footer);
  color: var(--color-on-ink);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 560px) and (max-width: 959px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-identity .logo img {
  width: 210px;
}

.footer-claim,
.footer-tagline {
  color: var(--color-on-ink);
  font-size: 0.92rem;
}

.footer-claim {
  margin-top: 1rem;
}

.footer-copyright {
  margin-top: 0.75rem;
  color: var(--color-on-ink-muted);
  font-size: 0.82rem;
}

.footer-col strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-on-ink);
  font-size: 1rem;
  font-weight: 700;
}

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

.footer-links li {
  padding-block: 0.2rem;
  color: var(--color-on-ink-muted);
  font-size: 0.95rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.contact-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--color-accent);
}

.contact-icon svg {
  width: 19px;
  height: 19px;
}

/* ------------------------------------------------------------------ *
 * Motion + progress
 * ------------------------------------------------------------------ */

.js [data-reveal] {
  opacity: 0;
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal="up"] {
  transform: translateY(18px);
}

.js [data-reveal="left"] {
  transform: translateX(-18px);
}

.js [data-reveal="scale"] {
  transform: translateY(14px) scale(0.97);
}

/* clip-path is scoped to this variant only: applying inset() to every revealed
   element would clip the cards' own box-shadow. */
.js [data-reveal="mask"] {
  clip-path: inset(0 0 18% 0);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out),
    clip-path var(--dur-reveal) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal="mask"].is-visible {
  clip-path: inset(0 0 0 0);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Once the entrance has finished, hand the element back to micro-interaction
   timing. Without this the 640ms reveal transition (and its stagger delay)
   would still govern hover, making every card feel sluggish. */
.js [data-reveal].is-revealed {
  transition:
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  transition-delay: 0ms;
}

/* ---------- Page load choreography ----------
   Deliberately NOT gated on .js, and fill-mode is `backwards` rather than
   `both`: the animation must play and finish on its own, so neither a failed
   script nor a stalled observer can ever leave the header or hero hidden.
   Backwards fill also drops all animation styles once finished, which keeps the
   sticky header free of a lingering transform. */
@keyframes load-drop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes load-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes load-rule {
  from {
    transform: scaleX(0);
  }
}

@keyframes load-settle {
  from {
    transform: scale(1.02);
  }
}

.site-header {
  animation: load-drop 560ms var(--ease-out) backwards;
}

.hero-lockup {
  animation: load-rise 760ms var(--ease-out) 120ms backwards;
}

.hero .rule {
  transform-origin: 0 50%;
  animation: load-rule 640ms var(--ease-out) 320ms backwards;
}

/* Transform only, never opacity: the hero image is the LCP element and a fade
   would push the largest paint back. The scale resolves to exactly 1, so the
   approved crop is unchanged once the animation settles. */
.hero-media {
  animation: load-settle 1100ms var(--ease-out) backwards;
}

/* ---------- Micro-interactions (transform/opacity only) ---------- */

.btn {
  transition:
    background-color var(--dur-micro) var(--ease-out),
    transform var(--dur-micro) var(--ease-spring),
    box-shadow var(--dur-micro) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-arrow {
  transition: transform var(--dur-micro) var(--ease-spring);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.duo-card {
  transition:
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

/* The second selector must out-specify `.js [data-reveal].is-visible`, which
   pins transform to none after the entrance and would otherwise swallow the
   hover lift on exactly the elements that carry a reveal. */
.duo-card:hover,
.js [data-reveal].duo-card.is-visible:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--rgb-accent) / 0.35);
  box-shadow: var(--shadow-md);
}

.step-icon {
  transition: transform var(--dur-base) var(--ease-spring);
}

.step:hover .step-icon {
  transform: translateY(-3px) scale(1.06);
}

/* Mobile menu links stagger in behind the panel opening. Scoped to .js because
   without JS the panel never opens and the links must not be left invisible. */
.js .mobile-nav a {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.js .mobile-nav.is-open a {
  opacity: 1;
  transform: none;
}

.js .mobile-nav.is-open a:nth-child(1) {
  transition-delay: 60ms;
}

.js .mobile-nav.is-open a:nth-child(2) {
  transition-delay: 100ms;
}

.js .mobile-nav.is-open a:nth-child(3) {
  transition-delay: 140ms;
}

.js .mobile-nav.is-open a:nth-child(4) {
  transition-delay: 180ms;
}

/* ---------- Cross-document page transitions ----------
   Progressive enhancement: Chrome 126+ / Safari 18.2+ cross-fade between pages;
   Firefox has no support and simply keeps today's instant navigation. */
@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: site-header;
}

.logo {
  view-transition-name: site-logo;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 3px;
  pointer-events: none;
}

/* scaleX rather than width: width animates layout, a transform stays on the
   compositor. The custom property is what the JS fallback drives. */
.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
}

@keyframes scroll-progress-grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Native scroll-driven timeline where supported (Chrome 115+, Safari 26+);
   Firefox falls through to the JS fallback that sets --scroll-progress. */
@supports (animation-timeline: scroll(root block)) {
  .scroll-progress-bar {
    animation: scroll-progress-grow linear both;
    animation-timeline: scroll(root block);
  }
}

/* ------------------------------------------------------------------ *
 * Responsive: the mockup layout resolves at desktop widths
 * ------------------------------------------------------------------ */

@media (min-width: 720px) {
  section {
    padding-block: 3rem;
  }

  .duo-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  }

  .split-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
  }

  .split-media {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  .split-body {
    padding: 2.5rem 3rem;
    align-content: center;
  }

  .cta-band {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
  }
}

@media (max-width: 559px) {
  .step {
    flex: 1 1 100%;
  }
}

/* Between the phone stack and the four-up row the cards pair off, so a wrapped
   row never leaves a single card filling a line on its own. */
@media (min-width: 560px) and (max-width: 959px) {
  .step {
    flex: 1 1 calc(50% - 3rem);
  }
}

@media (min-width: 1000px) {
  /* Card is wide enough for the mockup's single row of three stats. */
  .stat-row {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 0.5rem;
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .header-actions {
    margin-left: 0;
  }

  /* Hero: copy on the left, imagery bleeding off the right page edge. */
  .hero {
    padding-bottom: 2.5rem;
  }

  .hero-copy {
    width: min(64%, 640px);
    padding-block: 2.75rem 0;
  }

  /* Two columns once there is room. Five benefits leave one odd item, so the
     last one spans the full width instead of sitting alone in a half row. */
  .hero-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-benefit:last-child {
    grid-column: 1 / -1;
  }

  /* Home: the benefits leave the copy column and run as one full-width strip
     under the copy + photo pair, so both columns end on a shared line. */
  .page-home .hero-copy {
    width: min(56%, 600px);
  }

  .page-home .hero-media {
    left: 57%;
  }

  .hero-benefits-row .hero-benefits {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
  }

  .hero-benefits-row .hero-benefit:last-child {
    grid-column: auto;
  }

  /* Keep both hero edges on the shared shell. The left edge still fades under
     the copy, but the right edge no longer escapes to the viewport boundary. */
  .hero-media {
    position: absolute;
    width: auto;
    top: 0;
    right: var(--hero-gutter);
    bottom: 2.5rem;
    left: 50%;
    margin: 0;
    border-radius: 0;
    border-left: 0;
  }

  /* The offsets decide the height here. Left on, the intrinsic ratio wins over
     `bottom`, so the figure overflows the hero and the building is clipped away
     instead of cropped. Scoped to this page: the home hero ships as it is. */
  .page-about .hero-media {
    aspect-ratio: auto;
  }

  /* Three headline lines alone leave the photograph a shallow strip, so the
     hero gets a floor that lets the building read at a glance. */
  .page-about .hero-inner {
    min-height: 26rem;
    align-content: center;
  }

  /* The soft edge is an overlay, not a mask: an engine without mask support
     would keep the hard edge, while a failed mask would hide the photograph
     (design D5). Only here, where the two columns actually sit side by side. */
  .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--color-bg), transparent 26%);
    pointer-events: none;
  }

  .process-grid {
    grid-template-columns: minmax(0, 0.54fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  /* The photograph runs to the section's own outer edge; the vertical rhythm
     moves onto the text column so the image can fill the band. */
  .section-competence {
    padding-block: 0;
  }

  .competence-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.52fr);
    align-items: stretch;
    gap: 0;
  }

  .competence-body {
    padding-block: 3rem;
    padding-inline: var(--competence-gutter) 3rem;
    align-content: center;
  }

  .competence-media {
    height: 100%;
    aspect-ratio: auto;
  }

  .competence-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--color-surface), transparent 30%);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Final state, no entrance animation, nothing left hidden. */
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  .js .mobile-nav a {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Micro-interactions keep their colour change but lose all movement. */
  .btn:hover,
  .btn:active,
  .btn:hover .btn-arrow,
  .duo-card:hover,
  .step:hover .step-icon {
    transform: none !important;
  }

  /* Decorative and pure movement - drop it entirely. */
  .scroll-progress {
    display: none;
  }

  .site-header,
  .hero-lockup,
  .hero .rule,
  .hero-media {
    animation: none !important;
  }

  @view-transition {
    navigation: none;
  }
}

/* Grid children may shrink below their content's intrinsic width. */
.duo-grid,
.duo-card,
.process-grid,
.process-lead,
.step-row,
.step,
.stat-row,
.stat,
.stat-body,
.cta-copy,
.split-body {
  min-width: 0;
}

/* Text zoom: flex/grid items must obey the viewport instead of their intrinsic
   content width. These constraints do not change the normal desktop geometry. */
.shell,
.hero-inner,
.hero-copy,
.hero-lockup,
.cta-band,
.cta-band > *,
.footer-grid,
.footer-grid > * {
  min-width: 0;
  max-width: 100%;
}

.hero-stovig {
  max-width: 100%;
}

.cta-button {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 999px) {
  .stat-row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 112px), 1fr));
  }

  .stat-value,
  .stat-caption,
  .stat-over {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Generated photography fills the exact mockup slots; the surrounding layout
   owns cropping so the source files remain reusable at every breakpoint. */
.media-slot.has-image {
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-style: solid;
  background: var(--color-surface);
}

.media-slot.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hero-media.has-image {
  border: 0;
  background: transparent;
}

/* The home hero is a white-background cut-out of the loaded rack: show it
   whole, and drop the edge fade that only suits full-bleed photographs. */
.page-home .hero-media.has-image img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.page-home .hero-media::after {
  content: none;
}

/* The Rólunk hero photograph is near-square and its building sits in the lower
   half, so a wide hero crop has to hold the lower band or it shows only sky. */
.page-about .hero-media.has-image img {
  object-position: 50% 84%;
}

.duo-media.has-image img {
  object-position: center;
}

/* Both split photos are white-background manufacturer cut-outs: cover would
   cut the rack, so they sit whole on the surface colour. */
.split-media.has-image img {
  object-fit: contain;
  background: var(--color-surface);
}

@media (max-width: 959px) {
  .hero-media.has-image {
    margin: 1.5rem auto 0;
  }
}

@media (max-width: 719px) {
  .cta-button {
    width: 100%;
  }
}

/* ------------------------------------------------------------------ *
 * Product video (valos-uzemben) - derived from the split band
 * ------------------------------------------------------------------ */

.section-video {
  margin-block: 2rem;
}

.video-frame {
  position: relative;
  width: min(1040px, calc(100% - 3.75rem));
  margin: 0 auto;
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-ink);
}

.video-caption {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 1.25rem 0 0;
}

.video-caption h2 {
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  font-weight: 800;
  text-transform: uppercase;
}

.video-caption p {
  color: var(--color-ink-2);
}

.video-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgb(15 31 61 / 0.72);
  cursor: pointer;
}

/* Play triangle by default, two pause bars while playing. */
.video-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-block: 8px solid transparent;
  border-left: 13px solid #fff;
  transform: translateX(2px);
}

.video-toggle.is-playing::before {
  width: 12px;
  height: 14px;
  border: 0;
  border-inline: 4px solid #fff;
  transform: none;
}

.video-toggle:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

@media (min-width: 720px) {
  /* ponytail: 21:9 crop keeps the band shorter than the split image; the pan
     has no vertical action to lose. Revisit if new footage has top/bottom detail. */
  .video-frame video {
    aspect-ratio: 21 / 9;
  }

  .video-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 4rem 5.5rem 1.75rem 1.875rem;
    border-radius: 0 0 var(--radius) var(--radius);
    background: linear-gradient(to top, var(--color-ink), transparent);
    pointer-events: none;
  }

  .video-caption h2,
  .video-caption p {
    color: #fff;
  }

  .video-toggle {
    top: auto;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* ------------------------------------------------------------------ *
 * Quote request form (ported from RackInspect contact section)
 * ------------------------------------------------------------------ */

.section-quote {
  padding-block: 3rem 4rem;
  border-top: 1px solid var(--color-rule);
  background: var(--color-band);
}

.quote-grid {
  display: grid;
  gap: 2rem;
}

.quote-grid > * {
  min-width: 0;
}

.quote-details h2 {
  margin-top: 1rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: var(--leading-heading);
  hyphens: none;
  text-wrap: balance;
}

.quote-details > p {
  max-width: 34ch;
  margin-top: 0.9rem;
  color: var(--color-ink-2);
}

.quote-contact-list {
  display: grid;
  gap: 0.4rem;
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--color-rule);
  list-style: none;
}

.quote-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--color-ink-2);
  font-size: 0.95rem;
}

.quote-contact-list .contact-icon {
  padding-top: 0.15rem;
}

.quote-contact-list a {
  display: inline-block;
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: none;
}

.quote-contact-list a:hover {
  color: var(--color-accent);
}

.lead-form {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.lead-form label {
  display: block;
  color: var(--color-ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.lead-form .field-grid + label {
  margin-top: 1rem;
}

.lead-form input:not([type="checkbox"]):not([type="file"]),
.lead-form textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  color: var(--color-ink);
  font: inherit;
  font-size: 0.9rem;
}

.lead-form input:not([type="checkbox"]):not([type="file"]):focus-visible,
.lead-form textarea:focus-visible {
  border-color: var(--color-accent);
}

.lead-form [aria-invalid="true"] {
  border-color: var(--color-error);
}

.lead-form textarea {
  resize: vertical;
}

.file-field {
  margin-top: 1rem;
}

/* Visually hidden but focusable: the styled chooser shows focus through :focus-within. */
.lead-form input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-control {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.45rem;
}

.file-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--color-ink);
  color: var(--color-on-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.file-cta:hover,
.file-control:focus-within .file-cta {
  background: var(--color-accent);
}

.file-control:focus-within .file-cta {
  box-shadow: var(--ring-focus);
}

.file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--color-ink-3);
  font-size: 0.8rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-field small {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-ink-3);
  font-size: 0.75rem;
  font-weight: 500;
}

.form-completion {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}

.lead-form label.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--color-ink-2);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

.lead-form label.consent input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--color-accent);
}

.lead-form label.consent a {
  color: var(--color-ink);
  font-weight: 600;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.verification-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.verification-kicker,
.verification-copy {
  margin: 0;
}

.verification-kicker {
  color: var(--color-ink-3);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.verification-copy {
  max-width: 18rem;
  margin-top: 0.3rem;
  color: var(--color-ink-2);
  font-size: 0.82rem;
  line-height: 1.45;
}

.verification-panel .cf-turnstile {
  flex: 0 0 auto;
  min-height: 65px;
}

.form-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-action p {
  max-width: 16rem;
  margin: 0;
  color: var(--color-ink-3);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: right;
}

.form-status {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.form-status[data-state] {
  display: flex;
}

.form-status[data-state="success"] {
  border: 1px solid currentColor;
  background: var(--color-success-soft);
  color: var(--color-success);
}

.form-status[data-state="invalid"],
.form-status[data-state="error"] {
  border: 1px solid currentColor;
  background: var(--color-error-soft);
  color: var(--color-error);
}

.form-status-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-success);
  color: var(--color-on-ink);
}

.form-status:not([data-state="success"]) .form-status-mark {
  display: none;
}

.form-status-mark svg {
  width: 1.15rem;
  height: 1.15rem;
}

@media (min-width: 720px) {
  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .section-quote {
    padding-block: 5rem 6rem;
  }

  .quote-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
  }

  /* The intro stays in view beside the long form. */
  .quote-details {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

@media (max-width: 640px) {
  .lead-form {
    padding: 1.1rem;
  }

  .verification-panel,
  .form-action {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-action .btn {
    width: 100%;
  }

  .form-action p {
    max-width: none;
    text-align: left;
  }
}

/* ------------------------------------------------------------------ *
 * Language switcher
 * ------------------------------------------------------------------ */
.header-actions {
  align-items: center;
  gap: 0.75rem;
}

/* Below the desktop breakpoint the switcher lives in the mobile menu only. */
.header-actions .lang-switch {
  display: none;
}

@media (min-width: 960px) {
  .header-actions .lang-switch {
    display: block;
  }
}

.lang-switch {
  position: relative;
}

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-ink);
  cursor: pointer;
  list-style: none;
}

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

.lang-switch summary:hover,
.lang-switch[open] summary {
  border-color: var(--color-ink);
  background: var(--color-surface);
}

.lang-globe { flex-shrink: 0; }

.lang-switch summary::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.lang-switch[open] summary::after { transform: translateY(1px) rotate(-135deg); }

.lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
  width: 320px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  box-shadow: 0 12px 32px rgb(15 31 61 / 0.1);
}

.lang-panel-title {
  margin: 0 4px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink-3);
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-switch ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 0.65rem;
  border-radius: 8px;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.88rem;
}

.lang-switch a:hover { background: var(--color-surface); }

.lang-switch a.is-active {
  background: var(--color-accent-soft);
  font-weight: 600;
}

.lang-switch a.is-active::after {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 9px;
  margin: -3px 3px 0 0;
  border: solid var(--color-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lang-switch a:focus-visible,
.lang-switch summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  box-shadow: none;
}

.lang-code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* In the mobile menu the list opens in the flow, two columns, full width. */
.mobile-nav .lang-switch {
  width: 100%;
  margin: 0.75rem 0 0.25rem;
}

.mobile-nav .lang-panel {
  position: static;
  width: 100%;
  margin-top: 10px;
  box-shadow: none;
}

.mobile-nav .lang-switch a {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: normal;
}

.mobile-nav .lang-switch a.is-active {
  color: var(--color-ink);
  font-weight: 600;
}

/* Phone header: logo, quote CTA and menu toggle stay on one line instead of
   wrapping into three stacked rows. */
@media (max-width: 559px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .logo img {
    width: 112px;
  }

  .header-actions .btn {
    padding: 0.7rem 0.8rem;
    font-size: 0.72rem;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}
