/* ==========================================================================
   Stravovací automaty – visual system
   Layout concept: a technical catalogue. White pages, anthracite text, thin
   rules and mono labels like a spec sheet; machines sit on a light "plinth"
   panel with a faint measurement grid so photos are never cropped.
   The site deliberately uses a single light theme.
   ========================================================================== */


:root {
  /* Color */
  --white: #ffffff;
  --surface: #f4f5f6;      /* alternating sections */
  --plinth: #f1f2f3;       /* photo backdrop */
  --grid: #e4e6e9;         /* plinth measurement grid */
  --line: #dddfe2;
  --ink: #1c2027;          /* anthracite: text, dark sections */
  --ink-2: #4b4f56;        /* secondary text (7.6:1 on white) */
  --ink-3: #6b6f76;        /* tertiary, large text only */
  --accent: #121417;       /* primary: buttons, links, icons, focus */
  --accent-hover: #2d3137;
  --accent-50: #f2f3f4;
  --green: #2c7a37;        /* accent text (5.3:1 on white) */
  --green-bright: #3fa34d; /* markers and icons only */
  --green-50: #ebf5ed;
  --on-dark: #ecedef;
  --on-dark-2: #b9bdc3;
  --focus: #121417;
  --error: #b42318;

  /* Type */
  --font-sans: Georgia, serif;
  --font-mono: Georgia, serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5rem;
  --fs-xl: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.125rem);

  /* Space & shape */
  --gutter: 20px;
  --wrap: 1200px;
  --section: clamp(3rem, 2rem + 4vw, 5.5rem);
  --radius: 18px;
  --header-h: 76px;

  /* Motion: one set of durations and easings for the whole site */
  --dur-fast: 180ms;      /* control feedback */
  --dur-base: 240ms;      /* small state changes */
  --dur-reveal: 600ms;    /* entrances and reveals */
  --dur-leave: 200ms;     /* elements leaving */
  --stagger: 80ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);   /* standard deceleration */
  --ease-emph: cubic-bezier(0.16, 1, 0.3, 1);      /* longer, softer landing */
  --reveal-y: 16px;

  /* Frame */
  --frame: #e6e7e9;          /* page frame and header notch */
  --panel-gray: #eeeff0;     /* gallery panel */
  --hero-bg: linear-gradient(180deg, #e0e2e5 0%, #eaecee 48%, #f5f6f7 100%);
  --fg: 14px;                /* frame gap */
  --r-panel: 28px;
  --header-space: 96px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: var(--fs-2xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green); text-decoration-thickness: 2px; }
strong { font-weight: 600; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.icon { flex: none; }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-bottom: 0.9rem;
}
.lead { font-size: var(--fs-md); color: var(--ink-2); max-width: 38em; line-height: 1.55; }
.note { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.5rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 var(--fs-base)/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition:
    background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn--primary:hover, .btn--primary:focus-visible { box-shadow: 0 10px 20px -12px rgba(18, 20, 23, 0.45); }
.btn--secondary:hover, .btn--secondary:focus-visible { box-shadow: 0 10px 20px -14px rgba(28, 32, 39, 0.6); }
.motion .btn:not(.btn--ghost):hover, .motion .btn:not(.btn--ghost):focus-visible { transform: translateY(-2px); }
.motion .btn:not(.btn--ghost):active { transform: translateY(0) scale(0.98); box-shadow: none; transition-duration: 80ms; }
/* Directional arrow: on hover the arrow leaves to the right and a new one
   slides in from the left (links, buttons and product cards). */
.arrow-swap { position: relative; display: inline-flex; overflow: hidden; width: 1.1em; height: 1.1em; flex: none; }
.arrow-swap .icon { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform var(--dur-base) var(--ease-out); }
.arrow-swap .icon + .icon { transform: translateX(-120%); }
a:hover .arrow-swap .icon:first-child, a:focus-visible .arrow-swap .icon:first-child,
.pcard:hover .arrow-swap .icon:first-child, .pcard:focus-within .arrow-swap .icon:first-child { transform: translateX(120%); }
a:hover .arrow-swap .icon + .icon, a:focus-visible .arrow-swap .icon + .icon,
.pcard:hover .arrow-swap .icon + .icon, .pcard:focus-within .arrow-swap .icon + .icon { transform: translateX(0); }
.btn[data-size="sm"] { min-height: 42px; padding: 0.5rem 1rem; font-size: var(--fs-sm); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); color: var(--white); text-decoration: none; }
.btn--primary:focus-visible { outline-color: var(--green); }
.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--white); text-decoration: none; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; color: var(--white); text-decoration: none; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--ink); color: var(--white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--accent); padding-inline: 0.5rem; }
.btn--ghost:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
.actions--stack { flex-direction: column; align-items: stretch; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover > .icon, .link-arrow:focus-visible > .icon { transform: translateX(4px); }
.link-ext { display: inline-flex; align-items: center; gap: 0.3rem; font-size: var(--fs-sm); }

/* ---------- Frame & panels ----------
   The page sits on a light frame; content is split into rounded panels
   ("sheets"). Templates mark panel breaks with <!--break-->. */
body { background: var(--frame); padding-inline: var(--fg); padding-top: var(--fg); }
.sheet { position: relative; background: var(--white); border-radius: var(--r-panel); overflow: clip; margin-bottom: var(--fg); }
.sheet:has(> .gallery) { background: var(--hero-bg); }
.sheet:has(> .band-dark) { background: var(--ink); }
.sheet:first-child > :first-child:not(.hero):not(.page-head) { padding-top: calc(var(--header-space) + 1rem); }

/* ---------- Header (logo in a notch at the top of the frame) ---------- */
.site-header { position: absolute; z-index: 50; top: var(--fg); left: var(--fg); right: var(--fg); }
.site-header__bar { position: relative; display: flex; align-items: center; gap: 16px; min-height: var(--header-h); padding-inline: clamp(18px, 3vw, 40px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.logo-mark { color: var(--accent); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; }
.brand__tag { font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

.site-nav__list { list-style: none; display: flex; gap: clamp(14px, 2.2vw, 30px); }
.site-nav a:not(.btn):not(.icon-btn) { color: var(--ink); text-decoration: none; }
.site-nav__list a {
  position: relative; display: block; padding-block: 0.5rem;
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.site-nav__list a::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left center; transition: transform var(--dur-base) var(--ease-out);
}
.site-nav__list a:hover::before, .site-nav__list a:focus-visible::before, .site-nav__list a[aria-current="page"]::before { transform: scaleX(1); }
.site-nav__list a[aria-current="page"]::before { background: var(--green-bright); height: 2px; }
.site-nav__list { position: relative; }
.nav-ind { position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; background: var(--ink); pointer-events: none; opacity: 0; visibility: hidden; list-style: none; }
@media (min-width: 1241px) { .has-nav-ind .site-nav__list a::before { display: none; } }
@media (max-width: 1240px) { .nav-ind { display: none; } }
.site-nav__end { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.site-nav__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--ink); color: var(--white);
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--accent); color: var(--white); }
.motion .icon-btn:hover, .motion .icon-btn:focus-visible { transform: translateY(-2px); }
.header-phone { display: none; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.header-phone .icon { color: var(--accent); }

.nav-toggle {
  display: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; margin-left: auto;
  background: var(--ink); color: var(--white); border: 0; border-radius: 999px;
  font: 600 var(--fs-sm) var(--font-sans); cursor: pointer;
}
.nav-toggle span { display: inline-flex; }
.nav-toggle[aria-expanded="false"] .nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }

@media (min-width: 1241px) {
  .site-nav { flex: 1; display: flex; justify-content: space-between; align-items: center; }
  /* Centre notch: a tab of the frame colour cut into the top of the first panel. */
  .site-header .brand {
    position: absolute; z-index: 1; left: 50%; top: calc(-1 * var(--fg)); transform: translateX(-50%);
    height: calc(var(--header-h) + var(--fg) - 6px); padding: var(--fg) 72px 0;
  }
  .site-header .brand::before {
    content: ''; position: absolute; inset: 0; z-index: -1; background: var(--frame);
    clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 40px 100%);
    border-radius: 0 0 22px 22px;
  }
  .site-header .brand__tag { display: none; }
  .site-nav__list--start { margin-right: auto; }
  /* After scrolling, the header becomes a floating pill so contact stays at hand. */
  .site-header.is-stuck { position: fixed; top: 10px; }
  .site-header.is-stuck .site-header__bar {
    min-height: 60px; max-width: 1240px; margin-inline: auto; border-radius: 999px;
    background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px -18px rgba(28, 32, 39, 0.45); border: 1px solid var(--line);
  }
  .site-header.is-stuck .brand { top: 0; height: 60px; padding: 0; }
  .site-header.is-stuck .brand::before { display: none; }
  .site-header.is-stuck .brand__name { font-size: 1.0625rem; }
}
@media (max-width: 1240px) {
  .js .nav-toggle { display: inline-flex; }
  .site-header.is-stuck { position: fixed; top: 8px; }
  .site-header.is-stuck .site-header__bar { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); border-radius: 999px; box-shadow: 0 10px 24px -16px rgba(28, 32, 39, 0.45); min-height: 58px; }
  .site-nav { display: block; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px);
    background: var(--white); border-radius: 20px; padding: 10px 20px 20px;
    box-shadow: 0 18px 40px -20px rgba(28, 32, 39, 0.45);
    max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav__list, .site-nav__end { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
  .site-nav__list a::before { left: 0.25rem; right: auto; width: 32px; bottom: -1px; }
  .site-nav__actions { flex-wrap: wrap; gap: 14px; padding-top: 16px; }
  .site-nav__actions .icon-btn { display: none; }
  .header-phone { display: inline-flex; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .site-header__bar { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav { width: 100%; }
}

/* ---------- Page head (inner pages) ---------- */
.page-head {
  background: var(--hero-bg); text-align: center;
  padding-block: calc(var(--header-space) + clamp(1rem, 3vw, 2.5rem)) clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.page-head__inner { display: grid; justify-items: center; }
.page-head h1 { margin-bottom: 0.3em; }
.page-head .lead { margin-inline: auto; margin-bottom: 0; }
.page-head .crumbs ol { justify-content: center; }
.display { text-transform: uppercase; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 1.25rem; }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--alt { background: var(--surface); }
.section--first { padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section--tight { padding-block: 0 var(--section); }
.section-head { display: grid; gap: 0.25rem 3rem; margin-bottom: 2.25rem; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--ink-2); max-width: 40em; margin: 0; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; }
}
.section-more { margin-top: 2rem; }

/* ---------- Plinth (photo backdrop) ---------- */
.plinth {
  display: grid; place-items: center; padding: clamp(16px, 3vw, 28px);
  background-color: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.plinth img { width: auto; max-height: 100%; object-fit: contain; }
.plinth--sm { display: block; position: relative; aspect-ratio: 4 / 3; max-width: 100%; padding: 0; }
.plinth--sm img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; box-shadow: none; }
.plinth--lg { width: 100%; }

.ph {
  background: var(--plinth); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%; min-height: 200px; color: var(--ink-3); text-align: center;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.04em;
}
.ph .icon { color: #a3a7ad; }

/* ---------- Hero stage (Video A) ----------
   Full-width dark stage. Text on the left, the portrait video on the right,
   blended into the stage with edge masks; the CSS background continues the
   video's dark studio so the portrait footage never has to be cropped.
   Desktop with motion: .is-scrub makes the section ~200svh tall and the
   sticky stage holds while scrolling moves through the camera movement. */
:root {
  --stage-bg: #121315;
  --stage-ink: #f4f5f6;
  --stage-ink-2: #b7bbc1;
}
.sheet:has(> .hero--stage) { background: var(--stage-bg); }
.hero--stage { position: relative; background: var(--stage-bg); color: var(--stage-ink); }
.hero--stage.is-scrub { height: 205vh; height: 205svh; }
.stage__sticky {
  position: relative; display: flex; align-items: center;
  min-height: calc(100vh - 2 * var(--fg)); min-height: calc(100svh - 2 * var(--fg));
  padding: calc(var(--header-space) + 0.5rem) clamp(18px, 4vw, 56px) clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(ellipse 42% 70% at 74% 58%, #2a2c30 0%, rgba(42, 44, 48, 0) 70%),
    linear-gradient(180deg, #0e0f11 0%, #141518 55%, #1f1f21 100%);
  overflow: hidden;
}
.is-scrub .stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.stage__inner { position: relative; width: 100%; max-width: 1240px; margin-inline: auto; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
@media (min-width: 900px) { .stage__inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.stage__text { min-width: 0; position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.1rem, 0.9rem + 3vw, 3.6rem); line-height: 1; margin: 0; max-width: none; color: var(--stage-ink); }
.hero__line { display: block; }
.stencil { font-weight: 400; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  /* A horizontal cut through the word, like stencil lettering. */
  .stencil {
    color: transparent;
    background: linear-gradient(180deg, var(--stage-ink) 0 49%, transparent 49% 58%, var(--stage-ink) 58% 100%);
    -webkit-background-clip: text; background-clip: text;
  }
}
.hero__lead { font-size: var(--fs-md); line-height: 1.55; color: var(--stage-ink-2); max-width: 30em; margin: clamp(1rem, 2vw, 1.5rem) 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.hero--stage .btn--primary { background: var(--white); color: var(--ink); }
.hero--stage .btn--primary:hover { background: #e3e5e8; color: var(--ink); }
.hero--stage .btn--secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.hero--stage .btn--secondary:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero--stage :focus-visible { outline-color: #9fd3a7; }
.hero__call { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 1rem; font-size: var(--fs-sm); color: var(--stage-ink-2); }
.hero__call .icon { color: #9fd3a7; }
.hero__call a { font-weight: 700; color: var(--white); }
.hero__call a:hover { color: #9fd3a7; }

/* The portrait video keeps its proportions; the stage height decides its size. */
.stage__media {
  position: relative; margin: 0; justify-self: center;
  height: min(calc(100svh - var(--header-space) - 5rem), 820px); max-height: 82vh;
  aspect-ratio: var(--ar); max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 80%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 24%, #000 80%, transparent 100%), linear-gradient(180deg, transparent 0, #000 16%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.stage__video, .stage__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage__poster { transition: opacity 300ms var(--ease-out); }
.hero--stage.has-frame .stage__poster { opacity: 0; }
.stage__meta {
  position: absolute; right: clamp(18px, 3vw, 40px); bottom: clamp(16px, 3vw, 32px); z-index: 2;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 36px);
}
.stage__note { margin: 0; font-size: 0.75rem; line-height: 1.4; color: rgba(244, 245, 246, 0.6); text-align: right; max-width: 24em; }
@media (max-width: 899px) {
  .stage__sticky { display: block; }
  .stage__media { height: auto; width: min(100%, calc(min(62svh, 560px) * 704 / 1024)); max-height: none; }
  .stage__meta { position: static; flex-direction: column-reverse; gap: 8px; margin: 0.75rem auto 0; max-width: none; }
  .stage__note { text-align: center; }
}

/* Header over the dark stage (until it turns into the floating pill). */
@media (min-width: 1241px) {
  .has-stage .site-header:not(.is-stuck) .site-nav__list a { color: var(--stage-ink); }
  .has-stage .site-header:not(.is-stuck) .btn--dark { background: var(--white); color: var(--ink); }
  .has-stage .site-header:not(.is-stuck) .icon-btn { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
  .has-stage .site-header:not(.is-stuck) .nav-ind { background-color: var(--white) !important; }
  .has-stage .site-header:not(.is-stuck) .brand::before { background: var(--frame); }
}

@media (max-width: 1240px) {
  .has-stage .site-header:not(.is-stuck) .site-header__bar {
    margin-top: 8px; margin-inline: 8px; min-height: 56px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.94); padding-inline: 14px 8px;
  }
}

/* ---------- Media control button (all video areas) ---------- */
.media-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border-radius: 999px; cursor: pointer; font: 600 0.8125rem/1.2 var(--font-sans);
  background: rgba(255, 255, 255, 0.92); color: var(--ink); border: 1px solid rgba(18, 20, 23, 0.14);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.media-toggle:hover { background: var(--ink); color: var(--white); }
.hero--stage .media-toggle, .seq--dark .media-toggle { background: rgba(255, 255, 255, 0.08); color: var(--stage-ink); border-color: rgba(255, 255, 255, 0.28); }
.hero--stage .media-toggle:hover, .seq--dark .media-toggle:hover { background: var(--white); color: var(--ink); }
.media-toggle__icon { display: none; }
.media-toggle[data-state="pause"] [data-icon="pause"],
.media-toggle[data-state="play"] [data-icon="play"],
.media-toggle[data-state="replay"] [data-icon="replay"] { display: inline-flex; }

/* ---------- Chapter sequence (Videos B and C) ----------
   Visual beside short chapters. Desktop: the visual is sticky and the chapter
   crossing the middle of the screen plays once and holds. Posters cover the
   video until its frame is ready; no player frame. */
.seq { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: var(--r-panel); background: var(--hero-bg); }
.seq--dark { background: radial-gradient(ellipse 60% 80% at 28% 45%, #2a2c30 0%, rgba(42, 44, 48, 0) 70%), linear-gradient(180deg, #0e0f11, #1a1b1e); color: var(--stage-ink); }
.seq__head { max-width: 40em; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.seq__head h2 { margin-bottom: 0.4em; }
.seq__head p:not(.eyebrow) { color: var(--ink-2); }
.seq--dark .seq__head h2 { color: var(--white); }
.seq--dark .seq__head p:not(.eyebrow) { color: var(--stage-ink-2); }
.seq--dark .eyebrow { color: #9fd3a7; }
.seq__body { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 900px) {
  .seq__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .seq__visual { position: sticky; top: calc(var(--header-h) + 16px); }
  .seq__chapters { padding-block: 18vh 30vh; }
}
.seq__visual { display: grid; justify-items: center; gap: 10px; }
.seq__frame {
  position: relative; margin: 0; width: 100%; max-width: min(100%, calc((100svh - var(--header-h) - 120px) * 704 / 1024));
  aspect-ratio: var(--ar);
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
}
.seq--square .seq__frame { max-width: min(100%, 460px, calc(100svh - var(--header-h) - 140px)); }
.seq__video, .seq__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.seq__layer { opacity: 0; transition: opacity 280ms var(--ease-out); }
.seq__layer.is-on { opacity: 1; }
.seq__layer--photo { background: var(--white); }
.seq__layer--photo img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.seq__note { margin: 0; text-align: center; font-size: 0.75rem; line-height: 1.4; color: var(--ink-2); max-width: 28em; }
.seq--dark .seq__note { color: rgba(244, 245, 246, 0.65); }
.seq__chapters { list-style: none; display: grid; gap: clamp(2rem, 8vh, 5rem); }
.seq__chapter { position: relative; padding-left: 3.25rem; max-width: 30em; transition: color var(--dur-base) var(--ease-out); color: var(--ink-3); }
.seq__chapter h3 { font-size: var(--fs-lg); margin-bottom: 0.35em; color: inherit; transition: color var(--dur-base) var(--ease-out); }
.seq__chapter p { color: var(--ink-3); }
.seq__chapter.is-active, .seq__chapter.is-active h3 { color: var(--ink); }
.seq__chapter.is-active p { color: var(--ink-2); }
.seq--dark .seq__chapter, .seq--dark .seq__chapter h3 { color: #7d8288; }
.seq--dark .seq__chapter.is-active, .seq--dark .seq__chapter.is-active h3 { color: var(--white); }
.seq--dark .seq__chapter p { color: #7d8288; }
.seq--dark .seq__chapter.is-active p { color: var(--stage-ink-2); }
.seq__num { position: absolute; left: 0; top: 0.2rem; font-size: var(--fs-sm); font-weight: 600; color: var(--green); }
.seq--dark .seq__num { color: #9fd3a7; }
.seq__chapter::before { content: ''; position: absolute; left: 0; top: 2rem; bottom: -0.5rem; width: 2px; background: currentColor; opacity: 0.25; transform-origin: top; transform: scaleY(0.4); transition: transform 500ms var(--ease-emph), opacity 300ms; }
.seq__chapter.is-active::before { transform: scaleY(1); opacity: 0.9; background: var(--green-bright); }
.seq__cta { margin: clamp(1.5rem, 3vw, 2rem) 0 0; }
.seq--dark .btn--primary { background: var(--white); color: var(--ink); }
.seq--dark :focus-visible { outline-color: #9fd3a7; }
@media (max-width: 899px) {
  .seq__chapter, .seq__chapter h3, .seq__chapter p { color: var(--ink-2); }
  .seq--dark .seq__chapter, .seq--dark .seq__chapter h3 { color: var(--stage-ink); }
  .seq--dark .seq__chapter p { color: var(--stage-ink-2); }
  .seq__chapters { gap: 1.5rem; }
  .seq__frame { max-width: min(100%, calc(62svh * 704 / 1024)); }
  .seq--square .seq__frame { max-width: min(100%, 420px); }
}

/* Continuous tour (full clip scrubbed by scroll, desktop): each chapter
   gets scroll length proportional to its duration in the video. */
@media (min-width: 900px) {
  .seq.is-scrub .seq__chapter { min-height: calc(var(--dur, 1) * var(--s-per, 14vh) + 4rem); }
  .seq.is-scrub .seq__chapters { gap: 0; padding-block: 22vh 26vh; }
}
/* Text follows the footage: the active chapter settles in, others recede. */
@media (max-width: 899px) {
  .seq.is-scrub .seq__body { align-items: start; }
  .seq.is-scrub .seq__visual {
    position: sticky;
    top: var(--header-h);
    z-index: 2;
    align-self: start;
    padding-block: 8px;
    background: var(--white);
  }
  .seq--dark.is-scrub .seq__visual { background: #1a1b1e; }
  .seq.is-scrub .seq__frame,
  .seq--square.is-scrub .seq__frame {
    max-width: 100%;
    height: 36svh;
    aspect-ratio: auto;
  }
  .seq.is-scrub .seq__note { display: none; }
  .seq.is-scrub .seq__chapters { gap: 0; padding-block: 8svh 28svh; }
  .seq.is-scrub .seq__chapter { min-height: max(38svh, calc(var(--dur, 1) * 16svh)); }
  .seq.is-scrub .seq__chapter-body { position: sticky; top: calc(var(--header-h) + 36svh + 80px); }
}
.seq__chapter h3, .seq__chapter p { transition: color 400ms var(--ease-out), opacity 400ms var(--ease-out), transform 500ms var(--ease-emph); }
.motion .seq__chapter:not(.is-active) p { opacity: 0.75; transform: translateY(4px); }
.motion .seq__chapter.is-active h3 { transform: translateX(2px); }

.seq__jump {
  all: unset; cursor: pointer; display: inline; font: inherit; color: inherit; text-align: left;
  border-radius: 4px; transition: color var(--dur-fast) var(--ease-out);
}
.seq__jump:hover { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.seq__jump:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.seq--dark .seq__jump:focus-visible { outline-color: #9fd3a7; }
/* Photo-only tour (no matching footage): photos on a quiet light panel. */
.seq--photos .seq__frame { -webkit-mask-image: none; mask-image: none; border-radius: 22px; overflow: hidden; background: var(--white); max-width: min(100%, 460px); }
.seq--photos .media-label { z-index: 2; }

/* ---------- Teaser: static poster linking to a full presentation ---------- */
.teaser {
  display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 20px; align-items: center;
  margin-top: 2rem; padding: 16px 20px 16px 16px; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); text-decoration: none; border: 1px solid var(--line);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.teaser:hover, .teaser:focus-visible { border-color: var(--ink); box-shadow: 0 18px 34px -24px rgba(18, 20, 23, 0.5); color: var(--ink); }
.teaser__media { display: block; border-radius: 12px; overflow: hidden; background: var(--white); }
.teaser__media img { width: 100%; height: auto; max-height: 220px; object-fit: contain; transition: transform 500ms var(--ease-emph); }
.motion .teaser:hover .teaser__media img { transform: scale(1.04); }
.teaser__body { display: grid; gap: 4px; }
.teaser__body .eyebrow { margin: 0; }
.teaser__title { font-size: var(--fs-lg); font-weight: 600; }
.teaser__text { color: var(--ink-2); font-size: var(--fs-sm); }
.teaser__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: var(--fs-sm); }
.teaser:hover .arrow-swap .icon:first-child { transform: translateX(120%); }
.teaser:hover .arrow-swap .icon + .icon { transform: translateX(0); }
@media (max-width: 520px) { .teaser { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; } }

/* ---------- Featured machines panel (switcher) ---------- */
.featured { position: relative; background: var(--hero-bg); padding: clamp(2.5rem, 5vw, 4.5rem) clamp(18px, 4vw, 56px) 0; }
.featured__lines {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 34% 40% at 50% 76%, transparent 0 62%, #000 100%);
  mask-image: radial-gradient(ellipse 34% 40% at 50% 76%, transparent 0 62%, #000 100%);
}
.featured__lines line { stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.featured__inner { position: relative; max-width: 1280px; margin-inline: auto; display: grid; gap: 24px; }
@media (min-width: 900px) { .featured__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2.65fr); align-items: end; gap: 0; } }
.featured__head { padding-bottom: clamp(1.5rem, 5vw, 4.5rem); max-width: 22em; }
.featured__title { font-size: var(--fs-xl); }
.featured__head p:not(.eyebrow) { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 899px) { .featured__head { padding-bottom: 0; } }

/* ---------- Gallery panel: interactive viewer ----------
   Same backdrop as the featured panel: light grey gradient with white guide
   lines converging behind the large photo.
   The small photos are buttons: choosing
   one swaps it into the large slot (GSAP Flip in main.js/motion.js) and the
   caption below the large photo follows. */
.gallery__lines {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 30% 36% at 50% 43%, transparent 0 55%, #000 100%);
  mask-image: radial-gradient(ellipse 30% 36% at 50% 43%, transparent 0 55%, #000 100%);
}
.gallery__lines line, .featured__lines line { stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.gallery {
  position: relative; display: grid; gap: 16px; background: var(--hero-bg);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(2.5rem, 2rem + 4vw, 6rem) clamp(18px, 5vw, 80px);
}
.gallery > :where(:not(.gallery__lines)) { position: relative; z-index: 1; }
.gallery__slot { position: relative; min-width: 0; aspect-ratio: 1 / 1; max-width: 100%; }
.gallery__slot--b { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gallery__item {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; margin: 0;
  border: 1px solid transparent; border-radius: 20px; overflow: hidden; background: var(--white);
  cursor: pointer; font: inherit; color: inherit;
  box-shadow: 0 10px 24px -20px rgba(18, 20, 23, 0.4);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.gallery__item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px;
  transition: transform 500ms var(--ease-emph);
}
.gallery__item[aria-pressed="true"] { cursor: default; box-shadow: 0 30px 60px -36px rgba(18, 20, 23, 0.55); }
.gallery__item[aria-pressed="false"]:hover, .gallery__item[aria-pressed="false"]:focus-visible { border-color: var(--ink); box-shadow: 0 18px 34px -22px rgba(18, 20, 23, 0.55); }
.motion .gallery__item[aria-pressed="false"]:hover, .motion .gallery__item[aria-pressed="false"]:focus-visible { transform: translateY(-4px); }
.motion .gallery__item:hover img { transform: translateY(-4px) scale(1.03); }
.gallery__item:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gallery__expand {
  position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.gallery__item[aria-pressed="true"] .gallery__expand { opacity: 0; transform: scale(0.6); }
.gallery__item[aria-pressed="false"]:hover .gallery__expand, .gallery__item[aria-pressed="false"]:focus-visible .gallery__expand { transform: rotate(90deg); }
.gallery__caption { grid-column: 1 / -1; text-align: center; }
.gallery__tag { margin: 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); }
.gallery__name { margin: 0.25rem 0 0.5rem; font-size: var(--fs-md); font-weight: 600; }
.gallery__caption .link-arrow { font-size: var(--fs-sm); }
.gallery__text { font-size: var(--fs-sm); color: var(--ink-2); max-width: 22em; margin: 0; }
.gallery__text--b .link-arrow { margin-top: 0.75rem; font-size: var(--fs-sm); }
@media (max-width: 899px) {
  .gallery__slot--b { order: 1; }
  .gallery__caption { order: 2; }
  .gallery__slot--a, .gallery__slot--c { order: 3; }
  .gallery__text { order: 4; grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto auto; column-gap: 20px; row-gap: 0; min-height: 680px; }
  .gallery__slot { z-index: 1; }
  .gallery__slot--a { grid-column: 2 / span 2; grid-row: 1; align-self: start; aspect-ratio: 3 / 4; }
  .gallery__slot--b { grid-column: 5 / span 4; grid-row: 1 / span 3; z-index: 3; aspect-ratio: 4 / 5; align-self: center; }
  .gallery__slot--c { grid-column: 10 / span 2; grid-row: 2 / span 2; align-self: end; aspect-ratio: 1 / 1; }
  .gallery__caption { grid-column: 5 / span 4; grid-row: 4; padding-top: 1.25rem; position: relative; z-index: 3; }
  .gallery__text--a { grid-column: 2 / span 3; grid-row: 3; align-self: end; padding-top: 2rem; }
  .gallery__text--b { grid-column: 10 / span 3; grid-row: 1; align-self: start; }
}

/* ---------- Reasons strip ---------- */
.reasons { background: var(--white); }
.reasons__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.reasons__list li { display: flex; gap: 14px; padding: 28px 20px 28px 0; }
.reasons__list .icon { color: var(--accent); margin-top: 2px; }
.reasons__h { font-size: var(--fs-base); margin: 0 0 0.2em; }
.reasons__list p { font-size: var(--fs-sm); color: var(--ink-2); }
@media (min-width: 1000px) {
  .reasons__list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
}

/* ---------- Category cards (homepage) ---------- */
.cats { display: grid; gap: 24px; }
@media (min-width: 900px) { .cats { grid-template-columns: 1fr 1fr; } }
.cat { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
@media (min-width: 560px) { .cat { grid-template-columns: 220px minmax(0, 1fr); } }
.cat__media {
  display: grid; place-items: center; min-height: 220px; padding: 16px;
  background-color: var(--white);
  
}
.cat__media { position: relative; }
.cat__media img { max-height: 260px; width: auto; }
.cat__body { padding: 24px; }
.cat__body p { color: var(--ink-2); }
.cat__links { list-style: none; margin-top: 1rem; border-top: 1px solid var(--line); }
.cat__links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.cat__links a:hover { text-decoration: underline; color: var(--ink); }
.cat__links .arrow-swap { width: 1em; height: 1em; }

/* ---------- Product cards ---------- */
.pgrid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pgrid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.pcard__media {
  aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid var(--line);
  background-color: var(--white);
  
}
.pcard__media { position: relative; }
.pcard__media img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.plinth { position: relative; }
.plinth--lg img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); max-height: none; object-fit: contain; box-shadow: none; }
.media-label {
  position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  font-size: 0.75rem; letter-spacing: 0.03em; color: var(--ink-2);
}
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.pcard__body > p:not(.tag) { color: var(--ink-2); font-size: var(--fs-sm); }
.pcard__title { font-size: var(--fs-md); margin-bottom: 0.5em; }
.pcard__title a { color: var(--ink); text-decoration: none; }
.pcard__title a::after { content: ''; position: absolute; inset: 0; }
.pcard { position: relative; }
.pcard, .cat { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.pcard:hover, .pcard:focus-within, .cat:hover, .cat:focus-within { border-color: var(--ink); box-shadow: 0 22px 40px -26px rgba(18, 20, 23, 0.5); }
.pcard__media, .cat__media { transition: background-color var(--dur-base) var(--ease-out); }
.pcard:hover .pcard__media, .pcard:focus-within .pcard__media, .cat:hover .cat__media, .cat:focus-within .cat__media { background-color: var(--surface); }
.pcard__media img, .cat__media img { transition: transform 500ms var(--ease-emph); }
/* The photo rises slightly inside its padded frame; nothing is cropped. */
.motion .pcard:hover .pcard__media img, .motion .pcard:focus-within .pcard__media img,
.motion .cat:hover .cat__media img, .motion .cat:focus-within .cat__media img { transform: translateY(-6px) scale(1.03); }
.pcard__cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 0.45rem 0.6rem 0.45rem 0.9rem;
  border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); background: var(--surface);
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.pcard:hover .pcard__cta, .pcard:focus-within .pcard__cta { background: var(--ink); color: var(--white); }
.motion .pcard:not(.pcard--more):hover, .motion .pcard:not(.pcard--more):focus-within, .motion .cat:hover, .motion .cat:focus-within { transform: translateY(-3px); }
.pcard__title a:hover { color: var(--ink); }
.pcard__title a:focus-visible { outline: none; }
.pcard:has(.pcard__title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pcard__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pcard--more { background: var(--surface); border-style: dashed; }
.pcard--more .pcard__foot { border-top: 0; position: relative; z-index: 1; }

.tag { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); margin-bottom: 0.5rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0.25rem 0 1rem; }
.chips li { font-family: var(--font-mono); font-size: var(--fs-xs); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--white); }

.price { margin: 0; display: flex; flex-direction: column; line-height: 1.3; }
.price__label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.price__value { font-weight: 600; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }

/* ---------- Catalogue ---------- */
.jump { padding-top: 1.5rem; }
.jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.jump a:hover { border-color: var(--ink); }
.cat-section + .cat-section { padding-top: 0; }

.examples { margin-top: 2.5rem; }
.examples__h { font-size: var(--fs-base); font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.examples__list { list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-bottom: 1rem; }
.examples figure { margin: 0; }

/* ---------- Product detail ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; } }
.product__media .plinth--lg { aspect-ratio: 4 / 3; }
.product__summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 900px) { .product__summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.product__lead { font-size: var(--fs-md); line-height: 1.5; }
.product__summary .price { padding-block: 16px; border-block: 1px solid var(--line); margin-bottom: 0.75rem; }
.product__summary .price__value { font-size: var(--fs-lg); }
.product__summary .actions { margin-top: 1.25rem; }
.product__call { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-weight: 600; }
.product__call .icon { color: var(--accent); }
.product__also { margin-top: 1.25rem; font-size: var(--fs-sm); color: var(--ink-2); }
.pgallery__stage { aspect-ratio: 4 / 3; }
.pgallery__caption { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.pgallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pgallery__thumb {
  position: relative; width: 84px; height: 84px; padding: 0; border-radius: 14px; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.pgallery__thumb img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; }
.pgallery__thumb:hover { border-color: var(--ink-2); }
.motion .pgallery__thumb:hover { transform: translateY(-2px); }
.pgallery__thumb[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
@media (max-width: 560px) { .pgallery__thumb { width: 64px; height: 64px; } }
.thumbs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }

.product-info { display: grid; gap: 40px 48px; padding-block: 1rem var(--section); }
@media (min-width: 900px) { .product-info { grid-template-columns: 1fr 1fr; } .product-info__wide { grid-column: 1 / -1; } }
.product-info h2 { font-size: var(--fs-lg); padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); }

.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .icon { color: var(--green-bright); margin-top: 3px; }
.dots { list-style: none; display: grid; gap: 8px; }
.dots li { position: relative; padding-left: 20px; }
.dots li::before { content: ''; position: absolute; left: 2px; top: 0.65em; width: 8px; height: 8px; background: var(--accent); border-radius: 1px; }

.options { margin: 0; display: grid; gap: 0; }
.options > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.options dt { font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.options dd { margin: 0.2rem 0 0; color: var(--ink-2); }
.badge-opt {
  display: inline-block; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green); background: var(--green-50); border: 1px solid #c4e1c9; padding: 1px 7px; border-radius: 3px; vertical-align: 2px; white-space: nowrap;
}

.table-scroll { overflow-x: auto; }
.specs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.specs th, .specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--ink-2); width: 42%; }
.specs td { font-family: var(--font-mono); font-size: var(--fs-sm); }
.specs tr:nth-child(even) { background: var(--surface); }
.specs td .badge-opt { margin-left: 8px; }
.specs + .note, .table-scroll + .note { margin-top: 0.75rem; }

/* ---------- Services ---------- */

.svc-layout { display: grid; gap: 32px; padding-block: 2.5rem var(--section); }
@media (min-width: 900px) { .svc-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; } }
.svc-toc ul { list-style: none; border-left: 2px solid var(--line); }
@media (min-width: 900px) { .svc-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.svc-toc a { display: block; padding: 6px 14px; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; font-size: var(--fs-sm); }
.svc-toc a:hover { color: var(--accent); border-left-color: var(--accent); }
@media (max-width: 899px) {
  .svc-toc ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .svc-toc a { border: 1px solid var(--line); border-radius: 999px; margin: 0; padding: 0.4rem 0.85rem; }
}
.svc-list { display: grid; gap: 0; }
.svc-item { padding-block: 28px; border-bottom: 1px solid var(--line); max-width: 46em; }
.svc-item:first-child { padding-top: 0; }
.svc-item h2 { font-size: var(--fs-lg); }
.svc-item p { color: var(--ink-2); }

/* ---------- Process ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.step { position: relative; counter-increment: step; padding-top: 18px; }
.step__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--green); font-weight: 600; margin-bottom: 0.5rem; }
.step h3 { font-size: var(--fs-md); margin-bottom: 0.35em; }
.step p { color: var(--ink-2); font-size: var(--fs-sm); }

/* ---------- About ---------- */
.about-short { display: grid; gap: 8px 64px; }
@media (min-width: 900px) { .about-short { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.about-short p { max-width: 40em; }
.about { display: grid; gap: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; } }
.about__text p { max-width: 40em; }
.about__text h2 { font-size: var(--fs-lg); margin-top: 2rem; }
.facts { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
.facts > div { padding: 18px 22px; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.facts dd { margin: 0.2rem 0 0; font-size: var(--fs-lg); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Dark contact band ---------- */
.band-dark { background: var(--ink); color: var(--on-dark); padding-block: var(--section); --focus: #ffffff; }
.band-dark h2 { color: var(--white); }
.band-dark p { color: var(--on-dark-2); max-width: 32em; }
.band-dark__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .band-dark__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; } }
.band-dark .btn--primary { background: var(--white); color: var(--ink); }
.band-dark .btn--primary:hover { background: #e9ebee; color: var(--ink); }

/* ---------- Contact list ---------- */
.contact-list { list-style: none; display: grid; gap: 0; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .icon { color: var(--accent); margin-top: 3px; }
.contact-list > li > div { display: flex; flex-direction: column; min-width: 0; }
.contact-list__label { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.contact-list__value { font-size: var(--fs-md); font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.contact-list__value--plain { color: var(--ink); }
.contact-list__alt { font-size: var(--fs-sm); overflow-wrap: anywhere; }
.contact-list--dark li { border-color: #3a3e44; }
.contact-list--dark .icon { color: #9fd3a7; }
.contact-list--dark .contact-list__label { color: var(--on-dark-2); }
.contact-list--dark a { color: var(--white); }
.contact-list--dark a:hover { color: #d8dbe0; }
.contact-list--dark .contact-list__value--plain { color: var(--white); }

/* ---------- Contact page ---------- */
.contact { display: grid; gap: 48px; padding-block: 2.5rem var(--section); }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.contact__form { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); position: relative; }
.contact__form h2 { font-size: var(--fs-lg); margin-bottom: 0.3em; }
.form-intro { color: var(--ink-2); }
.anchor { position: absolute; top: 0; }

.map { margin-top: 28px; padding: 18px; background: var(--surface); border-radius: var(--radius); }
.map__note { font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 0.75rem; }
.map__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.map__frame { margin-top: 14px; aspect-ratio: 4 / 3; max-width: 100%; }
.map__frame iframe { width: 100%; height: 100%; border: 0; border-radius: 4px; }

.form { display: grid; gap: 18px; margin-top: 1.5rem; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea, .form-result textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  font: inherit; font-size: var(--fs-base); color: var(--ink); background: var(--white);
  border: 1px solid #8e939a; border-radius: 12px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field textarea, .form-result textarea { resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__hint { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.field__error { font-size: var(--fs-sm); color: var(--error); font-weight: 500; margin: 0; }
.form__send { display: grid; gap: 10px; justify-items: start; margin-top: 4px; }
.form-result { margin-top: 1.5rem; padding: 20px; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--accent-50); }
.form-result h3 { font-size: var(--fs-md); }
.form-result textarea { font-family: var(--font-mono); font-size: var(--fs-sm); background: var(--white); margin-top: 0.5rem; }
.form-result .actions { margin-top: 1rem; }
.copy-status { font-size: var(--fs-sm); margin-top: 0.75rem; color: var(--green); font-weight: 500; }
.privacy-note { font-size: var(--fs-xs); color: var(--ink-2); margin-top: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-radius: var(--r-panel); margin-bottom: var(--fg); padding-top: 3rem; font-size: var(--fs-sm); }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 2fr 1.4fr 1.4fr 1fr; } }
.site-footer__brand p { color: var(--ink-2); margin-top: 0.75rem; max-width: 26em; }
.site-footer__h { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin-bottom: 0.9rem; }
.site-footer__list { list-style: none; display: grid; gap: 8px; }
.site-footer__list a { color: var(--ink); overflow-wrap: anywhere; }
.site-footer__list a:hover { color: var(--accent); }
.site-footer__bottom { margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-2); }

/* ---------- Mobile quick-contact bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 16px -10px rgba(28,32,39,.3);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: 999px; font-weight: 600; text-decoration: none; }
  .mobile-bar__call { border: 2px solid var(--ink); color: var(--ink); }
  .mobile-bar__inquiry { background: var(--accent); color: var(--white); }
  .mobile-bar__inquiry:hover { color: var(--white); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .site-nav__actions .header-phone { width: 100%; }
}
@media (max-width: 760px) {
  :root { --fg: 8px; --r-panel: 20px; --header-space: 80px; --header-h: 64px; }
  .featured__lines, .gallery__lines { opacity: 0.6; }
}
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .brand__tag { display: none; }
}


/* ---------- Hero showcase (featured machines, user-controlled) ---------- */
.showcase { position: relative; min-width: 0; }
.showcase__stage { display: grid; }
.showcase__panel { grid-area: 1 / 1; display: grid; gap: 16px; min-width: 0; }
html:not(.js) .showcase__panel { grid-area: auto; }
@media (min-width: 900px) {
  .showcase__panel { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: end; gap: 24px; }
}
.showcase__media { position: relative; margin: 0; height: clamp(250px, 31vw, 440px); }
/* The machine stands on the bottom edge, whole and uncropped. White photo
   backgrounds blend into the panel through multiply. */
.showcase__img {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: auto; height: 94%; max-width: 100%; object-fit: contain; object-position: bottom center;
  mix-blend-mode: multiply; filter: brightness(1.05) contrast(1.03);
}
.showcase__media .ph {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(70%, 340px); height: 88%; min-height: 0;
  border: 1.5px dashed #b3b7bd; border-bottom: 0; border-radius: 18px 18px 0 0; background: rgba(255, 255, 255, 0.35);
}
.showcase__label {
  position: absolute; left: 50%; top: 2%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--ink-2); white-space: nowrap;
}
.showcase__card {
  justify-self: end; width: 100%; max-width: 300px; padding: 18px 20px; border-radius: 20px;
  background: var(--ink); color: var(--on-dark); box-shadow: 0 24px 50px -28px rgba(28, 32, 39, 0.7);
}
@media (min-width: 900px) { .showcase__card { margin-bottom: 92px; } }
.showcase__tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #9fd3a7; margin-bottom: 0.4rem; }
.showcase__name { font-size: var(--fs-md); color: var(--white); margin-bottom: 0.5em; }
.showcase__text { font-size: 0.875rem; line-height: 1.5; color: var(--on-dark-2); }
.showcase__price { font-size: var(--fs-sm); color: var(--on-dark-2); margin-bottom: 0.6rem; }
.showcase__price strong { color: var(--white); }
.showcase__more { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-weight: 600; font-size: var(--fs-sm); }
.showcase__more:hover { color: #d8dbe0; }
.chips--dark li { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.25); }
.showcase__models { list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 0.75rem; }
.showcase__models a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); color: var(--white); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.showcase__models a:hover { color: #d8dbe0; text-decoration: underline; }
.showcase__models .icon, .showcase__more .icon { transition: transform var(--dur-base) var(--ease-out); }
.showcase__models a:hover .icon, .showcase__more:hover .icon { transform: translateX(4px); }

.showcase__controls { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
html:not(.js) .showcase__controls { display: none; }
@media (min-width: 900px) {
  .showcase__controls { position: absolute; right: 0; bottom: 30px; width: min(300px, 38%); margin: 0; }
}
.showcase__arrow {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1px solid rgba(28, 32, 39, 0.12);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.showcase__arrow:not(.showcase__arrow--next) .icon { transform: rotate(180deg); }
.showcase__arrow:hover { background: var(--ink); color: var(--white); }
.motion .showcase__arrow:hover, .motion .showcase__arrow:focus-visible { transform: translateY(-2px); }
.showcase__dots { display: flex; gap: 2px; }
.showcase__dot { width: 26px; height: 26px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.showcase__dot::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: #a3a7ad; transition: width var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out); }
.showcase__dot[aria-pressed="true"]::before { width: 20px; background: var(--ink); }
.showcase__status { margin: 0 0 0 auto; font-size: 0.8125rem; color: var(--ink-2); white-space: nowrap; }

/* Panel switching: photo and card change together. Inactive panels stay
   in the same grid cell, so the hero keeps its height. */
.js .showcase__panel:not(.is-active) { visibility: hidden; transition: visibility 0s linear var(--dur-leave); }
.js .showcase__panel .showcase__img,
.js .showcase__panel .showcase__media .ph,
.js .showcase__panel .showcase__label,
.js .showcase__panel .showcase__card {
  transition: opacity var(--dur-reveal) var(--ease-emph), translate var(--dur-reveal) var(--ease-emph);
}
.js .showcase__panel.is-active .showcase__img, .js .showcase__panel.is-active .showcase__media .ph { transition-delay: 40ms; }
.js .showcase__panel.is-active .showcase__card { transition-delay: 120ms; }
.js .showcase__panel:not(.is-active) .showcase__img,
.js .showcase__panel:not(.is-active) .showcase__media .ph,
.js .showcase__panel:not(.is-active) .showcase__label,
.js .showcase__panel:not(.is-active) .showcase__card {
  opacity: 0; transition-duration: var(--dur-leave); transition-timing-function: var(--ease-out); transition-delay: 0s;
}
.motion .showcase__panel:not(.is-active) .showcase__img,
.motion .showcase__panel:not(.is-active) .showcase__media .ph { translate: 0 14px; }
.motion .showcase__panel:not(.is-active) .showcase__card { translate: 0 10px; }
/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.disclosure { border-bottom: 1px solid var(--line); }
.disclosure summary {
  list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 18px 0; cursor: pointer; font-weight: 600; font-size: var(--fs-md); line-height: 1.35;
  transition: color var(--dur-fast) var(--ease-out);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:hover { color: var(--accent); }
.disclosure summary .icon { flex: none; margin-top: 3px; color: var(--accent); transition: transform var(--dur-base) var(--ease-out); }
.disclosure[open] summary .icon { transform: rotate(45deg); }
.disclosure__body { padding-bottom: 18px; color: var(--ink-2); max-width: 44em; }
.disclosure.is-animating { overflow: hidden; }

/* ---------- Motion ----------
   Entrances and scroll reveals are GSAP (assets/js/motion.js). CSS keeps the
   quick hover/focus feedback (--dur-* / --ease-* tokens) and the guard below.
   .anim-pending is set in <head> only when motion is allowed and removed as
   soon as GSAP has set up the hero entrance (or after 2.5 s as a failsafe),
   so the first frame does not flash fully drawn content before it animates. */
@keyframes drop { from { opacity: 0; transform: translate3d(0, -6px, 0); } }
.anim-pending .site-header__bar, .anim-pending .hero__line, .anim-pending .hero__lead,
.anim-pending .hero__actions > *, .anim-pending .hero__call, .anim-pending .stage__media,
.anim-pending .page-head__inner > * { opacity: 0; }
.motion .site-header.is-stuck { animation: drop var(--dur-base) var(--ease-out); }


/* Simpler motion on small screens */
@media (max-width: 760px) {
  :root { --reveal-y: 10px; --stagger: 50ms; --dur-reveal: 480ms; }
}

/* ---------- Zoom Through page transition (zoom-through.js) ----------
   Both pages sit in viewport-sized, clipped layers on a fixed stage above
   the page and below the header, on the site's own frame background. */
html { scrollbar-gutter: stable; }
html.zt-lock { overflow: hidden; }
html.zt-loading, html.zt-loading * { cursor: progress; }
.zt-stage { position: fixed; inset: 0; z-index: 30; overflow: hidden; background: var(--frame); touch-action: none; }
.zt-layer {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  transform-origin: 50% 50%;
}
/* Entrance animations already played on the first page; swapped-in content
   relies on the zoom alone. */
[data-zt-swapped], [data-zt-swapped] * { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .site-header, .mobile-bar, .band-dark .actions, .map, .contact__form { display: none !important; }
  body { padding: 0; }
}

/* ---------- AI recognition (HAHA VENDING Pro 542 page, ai-automaty.html) ----------
   Restrained: the same steps, rules and type as the rest of the site; the
   only accents are a small card badge and a quiet manufacturer-figure box. */
.pcard__badge {
  position: absolute; right: 12px; top: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.04em;
}
.steps--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ai-buy { padding-block: var(--section) 1rem; }
.ai-buy .link-arrow { margin-top: 1.25rem; display: inline-flex; }
.claim { margin-top: 2rem; padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--green-bright); border-radius: 12px; background: var(--surface); max-width: 40em; }
.claim__value { margin: 0; font-weight: 600; }
.claim__note { margin: 0.25rem 0 0; font-size: var(--fs-sm); color: var(--ink-2); }


.ai-topics { list-style: none; display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-bottom: 2.75rem; }
.ai-topics li { padding-top: 16px; border-top: 1px solid var(--line); }
.ai-topics h3 { font-size: var(--fs-md); margin-bottom: 0.3em; }
.ai-topics p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
.product-info--after { padding-top: var(--section); }
/* Heading block with an eyebrow: one column, so eyebrow, heading and text read in order. */
.section-head.section-head--stack { grid-template-columns: minmax(0, 1fr); max-width: 48em; }
.section-head--stack .eyebrow { margin: 0; }
.section-head--stack h2 { margin-bottom: 0.35rem; }

/* Square tour clip (Pro 542): softer edge mask, so the full composition and
   the watermark stay visible while the frame blends into the dark stage. */
.seq--soft .seq__frame {
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 76%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 76%, transparent 100%);
}

/* Chapter qualification and in-chapter inquiry button (Pro 542 tour). */
.seq__qual { margin-top: 0.5rem; font-size: var(--fs-sm); }
.seq--dark .seq__chapter .seq__qual { color: #8b9096; }
.seq--dark .seq__chapter.is-active .seq__qual { color: rgba(244, 245, 246, 0.72); }
.seq__chapter-cta { margin-top: 1.1rem; }

/* Chapter text wrapper; the number keeps its place in the left gutter. */
.seq__chapter-body { position: relative; }
.seq__chapter-body .seq__num { left: -3.25rem; }
/* Scroll scrubbing (desktop): a chapter is as long as its part of the
   video, so its text stays in view (sticky) while that part plays. */
@media (min-width: 900px) {
  .seq.is-scrub .seq__chapter-body { position: sticky; top: 38vh; }
}

/* ---------- AI-led homepage (HAHA VENDING Pro 542) ----------
   Same dark stage as before, but the square orbit clip plays once and is
   shown at a moderate size (its source is 464 px): the stage gives it room
   with tonal light instead of enlarging the footage. */
.hero__eyebrow { color: #9fd3a7; margin-bottom: 0.9rem; }
.hero--once .stage__sticky {
  min-height: min(calc(100svh - 2 * var(--fg)), 860px);
  background:
    radial-gradient(circle at 74% 56%, rgba(63, 163, 77, 0.10) 0%, rgba(63, 163, 77, 0) 30%),
    radial-gradient(ellipse 40% 62% at 74% 54%, #34373b 0%, rgba(52, 55, 59, 0) 72%),
    linear-gradient(180deg, #0e0f11 0%, #141518 55%, #1c1d20 100%);
}
@media (min-width: 900px) { .hero--once .stage__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hero--once .hero__title { font-size: clamp(2.3rem, 1rem + 3.4vw, 4rem); }
.hero--once .stage__media {
  height: auto; max-height: none; width: clamp(300px, 32vw, 440px);
  /* A quiet rounded studio tile, no mask: the machine and the watermark stay
     intact. Soft shadow and a faint green light tie it to the stage. */
  -webkit-mask-image: none; mask-image: none;
  border-radius: 28px; overflow: hidden; background: #3a3c3e;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 120px -30px rgba(63, 163, 77, 0.35);
}
.hero--once .hero__actions .btn--secondary { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.hero--once .hero__actions .btn--secondary:hover { background: var(--white); color: var(--ink); }
@media (max-width: 899px) {
  .hero--once .stage__sticky { min-height: 0; }
  .hero--once .stage__media { width: min(100%, 340px); border-radius: 22px; margin-top: 0.25rem; }
}

/* Three AI benefits directly below the hero. */
.benefits { background: var(--white); padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem); }
.benefits__list { list-style: none; display: grid; gap: 8px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.benefits__list li { display: flex; gap: 14px; padding: 14px 0; border-top: 2px solid var(--ink); }
.benefits__list .icon { flex: none; color: var(--green-bright); margin-top: 4px; }
.benefits__h { font-size: var(--fs-md); margin: 0 0 0.2em; }
.benefits__list p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.benefits__note { margin: 0.75rem 0 0; font-size: 0.8125rem; color: var(--ink-2); }

/* Featured switcher: AI product label and its two links. */
.showcase__tag--ai { color: var(--white); }
.showcase__tag--ai::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green-bright); vertical-align: 1px; }
.showcase__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }

/* Second, quieter action on dark bands. */
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); text-decoration: none; }

/* Homepage: link to the AI page under the three benefits. */
.benefits__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 0.75rem; }
.benefits__foot .benefits__note { margin: 0; }

/* ---------- AI automaty page ---------- */
.ai-scope-note { margin: 1rem 0 0; font-size: var(--fs-sm); color: var(--ink-2); max-width: 52em; }

/* ---------- AI automaty page: visual sections ----------
   Light sections, illustrations on white tiles, short HTML text beside
   them. Details sit in disclosures; functions and restocking methods in
   accessible tabs. */
.ai-sec .eyebrow { margin-bottom: 0.5rem; }
.ai-lead { font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); }
.ai-sub { font-size: var(--fs-lg); margin: 0 0 1rem; }
.ai-label { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.ai-qual { margin: 1.25rem 0 0; color: var(--ink-2); max-width: 46em; }
.ai-block { margin-top: clamp(3rem, 6vw, 4.5rem); }
.ai-figure { margin: 0; }
.ai-figure img { display: block; width: 100%; height: auto; border-radius: 22px; background: var(--white); }
.ai-figure--white img { background: var(--white); }
.section--alt .ai-figure img { box-shadow: 0 0 0 1px var(--line); }

/* Two columns: visual + text. */
.ai-split { display: grid; gap: 28px 56px; align-items: center; }
@media (min-width: 900px) {
  .ai-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .ai-split--rev > :first-child { order: 2; }
}
.ai-split--recog { margin-top: clamp(3rem, 6vw, 4.5rem); }
.ai-split h2 { margin-bottom: 0.5rem; }

/* Customer journey: three illustrations with one-line captions. */
.journey { list-style: none; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.journey__img { border-radius: 22px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.journey__img img { width: 88%; height: 88%; object-fit: contain; }
.journey__step h3 { font-size: var(--fs-md); margin: 1rem 0 0.3rem; }
.journey__step p { margin: 0; color: var(--ink-2); }
.journey__n { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--green); font-weight: 600; margin-right: 0.35rem; }

/* Benefit strip below the journey. */
.perks { list-style: none; display: grid; gap: 12px 32px; margin-top: 2rem; padding: 18px 0; border-block: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks .icon { flex: none; color: var(--green-bright); margin-top: 2px; }
.perks div { display: grid; }
.perks span { color: var(--ink-2); font-size: var(--fs-sm); }

/* Inline disclosures (details). */
.disclosure--inline { border-top: 1px solid var(--line); margin-top: 1.25rem; }
.disclosure--inline .disclosure__body p { margin: 0 0 0.6rem; color: var(--ink-2); }

/* Assortment: three main actions. */
.ai-actions { list-style: none; display: grid; gap: 16px; margin: 1.5rem 0 0.5rem; }
.ai-actions li { display: flex; gap: 14px; align-items: flex-start; }
.ai-actions .icon { flex: none; color: var(--green-bright); margin-top: 2px; }
.ai-actions div { display: grid; }
.ai-actions span { color: var(--ink-2); }

/* New product: four illustrated steps. */
.flow { list-style: none; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.flow__ill { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.flow__ill .ai-ill { width: 82%; height: auto; }
.flow__step h4 { font-size: var(--fs-md); margin: 1rem 0 0.3rem; }
.flow__step p { margin: 0; color: var(--ink-2); }
.ai-label--in { position: absolute; left: 10px; bottom: 8px; margin: 0; font-size: 0.75rem; }
.flow + .disclosure--inline { margin-top: 1.75rem; }

/* Tabs. Without JS: all panels visible. */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs__tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0.55rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink);
  font: inherit; font-size: var(--fs-sm); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.tabs__tab .icon { color: var(--green); }
.tabs__tab:hover { border-color: var(--ink); }
.tabs__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tabs__tab[aria-selected="true"] .icon { color: #9fd3a7; }
.tabs__tab:focus-visible, .tabs__panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:not(.is-tabs) > * > .tabs__panel + .tabs__panel { margin-top: 1rem; }

/* Recording a restock: three comparison cards (stacked on mobile). */
.ai-block.restock { display: grid; gap: 14px; }
.restock__intro { max-width: 46em; font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); margin: 0 0 1.5rem; }
.restock__cards { list-style: none; display: grid; gap: 20px; }
@media (min-width: 900px) { .restock__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.restock__card { display: flex; flex-direction: column; padding: 20px 22px 22px; border-radius: 22px; background: var(--surface); }
/* Illustration area: same height in every card; the SVG fills it and is
   centred by its own (tight) viewBox. Labels sit in their own row below. */
.restock__art { display: flex; align-items: center; justify-content: center; height: 150px; padding: 18px 16px 10px; border-radius: 16px 16px 0 0; background: var(--white); }
.restock__art .ai-ill { display: block; width: 100%; height: 100%; }
.restock__tags { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 6px; margin: 0 0 1rem; padding: 4px 12px 16px; border-radius: 0 0 16px 16px; background: var(--white); }
/* Desktop: the cards share rows (subgrid), so artwork, label rows and
   headings line up across all three cards even when labels wrap. */
@media (min-width: 900px) {
  @supports (grid-template-rows: subgrid) {
    .restock__cards { grid-template-rows: auto auto auto auto; }
    .restock__card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  }
}
.restock__tags span { padding: 2px 9px; border-radius: 999px; background: var(--surface); font-size: 0.8125rem; color: var(--ink-2); }
.restock__card h4 { font-size: var(--fs-lg); margin: 0 0 0.75rem; }
.restock__card dl { margin: 0; display: grid; gap: 10px; }
.restock__card dt { font-weight: 600; font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); }
.restock__card dd { margin: 2px 0 0; color: var(--ink); line-height: 1.5; font-size: var(--fs-sm); }
.restock__card div:last-child { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.restock__caption { display: flex; align-items: center; gap: 8px; margin: 1rem 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.restock__caption .icon { color: var(--green); flex: none; }
.ai-qual--strong { color: var(--ink); padding: 14px 18px; border-left: 3px solid var(--green-bright); background: var(--surface); border-radius: 0 12px 12px 0; }

/* Remote management: schematic phone + function tabs. */
.remote-ui { display: grid; gap: 24px 56px; grid-template-areas: "head" "tabs" "phone"; }
@media (min-width: 900px) {
  .remote-ui { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: "phone head" "phone tabs"; align-items: start; }
  .remote-ui__head { align-self: end; }
}
.remote-ui__head { grid-area: head; }
.remote-ui__head h2 { margin-bottom: 0.5rem; }
.remote-ui__tabs { grid-area: tabs; }
.remote-ui__text { margin: 1.25rem 0 0; font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); max-width: 32em; }
.remote-ui__text strong { color: var(--ink); }
.appmock { grid-area: phone; margin: 0; justify-self: center; width: min(100%, 320px); }
.appmock__phone { padding: 14px 12px 22px; border-radius: 40px; background: #16181b; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.appmock__bar { display: flex; justify-content: center; padding: 4px 0 12px; }
.appmock__bar span { width: 84px; height: 20px; border-radius: 999px; background: #000; }
.appmock__grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 12px; border-radius: 26px; background: #f6f6f4; }
.appmock__grid li {
  display: grid; justify-items: center; gap: 8px; padding: 18px 8px; border-radius: 16px; background: var(--white);
  text-align: center; font-size: 0.8125rem; line-height: 1.25; color: var(--ink-2);
  box-shadow: 0 0 0 1px #e6e7e9; transition: box-shadow var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.appmock__grid .icon { color: #9aa0a6; transition: color var(--dur-base) var(--ease-out); }
.appmock__grid li.is-active { box-shadow: 0 0 0 3px var(--green-bright); color: var(--ink); }
.appmock__grid li.is-active .icon { color: var(--green); }
.motion .appmock__grid li.is-active { transform: scale(1.03); }
.appmock .ai-label { text-align: center; }
@media (max-width: 899px) { .appmock { width: min(100%, 300px); } }

/* Machine → cloud → app. */
.ai-diagram { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; gap: 20px 48px; align-items: center; }
@media (min-width: 900px) { .ai-diagram { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.ai-diagram__steps { list-style: none; display: grid; gap: 18px; }
.ai-diagram__steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: start; }
.ai-diagram__steps .icon { grid-row: span 2; color: var(--green); width: 28px; height: 28px; }
.ai-diagram__steps span { color: var(--ink-2); font-size: var(--fs-sm); }
/* Mobile (with JS, one panel at a time): selectors, then the phone, then the
   explanation right below it. Without JS the default stacked order stays. */
@media (max-width: 899px) {
  .remote-ui.is-tabs { grid-template-areas: "head" "tabs" "phone" "text"; }
  .remote-ui.is-tabs .remote-ui__tabs { display: contents; }
  .remote-ui.is-tabs .tabs__list { grid-area: tabs; }
  .remote-ui.is-tabs .tabs__panel { grid-area: text; }
  .remote-ui.is-tabs .remote-ui__text { margin-top: 0; }
}
@media (max-width: 599px) { .journey__img { aspect-ratio: 4 / 3; } .journey__img img { width: 70%; height: 92%; } }

/* ---------- Homepage services: cards, buyback strip, closing callout ---------- */
.svc__head { max-width: 40em; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.svc__head h2 { margin: 0 0 0.35rem; }
.svc__head p { margin: 0; font-size: var(--fs-md); color: var(--ink-2); }
.svc__cards { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .svc__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.svc__cards li { display: flex; }
.svc-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 16px; align-items: start; width: 100%;
  padding: 20px 20px 20px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  color: var(--ink); text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.svc-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--green-50); color: var(--ink); }
.icon .icon-accent { stroke: var(--green-bright); }
.svc-card__body { display: grid; gap: 4px; }
.svc-card__title { font-size: var(--fs-md); line-height: 1.25; margin: 0; }
.svc-card__text { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.svc-card__arrow { display: inline-grid; place-items: center; color: var(--green); transition: transform var(--dur-base) var(--ease-out); }
.svc-card > .svc-card__arrow { align-self: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); }
.svc-card:hover, .svc-card:focus-visible { border-color: var(--green-bright); color: var(--ink); text-decoration: none; }
.svc-card:hover .svc-card__arrow, .svc-card:focus-visible .svc-card__arrow,
.svc-strip:hover .svc-card__arrow, .svc-strip:focus-visible .svc-card__arrow { transform: translateX(3px); }
.motion .svc-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -22px rgba(18, 20, 23, 0.45); }
.svc-card:focus-visible, .svc-strip:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 639px) { .svc-card { padding: 16px; gap: 12px; } .svc-card__icon { width: 42px; height: 42px; } }

.svc-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; padding: 14px 18px;
  border: 1px dashed #c3c7cc; border-radius: var(--radius); color: var(--ink); text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.svc-strip__icon { display: grid; place-items: center; color: var(--ink-2); }
.svc-strip__body { flex: 1 1 12em; min-width: 0; }
.svc-strip__body span { color: var(--ink-2); }
.svc-strip__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.svc-strip:hover, .svc-strip:focus-visible { border-color: var(--green-bright); border-style: solid; background: var(--white); color: var(--ink); text-decoration: none; }

.svc-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(1.5rem, 3vw, 2rem); padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  border-radius: var(--radius); background: var(--green-50);
}
.svc-cta__title { font-size: var(--fs-lg); margin: 0 0 0.25rem; }
.svc-cta p { margin: 0; color: var(--ink-2); max-width: 36em; }

/* Product page (Pro 542): understated pointer to the AI automaty page. */
.ai-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); }
.product-info .ai-more h2 { font-size: var(--fs-md); padding: 0; border: 0; margin: 0 0 0.3rem; }
.ai-more p { margin: 0; color: var(--ink-2); max-width: 44em; }
.ai-more .note { margin-top: 0.4rem; }
.ai-more .link-arrow { white-space: nowrap; }

/* ---------- Recurring background artwork (sage curves and lines) ----------
   One optimised file (WebP 2000/1000 px, JPEG fallback) used as a
   decorative ::before layer: it never takes clicks, is not in the reading
   order, and its opacity is set on the layer only, never on the content.
   Three treatments: hero (AI automaty), edge (remote management),
   cta (homepage "Nevíte, kde začít?"). */
.art-bg { position: relative; isolation: isolate; }
.art-bg::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit; background-repeat: no-repeat;
  background-image: url('../img/bg/ai-pozadi-1600.jpg');
  background-image: image-set(url('../img/bg/ai-pozadi-2000.webp') type('image/webp'), url('../img/bg/ai-pozadi-1600.jpg') type('image/jpeg'));
}
@media (max-width: 899px) {
  .art-bg::before { background-image: image-set(url('../img/bg/ai-pozadi-1000.webp') type('image/webp'), url('../img/bg/ai-pozadi-1600.jpg') type('image/jpeg')); }
}
/* Hero: the most visible use; decoration at the edges, calm centre, soft
   fade at the bottom. */
.page-head.art-bg--hero { background: #f6f7f4; }
.art-bg--hero::before {
  background-size: cover; background-position: center 35%;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
/* Edge: a lighter strip across the top of a long section, fading out. */
.art-bg--edge::before {
  opacity: 0.55; background-size: 100% auto; background-position: center top;
  /* Fades out downwards, and towards the text column on the right. */
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 25%, transparent 60%), linear-gradient(90deg, #000 0, #000 30%, transparent 48%, transparent 88%, rgba(0, 0, 0, 0.6) 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 0, #000 25%, transparent 60%), linear-gradient(90deg, #000 0, #000 30%, transparent 48%, transparent 88%, rgba(0, 0, 0, 0.6) 100%);
  mask-composite: intersect;
}
/* CTA: a quiet wide crop over the pale green panel; the text side (left)
   stays clear, the decoration sits on the button side. */
.art-bg--cta::before {
  opacity: 0.8; background-size: cover; background-position: center 45%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0, transparent 22%, transparent 50%, #000 80%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0, transparent 22%, transparent 50%, #000 80%);
}
@media (max-width: 899px) {
  /* Narrow screens: show one decorated edge only and keep the text area clear. */
  .art-bg--hero::before { background-size: 260% auto; background-position: 0 0; opacity: 0.85; }
  .art-bg--edge::before { background-size: 220% auto; background-position: 0 0; opacity: 0.45; }
  .art-bg--cta::before {
    background-size: 300% auto; background-position: 100% 30%; opacity: 0.6;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 45%, #000 85%), linear-gradient(90deg, transparent 0, transparent 40%, #000 90%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent 0, transparent 45%, #000 85%), linear-gradient(90deg, transparent 0, transparent 40%, #000 90%);
    mask-composite: intersect;
  }
}
@media (forced-colors: active) { .art-bg::before { display: none; } }

/* ---------- Product overview (all product pages) ----------
   Intro, key facts with icons, two short columns (benefits, where it
   suits), optional equipment and the inquiry. Few rules, no stacked cards. */
.pov__head { max-width: 46em; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.pov__head h2 { margin: 0 0 0.4rem; }
.pov__head p { margin: 0; font-size: var(--fs-md); line-height: 1.55; color: var(--ink-2); }
.pov__facts { display: grid; gap: 12px; margin: 0 0 clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.pov__facts > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; align-content: start; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); }
.pov__facts .icon { grid-row: span 2; color: var(--green); margin-top: 2px; }
.pov__facts dt { font-size: var(--fs-sm); color: var(--ink-2); }
.pov__facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.pov__cols { display: grid; gap: 32px 56px; }
@media (min-width: 900px) { .pov__cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.pov__cols h3, .pov__options h3 { font-size: var(--fs-lg); margin: 0 0 1rem; }
.pov__benefits { list-style: none; display: grid; gap: 16px; }
.pov__benefits li { display: flex; gap: 14px; align-items: flex-start; }
.pov__ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--green-50); color: var(--green); }
.pov__benefits div { display: grid; gap: 2px; }
.pov__benefits span:not(.pov__ic) { color: var(--ink-2); }
.pov__uses { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.pov__uses li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); line-height: 1.35; }
.pov__uses .icon { flex: none; color: var(--green); }
.pov__note { margin: 1rem 0 0; color: var(--ink-2); }
.pov__options { margin-top: clamp(2rem, 4vw, 2.75rem); }
.pov__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(2rem, 4vw, 2.75rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- Model identifiers ("Pro 542") ----------
   Georgia's default old-style figures make "542" look uneven in headings.
   Lining figures are requested; Georgia itself has no lining set, so the
   digits of model names only fall back to a lining serif (Times New Roman
   / Liberation Serif / Tinos), via unicode-range. Nothing else changes. */
@font-face {
  font-family: 'Model Digits';
  src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('Tinos'), local('Times');
  unicode-range: U+0030-0039;
}
@font-face {
  font-family: 'Model Digits';
  src: local('Times New Roman Bold'), local('TimesNewRomanPS-BoldMT'), local('Liberation Serif Bold'), local('Tinos Bold'), local('Times Bold');
  font-weight: 700;
  unicode-range: U+0030-0039;
}
.model { font-family: 'Model Digits', var(--font-sans); font-variant-numeric: lining-nums; white-space: nowrap; }

/* Hero with the Pro 542 clip: caption on its own line under the video,
   control centred below it, both in the video's column. */
.stage__visual { display: grid; justify-items: center; gap: 14px; }
.hero--once .stage__meta { position: static; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: min(100%, 440px); margin: 0; }
.hero--once .stage__note { text-align: center; max-width: none; font-size: 0.8125rem; color: rgba(244, 245, 246, 0.74); text-wrap: balance; }

/* Compact page headers (shared): less padding and tighter gaps between
   breadcrumbs, label, title and subtitle. */
.page-head { padding-block: calc(var(--header-space) + clamp(0.25rem, 1.2vw, 1.25rem)) clamp(1.75rem, 1.25rem + 2vw, 3rem); }
.page-head .crumbs ol { margin-bottom: 0.75rem; }
.page-head .eyebrow { margin-bottom: 0.5rem; }
.page-head h1 { margin-bottom: 0.25em; }
.crumbs ol { row-gap: 2px; }
.crumbs li { overflow-wrap: anywhere; }
/* Narrower desktops: slightly tighter navigation so all six items fit
   beside the centred logo (from 1241 px). */
@media (min-width: 1241px) and (max-width: 1439px) {
  .site-nav__list { gap: 16px; }
  .site-nav__end { gap: 16px; }
  .site-nav__list a { letter-spacing: 0.05em; }
  .site-header .brand { padding-inline: 60px; }
}
/* Inside flex/grid controls (buttons, links with icons) the model name is
   part of the label text, not a separate item with its own gap. */
.btn .model, .link-arrow .model, .mobile-bar .model, .teaser__cta .model, .showcase__more .model { display: contents; }

/* ---------- Legal pages ---------- */
.legal { max-width: 46em; }
.legal h2 { font-size: var(--fs-lg); margin: 2.25rem 0 0.6rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: var(--fs-md); margin: 1.5rem 0 0.4rem; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal ul { padding-left: 1.25rem; display: grid; gap: 0.4rem; margin: 0.5rem 0 1rem; }
.legal__card { display: grid; gap: 8px; margin: 0.75rem 0 1rem; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); }
.legal__card div { display: grid; grid-template-columns: minmax(7em, auto) 1fr; gap: 12px; }
.legal__card dt { font-weight: 700; }
.legal__card dd { margin: 0; overflow-wrap: anywhere; }
.legal__table th, .legal__table td { vertical-align: top; text-align: left; }
.legal__updated { margin-top: 2.5rem; font-size: var(--fs-sm); }
@media (max-width: 520px) { .legal__card div { grid-template-columns: 1fr; gap: 0; } }

/* Footer: legal links. */
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.site-footer__legal a { color: var(--ink-2); }

/* Form: acknowledgement checkbox. */
.field--check { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.field--check label { font-weight: 400; }
.field--check .field__hint, .field--check .field__error { grid-column: 2; }
.field--check input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.legal__table { table-layout: fixed; width: 100%; min-width: 560px; }
.legal__table th:nth-child(1) { width: 20%; } .legal__table th:nth-child(2) { width: 22%; }
.legal__table th:nth-child(3) { width: 36%; } .legal__table th:nth-child(4) { width: 22%; }
.legal__table th, .legal__table td { width: auto; font-size: var(--fs-sm); line-height: 1.5; overflow-wrap: anywhere; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Product selection: readable table, keyboard-scrollable on narrow screens. */
.comparison { width: 100%; min-width: 680px; border-collapse: collapse; }
.comparison th, .comparison td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison thead { background: var(--surface); }
.comparison tbody th { width: 22%; }
.comparison td { font-size: var(--fs-sm); line-height: 1.6; }
