/* BOBICO – redesign. Tokens first, then layout, then sections. */

:root {
  --ink-950: #071733;
  --ink-900: #0B2147;
  --ink-850: #10295A;
  --ink-800: #16336E;
  --ink-700: #214287;
  --ink-600: #2F55A3;
  --ink-400: #9AAED4;
  --ink-300: #C3D0E8;
  --paper: #F1F3F6;
  --paper-2: #E3E8EF;
  --white: #FBFCFD;
  --accent: #D9302A;
  --accent-text: #FF6A5C;
  --brand-blue: #2F7FCC;
  --accent-hover: #BF2621;
  --accent-ink: #FFFFFF;
  --danger: #F59A8C;

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --radius: 14px;
  --radius-lg: 26px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 88px;
}

/* Section themes: every section declares its own surface tokens */
.s-dark {
  --bg: var(--ink-900);
  --fg: #EEF2F7;
  --muted: var(--ink-400);
  --line: rgba(195, 208, 232, .14);
  --line-strong: rgba(195, 208, 232, .28);
  --surface: var(--ink-850);
  background: var(--bg);
  color: var(--fg);
}
.s-light {
  --bg: var(--paper);
  --fg: var(--ink-900);
  --muted: #4A5568;
  --line: rgba(11, 33, 71, .12);
  --line-strong: rgba(11, 33, 71, .26);
  --surface: var(--white);
  --accent-text: #C42A24;
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 112.5%; /* every rem-based size on the site scales from here */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  interpolate-size: allow-keywords;
  overflow-x: clip;
}
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Film grain: fixed, non-interactive, never on scrolling layers */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
/* Single-column grids must not grow to a child's min-content (e.g. the fleet tab strip) */
.hero-in, .about, .cycle, .fleet, .refs, .grants, .contact-in, .footer-top, .svc-body, .video-grid, .sec-head--split { grid-template-columns: minmax(0, 1fr); }
.i { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.mono {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  translate: 0 -200%; transition: translate .3s var(--ease-out);
}
.skip:focus { translate: 0 0; }
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; }

/* Scroll progress (scroll-driven where supported, invisible elsewhere) */
.progress {
  position: fixed; inset: 0 0 auto; z-index: 70;
  height: 3px; background: var(--accent);
  transform-origin: 0 50%; scale: 0 1; pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { scale: 1 1; } }

/* ---------- Type ---------- */
.display { margin: 0; font-weight: 800; font-stretch: 112%; letter-spacing: -.035em; line-height: .94; }
.h2 {
  margin: 0;
  font-size: clamp(1.9rem, 1.15rem + 3vw, 3.4rem);
  font-weight: 780;
  font-stretch: 112%;
  letter-spacing: -.03em;
  line-height: 1.04;
  text-wrap: balance;
  max-width: 20ch;
}
.h2--sm { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); max-width: 26ch; }
.h2 em, .display em { font-style: normal; }
.s-dark .h2 em, .s-dark .display em { color: var(--accent-text); }
/* Highlighter swipe on light sections */
.s-light .h2 em {
  background: linear-gradient(transparent 60%, rgba(84, 161, 217, .55) 60% 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .06em;
  transition: background-size 1.2s var(--ease-out) .35s;
}
.js .s-light .h2:not(.is-in) em { background-size: 0% 100%; }
.h3 { margin: 0 0 24px; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); font-weight: 750; font-stretch: 108%; letter-spacing: -.02em; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--fg); max-width: 58ch; margin: 0; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.45rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1; text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, translate .5s var(--ease-out), scale .2s var(--ease-out);
}
.btn:active { scale: .97; }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; min-height: 58px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--fg); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--fg); }
.btn .i-arrow { transition: translate .45s var(--ease-out); }
.btn:hover .i-arrow { translate: 3px -3px; }
.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-strong, rgba(195, 208, 232, .28));
  background: transparent; color: inherit; cursor: pointer;
  transition: background-color .25s, border-color .25s, scale .2s;
}
.icon-btn:hover { border-color: currentColor; }
.icon-btn:active { scale: .94; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 650; text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid var(--accent);
}
.link-arrow .i { transition: translate .4s var(--ease-out); }
.link-arrow:hover .i { translate: 4px 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: #EEF2F7;
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
/* Scrolled header becomes a floating liquid-glass capsule */
.site-header .header-in { border: 1px solid transparent; border-radius: 999px; transition: background-color .45s, border-color .45s, box-shadow .45s, height .45s var(--ease-out), padding .45s var(--ease-out); }
.site-header.is-scrolled .header-in {
  height: 70px; margin-top: 6px; padding-inline: 18px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02)), rgba(11, 33, 71, .8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 18px 40px -18px rgba(3, 12, 30, .65);
}
@media (max-width: 640px) { .site-header.is-scrolled .header-in { width: calc(100% - 16px); padding-inline: 12px 6px; } }


.header-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-full { display: block; width: 218px; height: 67px; }
.footer-brand .logo-full { width: 260px; height: 80px; }
.site-header.is-scrolled .logo-full { width: 186px; height: 57px; }
@media (max-width: 420px) { .site-header .logo-full { width: 176px; height: 54px; } }
.logo-word { font-weight: 850; font-stretch: 125%; font-size: 1.2rem; letter-spacing: .01em; line-height: 1; display: inline-flex; align-items: baseline; gap: 6px; }
.logo-word small { font-family: var(--font-mono); font-size: .62rem; font-weight: 500; letter-spacing: .06em; opacity: .7; }
.nav { display: none; gap: 4px; }
.nav a {
  position: relative; padding: 10px 12px;
  font-size: .95rem; font-weight: 550; text-decoration: none; color: rgba(238, 242, 247, .82);
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
  background: var(--accent); scale: 0 1; transform-origin: left; transition: scale .45s var(--ease-out);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { scale: 1 1; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { scale: 1 1; }
.menu-nav a[aria-current="page"] { color: var(--accent-text); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { display: none; }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.header-phone .i { color: var(--accent-text); }
@media (min-width: 640px) { .header-cta .btn { display: inline-flex; } }
@media (min-width: 1120px) { .nav { display: flex; } .menu-btn { display: none; } }
@media (min-width: 1280px) { .header-phone { display: inline-flex; } }

/* ---------- Mobile menu (native dialog) ---------- */
.menu {
  position: fixed; inset: 0;
  width: 100%; max-width: none; height: 100dvh; max-height: none;
  margin: 0; padding: 0; border: 0;
}
.menu[open] { animation: fade-in .35s var(--ease-out); }
.menu::backdrop { background: transparent; }
.menu-in { display: flex; flex-direction: column; height: 100%; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: 14px calc(24px + env(safe-area-inset-bottom)); }
.menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.menu-nav { display: grid; margin-top: 28px; }
.menu-nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.75rem, 7.5vw, 2.6rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.03em;
  text-decoration: none;
  animation: rise-in .7s var(--ease-out) both;
  animation-delay: calc(var(--i) * 55ms + 80ms);
}
.menu-nav a .mono { color: var(--accent-text); }
.menu-foot { margin-top: auto; display: grid; gap: 14px; padding-top: 24px; }
.menu-foot .mono { color: var(--muted); margin: 0; text-transform: none; letter-spacing: .02em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 64px));
  display: flex; flex-direction: column;
}
@media (min-width: 1024px) { .hero { min-height: 100dvh; } }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(31, 78, 156, .32), transparent 70%),
    linear-gradient(rgba(195, 208, 232, .06) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(195, 208, 232, .06) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 40% 40%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 80% at 40% 40%, #000 35%, transparent 80%);
}
/* Hero background video (generated locally from a photo of the client's own Kobelco); dimmed and faded so the headline stays readable */
.hero-video {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
  filter: brightness(.5) saturate(.85);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .7) 45%, #000 75%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .7) 45%, #000 75%);
}
.hero-in {
  flex: 1;
  display: grid; gap: 56px; align-items: center;
  padding-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 1024px) {
  .hero-in { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); }
}
.hero-h1 { margin: 0; font-size: inherit; font-weight: inherit; }
.hero-kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 26px;
  font-size: clamp(.95rem, .9rem + .25vw, 1.08rem); font-weight: 600; line-height: 1.35; letter-spacing: -.005em;
  color: var(--ink-300);
}
.hero-kicker .pulse { flex: none; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--accent); animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping { from { scale: .4; opacity: 1; } to { scale: 1.6; opacity: 0; } }

.hero-title { display: block; font-size: clamp(2.5rem, 1rem + 5.6vw, 5.4rem); }
@media (min-width: 640px) { .hero-title { font-stretch: 125%; } }
.hero-title .line { display: block; clip-path: inset(-40% -5% 0 -5%); padding-bottom: .02em; }
.hero-title .line > span { display: inline-block; animation: rise 1.1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
@keyframes rise { from { translate: 0 108%; } }
.hero-copy .lead { margin-top: 30px; color: var(--ink-300); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: .9rem; color: var(--ink-300);
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .i { color: var(--accent-text); width: 1.1em; height: 1.1em; }

.hero-media { position: relative; padding-bottom: 6%; }
.hero-photo { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-800); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo--main {
  aspect-ratio: 4 / 3.2;
  animation: unveil 1.4s var(--ease-out) .25s both;
}
.hero-photo--main img { object-position: 35% 50%; animation: settle 2.2s var(--ease-out) .25s both; }
@keyframes unveil { from { clip-path: inset(100% 0 0 0 round var(--radius-lg)); } to { clip-path: inset(0 0 0 0 round var(--radius-lg)); } }
@keyframes settle { from { scale: 1.18; } }
.hero-photo--sub { display: none; }
@media (min-width: 1024px) {
  .hero-media { padding: 0 0 12% 0; }
  .hero-photo--main { aspect-ratio: 4 / 4.1; width: 84%; margin-left: auto; }
  .hero-photo--sub {
    display: block; position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3;
    border: 6px solid var(--ink-900); border-radius: calc(var(--radius-lg) + 6px);
    animation: unveil 1.2s var(--ease-out) .65s both;
  }
}
.badge-spin {
  position: absolute; top: -26px; right: 4%;
  width: 112px; height: 112px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid var(--line-strong);
}
.badge-spin svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge-spin text { font-family: var(--font-mono); font-size: 15px; font-weight: 500; fill: var(--fg); letter-spacing: 2px; }
@keyframes spin { to { rotate: 360deg; } }
@media (min-width: 1024px) {
  .badge-spin { width: 136px; height: 136px; top: 7%; right: auto; left: 16%; translate: -50% 0; }
}
.hero-chip {
  position: absolute; left: 14px; bottom: calc(6% + 14px);
  display: grid; gap: 2px;
  padding: 14px 18px 15px;
  border-radius: 18px;
  background: rgba(11, 33, 71, .58);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 20px 40px -20px rgba(3, 12, 30, .6);
  animation: float 6s ease-in-out infinite;
}
.hero-chip .mono { color: var(--accent-text); font-size: .68rem; }
.hero-chip strong { font-size: 1.6rem; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-chip-sub { font-size: .82rem; color: var(--ink-300); }
@media (min-width: 1024px) { .hero-chip { left: auto; right: 5%; bottom: 17%; } }
@keyframes float { 50% { translate: 0 -8px; } }

/* Homepage = one screen: the hero fills the viewport, nothing scrolls; sizes follow the viewport height too */
html:has(> body.is-home), body.is-home { height: 100%; overflow: hidden; }
.is-home .hero { height: 100dvh; min-height: 0; padding-top: calc(var(--header-h) + clamp(10px, 3.5vh, 56px)); }
.is-home .hero-in { min-height: 0; padding-bottom: clamp(10px, 2.5vh, 40px); }
.is-home .hero-kicker { margin-bottom: clamp(10px, 2.4vh, 26px); }
.is-home .hero-title { font-size: clamp(2rem, min(1rem + 5.6vw, 7.8vh), 5.4rem); }
.is-home .hero-copy .lead { margin-top: clamp(12px, 2.6vh, 30px); }
.is-home .hero-actions { margin-top: clamp(14px, 3vh, 36px); }
.is-home .tape { height: clamp(72px, 12vh, 150px); }
@media (min-width: 1024px) {
  .is-home .hero-media { padding-bottom: 0; }
  .is-home .hero-photo--main { width: auto; height: min(560px, calc(100dvh - var(--header-h) - clamp(72px, 12vh, 150px) - 9vh)); margin-left: auto; }
  .is-home .hero-photo--sub { width: auto; height: 38%; bottom: -4%; }
}
/* Phones, tablets and short screens: headline, short lead and the two buttons; the video poster stays behind */
@media (max-width: 1023px), (max-height: 680px) { .is-home .hero-media { display: none; } }
@media (max-width: 1023px), (max-height: 820px) { .is-home .hero-proof { display: none; } }
@media (max-width: 1023px) {
  .is-home .hero-in { align-content: center; }
  .is-home .hero-copy .lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
}
@media (max-height: 820px) { .is-home .hero-copy .lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; } }
@media (max-height: 560px) { .is-home .hero-copy .lead { display: none; } }

/* Hazard-tape marquee */
.tape { position: relative; height: clamp(118px, 13vw, 160px); margin-top: auto; }
.tape-band {
  position: absolute; left: -6%; right: -6%; top: 50%;
  overflow: hidden;
  padding-block: 14px;
}
.tape-band--a {
  z-index: 2;
  background: var(--accent); color: var(--accent-ink);
  rotate: -2.4deg; translate: 0 -66%;
}
.tape-band--a::before, .tape-band--a::after {
  content: ""; position: absolute; left: 0; right: 0; height: 7px;
  background: repeating-linear-gradient(-45deg, var(--ink-900) 0 10px, transparent 10px 20px);
}
.tape-band--a::before { top: 0; }
.tape-band--a::after { bottom: 0; }
.tape-band--b {
  z-index: 1;
  background: var(--ink-950); color: var(--accent-text);
  border-block: 1px solid rgba(217, 48, 42, .3);
  rotate: 1.8deg; translate: 0 -20%;
}
.tape-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.tape-band--b .tape-track { animation-duration: 60s; animation-direction: reverse; }
.tape-item {
  display: inline-flex; align-items: center; gap: 22px;
  padding-inline: 11px;
  font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.005em;
  font-size: clamp(1rem, .8rem + .9vw, 1.4rem); line-height: 1.2; white-space: nowrap;
}
.tape-item::after { content: ""; width: .5em; height: .5em; background: currentColor; rotate: 45deg; margin-left: 11px; }
.tape-band--b .tape-item { font-family: var(--font-mono); font-weight: 500; font-stretch: 100%; letter-spacing: .08em; font-size: clamp(.8rem, .7rem + .4vw, 1rem); }
.tape-band--b .tape-item::after { width: 5px; height: 5px; border-radius: 50%; rotate: none; }
@keyframes marquee { to { translate: -50% 0; } }

/* ---------- Generic sections ---------- */
.section { position: relative; padding-block: clamp(84px, 10vw, 150px); }
.section--tight { padding-block: clamp(72px, 8vw, 120px); }
.sec-head { display: grid; gap: 0; }
.sec-head--split { gap: 24px; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 48px; } }
.sec-label {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.sec-label span { color: var(--fg); padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 6px; }
.sec-label::after { content: ""; width: 48px; height: 1px; background: var(--line-strong); }
.sec-intro { margin: 0; color: var(--muted); max-width: 44ch; }
.refs-head .sec-intro { margin-top: 22px; }

/* Ticks list */
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 12px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  rotate: -45deg; translate: 0 -60%;
}
.s-light .ticks li::before { border-color: var(--ink-900); }

/* ---------- 01 Rólunk ---------- */
.about { display: grid; gap: 40px; margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 1024px) {
  .about { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
  .about-photo { position: sticky; top: calc(var(--header-h) + 32px); }
}
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% 50%; border-radius: var(--radius-lg); }
@media (min-width: 1024px) { .about-photo img { aspect-ratio: 4 / 4.6; } }
.about-photo figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(241, 243, 246, .86); color: var(--ink-900);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.about-copy > p + p { margin-top: 18px; color: var(--muted); max-width: 60ch; }
.principles { list-style: none; padding: 0; margin: 44px 0 0; border-top: 1px solid var(--line-strong); }
.principles li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.principles .mono { color: var(--muted); padding-top: 4px; }
.principles strong { display: block; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.principles p { margin: 4px 0 0; color: var(--muted); }

.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: clamp(64px, 8vw, 112px) 0 0;
  border-top: 1px solid var(--line-strong);
}
/* Unequal columns: the long figures (90 000 t, 100 000+ m³) get the room */
@media (min-width: 1100px) { .stats { grid-template-columns: minmax(0, .75fr) minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .75fr); } }
.stats > div { min-width: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 12px; padding: 26px 18px 6px 0; border-bottom: 1px solid var(--line); }
.stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
.stats > div:nth-child(even) { padding-left: 18px; }
@media (min-width: 1100px) {
  .stats > div { border-bottom: 0; border-right: 1px solid var(--line); padding: 30px 24px 0; }
  .stats > div:first-child { padding-left: 0; }
  .stats > div:last-child { border-right: 0; }
}
.stats dd {
  margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px;
  font-size: clamp(2rem, 1rem + 3.2vw, 3.6rem); font-weight: 800; font-stretch: 106%;
  letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
}
.stats dd > span { white-space: nowrap; }
.stats dd small { font-size: .42em; font-weight: 650; letter-spacing: -.01em; color: var(--muted); white-space: nowrap; }
.stats dt { color: var(--muted); font-size: .95rem; line-height: 1.45; max-width: 26ch; }

/* ---------- 02 Szolgáltatások ---------- */
.svc-list { margin-top: clamp(44px, 5vw, 72px); border-top: 1px solid var(--line-strong); }
.svc { position: relative; border-bottom: 1px solid var(--line); }
.svc summary {
  position: relative;
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; align-items: center; gap: 4px 14px;
  padding: 22px 0; cursor: pointer; list-style: none;
}
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--accent); scale: 0 1; transform-origin: left; transition: scale .7s var(--ease-out);
}
.svc summary:hover::after, .svc[open] summary::after { scale: 1 1; }
.svc-no { color: var(--muted); align-self: start; padding-top: .5em; }
.svc-name {
  font-size: clamp(1.3rem, .95rem + 1.7vw, 2.3rem); font-weight: 750; font-stretch: 110%;
  letter-spacing: -.025em; line-height: 1.1;
  transition: translate .55s var(--ease-out), color .3s;
}
.svc-short { grid-column: 2; color: var(--muted); font-size: .95rem; }
.svc-toggle {
  grid-column: 3; grid-row: 1 / span 2;
  position: relative; width: 44px; height: 44px; justify-self: end;
  border-radius: 50%; border: 1px solid var(--line-strong);
  transition: background-color .3s, border-color .3s, color .3s, rotate .6s var(--ease-out);
}
.svc-toggle::before, .svc-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px;
  background: currentColor; translate: -50% -50%;
}
.svc-toggle::after { rotate: 90deg; transition: rotate .45s var(--ease-out); }
.svc summary:hover .svc-name { translate: 10px 0; color: var(--accent-text); }
.svc summary:hover .svc-toggle { border-color: var(--accent-text); }
.svc[open] .svc-toggle, .faq-item[open] .svc-toggle { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); rotate: 180deg; }
.svc[open] .svc-toggle::after, .faq-item[open] .svc-toggle::after { rotate: 0deg; }
.svc[open] .svc-name { color: var(--accent-text); }
@media (min-width: 900px) {
  .svc summary { grid-template-columns: 72px minmax(0, 1.15fr) minmax(0, 1fr) 56px; padding: 28px 0; }
  .svc-short { grid-column: 3; }
  .svc-toggle { grid-column: 4; grid-row: 1; }
  .svc-no { align-self: center; padding-top: 0; }
}
.svc-body { display: grid; gap: 28px; padding: 6px 0 40px; }
.svc[open] .svc-body { animation: rise-in .7s var(--ease-out) both; }
.svc-text p { margin: 0; color: var(--ink-300); max-width: 60ch; }
.svc-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.svc-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) {
  .svc-body { grid-template-columns: 72px minmax(0, 1.15fr) minmax(0, 1fr) 56px; gap: 14px; }
  .svc-text { grid-column: 2; padding-right: 32px; }
  .svc-img { grid-column: 3; }
}
/* Animate the details height where ::details-content exists */
.svc::details-content { block-size: 0; overflow: clip; transition: block-size .6s var(--ease-out), content-visibility .6s allow-discrete; }
.svc[open]::details-content { block-size: auto; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: baseline; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: .75rem; color: var(--accent-text); }

/* Cursor-following preview (desktop, fine pointers only) */
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: 320px; aspect-ratio: 4 / 3;
  border-radius: var(--radius); overflow: hidden;
  pointer-events: none;
  opacity: 0; scale: .8;
  transition: opacity .3s, scale .5s var(--ease-out);
  box-shadow: 0 30px 60px -24px rgba(3, 12, 30, .7);
}
.svc-preview.is-on { opacity: 1; scale: 1; }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 1023px) { .svc-preview { display: none; } }

/* ---------- 03 Hulladék / körforgás ---------- */
.cycle { display: grid; gap: 64px; margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 1024px) { .cycle { grid-template-columns: 1.05fr 1fr; gap: clamp(56px, 7vw, 120px); align-items: start; } }
.kpis { display: grid; grid-template-columns: 1fr 1fr; margin-top: 36px; border-top: 1px solid var(--line-strong); }
.kpis > div { display: grid; gap: 6px; padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); }
.kpis > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.kpis strong { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); font-weight: 800; font-stretch: 118%; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpis > div > span { color: var(--muted); font-size: .92rem; }
.cycle-copy .ticks { margin-top: 30px; }
.callout {
  margin-top: 32px; padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--ink-900); color: #EEF2F7;
  position: relative; overflow: hidden;
}
.callout::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 8px, var(--ink-900) 8px 16px);
}
.callout strong { display: block; color: var(--accent-text); margin-left: 8px; }
.callout p { margin: 6px 0 0 8px; color: var(--ink-300); }
.docs { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .docs { grid-template-columns: 1fr 1fr; } }
.doc {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; min-height: 64px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); text-decoration: none;
  transition: border-color .3s, translate .4s var(--ease-out);
}
.doc:hover { border-color: var(--fg); translate: 0 -2px; }
.doc > .i { width: 26px; height: 26px; }
.doc strong { display: block; font-size: .95rem; line-height: 1.3; }
.doc small { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.doc-dl { transition: translate .4s var(--ease-out); }
.doc:hover .doc-dl { translate: 0 3px; }

.cycle-visual { display: grid; gap: 36px; justify-items: center; }
@media (min-width: 1024px) { .cycle-visual { position: sticky; top: calc(var(--header-h) + 40px); } }
.ring { position: relative; width: min(100%, 440px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 2 7; }
.ring-run {
  fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 9 91;
  transform: rotate(-90deg); transform-origin: 200px 200px;
  animation: ring-run 8s linear infinite;
}
@keyframes ring-run { from { stroke-dashoffset: 4.5; } to { stroke-dashoffset: -95.5; } }
.ring-node circle { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; animation: node-on 8s linear infinite; animation-delay: calc(var(--i) * 2s - .3s); }
.ring-node text { font-family: var(--font-mono); font-size: 15px; font-weight: 600; fill: var(--fg); text-anchor: middle; dominant-baseline: central; }
@keyframes node-on { 0%, 24% { fill: var(--accent); stroke: var(--accent); } 30%, 100% { fill: var(--surface); stroke: var(--line-strong); } }
.ring-core {
  position: absolute; inset: 31%;
  display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center;
  border-radius: 50%; background: var(--ink-900); color: #EEF2F7;
  font-weight: 700; font-size: clamp(.85rem, .7rem + .5vw, 1.05rem); line-height: 1.2;
}
.ring-core .i { width: 34px; height: 34px; color: var(--accent-text); animation: spin 16s linear infinite; }
.loop-steps { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: loop; }
.loop-steps li {
  counter-increment: loop;
  display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line);
  animation: step-on 8s linear infinite; animation-delay: calc(var(--i) * 2s - .3s);
}
.loop-steps strong::before { content: counter(loop) " · "; font-family: var(--font-mono); font-size: .8em; color: var(--muted); }
.loop-steps span { font-size: .88rem; color: var(--muted); }
@keyframes step-on { 0%, 24% { border-color: var(--fg); background: var(--surface); } 30%, 100% { border-color: var(--line); background: transparent; } }

.videos { margin-top: clamp(80px, 9vw, 130px); }
.video-grid { display: grid; gap: 28px 24px; }
@media (min-width: 760px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink-900); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-out), filter .5s; filter: saturate(.85); }
.yt:hover img { scale: 1.05; filter: none; }
.yt-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  transition: scale .45s var(--ease-spring);
}
.yt-play .i { width: 28px; height: 28px; translate: 2px 0; }
.yt:hover .yt-play { scale: 1.12; }
.video figcaption { display: grid; gap: 4px; margin-top: 14px; font-weight: 650; }
.video figcaption .mono { color: var(--muted); font-weight: 400; }

/* ---------- 04 Géppark ---------- */
.fleet { display: grid; gap: 48px; margin-top: clamp(56px, 7vw, 96px); }
@media (min-width: 1024px) {
  .fleet { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 100px); align-items: start; }
  .fleet-visual { position: sticky; top: calc(var(--header-h) + 32px); }
}
.fleet-visual {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: radial-gradient(90% 70% at 50% 100%, rgba(217, 48, 42, .08), transparent 70%), var(--surface);
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
}
.fleet-facts { margin: 0; }
.fleet-facts p { margin: 0; color: var(--ink-300); }
.fleet-facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.fleet-facts dl div { display: flex; flex-direction: column-reverse; gap: 2px; }
.fleet-facts dt { font-size: .82rem; color: var(--muted); }
.fleet-facts dd { margin: 0; font-family: var(--font-mono); font-size: 1.15rem; color: var(--accent-text); white-space: nowrap; }

.tabs {
  position: relative; display: flex; gap: 2px; padding: 4px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  position: relative; z-index: 1; flex: none;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: none;
  color: var(--muted); font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: color .3s;
}
.tabs [role="tab"]:hover { color: var(--fg); }
.tabs [role="tab"][aria-selected="true"] { color: var(--accent-ink); }
.tabs-ink {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: var(--accent);
  transition: translate .55s var(--ease-spring), width .55s var(--ease-spring);
}
.tab-panel:focus-visible { outline-offset: 6px; }
/* six tabs do not fit one row in the half-width column: wrap them everywhere, no hidden sideways strip */
.tabs { flex-wrap: wrap; border-radius: 24px; overflow: visible; }
.tabs [role="tab"] { flex: 1 1 auto; }
.tabs-ink { display: none; }
.tabs [role="tab"][aria-selected="true"] { background: var(--accent); }
.specs { list-style: none; margin: 18px 0 0; padding: 0; }
.specs li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 2px 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.tab-panel:not([hidden]) .specs li { animation: rise-in .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.spec-qty { grid-row: span 2; font-family: var(--font-mono); font-size: 1.35rem; color: var(--accent-text); line-height: 1.2; }
.spec-qty .i { width: 20px; height: 20px; translate: 0 3px; }
.spec-name { font-weight: 650; font-size: 1.08rem; }
.spec-meta { color: var(--muted); font-size: .93rem; }
.spec-note { margin: 18px 0 0; color: var(--ink-300); }

/* ---------- 05 Referenciák ---------- */
.refs { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .refs { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
  .refs-head { position: sticky; top: calc(var(--header-h) + 40px); }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--fg);
  font-weight: 600; font-size: .93rem; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, scale .2s;
}
.chip:hover { border-color: var(--fg); }
.chip:active { scale: .96; }
.chip span { font-family: var(--font-mono); font-size: .72rem; opacity: .65; }
.chip[aria-pressed="true"] { background: var(--ink-900); border-color: var(--ink-900); color: #EEF2F7; }
.ref-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.ref-list li {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.ref-list li::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--accent); scale: 0 1; transform-origin: left; transition: scale .6s var(--ease-out);
}
.ref-list li:hover::before { scale: 1 1; }
.ref-loc { grid-column: 1 / -1; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ref-title { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; transition: translate .5s var(--ease-out); }
.ref-list li:hover .ref-title { translate: 6px 0; }
.ref-cat { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); white-space: nowrap; }
@media (min-width: 700px) {
  .ref-list li { grid-template-columns: 150px minmax(0, 1fr) auto; }
  .ref-loc { grid-column: auto; }
}
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }

/* ---------- 06 Galéria ---------- */
.gallery { overflow: clip; }
.reel { display: grid; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.reel-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.reel-track { display: flex; gap: 16px; padding-right: 16px; width: max-content; animation: marquee 70s linear infinite; }
.reel-row--rev .reel-track { animation-direction: reverse; animation-duration: 80s; }
.reel:hover .reel-track, .reel:focus-within .reel-track { animation-play-state: paused; }
.shot {
  position: relative; flex: none;
  width: clamp(230px, 26vw, 400px); aspect-ratio: 4 / 3;
  padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-800); cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.04); transition: scale .9s var(--ease-out), filter .5s; }
.shot:hover img, .shot:focus-visible img { scale: 1.07; filter: none; }
.shot span {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(11, 33, 71, .72); color: #EEF2F7;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
  translate: 0 4px; opacity: .92; transition: translate .4s var(--ease-out), opacity .4s;
}
.shot:hover span { translate: 0 0; opacity: 1; }
.shot:focus-visible { outline-offset: -3px; }

.lightbox {
  width: min(1100px, 94vw); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: #EEF2F7; overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 12, 20, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: zoom-in .45s var(--ease-out); }
.lightbox figure { margin: 0; }
.lightbox img { margin-inline: auto; width: auto; max-width: 100%; max-height: 78vh; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 14px; text-align: center; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-300); }
.lightbox .icon-btn { position: fixed; color: #EEF2F7; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }

/* ---------- 07 Fejlesztések ---------- */
.grants { display: grid; gap: 48px; margin-top: clamp(36px, 4vw, 56px); }
@media (min-width: 1024px) { .grants { grid-template-columns: 1.6fr 1fr; gap: clamp(48px, 6vw, 96px); align-items: start; } }
.grant-list { display: grid; border-top: 1px solid var(--line-strong); }
.grant { padding: 30px 0; border-bottom: 1px solid var(--line); }
.grant > .mono { margin: 0 0 8px; color: var(--muted); }
.grant h3 { margin: 0; font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); font-weight: 750; letter-spacing: -.015em; }
.grant-fig { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 20px 0; }
.grant-fig div { display: flex; flex-direction: column-reverse; }
.grant-fig dt { font-size: .82rem; color: var(--muted); }
.grant-fig dd { margin: 0; font-weight: 800; font-stretch: 112%; font-size: 1.3rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.grant p { margin: 0; color: var(--muted); max-width: 66ch; }
.grant p.grant-org { margin-top: 12px; font-size: .85rem; }
.grant-aside { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.grant-aside .mono { margin: 0; color: var(--muted); text-align: center; }
.infoblokk { width: 100%; max-width: 340px; margin-inline: auto; }
.logo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; }
.logo-row img { width: 100%; height: 48px; object-fit: contain; }
.grant-aside .small { margin: 0; font-size: .8rem; color: var(--muted); }

/* ---------- 08 Kapcsolat ---------- */
.contact-in { display: grid; gap: 56px; }
@media (min-width: 1024px) { .contact-in { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 110px); align-items: start; } }
.contact-info .lead { margin-top: 24px; color: var(--ink-300); }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--accent-text); }
.contact-list small { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list address { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 650; text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-list a:hover { color: var(--accent-text); }
.map-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  margin-top: 28px; padding: 18px 20px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  text-decoration: none;
  background: radial-gradient(120% 120% at 0% 50%, rgba(217, 48, 42, .1), transparent 60%);
  transition: border-color .3s, translate .4s var(--ease-out);
}
.map-card:hover { border-color: var(--accent-text); translate: 0 -2px; }
.map-card > .i { color: var(--accent-text); width: 22px; height: 22px; }
.map-text { display: grid; gap: 4px; }
.map-text .mono { color: var(--muted); text-transform: none; letter-spacing: .02em; }
.radar { position: relative; width: 52px; height: 52px; }
.radar::after { content: ""; position: absolute; inset: 20px; border-radius: 50%; background: var(--accent); }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); animation: radar 3s var(--ease-out) infinite; }
.radar i:nth-child(2) { animation-delay: 1s; }
.radar i:nth-child(3) { animation-delay: 2s; }
@keyframes radar { from { scale: .25; opacity: 1; } to { scale: 1; opacity: 0; } }

.quote {
  display: grid; gap: 22px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field legend { margin-bottom: 10px; }
.req { color: var(--accent-text); }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--ink-900); color: var(--fg);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: rgba(195, 208, 232, .45); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(217, 48, 42, .22); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.help { margin: 0; font-size: .85rem; color: var(--muted); }
.err { margin: 0; font-size: .875rem; font-weight: 550; color: var(--danger); }
.err:not([hidden]) { animation: rise-in .35s var(--ease-out); }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; font-weight: 500; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-300);
  transition: background-color .25s, color .25s, border-color .25s;
}
.seg input:hover + span { border-color: var(--fg); }
.seg input:checked + span { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); font-weight: 650; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.quote .btn { position: relative; overflow: hidden; }
.quote .btn.is-loading { pointer-events: none; }
.quote .btn.is-loading::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(11, 33, 71, .14) 0 12px, transparent 12px 24px);
  background-size: 34px 34px;
  animation: stripes .6s linear infinite;
}
@keyframes stripes { to { background-position: 34px 0; } }
.form-note { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Ajánlatkérő ablak ---------- */
.quote-dlg {
  width: min(620px, 100% - 24px); max-width: none; max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent; color: var(--fg); overflow: auto;
}
.quote-dlg::backdrop { background: rgba(8, 12, 20, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.quote-dlg[open] { animation: zoom-in .4s var(--ease-out); }
.quote-dlg [hidden] { display: none !important; }
.quote-dlg .quote { padding: clamp(20px, 4vw, 36px); gap: 20px; }
.q-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.q-head .mono { margin: 0; color: var(--accent-text); }
.q-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.q-bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; scale: var(--q, .34) 1; transition: scale .5s var(--ease-out); }
.q-step { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.q-title { margin: 0 0 14px; padding: 0; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.15; }
.q-choices { display: grid; gap: 8px; }
.q-choices label { position: relative; }
.q-choices input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.q-choices span {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 12px; font-weight: 600;
  transition: border-color .2s, background-color .2s;
}
.q-choices span::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); transition: border .2s; }
.q-choices input:hover + span { border-color: var(--fg); }
.q-choices input:checked + span { border-color: var(--accent-text); background: rgba(217, 48, 42, .16); }
.q-choices input:checked + span::before { border: 6px solid var(--accent); }
.q-choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field input[type="file"] { min-height: 0; padding: 10px; cursor: pointer; }
.q-nav { display: flex; gap: 10px; }
/* the buttons stay in view while the service list scrolls on small phones */
.quote-dlg .q-nav {
  position: sticky; bottom: 0; z-index: 1;
  margin: 0 calc(-1 * clamp(20px, 4vw, 36px)) calc(-1 * clamp(20px, 4vw, 36px));
  padding: 14px clamp(20px, 4vw, 36px) clamp(20px, 4vw, 36px);
  background: var(--surface); border-top: 1px solid var(--line);
}
.q-nav .btn-accent { flex: 1; justify-content: center; }
.q-done { justify-items: center; text-align: center; }
.q-done-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.q-done-ico .i { width: 30px; height: 30px; }
.q-done p { margin: 0; color: var(--ink-300); }
.q-done .q-title { margin: 0; }
.q-start ol { display: grid; gap: 10px; margin: 0; padding-left: 1.3em; color: var(--ink-300); }
.q-start .q-title { margin: 0; }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(64px, 8vw, 100px) 28px; border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-top { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); } }
.footer-brand p { margin: 18px 0 0; color: var(--muted); max-width: 40ch; font-size: .95rem; }
.footer-col { display: grid; align-content: start; gap: 4px; }
.footer-col .mono { margin: 0 0 10px; color: var(--muted); }
.footer-col a, .footer-col address { padding-block: 5px; text-decoration: none; color: var(--ink-300); font-size: .95rem; width: fit-content; transition: color .25s; }
.footer-col a:hover { color: var(--accent-text); }
.footer-word { width: 100%; height: auto; margin-top: clamp(48px, 7vw, 96px); overflow: visible; }
.footer-word text {
  font-family: var(--font-sans); font-weight: 850; font-stretch: 125%; font-size: 200px;
  fill: rgba(217, 48, 42, 0);
  stroke: rgba(217, 48, 42, .6); stroke-width: 1.4;
  stroke-dasharray: 1400; stroke-dashoffset: 0;
  transition: stroke-dashoffset 3.2s var(--ease-out), fill 1.2s ease 1.6s;
}
.footer-word.is-in text { fill: rgba(217, 48, 42, .07); }
.js .footer-word:not(.is-in) text { stroke-dashoffset: 1400; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--accent-text); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.link-btn:hover { color: var(--accent-text); }

/* Cookie consent bar (Meta Pixel) */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  max-width: 760px; margin-inline: auto; padding: 16px 18px;
  border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); font-size: .92rem;
}
.consent p { margin: 0; flex: 1 1 320px; color: var(--ink-300); }
.consent a { color: var(--fg); }
.consent-btns { display: flex; gap: 8px; flex: 1 1 auto; }
.consent-btns .btn { flex: 1; padding-inline: .8rem; white-space: nowrap; }

/* Mobile sticky CTA */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; padding: 8px;
  border-radius: 20px;
  background: rgba(11, 33, 71, .84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1);
  translate: 0 160%; transition: translate .6s var(--ease-out);
}
.mobile-cta.is-on { translate: 0 0; }
.mobile-cta a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 14px;
  color: #EEF2F7; font-weight: 650; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .14);
}
.mobile-cta a.is-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-text); }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* ---------- Subpages (generated by build.py) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: clip;
  padding: calc(var(--header-h) + clamp(28px, 4vw, 52px)) 0 clamp(56px, 7vw, 100px);
}
/* a dark section right under the dark page hero: no second big gap between them */
.page-hero + .section.s-dark { padding-top: clamp(8px, 2vw, 24px); }
.page-hero--compact { padding-bottom: clamp(16px, 3vw, 32px); }
.page-hero--compact .page-title { font-size: clamp(2rem, 1rem + 3vw, 3.4rem); }
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.crumbs a { color: var(--ink-300); text-decoration: none; transition: color .25s; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs [aria-current] { color: var(--fg); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 1024px) { .page-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); } }
.page-title {
  margin: 0;
  font-size: clamp(2.1rem, 1.1rem + 3.4vw, 3.9rem); font-weight: 800; font-stretch: 112%;
  letter-spacing: -.035em; line-height: 1.02; text-wrap: balance;
}
.page-hero .lead { margin-top: 24px; color: var(--ink-300); }
.page-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-800); animation: unveil 1s var(--ease-out) both; }
.page-photo img { width: 100%; height: 100%; object-fit: cover; animation: settle 1.8s var(--ease-out) both; }

.page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 1024px) {
  .page-body { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .side { position: sticky; top: calc(var(--header-h) + 32px); }
}
.prose { max-width: 68ch; }
.prose h2 { margin: 52px 0 14px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem); font-weight: 760; font-stretch: 108%; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; color: #3A4659; }
.prose ul:not(.ticks) { margin: 0 0 14px; padding-left: 1.2em; color: #3A4659; }
.prose ul:not(.ticks) li { margin-bottom: 6px; }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose .ticks { margin: 18px 0 8px; }
.flow { list-style: none; counter-reset: flow; margin: 18px 0 8px; padding: 0; border-top: 1px solid var(--line); }
.flow li { counter-increment: flow; display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 13px 0; border-bottom: 1px solid var(--line); }
.flow li::before { content: counter(flow, decimal-leading-zero); font-family: var(--font-mono); font-size: .78rem; color: var(--muted); padding-top: 3px; }

.side-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.side-card + .side-card { margin-top: 16px; }
.side-card h2 { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.side-card .specs { margin: 10px 0 18px; }
.side-card .specs li { grid-template-columns: 44px minmax(0, 1fr); padding: 12px 0; }
.side-card .spec-qty { font-size: 1.05rem; }
.side-card .spec-name { font-size: 1rem; }
.side-card .spec-meta { font-size: .88rem; }
.side-card--accent { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); }
.side-card--accent .mono { margin: 0; opacity: .75; }
.side-card--accent p { margin: 0; font-size: .95rem; }
.side-card--accent .btn { width: 100%; margin-top: 18px; }
.side-phone { display: block; margin: 6px 0 10px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; text-decoration: none; font-variant-numeric: tabular-nums; }
.btn-ink { background: var(--ink-900); color: #EEF2F7; }
.btn-ink:hover { background: var(--ink-700); }
.btn-line-ink { border-color: rgba(11, 33, 71, .35); color: var(--accent-ink); }
.btn-line-ink:hover { border-color: var(--accent-ink); }

.section--alt { background: var(--white); }
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) { .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(48px, 6vw, 96px); align-items: start; } }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 1.08rem; font-weight: 650; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .svc-toggle { grid-column: 2; grid-row: 1; }
.faq-item summary:hover .svc-toggle { border-color: var(--fg); }
.faq-item p { margin: 0; padding: 0 60px 22px 0; color: #3A4659; max-width: 70ch; }
.faq-item[open] p { animation: rise-in .5s var(--ease-out) both; }
.faq-item::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

.related-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-strong); }
@media (min-width: 760px) { .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.related-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.related-list strong { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; transition: color .3s, translate .5s var(--ease-out); }
.related-list small { color: var(--muted); font-size: .92rem; }
.related-list .i { color: var(--accent-text); transition: translate .4s var(--ease-out); }
.related-list a:hover strong { color: var(--accent-text); translate: 6px 0; }
.related-list a:hover .i { translate: 3px -3px; }

.cta-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center;
  margin-top: clamp(56px, 7vw, 96px); padding: clamp(32px, 4vw, 52px) clamp(24px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--accent); color: var(--accent-ink);
}
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--ink-900) 0 10px, transparent 10px 20px); }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
.cta-band p { margin: 10px 0 0; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-title em { font-style: normal; color: var(--accent-text); }
@media (min-width: 760px) { .video-grid--one { grid-template-columns: minmax(0, 1fr); max-width: 880px; } }
.page-hero .related-list { margin-top: 48px; }

/* ---------- Motion utilities ---------- */
@keyframes rise-in { from { opacity: 0; translate: 0 14px; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; scale: .96; } }

.js [data-reveal] {
  opacity: 0; translate: 0 26px;
  transition: opacity .9s var(--ease-out), translate 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js .footer-word[data-reveal] { translate: none; }

/* Pause perpetual motion while off-screen */
.js [data-anim]:not(.is-visible),
.js [data-anim]:not(.is-visible) * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
  .reel-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .progress { display: none; }
}

/* Machine showcase (géppark) */
.machines-head { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 12px; }
.machines-head .h3 { margin: 0; }
.rail-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.rail-hint { margin: 0 auto 0 0; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); font-size: .8rem; }
.rail-hint .i { animation: nudge 1.6s var(--ease-out) infinite; }
.rail-hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .rail-hint-touch { display: none; } .rail-hint-mouse { display: inline; } }
@keyframes nudge { 50% { translate: 6px 0; } }
@media (prefers-reduced-motion: reduce) { .rail-hint .i { animation: none; } }
.rail-count { color: var(--fg); font-size: .85rem; white-space: nowrap; }
.rail-btn[disabled] { opacity: .35; cursor: default; }
.machines {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); gap: 20px;
  margin-top: 14px; padding-bottom: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--ink-600) transparent;
}
@media (min-width: 1024px) { .machines { grid-auto-columns: calc((100% - 60px) / 4); } }
.machine { scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.machine-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-800); }
.machine-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-out); }
.machine:hover .machine-photo img { scale: 1.05; }
/* cards with several photos: they cross-fade, the arrows on the photo switch them (sideways swipe stays with the rail) */
.machine-photo[data-photos] { position: relative; }
.machine-photo[data-photos] img { position: absolute; inset: 0; opacity: 0; transition: opacity .45s, scale .9s var(--ease-out); }
.machine-photo[data-photos] img.is-on { opacity: 1; }
.mp-btn {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; cursor: pointer;
  background: rgba(11, 33, 71, .62); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mp-btn:hover { background: var(--accent); }
.mp-prev { left: 8px; }
.mp-next { right: 8px; }
.mp-video {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .8rem;
}
.mp-video .i { width: 16px; height: 16px; }
.mp-video:hover { filter: brightness(1.1); }
.video-dlg { width: fit-content; }
.video-dlg video { display: block; max-width: 92vw; max-height: 86vh; border-radius: var(--radius); background: #000; }
.mp-count { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: rgba(11, 33, 71, .72); color: #fff; font-size: .75rem; }
.machine-body { display: grid; align-content: start; gap: 8px; padding: 20px 20px 22px; }
.machine-body .mono { margin: 0; color: var(--accent-text); }
.machine h4, .machine h3 { margin: 0; font-size: 1.3rem; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.15; }
.machine-body > p:not(.mono) { margin: 0; color: var(--ink-300); font-size: .95rem; }
.kit { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; }
.kit li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-300); font-size: .78rem; }
.machine .svc-links { gap: 8px 20px; margin-top: auto; padding-top: 10px; }
/* service cards: same height without dead space – text clamped, links pinned to the bottom */
#szolg-rail .machine-body { display: flex; flex-direction: column; flex: 1; }
#szolg-rail .machine-body > p:not(.mono) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }

/* Liquid glass (web take on iOS 26): blurred, saturated material, refracted top edge,
   and a specular sheen that follows the pointer on interactive surfaces */
.glass {
  --gx: 50%; --gy: 0%; --tint: .78;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)), rgba(11, 33, 71, var(--tint));
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(255, 255, 255, .06), 0 18px 40px -18px rgba(3, 12, 30, .6);
  isolation: isolate;
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(160px 110px at var(--gx) var(--gy), rgba(255, 255, 255, .26), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.glass:hover::after, .glass:focus-within::after { opacity: 1; }
.hero-chip.glass { --tint: .45; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { --tint: .95; } }
@media (prefers-reduced-transparency: reduce) {
  .glass, .site-header.is-scrolled .header-in { --tint: 1; background: var(--ink-850); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
