/* ------------------------------------------------------------------
   Tokens. Light is brushed aluminium, dark is the machine's graphite
   casing. The logo yellow is the only accent; green and red appear
   only on the job planner's controls, as on the machine itself.
   ------------------------------------------------------------------ */
:root {
  color-scheme: light;
  --bg: #eceef0;
  --bg-alt: #e2e5e8;
  --surface: #f7f8f9;
  --raised: #ffffff;
  --line: #c4c9cf;
  --line-soft: #d7dbdf;
  --text: #17191c;
  --muted: #535a62;
  --subtle: #5a6169;
  --accent: #ffc603;
  --accent-hover: #ffd43d;
  --accent-ink: #7a5900;
  --on-accent: #131416;
  --tile: #ffffff;
  --shadow: 0 18px 40px -28px rgba(23, 25, 28, 0.45);

  /* Device surfaces (planner, product stage) stay dark in both themes. */
  --device: #1f2226;
  --device-2: #272b30;
  --device-line: #3b4047;
  --device-text: #e9ecef;
  --device-muted: #a3aab2;
  --screen: #10151b;
  --screen-text: #dce5ee;
  --go: #33b866;
  --stop: #e2453a;

  --font-display: 'Saira', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #1b1d20;
  --bg-alt: #212428;
  --surface: #262a2e;
  --raised: #2e3237;
  --line: #3b4047;
  --line-soft: #2f3338;
  --text: #eceef0;
  --muted: #a6acb4;
  --subtle: #8a9199;
  --accent-ink: #ffc603;
  --tile: #e8eaed;
  --shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #1b1d20;
    --bg-alt: #212428;
    --surface: #262a2e;
    --raised: #2e3237;
    --line: #3b4047;
    --line-soft: #2f3338;
    --text: #eceef0;
    --muted: #a6acb4;
    --subtle: #8a9199;
    --accent-ink: #ffc603;
    --tile: #e8eaed;
    --shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.7);
  }
}

@view-transition {
  navigation: auto;
}

/* ------------------------------------------------------------------
   Base
   ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  /* Mobile Chrome flashes its own blue on every tapped link, button and FAQ question;
     the property is inherited, so this tints them all with the accent yellow (#ffc603). */
  -webkit-tap-highlight-color: rgba(255, 198, 3, 0.2);
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  transition:
    background-color 0.25s,
    color 0.25s;
}
img,
svg {
  max-width: 100%;
  display: block;
}
/* <picture> only picks the file; the <img> inside lays out as if it were the
   direct child, so selectors below match the <img>, never the <picture>. */
picture {
  display: contents;
}
/* In a grid or flex parent the <source> would otherwise become a cell of its own. */
picture > source {
  display: none;
}
a {
  color: inherit;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
h1,
h2 {
  font-stretch: 78%;
  font-weight: 760;
}
h3 {
  font-stretch: 92%;
  font-weight: 650;
  font-size: 1.45rem;
  line-height: 1.1;
}
:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------
   Type helpers
   ------------------------------------------------------------------ */
.display {
  font-size: clamp(3.1rem, 7.2vw, 6.9rem);
  line-height: 0.88;
  letter-spacing: -0.012em;
}
.h2 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}
.muted {
  color: var(--muted);
}

/* Sticker: the yellow safety label from the machine's control panel. */
.sticker {
  display: inline-block;
  justify-self: start;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1;
  padding: 6px 8px 5px;
  border-radius: 3px;
  white-space: nowrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--text);
  background: var(--surface);
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1.5px solid var(--text);
  background: transparent;
  color: var(--text);
  font: 600 0.975rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.18s,
    color 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.btn:hover {
  background: var(--text);
  color: var(--bg);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}
.btn-quiet {
  border-color: var(--line);
}
.btn-quiet:hover {
  border-color: var(--text);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.text-link {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.text-link:hover {
  text-decoration-thickness: 3px;
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  flex: none;
}
.brand img {
  height: 34px;
  width: auto;
}
/* The horizontal logo has white outlines drawn for dark backgrounds. */
.brand .logo-light {
  display: none;
}
:root:not([data-theme='dark']) .site-header .logo-dark {
  display: none;
}
:root:not([data-theme='dark']) .site-header .logo-light {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .site-header .logo-dark {
    display: block;
  }
  :root:not([data-theme='light']) .site-header .logo-light {
    display: none;
  }
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.primary-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}
.primary-nav a[aria-current='page'] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.lang-switch {
  display: inline-flex;
  align-items: stretch;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border-left: 1px solid var(--line-soft);
  transition:
    background-color 0.16s,
    color 0.16s;
}
.lang-switch a:first-child {
  border-left: 0;
}
.lang-switch a:hover {
  color: var(--text);
  background: var(--bg-alt);
}
.lang-switch a[aria-current='true'] {
  background: var(--accent);
  color: var(--on-accent);
}
.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover {
  border-color: var(--text);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}
.theme-toggle .icon-moon {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .icon-moon {
  display: block;
}
.menu-toggle {
  display: none;
}
/* Scroll progress: a beam that grows along the bottom of the header. */
.beam-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--accent);
  box-shadow: 0 0 10px 0 var(--accent);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .beam-progress {
    animation: beam-grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes beam-grow {
  to {
    transform: scaleX(1);
  }
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.band {
  padding-block: clamp(72px, 10vw, 128px);
}
.band.alt {
  background: var(--bg-alt);
}
.band.tight-top {
  padding-top: clamp(28px, 4vw, 44px);
}
.band-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px 64px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.band-head p {
  margin: 0;
  color: var(--muted);
  max-width: 32em;
}

/* ------------------------------------------------------------------
   Home hero with the laser sweep
   ------------------------------------------------------------------ */

/* Before/after comparison. The range input drives --pos. */
.compare {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  background: #2a2d31;
  isolation: isolate;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.compare .is-before {
  clip-path: inset(0 0 0 var(--pos));
}
.compare-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow:
    0 0 6px 1px var(--accent),
    0 0 30px 7px rgba(255, 198, 3, 0.5);
  pointer-events: none;
  z-index: 2;
}
.compare-grip {
  position: absolute;
  left: var(--pos);
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 6px rgba(255, 198, 3, 0.25),
    0 6px 18px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  color: var(--on-accent);
  pointer-events: none;
}
.compare-grip svg {
  width: 24px;
  height: 24px;
}
.compare input[type='range'] {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare input[type='range']:focus-visible ~ .compare-grip {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.compare-label {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  pointer-events: none;
}
.compare-label.after {
  left: 18px;
}
.compare-label.before {
  right: 18px;
}

/* Partners line under the hero */
.partners {
  border-bottom: 1px solid var(--line-soft);
}
.partners-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 40px;
  padding-block: 26px;
}
.partners-inner p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.95rem;
}
.partners-inner strong {
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 650;
  font-size: 1.45rem;
  color: var(--text);
}

/* ------------------------------------------------------------------
   Service index with sticky preview
   ------------------------------------------------------------------ */
.service-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: start;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.service-item {
  border-bottom: 1px solid var(--line);
}
.service-item button {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  width: 100%;
  padding: 22px 4px 22px 0;
  cursor: pointer;
}
.service-item h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-stretch: 82%;
  transition: color 0.18s;
}
.service-sub {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.95rem;
}
.service-mark {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  transition:
    background-color 0.18s,
    border-color 0.18s,
    transform 0.25s;
}
.service-mark svg {
  width: 14px;
  height: 14px;
}
.service-item button:hover h3,
.service-item.is-active h3 {
  color: var(--accent-ink);
}
.service-item.is-active .service-mark {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: rotate(90deg);
}
.service-detail {
  display: none;
  padding: 0 0 26px;
}
.service-item.is-active .service-detail {
  display: block;
}
.service-detail ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-preview {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--device);
  box-shadow: var(--shadow);
}
.service-preview [data-key] {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
}
.service-preview [data-key].is-active {
  opacity: 1;
}
.service-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-text {
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 32px;
  color: var(--device-text);
  background: radial-gradient(120% 70% at 70% 15%, rgba(255, 198, 3, 0.18), transparent 60%),
    var(--device);
}
.preview-text strong {
  font-family: var(--font-display);
  font-stretch: 78%;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 0.9;
}
.preview-text p {
  color: var(--device-muted);
  margin: 0;
  max-width: 26em;
}

/* ------------------------------------------------------------------
   Device shell: dark panel styled after the machine's control panel
   ------------------------------------------------------------------ */
.device {
  background: var(--device);
  color: var(--device-text);
  border-radius: 14px;
  border: 1px solid var(--device-line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.device .h2,
.device h3 {
  color: #fff;
}

/* Job planner */
.planner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
}
.planner-controls {
  padding: clamp(22px, 3vw, 36px);
  display: grid;
  align-content: start;
  gap: 24px;
}
.planner-controls fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.planner-controls legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.segmented label {
  position: relative;
  cursor: pointer;
}
.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.segmented span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--device-line);
  background: var(--device-2);
  color: var(--device-text);
  font-size: 0.92rem;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.segmented label:hover span {
  border-color: #5f666f;
}
.segmented input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.segmented input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.planner-screen-wrap {
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--device-2);
  border-left: 1px solid var(--device-line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.screen {
  flex: 1;
  background: var(--screen);
  color: var(--screen-text);
  border-radius: 8px;
  border: 6px solid #0a0d10;
  box-shadow: 0 0 0 1px #4a5058;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 20px;
  font-variant-numeric: tabular-nums;
}
.screen-label {
  display: block;
  color: #8d99a6;
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.screen-title {
  font-family: var(--font-display);
  font-stretch: 82%;
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1;
  color: #fff;
}
.fit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}
.fit i {
  height: 8px;
  border-radius: 2px;
  background: #2a333d;
  transition: background-color 0.3s;
}
.fit[data-level='3'] i,
.fit[data-level='2'] i:nth-child(-n + 2),
.fit[data-level='1'] i:first-child {
  background: var(--accent);
}
.fit-text {
  margin: 10px 0 0;
  font-size: 0.92rem;
}
.screen dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 0.92rem;
}
.screen dt {
  color: #8d99a6;
}
.screen dd {
  margin: 0;
  color: #fff;
}
.screen ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 0.92rem;
}
.screen li {
  margin-bottom: 4px;
}
.screen li::marker {
  color: var(--accent);
}
.screen.is-updated {
  animation: screen-flash 0.45s ease-out;
}
@keyframes screen-flash {
  from {
    background: #1b2733;
  }
}
.panel-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-panel {
  border-color: var(--device-line);
  color: var(--device-text);
}
.device .btn.btn-panel {
  border-color: var(--device-line);
}
.device .btn.btn-panel:hover {
  border-color: var(--device-text);
  background: transparent;
  color: #fff;
}
.planner-foot {
  margin: 0;
  color: var(--device-muted);
  font-size: 0.82rem;
}

/* ------------------------------------------------------------------
   How it works (diagram + steps)
   ------------------------------------------------------------------ */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.diagram {
  margin: 0;
  padding: 22px;
}
.diagram svg {
  width: 100%;
  height: auto;
}
.diagram figcaption {
  margin-top: 10px;
  color: var(--device-muted);
  font-size: 0.82rem;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
}
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.steps > li:last-child {
  border-bottom: 1px solid var(--line);
}
.steps > li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-stretch: 78%;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--accent-ink);
}
.steps h3 {
  font-size: 1.3rem;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}
.steps.row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
}
.steps.row > li {
  grid-template-columns: 1fr;
  align-content: start;
  border-bottom: 0;
  border-top: 2px solid var(--text);
  padding-top: 18px;
}
.steps.row > li::before {
  grid-row: auto;
  margin-bottom: 14px;
}

/* ------------------------------------------------------------------
   Machine stage
   ------------------------------------------------------------------ */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}
.stage-media {
  position: relative;
  min-height: 560px;
  background: #0c0d0f;
}
.stage-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage-copy {
  padding: clamp(28px, 4.5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
}
.stage-copy p {
  color: var(--device-muted);
  margin: 0;
}
.device .btn {
  border-color: var(--device-text);
  color: var(--device-text);
}
.device .btn:hover {
  background: var(--device-text);
  color: var(--device);
}
.device .btn-primary {
  border-color: var(--accent);
  color: var(--on-accent);
}
.device .btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}
/* Warranty label: a yellow tag in the same language as the stickers. */
.warranty {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.warranty strong {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 0.8;
}
.warranty span {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.15;
}
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--device-line);
  border: 1px solid var(--device-line);
  border-radius: 8px;
  overflow: hidden;
}
.spec-list li {
  background: var(--device);
  padding: 14px 16px;
}
.spec-list strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-stretch: 85%;
  font-size: 1.2rem;
  font-weight: 700;
}
.spec-list span {
  color: var(--device-muted);
  font-size: 0.88rem;
}

/* ------------------------------------------------------------------
   Work grid (gallery) with filters
   ------------------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filters button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text);
  font: 500 0.92rem/1 var(--font-body);
  cursor: pointer;
}
.filters button:hover {
  border-color: var(--text);
}
.filters button[aria-pressed='true'] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 28px 16px;
}
.work {
  grid-column: span 4;
  margin: 0;
}
.work.wide {
  grid-column: span 8;
}
.work[hidden] {
  display: none;
}
.work-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 0;
  padding: 0;
  cursor: zoom-in;
}
.work.wide .work-media {
  aspect-ratio: 16 / 9;
}
.work.tall .work-media {
  aspect-ratio: 3 / 4;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.work-media:hover img {
  transform: scale(1.03);
}
.work figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 2px 0;
  font-size: 0.97rem;
}
.work figcaption span {
  color: var(--subtle);
  font-size: 0.875rem;
  text-align: right;
}
.work .compare {
  aspect-ratio: 938 / 746;
  border-radius: 10px;
}
.work.pair .compare {
  aspect-ratio: 1;
}

/* Lightbox (native dialog) */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 1400px);
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(10, 11, 13, 0.92);
}
.lightbox img {
  /* The tag carries width/height attributes (1600x1200) for layout stability.
     Without auto sizes here, a narrow screen clamps only the width and the
     photo is stretched; auto + the two caps keeps each photo's own ratio. */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  margin-inline: auto;
}
.lightbox p {
  color: #e9ecef;
  text-align: center;
  margin: 12px 0 0;
}
.lightbox .icon-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  color: #fff;
  border-color: #666;
  background: rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------------
   Choice comparison, sectors, products, promises
   ------------------------------------------------------------------ */
.split-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.split-choice > div {
  padding: clamp(24px, 3.4vw, 44px);
  display: grid;
  align-content: start;
}
.split-choice > div + div {
  border-left: 1px solid var(--line);
  background: var(--raised);
}
.split-choice h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-stretch: 80%;
  margin: 14px 0 12px;
}
.split-choice p {
  color: var(--muted);
  margin: 0;
}
.tick-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.tick-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line-soft);
}
.tick-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 18px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent-ink);
  border-bottom: 2px solid var(--accent-ink);
  transform: rotate(-45deg);
}
.device .tick-list li {
  border-color: var(--device-line);
}
.device .tick-list li::before {
  border-color: var(--accent);
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.sector {
  padding: 28px 28px 32px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  display: grid;
  align-content: start;
}
.sector:nth-child(3n + 1) {
  padding-left: 0;
  border-left: 0;
}
.sector h3 {
  margin-bottom: 10px;
}
.sector p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}
.sector .sticker {
  margin-bottom: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}
.product-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.product {
  margin: 0;
}
.product-media {
  aspect-ratio: 1;
  background: var(--tile);
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line-soft);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product figcaption {
  padding-top: 14px;
}
.product h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}
.product p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Product slideshow (Strojevi hero): a crossfading stage, a caption that links
   to the device catalogue and one scrollable row of thumbnails. */
.gallery {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(580px, 66vh);
  border-radius: 12px;
  overflow: hidden;
  background: #0c0d0f;
  isolation: isolate;
}
.gallery-stage {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
}
.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition:
    opacity 0.7s ease,
    transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery-slide.is-active {
  opacity: 1;
  transform: none;
}
/* Studio renders on white keep the whole machine in frame, clear of the badge
   and the caption. */
.gallery-slide[data-fit='contain'],
.gallery-thumbs img[data-fit='contain'] {
  object-fit: contain;
  background: #fff;
}
.gallery-slide[data-fit='contain'] {
  padding: 15% 7% 17%;
}
.gallery-caption {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 16px;
  max-width: calc(100% - 90px);
  display: grid;
  gap: 1px;
  padding: 8px 14px 9px;
  border-radius: 8px;
  background: rgba(12, 13, 15, 0.82);
  color: #f2f2f0;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: background-color 0.15s;
}
.gallery-caption strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.15;
}
.gallery-caption span {
  font-size: 0.82rem;
  color: #c9c9c4;
}
.gallery-caption[data-device] strong::after {
  content: ' \2192';
  color: var(--accent);
}
.gallery-caption:hover {
  background: rgba(12, 13, 15, 0.95);
}
.gallery-toggle {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 13, 15, 0.82);
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.gallery-toggle:hover {
  background: rgba(12, 13, 15, 0.95);
}
.gallery-toggle svg {
  width: 20px;
  height: 20px;
}
.gallery-toggle .icon-play,
.gallery-toggle.is-paused .icon-pause {
  display: none;
}
.gallery-toggle.is-paused .icon-play {
  display: contents;
}
/* Time left on the current slide. JS sets the duration and play state. */
.gallery-progress {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.gallery-progress.is-running {
  animation: gallery-progress var(--slide-time, 5s) linear forwards;
}
.gallery-progress.is-held {
  animation-play-state: paused;
}
@keyframes gallery-progress {
  to {
    transform: scaleX(1);
  }
}
.gallery-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.gallery-rail .icon-btn {
  width: 36px;
  height: 72px;
  border-radius: 8px;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.gallery-thumbs::-webkit-scrollbar {
  display: none;
}
.gallery-thumbs button {
  flex: 0 0 72px;
  height: 72px;
  padding: 0;
  scroll-snap-align: start;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #0c0d0f;
  cursor: pointer;
  opacity: 0.6;
  transition:
    opacity 0.15s,
    border-color 0.15s;
}
.gallery-thumbs button:hover,
.gallery-thumbs button[aria-current='true'] {
  opacity: 1;
}
.gallery-thumbs button[aria-current='true'] {
  border-color: var(--accent);
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  /* Stacked under the text: a shorter stage so the hero stays about one screen. */
  .gallery-main {
    aspect-ratio: 1;
    max-height: 62vh;
  }
}
@media (max-width: 600px) {
  .gallery-thumbs button {
    flex-basis: 60px;
    height: 60px;
  }
  .gallery-rail .icon-btn {
    width: 32px;
    height: 60px;
  }
  .gallery-caption {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px 8px;
  }
  .gallery-toggle {
    right: 12px;
    bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-slide {
    transition: none;
    transform: none;
  }
  .gallery-thumbs {
    scroll-behavior: auto;
  }
  .gallery-progress {
    display: none;
  }
}
.product-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.product-feature .h2 {
  margin-bottom: 20px;
}
.product-feature .lead {
  margin-bottom: 8px;
}

.promise {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--text);
}
.promise > div {
  padding: 22px 22px 6px;
  border-left: 1px solid var(--line);
}
.promise > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.promise strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 78%;
  font-weight: 760;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.9;
  margin-bottom: 10px;
}
.promise > div:first-child strong {
  color: var(--accent-ink);
}
.promise p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------
   Inner page hero
   ------------------------------------------------------------------ */
.page-hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.page-hero .display {
  font-size: clamp(2.9rem, 6.2vw, 5.8rem);
  margin-bottom: 24px;
}
.page-hero .lead {
  margin-bottom: 32px;
}
.page-hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0c0d0f;
  box-shadow: var(--shadow);
}
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero.simple .page-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

/* ------------------------------------------------------------------
   Technology page: pulsed vs continuous switch
   ------------------------------------------------------------------ */
.mode-switch {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
}
.mode-switch-copy {
  padding: clamp(24px, 3.4vw, 44px);
  display: grid;
  align-content: start;
  gap: 20px;
}
.mode-tabs {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--device-2);
  border: 1px solid var(--device-line);
  border-radius: 8px;
  justify-self: start;
}
.mode-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--device-text);
  font: 600 0.92rem/1 var(--font-body);
  cursor: pointer;
}
.mode-tabs button[aria-selected='true'] {
  background: var(--accent);
  color: var(--on-accent);
}
.mode-panel[hidden] {
  display: none;
}
.mode-panel h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-stretch: 80%;
  margin-bottom: 12px;
}
.mode-panel > p {
  color: var(--device-muted);
}
.mode-visual {
  background: var(--screen);
  border-left: 1px solid var(--device-line);
  display: grid;
  place-items: center;
  padding: 24px;
  min-height: 380px;
}
.mode-visual svg {
  width: 100%;
  max-width: 560px;
}
.mode-visual [data-anim] {
  transition: all 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.method-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.method-table th,
.method-table td {
  text-align: left;
  vertical-align: top;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.method-table thead th {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--bg-alt);
}
.method-table thead th.is-laser {
  background: var(--accent);
  color: var(--on-accent);
}
.method-table tbody th {
  font-weight: 600;
  width: 20%;
}
.method-table td {
  color: var(--muted);
}
.method-table td.is-laser {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.method-table tr:last-child > * {
  border-bottom: 0;
}
/* The method comparison scrolls sideways on phones; its first column (the criteria)
   stays in place so every row keeps its label. Opaque backgrounds hide the cells that
   slide under it. The machines table is narrow enough not to scroll, so it is left out.
   Above 900 px the table fits and looks as before. */
@media (max-width: 900px) {
  .method-table:not(.device-table) tbody th,
  .method-table:not(.device-table) thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: inset -1px 0 var(--line);
  }
  .method-table:not(.device-table) tbody th {
    background: var(--surface);
  }
}
@media (max-width: 600px) {
  .method-table:not(.device-table) {
    min-width: 640px;
  }
  .method-table:not(.device-table) tbody th,
  .method-table:not(.device-table) thead th:first-child {
    width: 112px;
    padding: 14px 12px;
    hyphens: auto;
  }
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.two-col .media {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  background: #0c0d0f;
}
.two-col .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.two-col h3 {
  font-size: 1.15rem;
  margin: 30px 0 12px;
}

/* ------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
}
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-stretch: 92%;
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.2;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-ink);
}
.faq-list details p {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 40em;
}

/* ------------------------------------------------------------------
   Contact band and contact page
   ------------------------------------------------------------------ */
.contact-band {
  background: var(--accent);
  color: var(--on-accent);
}
.contact-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px 64px;
  align-items: end;
  padding-block: clamp(56px, 8vw, 96px);
}
.contact-band .h2 {
  margin-bottom: 18px;
}
.contact-band p {
  max-width: 30em;
  margin: 0 0 28px;
}
.contact-band :focus-visible {
  outline-color: var(--on-accent);
}
.person {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 16px;
  padding: 16px 0;
  border-top: 1.5px solid rgba(19, 20, 22, 0.85);
}
.person strong {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-size: 1.35rem;
  line-height: 1.1;
}
.person a {
  font-weight: 600;
  text-decoration: none;
}
.person a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.person .person-mail {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  font-weight: 500;
}
.contact-band .btn {
  border-color: var(--on-accent);
  color: var(--on-accent);
}
.contact-band .btn:hover {
  background: var(--on-accent);
  color: var(--accent);
}
.contact-band .btn-dark {
  background: var(--on-accent);
  color: #fff;
}
.contact-band .btn-dark:hover {
  background: #000;
  color: var(--accent);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-cards {
  border-top: 2px solid var(--text);
}
.contact-cards > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-cards h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.contact-cards p {
  margin: 0;
  color: var(--muted);
}
.contact-cards a {
  color: var(--text);
  font-weight: 600;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.form {
  padding: clamp(22px, 3vw, 36px);
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.92rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field textarea {
  min-height: 160px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.form-note {
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: 0.875rem;
}
.prefill-note {
  display: none;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 6px 6px 0;
  font-size: 0.93rem;
}
.prefill-note.is-visible {
  display: block;
}
/* Enquiry form states: result message, field errors, the field people never see. */
.form-status {
  --status: var(--accent-ink);
  margin: 0 0 4px;
  padding: 12px 14px;
  border-left: 3px solid var(--status);
  border-radius: 0 6px 6px 0;
  background: var(--bg-alt);
  font-size: 0.95rem;
  font-weight: 500;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.form-status:empty {
  display: none;
}
.form-status.is-success {
  --status: var(--go);
}
.form-status.is-error {
  --status: var(--stop);
}
/* Thank-you note for the redirect from send.php (kontakt.html#poslano), no script needed. */
.form-sent {
  display: none;
  margin-bottom: 18px;
}
.form-sent:target:not(.is-dismissed) {
  display: block;
}
/* A field with an error is taller than its neighbour; keep the neighbour's input in place. */
.form-grid > .field {
  align-content: start;
}
.field-error {
  margin: 0;
  color: color-mix(in srgb, var(--stop) 70%, var(--text));
  font-size: 0.9rem;
  font-weight: 500;
}
.field [aria-invalid='true'] {
  border-color: var(--stop);
}
.form .btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* The page send.php shows when the form is sent without JavaScript. */
.form-standalone {
  max-width: 760px;
}
.form-standalone .form-status {
  margin-bottom: 18px;
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: #141618;
  color: #c3c9cf;
  padding-block: 64px 28px;
}
.site-footer a {
  color: #e9ecef;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h2 {
  font-family: var(--font-body);
  font-stretch: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}
.footer-grid p {
  font-size: 0.95rem;
  max-width: 24em;
  margin: 18px 0 0;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #2c3035;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #929aa2;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-legal a {
  color: inherit;
}

/* Imprint and privacy policy: plain reading text. */
.legal {
  max-width: 46em;
}
.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
}
.legal h2:first-child {
  margin-top: 0;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal dl {
  display: grid;
  grid-template-columns: minmax(10em, max-content) 1fr;
  gap: 10px 24px;
  margin: 0;
}
.legal dt {
  font-weight: 600;
}
.legal dd {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 600px) {
  .legal dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .legal dd {
    margin-bottom: 12px;
  }
}
/* A fact the owner still has to supply; the build warns while one is left. */
.legal .gap {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text);
  padding: 0 4px;
  border-radius: 3px;
}

/* Mobile action bar */
.action-bar {
  display: none;
}

/* ------------------------------------------------------------------
   Load sequence: only the hero copy animates in, once.
   ------------------------------------------------------------------ */
@keyframes rise {
  from {
    transform: translateY(10px);
  }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1320px) {
  .primary-nav a {
    padding: 8px;
    font-size: 0.9rem;
  }
  .header-actions .btn-primary {
    display: none;
  }
}
/* Seven menu items need about 1060px in German, so the menu folds below 1080px. */
@media (max-width: 1080px) {
  :root {
    --header-h: 64px;
  }
  .menu-toggle {
    display: grid;
  }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.4);
    display: none;
  }
  .primary-nav.is-open {
    display: flex;
  }
  .primary-nav a {
    padding: 14px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .primary-nav a[aria-current='page'] {
    box-shadow: inset 3px 0 0 var(--accent);
    padding-left: 14px;
  }
  .header-actions {
    margin-left: auto;
  }
}
@media (max-width: 900px) {
  .band-head,
  .service-index,
  .planner,
  .how,
  .stage,
  .faq,
  .contact-band-inner,
  .contact-layout,
  .page-hero-grid,
  .mode-switch,
  .split-choice,
  .product-feature,
  .two-col {
    grid-template-columns: 1fr;
  }
  .service-preview {
    display: none;
  }
  .planner-screen-wrap {
    border-left: 0;
    border-top: 1px solid var(--device-line);
  }
  .mode-visual {
    border-left: 0;
    border-top: 1px solid var(--device-line);
    min-height: 260px;
  }
  .split-choice > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .stage-media {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .steps.row,
  .promise {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }
  .promise > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .sector-grid,
  .product-grid,
  .product-grid.four {
    grid-template-columns: 1fr 1fr;
  }
  .sector,
  .sector:nth-child(3n + 1) {
    padding: 24px 20px 26px;
    border-left: 1px solid var(--line);
  }
  .sector:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .work,
  .work.wide {
    grid-column: span 6;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-hero-media,
  .two-col .media {
    aspect-ratio: 4 / 3;
  }
  .action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    z-index: 55;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .action-bar .btn {
    min-height: 46px;
  }
  body {
    padding-bottom: 72px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }
  .brand img {
    height: 28px;
  }
  .steps.row,
  .promise,
  .sector-grid,
  .product-grid,
  .product-grid.four,
  .form-grid,
  .footer-grid,
  .spec-list {
    grid-template-columns: 1fr;
  }
  .promise > div,
  .promise > div:nth-child(3) {
    padding: 18px 0 4px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .promise > div:first-child {
    border-top: 0;
  }
  .sector,
  .sector:nth-child(odd),
  .sector:nth-child(3n + 1) {
    padding: 22px 0 24px;
    border-left: 0;
  }
  .work,
  .work.wide {
    grid-column: 1 / -1;
  }
  .work.tall .work-media {
    aspect-ratio: 4 / 5;
  }
  /* A wide tile that is tall only to match its desktop row stays wide on phones. */
  .work.wide.tall .work-media,
  .work.wide.tall > .media-video {
    aspect-ratio: 16 / 9;
  }
  .warranty {
    top: 12px;
    left: 12px;
    padding: 7px 12px 7px 10px;
  }
  .warranty strong {
    font-size: 2.2rem;
  }
  .compare-label {
    bottom: 12px;
  }
  .compare-label.after {
    left: 12px;
  }
  .compare-label.before {
    right: 12px;
  }
  .person {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  @view-transition {
    navigation: none;
  }
}

/* Tall work items fill the row height set by their neighbours. When no
   neighbour sets the row (a lone tall tile, or a filtered row of only tall
   tiles) they keep a 4:3 floor instead of collapsing to zero height. */
@media (min-width: 601px) {
  .work.tall {
    display: flex;
    flex-direction: column;
  }
  .work.tall .work-media {
    aspect-ratio: 4 / 3;
    flex: 1 0 auto;
  }
}

/* Pair of before/after comparisons on the gallery page */
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.compare-row figure {
  margin: 0;
}
.compare-row .compare {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}
.compare-row figcaption {
  padding: 12px 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.compare-row figcaption span {
  color: var(--subtle);
  font-size: 0.875rem;
}

/* Portrait before/after (3:4), wherever the slider sits. */
.compare.is-portrait,
.work .compare.is-portrait,
.work.pair .compare.is-portrait,
.compare-row .compare.is-portrait {
  aspect-ratio: 3 / 4;
}

/* ------------------------------------------------------------------
   Video: the same dark frame as the photos, in both themes. build.py
   emits div.media-video > video (+ button.video-toggle for loops).
   ------------------------------------------------------------------ */
.media-video {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  /* Same corners as the photo tiles, also when a clip shows at its own ratio. */
  border-radius: 10px;
  background: #0c0d0f;
  isolation: isolate;
}
.media-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* As a gallery or "Radovi" tile: the same box as .work-media. */
.work > .media-video {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
}
.work.wide > .media-video {
  aspect-ratio: 16 / 9;
}
/* A clip that keeps its own shape (e.g. 9:16) and sets its row's height. */
.work > .media-video.is-native {
  aspect-ratio: auto;
}
.work.tall > .media-video {
  aspect-ratio: 3 / 4;
}
/* B2B "Iz prakse": a wide photo across the grid, two portrait clips below,
   side by side also on phones. */
.work.full {
  grid-column: 1 / -1;
}
.work.full .work-media {
  aspect-ratio: 16 / 9;
}
.work > .media-video.is-portrait {
  aspect-ratio: 3 / 4;
}
@media (max-width: 600px) {
  .work.half.pair {
    grid-column: span 6;
  }
  .work.pair figcaption {
    flex-direction: column;
    gap: 2px;
  }
}
@media (min-width: 601px) {
  .work.tall > .media-video {
    aspect-ratio: 4 / 3;
    flex: 1 0 auto;
  }
}

/* Inside a box that already sets the size, frame and radius: fill it. */
.work-media > .media-video,
.page-hero-media > .media-video,
.two-col .media > .media-video,
.gallery-main > .media-video {
  height: 100%;
}
.stage-media > .media-video {
  position: absolute;
  inset: 0;
  height: 100%;
}

/* Play/pause for loops: the same round yellow 48 px button as the slider
   grip. aria-pressed="true" means paused, so the play icon shows. */
.video-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow:
    0 0 0 6px rgba(255, 198, 3, 0.25),
    0 6px 18px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.15s;
}
.video-toggle:hover {
  background: var(--accent-hover);
}
/* White ring with a dark band inside it, so it shows on light and dark frames. */
.video-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px #131416,
    0 6px 18px rgba(0, 0, 0, 0.4);
}
.video-toggle > span {
  display: grid;
  place-items: center;
}
.video-toggle svg {
  width: 24px;
  height: 24px;
}
.video-toggle .icon-play,
.video-toggle[aria-pressed='true'] .icon-pause {
  display: none;
}
.video-toggle[aria-pressed='true'] .icon-play {
  display: grid;
}

/* Sticker variant: "Video" marks a clip tile. */
.sticker.is-video {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sticker.is-video::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4.5px 0 4.5px 7px;
  border-color: transparent transparent transparent currentColor;
}

/* A sticker placed over a tile or video frame sits in its top-left corner. */
.work,
.work-media {
  position: relative;
}
.work > .sticker,
.work-media > .sticker,
.media-video > .sticker,
.page-hero-media > .sticker,
.product-media > .sticker {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  pointer-events: none;
}

/* Pulsed vs continuous visual */
.mode-visual .g-cw,
.mode-visual[data-mode='cw'] .g-pulsed {
  opacity: 0;
}
.mode-visual[data-mode='cw'] .g-cw {
  opacity: 1;
}
.mode-visual .g-pulsed,
.mode-visual .g-cw {
  transition: opacity 0.45s;
}
.mode-visual .heat {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mode-visual[data-mode='cw'] .heat {
  transform: scale(2.8, 3.2);
}

@media (max-width: 900px) {
  .compare-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
}

/* Media boxes: fixed height on wide screens so they fill their column. */
.two-col .media,
.page-hero-media {
  aspect-ratio: auto;
  max-height: none;
  height: clamp(420px, 46vw, 620px);
}
.product-media {
  position: relative;
}
.product-media img {
  position: absolute;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
}
.band.tight {
  padding-block: clamp(28px, 4vw, 48px);
}
.work.half {
  grid-column: span 6;
}
@media (max-width: 900px) {
  .two-col .media,
  .page-hero-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 600px) {
  .work.half {
    grid-column: 1 / -1;
  }
}
.work[hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .product-grid,
  .product-grid.four {
    grid-template-columns: 1fr 1fr;
    gap: 22px 12px;
  }
  .product-media {
    padding: 12px;
  }
  .product-media img {
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
  }
  .product h3 {
    font-size: 1.05rem;
  }
  .product p {
    font-size: 0.85rem;
  }
}

.device :focus-visible,
.site-footer :focus-visible,
.compare :focus-visible,
.gallery :focus-visible {
  outline-color: var(--accent);
}

/* ------------------------------------------------------------------
   Home hero with two equal doors: cleaning service and machines
   ------------------------------------------------------------------ */
.hero-dual {
  padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line-soft);
}
.hero-dual-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px 56px;
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.hero-dual-head .display {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}
.hero-dual-head .lead {
  margin: 0;
}
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.door {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}
.door-media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 40vh;
  min-height: 220px;
  width: 100%;
  overflow: hidden;
  background: #0c0d0f;
}
/* All before/after pairs in one frame (built by <!--COMPARE_SET -->): one
   shows at a time, picked with the pill buttons in the top-left corner. In
   the 16:9 hero door each pair fills the door; on the gallery page the frame
   takes the shape of the pair on show. */
.compare-set {
  position: relative;
}
.compare-set > .compare[hidden],
[data-compare-set] [data-pair][hidden] {
  display: none;
}
.door-media.compare-set > .compare {
  position: absolute;
  inset: 0;
}
.compare-set.is-gallery > .compare {
  aspect-ratio: var(--ratio, 4 / 3);
  max-height: 78vh;
  border-radius: 10px;
}
.compare-tabs {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.compare-tabs button {
  min-height: 32px;
  margin: 0;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 13, 15, 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.15s;
}
.compare-tabs button:hover {
  background: rgba(12, 13, 15, 0.9);
}
.compare-tabs button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
}
.compare-tabs button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .compare-tabs {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 4px;
  }
  .compare-tabs button {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* A door with a single photo (any door except the before/after slider), or an
   unclassed photo in any door. */
.door-media:not(.compare):not(.compare-set) img,
.door-media img:not([class]) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
.door-body {
  padding: clamp(20px, 2.4vw, 30px);
  display: grid;
  align-content: start;
  gap: 12px;
}
.door-body h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 0.95;
}
.door-body p {
  margin: 0 0 6px;
  color: var(--muted);
  max-width: 34em;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-dual-head > *,
  .door {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-dual-head > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .door:nth-child(1) {
    animation-delay: 0.14s;
  }
  .door:nth-child(2) {
    animation-delay: 0.2s;
  }
}
@media (max-width: 900px) {
  .hero-dual-head,
  .doors {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   Intro: a laser pass cleans the logo into view. Shown once per
   session, never with reduced motion. Always dark, like the machine.
   ------------------------------------------------------------------ */
.intro {
  display: none;
}
.show-intro body {
  overflow: hidden;
}
.show-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  padding: 24px;
  background: radial-gradient(60% 50% at 50% 50%, rgba(255, 198, 3, 0.07), transparent 70%), #121417;
  cursor: pointer;
  transition:
    opacity 0.28s ease,
    visibility 0.28s;
}
.intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-stage {
  --x: 0%;
  position: relative;
  width: min(620px, 82vw);
  aspect-ratio: 1203 / 309;
}
.intro-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Before the pass: dull, rusty, grimy. */
.intro-logo.is-dull {
  filter: grayscale(1) sepia(0.85) saturate(1.6) hue-rotate(-18deg) brightness(0.42) contrast(1.1);
  opacity: 0.85;
}
.intro-logo.is-clean {
  clip-path: inset(0 calc(100% - var(--x)) 0 0);
}
.intro-beam {
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: var(--x);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow:
    0 0 8px 2px var(--accent),
    0 0 36px 10px rgba(255, 198, 3, 0.45);
  opacity: 0;
}
.intro.is-running .intro-beam {
  opacity: 1;
}
.intro.is-done .intro-beam {
  opacity: 0;
  transition: opacity 0.3s;
}
.intro-sparks {
  position: absolute;
  left: -20%;
  top: -60%;
  width: 140%;
  height: 220%;
  pointer-events: none;
}
.intro-tagline {
  margin: 0;
  color: #c9ced4;
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 600;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.intro.is-done .intro-tagline {
  opacity: 1;
  transform: none;
}
.intro-skip {
  position: absolute;
  right: 20px;
  bottom: 20px;
  border: 1px solid #3b4047;
  border-radius: 6px;
  background: transparent;
  color: #a3aab2;
  font: 500 0.9rem/1 var(--font-body);
  padding: 10px 14px;
  cursor: pointer;
}
.intro-skip:hover {
  color: #fff;
  border-color: #6b727c;
}

/* Machine door: show the whole machine instead of a crop. The image box is
   sized to the photo itself so its edges can be faded into a matching stage. */
.door-media.is-product {
  background: radial-gradient(60% 80% at 50% 60%, #191a15, #0d0e0b 75%);
}
.door-media.is-product img:not([class]) {
  left: 50%;
  right: auto;
  width: auto;
  height: 100%;
  transform: translateX(-50%);
  object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent),
    linear-gradient(180deg, transparent, #000 8%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent),
    linear-gradient(180deg, transparent, #000 8%, #000 86%, transparent);
  mask-composite: intersect;
}
@media (max-width: 900px) {
  .door-media.is-product {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
}

/* ------------------------------------------------------------------
   Device catalogue (strojevi.html): cards by laser type,
   power table and a detail dialog. Rendered by <!--DEVICE_CATALOG -->.
   ------------------------------------------------------------------ */
.device-catalog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 52px;
}
.device-group {
  display: grid;
  gap: 22px;
}
.device-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  align-items: baseline;
  gap: 8px 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.device-group-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 85%;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
}
.device-group-head p {
  margin: 0;
  color: var(--muted);
}
.device-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px 18px;
}
.device-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.device-card:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.device-card-media {
  --pad: 18px;
  position: relative;
  aspect-ratio: 1;
  background: var(--tile);
}
.device-card-media {
  overflow: hidden;
}
/* <picture> is display: contents, so the <img> itself is pinned inside the frame. */
.device-card-media img,
.device-dialog-media img {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  width: calc(100% - 2 * var(--pad));
  height: calc(100% - 2 * var(--pad));
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.device-card:hover .device-card-media img {
  transform: scale(1.04);
}
.device-note {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(23, 25, 28, 0.08);
  color: #535a62;
  font-size: 0.78rem;
  white-space: nowrap;
}
.device-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}
.device-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.sticker.is-new {
  background: var(--text);
  color: var(--bg);
}
/* A non-device offer (renting) in the catalogue: same frame as a device card. */
.offer-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.offer-card .device-card-media img {
  object-fit: cover;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: normal;
}
.offer-card .device-cta {
  margin-top: auto;
}
/* The renting card has no dialog, so its whole text shows. */
.offer-card .device-desc {
  display: block;
  -webkit-line-clamp: none;
  line-clamp: none;
}
.sticker.is-offer {
  background: var(--accent);
  color: var(--on-accent);
}
.device-name {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-stretch: 85%;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}
.device-open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.device-open::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 12px;
}
.device-open:focus-visible {
  outline: none;
}
.device-open:focus-visible::after {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.device-power {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.device-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.device-cta {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.92rem;
}
/* A group with a single card (the new model) shows it as a wide row. */
@media (min-width: 601px) {
  .device-grid:has(> .device-card:only-child) {
    grid-template-columns: minmax(0, 640px);
  }
  .device-grid > .device-card:only-child {
    flex-direction: row;
  }
  .device-grid > .device-card:only-child .device-card-media {
    flex: 0 0 42%;
  }
  .device-grid > .device-card:only-child .device-card-body {
    justify-content: center;
    padding: 20px 22px;
  }
  .device-grid > .device-card:only-child .device-cta {
    margin-top: 6px;
  }
}

/* The model table is a reference: closed by default, a bar that opens it. */
.device-table-wrap > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.15s;
}
.device-table-wrap > summary::-webkit-details-marker {
  display: none;
}
.device-table-wrap > summary:hover {
  border-color: var(--muted);
}
.device-table-wrap > summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.device-table-summary {
  display: grid;
  gap: 2px;
}
.device-table-summary strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}
.device-table-summary span {
  color: var(--muted);
  font-size: 0.9rem;
}
.device-table-chevron {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  transition: transform 0.2s;
}
.device-table-chevron svg {
  width: 18px;
  height: 18px;
  transform: rotate(90deg);
}
.device-table-wrap[open] .device-table-chevron {
  transform: rotate(180deg);
}
.device-table-wrap[open] > summary {
  margin-bottom: 12px;
}
.device-table {
  min-width: 540px;
}
.device-table tbody th {
  white-space: nowrap;
}
.device-table tbody th a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.device-table td.is-power {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.device-table-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.device-dialog {
  width: min(980px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
  overflow: auto;
  overscroll-behavior: contain;
}
.device-dialog::backdrop {
  background: rgba(10, 11, 13, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
html:has(.device-dialog[open]) {
  overflow: hidden;
}
.device-dialog-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.device-dialog-media {
  --pad: 36px;
  position: relative;
  overflow: hidden;
  min-height: 460px;
  background: var(--tile);
}
.device-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 32px 28px;
}
.device-dialog-body .h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
}
.device-dialog-body p {
  margin: 0;
}
.device-specs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content;
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}
.device-specs div {
  padding: 10px 12px;
  background: var(--raised);
}
.device-specs dt {
  color: var(--subtle);
  font-size: 0.78rem;
}
.device-specs dd {
  margin: 2px 0 0;
  font-weight: 600;
}
.device-dialog-note {
  font-size: 0.9rem;
}
.device-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--raised);
}
.device-dialog-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.device-dialog-nav[hidden] {
  display: none;
}
.device-dialog-nav .icon-btn {
  width: 38px;
  height: 38px;
}

/* Line-up links in the dark machine stage (home, B2B). */
.lineup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.lineup-link {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--device-line);
  border-radius: 8px;
  color: var(--device-text);
  text-decoration: none;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}
.lineup-link:hover,
.lineup-link:focus-visible {
  border-color: var(--accent);
  background: var(--device-2);
}
.lineup-link strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-stretch: 85%;
  font-size: 1.15rem;
  font-weight: 700;
}
.lineup-link strong::after {
  content: ' →';
}
.lineup-link span {
  color: var(--device-muted);
  font-size: 0.86rem;
}
.field-hint {
  font-weight: 400;
  color: var(--subtle);
}
.field[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .device-group-head {
    grid-template-columns: 1fr;
  }
  .device-dialog-inner {
    grid-template-columns: 1fr;
  }
  .device-dialog-media {
    --pad: 20px;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .device-dialog-body {
    padding: 22px 20px 20px;
  }
}
@media (max-width: 600px) {
  .device-catalog {
    gap: 40px;
  }
  .device-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
  .device-card-media {
    --pad: 12px;
  }
  .device-table {
    min-width: 0;
    font-size: 0.875rem;
  }
  .device-table th,
  .device-table td {
    padding: 12px 10px;
  }
  /* The form is on every card; the phone table keeps model, type and power. */
  .device-table tr > :nth-child(3) {
    display: none;
  }
  .device-card-body {
    padding: 12px 12px 14px;
  }
  .device-name {
    font-size: 1.2rem;
  }
  .device-desc {
    font-size: 0.84rem;
  }
  .device-specs {
    grid-template-columns: 1fr 1fr;
  }
  .device-specs div:last-child {
    grid-column: 1 / -1;
  }
  .device-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  .lineup {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .device-card,
  .device-card-media img {
    transition: none;
  }
  .device-card:hover {
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Housing forms ("Izvedbe uređaja", strojevi.html): one card per form
   with its models, rendered by <!--DEVICE_FORMS -->. Five across on wide
   screens, three on tablets, and an image-left list on phones.
   ------------------------------------------------------------------ */
.device-form-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.form-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-card:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.form-card-media {
  --pad: 16px;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--tile);
}
.form-card-media img {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  width: calc(100% - 2 * var(--pad));
  height: calc(100% - 2 * var(--pad));
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.form-card:hover .form-card-media img {
  transform: scale(1.04);
}
.form-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
}
.form-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.15;
}
.form-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.form-card-models {
  display: grid;
  gap: 2px;
  margin: auto 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  font-size: 0.84rem;
}
.form-card-models li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 8px;
  padding: 3px 0;
}
.form-card-models a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.form-card-models a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.form-card-models span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.form-card-cta {
  padding-top: 4px;
  font-size: 0.9rem;
}
@media (max-width: 1100px) {
  /* Three per row; a last row of two shares the full width (wider, shorter images). */
  .device-form-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .form-card {
    grid-column: span 2;
  }
  .form-card-media {
    aspect-ratio: 4 / 3;
  }
  .form-card:nth-child(3n + 1):nth-last-child(2),
  .form-card:nth-child(3n + 2):last-child {
    grid-column: span 3;
  }
  .form-card:nth-child(3n + 1):nth-last-child(2) .form-card-media,
  .form-card:nth-child(3n + 2):last-child .form-card-media {
    aspect-ratio: 2 / 1;
  }
}
@media (max-width: 600px) {
  /* One row to swipe; the next card peeks in. */
  .device-form-grid {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    /* Without this Chrome counts the off-screen cards in the page width. */
    contain: paint;
  }
  .device-form-grid::-webkit-scrollbar {
    display: none;
  }
  .form-card,
  .form-card:nth-child(3n + 1):nth-last-child(2),
  .form-card:nth-child(3n + 2):last-child {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
  .form-card .form-card-media,
  .form-card:nth-child(3n + 1):nth-last-child(2) .form-card-media,
  .form-card:nth-child(3n + 2):last-child .form-card-media {
    --pad: 12px;
    aspect-ratio: 4 / 3;
  }
  .form-card-body {
    padding: 12px 14px 14px;
    gap: 6px;
  }
  .form-card h3 {
    font-size: 1.1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .form-card-media img {
    transition: none;
  }
  .form-card:hover .form-card-media img {
    transform: none;
  }
}

/* Servis on strojevi.html: text, a photo of an opened unit, then the steps. */
.how.has-photo {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 40px;
}
.how-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tile);
}
.how-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.how-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(12, 13, 15, 0.82);
  color: #f2f2f0;
  font-size: 0.8rem;
}
@media (max-width: 1100px) {
  .how.has-photo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .how.has-photo .how-photo {
    aspect-ratio: 4 / 3;
  }
  .how.has-photo .how-photo img {
    object-position: 50% 35%;
  }
  .how.has-photo .steps {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }
  .how.has-photo .steps > li:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 900px) {
  .how.has-photo {
    grid-template-columns: minmax(0, 1fr);
  }
  .how.has-photo .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .how.has-photo .steps > li:nth-last-child(2) {
    border-bottom: 0;
  }
}

/* 404 page: the English and German versions under the Croatian one */
.not-found-langs {
  display: grid;
  gap: 28px;
}
.not-found-langs > * {
  max-width: 62ch;
}
.not-found-langs h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

/* About page: intro text, hero collage, stats, reasons, reviews and clients */
.two-col.top {
  align-items: start;
}
.about-title {
  margin-bottom: clamp(24px, 3vw, 36px);
}
.about-text p {
  margin: 0;
  max-width: 34em;
}
.about-more > p:first-child {
  margin-top: 0;
}
.why-list {
  margin-top: 0;
}
.why-list li {
  padding-block: 16px;
  color: var(--muted);
}
.why-list li::before {
  top: 24px;
}
.why-list strong {
  color: var(--text);
}

/* Small yellow label above a heading */
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font: 600 0.78rem/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* Five rating stars, drawn as a mask so they take the accent colour */
.stars {
  display: inline-block;
  flex: none;
  width: 85px;
  height: 15px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E")
    0 0 / 17px 15px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E")
    0 0 / 17px 15px repeat-x;
}

/* About hero: text next to a three-photo collage */
.about-hero {
  padding-block: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line-soft);
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-hero .display {
  margin: 0 0 20px;
}
.about-hero .lead {
  margin: 0 0 28px;
  max-width: 46ch;
}
.about-collage {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(2, clamp(150px, 16vw, 220px));
  gap: 12px;
}
.about-collage picture {
  display: contents;
}
/* Grid turns the <source> inside <picture> into a cell of its own, so hide it. */
.about-collage source {
  display: none;
}
.about-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.about-collage > picture:first-child > img {
  grid-row: span 2;
}

/* About stats as cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
}
.stat-card,
.review {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.stat-card::before,
.review::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stat-card:hover,
.review:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.stat-card:hover::before,
.review:hover::before {
  transform: scaleX(1);
}
.stat-card {
  padding: 24px 24px 22px;
}
.stat-icon,
.review-quote {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-ink);
}
.stat-icon {
  margin-bottom: 28px;
}
.stat-icon svg,
.review-quote svg {
  width: 22px;
  height: 22px;
}
.stat-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-stretch: 78%;
  font-weight: 760;
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat-num small {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--subtle);
}
.stat-num em {
  margin-left: -4px;
  font-style: normal;
  color: var(--accent-ink);
}
.stat-num .stars {
  margin-left: auto;
  align-self: center;
}
.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.stat-card a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.stat-card a:hover {
  color: var(--accent-ink);
}

/* Reviews, in the same card language as the stats */
.review-head {
  margin-bottom: 32px;
}
.review-head h2 {
  margin: 0;
}
.review-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}
.review {
  gap: 18px;
  margin: 0;
  padding: 26px 26px 22px;
}
.review.big {
  grid-row: span 2;
}
.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.review blockquote {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.6;
}
.review.big blockquote {
  font-size: 1.15rem;
}
.review blockquote p {
  margin: 0 0 0.7em;
}
.review blockquote p:last-child {
  margin-bottom: 0;
}
.review .review-lead {
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 650;
  font-size: 1.45rem;
  line-height: 1.2;
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.review-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--device);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}
.review figcaption strong {
  display: block;
  line-height: 1.2;
}
.review figcaption span:not(.review-avatar) {
  color: var(--muted);
  font-size: 0.85rem;
}
.review-cta {
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  background: var(--device);
  border-color: var(--device-line);
  color: var(--device-text);
}
.review-cta::before {
  transform: scaleX(1);
}
.review-score {
  display: flex;
  align-items: center;
  gap: 16px;
}
.review-score b {
  font-family: var(--font-display);
  font-stretch: 78%;
  font-weight: 760;
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  line-height: 0.9;
  color: var(--accent);
}
.review-score small {
  display: block;
  margin-top: 6px;
  color: var(--device-muted);
  font-size: 0.9rem;
}
.review-cta p {
  flex: 1 1 240px;
  margin: 0;
  color: var(--device-muted);
}

/* Clients: two rows of names. Plain wrapped lists by default; script.js turns
   them into a sliding strip (.is-running) when motion is allowed. */
.client-strip {
  overflow: hidden;
}
.client-strip .band-head {
  margin-bottom: 36px;
}
.marquee {
  padding: 18px var(--gutter);
  border-top: 1px solid var(--line);
}
.marquee + .marquee {
  border-bottom: 1px solid var(--line);
}
.marquee-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.marquee-track li {
  display: grid;
  gap: 4px;
  align-content: start;
}
.marquee-track strong {
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 650;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--text);
}
.marquee-track span {
  color: var(--muted);
  font-size: 0.92rem;
}
.marquee.is-running {
  display: flex;
  overflow: hidden;
  padding-inline: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee.is-running .marquee-track {
  display: flex;
  flex: none;
  gap: 0;
  max-width: none;
  margin: 0;
  animation: marquee var(--marquee-time, 40s) linear infinite;
}
.marquee.is-running.reverse .marquee-track {
  animation-direction: reverse;
}
.marquee.is-running:hover .marquee-track {
  animation-play-state: paused;
}
.marquee.is-running li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-inline: 28px;
  white-space: nowrap;
}
.marquee.is-running li::after {
  content: '';
  align-self: center;
  width: 10px;
  height: 10px;
  margin-left: 42px;
  background: var(--accent);
  transform: rotate(45deg);
}
.marquee.is-running strong {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.15;
}
.marquee.is-running span {
  font-size: 0.95rem;
}
.marquee.is-running.reverse strong {
  font-weight: 500;
  color: var(--muted);
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}
.client-note {
  margin: 28px 0 0;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .stat-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .about-hero-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
  .review.big {
    grid-row: auto;
  }
}
@media (max-width: 600px) {
  .about-collage {
    grid-template-rows: repeat(2, 140px);
  }
  .marquee.is-running li {
    padding-inline: 18px;
    gap: 10px;
  }
  .marquee.is-running li::after {
    margin-left: 26px;
  }
  .marquee.is-running span {
    font-size: 0.85rem;
  }
}
@media (max-width: 520px) {
  .stat-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stat-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    align-items: center;
    padding: 18px;
  }
  .stat-icon {
    grid-row: span 2;
    margin: 0;
  }
  .stat-num {
    margin-bottom: 6px;
    font-size: 2.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stat-card,
  .stat-card::before,
  .review,
  .review::before {
    transition: none;
  }
}
