/* =====================================================================
   VÉGH MÁRK – veghmark.hu
   Egyedi, statikus front-end (Framer helyett). Vanilla CSS, nincs build.
   ===================================================================== */

/* ---------- Betűtípus (self-hosted Urbanist, GDPR-barát) ---------- */
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../fonts/Urbanist-Italic-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokenek ---------- */
:root {
  --bg: #0b0b0b;
  --bg-2: #0f0f0f;
  --bg-3: #161616;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f3f0;
  --text-2: #b6b6b2;
  --text-3: #7c7c78;
  --accent: #5adac3;
  --accent-2: #33bfa6;
  --accent-ink: #062b25;
  --accent-glow: rgba(90, 218, 195, 0.35);
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 12vw, 168px);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 84px;
  color-scheme: dark;
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  background: var(--bg);
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(16px, 1.02vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: none;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 1200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: 999px; font-weight: 600;
  transition: top 0.3s;
}
.skip-link:focus { top: 16px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Finom filmszemcse a mélységért */
.grain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- Tipográfia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 600; color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.8; }
.eyebrow__num { color: var(--text-3); font-weight: 500; }
.h-2 {
  font-weight: 600; letter-spacing: -0.028em; line-height: 1.04;
  font-size: clamp(34px, 4.6vw, 60px);
  text-wrap: balance;
}
.h-3 { font-weight: 600; letter-spacing: -0.012em; font-size: clamp(20px, 1.6vw, 24px); }
.lead { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.55; }
.muted { color: var(--text-2); }
.accent-text { color: var(--accent); }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section); }
.section--alt { background: var(--bg-2); }
.section--tight { padding-block: clamp(24px, 4vw, 48px); }
.section__head { display: grid; gap: 20px; max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--center { text-align: center; margin-inline: auto; justify-items: center; }
.section__head--row {
  max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: end; gap: 24px 48px;
}
.section__head--row > .section__head-text { display: grid; gap: 20px; max-width: 780px; }
@media (max-width: 760px) { .section__head--row { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Gombok ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; letter-spacing: 0.01em; white-space: nowrap;
  isolation: isolate; overflow: hidden;
  transition: transform 0.5s var(--ease-out), background-color 0.3s, color 0.3s, box-shadow 0.5s var(--ease-out);
}
.btn__icon { width: 18px; height: 18px; flex: none; transition: transform 0.5s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn:hover .btn__icon--down { transform: translateY(4px); }
.btn:hover .btn__icon--ext { transform: translate(3px, -3px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.6) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform 0.9s var(--ease-out);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px var(--accent-glow), 0 0 0 1px rgba(90, 218, 195, 0.7); }
.btn--accent:hover::after { transform: translateX(130%); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); transform: translateY(-2px); }
.btn--lg { height: 62px; padding: 0 34px; font-size: 17px; }
.btn--sm { height: 46px; padding: 0 22px; font-size: 15px; }

/* Kiemelt „Kapcsolat” CTA: pill + sötét nyíl-korong + lágy pulzálás */
.cta {
  height: 50px; padding: 0 6px 0 24px; gap: 14px;
  background: var(--accent); color: var(--accent-ink);
  animation: ctaPulse 3.2s var(--ease-in-out) infinite;
}
.cta .btn__dot {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--accent-ink); color: var(--accent);
  display: grid; place-items: center;
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.cta .btn__dot svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease-out); }
.cta:hover .btn__dot svg { transform: translate(2px, -2px); }
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform 0.9s var(--ease-out);
}
.cta:hover { animation-play-state: paused; transform: translateY(-1px); }
.cta:hover::after { transform: translateX(130%); }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90, 218, 195, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(90, 218, 195, 0); }
}

/* ---------- Navigáció ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  height: var(--nav-h); display: flex; align-items: center;
  transition: height 0.45s var(--ease-out), background-color 0.45s, box-shadow 0.45s;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: opacity 0.45s;
}
.nav.is-scrolled { height: 70px; box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled::before { opacity: 1; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: block; color: #fff; }
.nav__logo svg { height: 36px; width: auto; transition: height 0.45s var(--ease-out); }
.nav.is-scrolled .nav__logo svg { height: 32px; }
.nav__links {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line);
}
.nav__link {
  display: block; padding: 9px 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  transition: color 0.3s, background-color 0.3s;
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__phone {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); place-items: center;
}
.nav__phone svg { width: 20px; height: 20px; }
.nav__burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2); place-items: center; position: relative;
}
.nav__burger span {
  position: absolute; left: 14px; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out), width 0.3s;
}
.nav__burger span:nth-child(1) { top: 18px; }
.nav__burger span:nth-child(2) { top: 26px; width: 12px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 22px; width: 18px; transform: rotate(-45deg); }
@media (max-width: 1000px) {
  .nav__links, .nav__cta { display: none; }
  .nav__phone, .nav__burger { display: grid; }
}

/* Mobil menü */
.menu {
  position: fixed; inset: 0; z-index: 790;
  background: rgba(11, 11, 11, 0.94);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s, visibility 0.45s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__links { display: grid; gap: 4px; }
.menu__link {
  display: flex; align-items: baseline; gap: 18px; padding: 10px 0;
  font-size: clamp(32px, 8.5vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05;
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(0.08s + var(--i, 0) * 0.06s);
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__link:hover { color: var(--accent); }
.menu__num { font-size: 12px; letter-spacing: 0.18em; color: var(--accent); font-weight: 600; }
.menu__foot {
  margin-top: auto; display: grid; gap: 18px; padding-top: 28px; border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out) 0.45s, transform 0.6s var(--ease-out) 0.45s;
}
.menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu__contact { display: grid; gap: 6px; color: var(--text-2); font-size: 15px; }
.menu__contact a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  padding: calc(var(--nav-h) + 32px) 0 140px;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); will-change: transform;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 55% at 50% 46%, rgba(11, 11, 11, 0.62), rgba(11, 11, 11, 0.2) 60%, transparent 100%),
    linear-gradient(to bottom, rgba(11, 11, 11, 0.6) 0%, transparent 28%, transparent 58%, var(--bg) 100%);
}
.hero__content { position: relative; text-align: center; display: grid; justify-items: center; gap: clamp(22px, 3vw, 34px); }
.hero-title { width: min(88vw, 960px); color: #fff; }
.hero-title__svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.55)); }
.hero-title__svg .accent { fill: var(--accent); }
.hero-title__mark, .hero-title__word { transform-box: fill-box; transform-origin: 50% 50%; }
.hero__tagline {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px;
  font-size: clamp(12px, 1.05vw, 15px); letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 500; color: var(--text-2);
}
.hero__tagline .sep { width: 1px; height: 14px; background: var(--line-2); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-3);
}
.hero__scroll-line { width: 1px; height: 58px; position: relative; overflow: hidden; background: var(--line-2); }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  animation: scrollLine 2.4s var(--ease-in-out) infinite;
}
@keyframes scrollLine { 0% { transform: translateY(-100%); } 55% { transform: translateY(100%); } 100% { transform: translateY(100%); } }
@media (max-width: 600px) {
  .hero { padding-bottom: 120px; }
  .hero__tagline { gap: 8px 14px; letter-spacing: 0.22em; }
  .hero__tagline .sep { height: 10px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Hero belépő animáció (csak JS-sel) */
.js .hero__media { opacity: 0; transform: scale(1.08); transition: opacity 1.6s var(--ease-out), transform 2.6s var(--ease-out); }
.js .hero-title__mark { opacity: 0; transform: scale(0.72); transition: opacity 0.9s var(--ease-out), transform 1.2s var(--ease-out); }
.js .hero-title__word--left { opacity: 0; transform: translateX(-70px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .hero-title__word--right { opacity: 0; transform: translateX(70px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js .hero__tagline > *, .js .hero__actions > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .hero__scroll { opacity: 0; transform: translate(-50%, 18px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.is-loaded .hero__media { opacity: 1; transform: none; }
.is-loaded .hero-title__mark { opacity: 1; transform: none; transition-delay: 0.25s; }
.is-loaded .hero-title__word--left, .is-loaded .hero-title__word--right { opacity: 1; transform: none; transition-delay: 0.55s; }
.is-loaded .hero__tagline > * { opacity: 1; transform: none; transition-delay: calc(0.95s + var(--i, 0) * 0.08s); }
.hero__tagline > :nth-child(1) { --i: 0; } .hero__tagline > :nth-child(2) { --i: 1; } .hero__tagline > :nth-child(3) { --i: 2; }
.hero__tagline > :nth-child(4) { --i: 3; } .hero__tagline > :nth-child(5) { --i: 4; }
.is-loaded .hero__actions > * { opacity: 1; transform: none; transition-delay: 1.3s; }
.is-loaded .hero__actions > :nth-child(2) { transition-delay: 1.4s; }
.is-loaded .hero__scroll { opacity: 1; transform: translateX(-50%); transition-delay: 1.8s; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; padding: 18px 0; overflow: hidden;
  border-block: 1px solid var(--line); background: var(--bg-2);
  --gap: 56px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: var(--gap); width: max-content; }
.marquee__group {
  display: flex; gap: var(--gap); flex: none; align-items: center;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__group { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: var(--gap);
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.marquee__item i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }

/* ---------- Számláló ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat {
  position: relative; padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 36px); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.stat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.75;
}
.stat::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 218, 195, 0.22), transparent 65%); opacity: 0; transition: opacity 0.6s;
}
.stat:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2); }
.stat:hover::after { opacity: 1; }
.stat__value {
  display: flex; align-items: baseline; gap: 4px;
  font-size: clamp(44px, 5.2vw, 72px); font-weight: 600; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__suffix { color: var(--accent); font-size: 0.6em; font-weight: 500; }
.stat__unit { font-size: 0.36em; color: var(--text-2); font-weight: 500; letter-spacing: 0; margin-left: 8px; }
.stat__label { margin-top: 16px; color: var(--text-2); font-size: 15px; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr; } .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; } .stat__label { margin: 0; text-align: right; } }

/* ---------- Rólam ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__media { position: relative; }
.about__media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--r-lg);
  border: 1px solid rgba(90, 218, 195, 0.35); pointer-events: none;
}
.about__frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-3);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.about__frame.is-inview img { transform: scale(1); }
.about__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 11, 0.55), transparent 45%);
}
.about__card {
  position: absolute; left: clamp(-28px, -3vw, -12px); bottom: 36px; z-index: 2;
  display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 16px;
  background: rgba(16, 16, 16, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px rgba(0, 0, 0, 0.55);
}
.about__card svg { width: 38px; height: auto; flex: none; }
.about__card b { display: block; font-size: 14px; font-weight: 600; line-height: 1.25; }
.about__card small { display: block; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
.about__body { display: grid; gap: 22px; }
.about__body .eyebrow { margin-bottom: 4px; }
.about__body p { color: var(--text-2); }
.about__body p.lead { color: var(--text); }
.about__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tag { padding: 8px 14px; border-radius: 999px; font-size: 13px; letter-spacing: 0.04em; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.about__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; margin-inline: auto; width: 100%; }
  .about__media::before { inset: 18px 0 -18px 18px; }
  .about__card { left: 12px; }
}

/* ---------- Eredményeim (oklevelek) ---------- */
.awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1200px; }
.award { display: grid; gap: 14px; }
.award__frame {
  position: relative; display: block; aspect-ratio: 1414 / 2000; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line);
  transform: translateY(var(--ty, 0)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
  transform-style: preserve-3d; cursor: zoom-in;
}
.award__frame img { width: 100%; height: 100%; object-fit: cover; }
.award__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
  transform: translateX(-110%); transition: transform 1.1s var(--ease-out);
}
.award:hover .award__frame { --ty: -6px; box-shadow: 0 34px 70px -22px rgba(0, 0, 0, 0.8), inset 0 0 0 1px var(--line-2); }
.award:hover .award__frame::after { transform: translateX(110%); }
.award__title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.award__meta { font-size: 12px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
@media (max-width: 900px) { .awards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .awards { grid-template-columns: 1fr; gap: 28px; }
  .award { gap: 12px; }
  .award__title { font-size: 17px; }
}

/* ---------- Ingatlanok CTA sáv ---------- */
.listings {
  position: relative; overflow: hidden; border-radius: var(--r-lg); isolation: isolate;
  padding: clamp(52px, 7vw, 104px) clamp(28px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center;
}
.listings__bg { position: absolute; inset: 0; z-index: -2; }
.listings__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); transform: scale(1.06); transition: transform 8s var(--ease-out); }
.listings.is-inview .listings__bg img { transform: scale(1); }
.listings::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11, 11, 11, 0.96) 22%, rgba(11, 11, 11, 0.8) 58%, rgba(11, 11, 11, 0.6) 100%);
}
.listings::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none; }
.listings__glow {
  position: absolute; z-index: -1; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  right: -22%; top: -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 218, 195, 0.32), transparent 62%); filter: blur(40px);
  animation: drift 14s var(--ease-in-out) infinite alternate;
}
@keyframes drift { to { transform: translate(-12%, 18%) scale(1.15); } }
.listings__text { display: grid; gap: 18px; }
.listings__title { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -0.04em; line-height: 0.96; font-weight: 600; }
.listings__text p { color: var(--text-2); max-width: 48ch; }
.listings__cta { justify-self: end; display: grid; gap: 14px; justify-items: end; }
.listings__hint { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
@media (max-width: 800px) { .listings { grid-template-columns: 1fr; } .listings__cta { justify-self: start; justify-items: start; } }

/* ---------- Szolgáltatások (tabok) ---------- */
.services { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.tabs { display: grid; border-top: 1px solid var(--line); position: sticky; top: calc(var(--nav-h) + 24px); }
.tab {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 22px 6px; border-bottom: 1px solid var(--line); text-align: left; color: var(--text-2);
  transition: color 0.35s, padding-left 0.5s var(--ease-out);
}
.tab__num { font-size: 12px; letter-spacing: 0.12em; color: var(--text-3); font-weight: 600; }
.tab__title { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.tab__arrow { width: 22px; height: 22px; opacity: 0; transform: translateX(-10px); transition: opacity 0.4s, transform 0.5s var(--ease-out); color: var(--accent); }
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease-out);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); padding-left: 12px; }
.tab[aria-selected="true"] .tab__num { color: var(--accent); }
.tab[aria-selected="true"] .tab__arrow { opacity: 1; transform: none; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.panels { position: relative; }
.panel { display: none; }
.panel.is-active { display: grid; gap: 26px; animation: panelIn 0.75s var(--ease-out); }
.panel__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-3); }
.panel__media img { width: 100%; height: 100%; object-fit: cover; animation: panelZoom 1.4s var(--ease-out); }
.panel__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 11, 11, 0.45), transparent 40%); }
.panel__badge {
  position: absolute; left: 18px; bottom: 18px; padding: 8px 14px; border-radius: 999px;
  background: rgba(11, 11, 11, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}
.panel__body { display: grid; gap: 14px; }
.panel__body h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.panel__body p { color: var(--text-2); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes panelZoom { from { transform: scale(1.06); } to { transform: none; } }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .tabs { position: static; display: flex; overflow-x: auto; gap: 8px; border: 0; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { grid-template-columns: auto auto; padding: 11px 18px !important; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; flex: 0 0 auto; gap: 10px; }
  .tab__title { font-size: 15px; }
  .tab__arrow, .tab::after { display: none; }
  .tab[aria-selected="true"] { background: var(--text); color: var(--bg); box-shadow: none; }
  .tab[aria-selected="true"] .tab__num { color: var(--bg); opacity: 0.7; }
}

/* ---------- Miért válassz engem ---------- */
.why { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.why__intro { display: grid; gap: 22px; align-content: start; position: sticky; top: calc(var(--nav-h) + 32px); }
.why__intro p { color: var(--text-2); }
.reasons { display: grid; gap: 14px; }
.reason {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 2.4vw, 32px); align-items: start;
  padding: clamp(24px, 2.8vw, 34px); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, 0.02);
  transition: transform 0.6s var(--ease-out), background-color 0.5s, box-shadow 0.5s;
}
@media (hover: hover) { .reason:hover { background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateX(8px); } }
.reason__num {
  font-size: clamp(38px, 4.2vw, 60px); font-weight: 200; letter-spacing: -0.04em; line-height: 0.9;
  color: var(--accent); min-width: 2.2ch; font-variant-numeric: tabular-nums;
}
.reason h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.reason p { color: var(--text-2); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } .why__intro { position: static; } }

/* ---------- Vélemények ---------- */
.testimonials { position: relative; isolation: isolate; overflow: hidden; }
.testimonials__bg { position: absolute; inset: 0; z-index: -2; }
.testimonials__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: brightness(0.42) saturate(0.75); }
.testimonials::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(11, 11, 11, 0.72) 30%, rgba(11, 11, 11, 0.78) 70%, var(--bg) 100%);
}
.slider { position: relative; }
.slider__viewport { overflow: hidden; margin-inline: -6px; padding: 6px; }
.slider__track { display: flex; gap: 20px; --per-view: 3; --gap: 20px; transition: transform 0.75s var(--ease-out); will-change: transform; touch-action: pan-y; }
.slide { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); display: grid; }
@media (max-width: 1000px) { .slider__track { --per-view: 2; } }
@media (max-width: 640px) { .slider__track { --per-view: 1; } }
.quote {
  height: 100%; display: grid; gap: 20px; align-content: start; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-lg);
  background: rgba(16, 16, 16, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-2); position: relative;
}
.quote::before {
  content: "”"; position: absolute; right: 22px; top: 6px; font-size: 96px; line-height: 1; font-weight: 700;
  color: var(--accent); opacity: 0.18; font-family: Georgia, serif;
}
.quote__stars { display: flex; gap: 4px; color: var(--accent); }
.quote__stars svg { width: 15px; height: 15px; }
.quote__text { font-size: 16.5px; line-height: 1.62; color: var(--text); }
.quote__text::before { content: "„"; } .quote__text::after { content: "”"; }
.quote__author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.quote__avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
}
.quote__name { font-weight: 600; font-size: 15px; }
.quote__role { font-size: 12.5px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.slider__controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
.slider__dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--line-2); transition: width 0.45s var(--ease-out), background-color 0.3s; }
.dot.is-active { background: var(--accent); width: 30px; }
.slider__arrows { display: flex; gap: 10px; }
.arrow-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(16, 16, 16, 0.5);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-out);
}
.arrow-btn svg { width: 20px; height: 20px; }
.arrow-btn:hover { background: var(--accent); color: var(--accent-ink); box-shadow: none; transform: translateY(-2px); }
.arrow-btn:disabled { opacity: 0.35; pointer-events: none; }

/* ---------- Videók ---------- */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.video-card {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 11, 11, 0.9), rgba(11, 11, 11, 0.1) 55%, transparent); }
.video-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), inset 0 0 0 1px var(--line-2); }
.video-card:hover img { transform: scale(1.06); }
.video-card__play {
  position: absolute; z-index: 1; top: 50%; left: 50%; width: 64px; height: 64px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); display: grid; place-items: center;
  opacity: 0; transition: opacity 0.45s, transform 0.5s var(--ease-out);
}
.video-card__play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card:hover .video-card__play, .video-card:focus-visible .video-card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-card__caption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.video-card__title { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13.5px; line-height: 1.35; }
.video-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.video-card__meta svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .videos { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---------- Galéria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16.5vw, 232px); gap: 14px; grid-auto-flow: dense; }
.tile {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: var(--r-md);
  background: var(--bg-3); cursor: zoom-in; box-shadow: inset 0 0 0 1px var(--line);
}
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 11, 11, 0.55), transparent 55%); opacity: 0; transition: opacity 0.5s; }
.tile:hover::after { opacity: 1; }
.tile__icon {
  position: absolute; z-index: 1; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); display: grid; place-items: center;
  opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.tile__icon svg { width: 18px; height: 18px; }
.tile:hover .tile__icon { opacity: 1; transform: none; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(110px, 26vw, 180px); gap: 10px; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 950; display: grid; place-items: center;
  background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { display: grid; gap: 14px; justify-items: center; padding: 72px 72px 64px; width: 100%; max-width: 100vw; height: 100%; align-content: center; overflow: hidden; }
.lightbox__img {
  max-width: 100%; max-height: min(78vh, 1000px); width: auto; height: auto; border-radius: 12px; object-fit: contain;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  transform: scale(0.96); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.4s;
}
.lightbox.is-open .lightbox__img.is-ready { transform: none; opacity: 1; }
.lightbox__caption { font-size: 14px; color: var(--text-2); text-align: center; max-width: 60ch; }
.lightbox__counter { font-size: 12px; letter-spacing: 0.2em; color: var(--text-3); }
.lightbox__btn { position: absolute; z-index: 1; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox__figure { padding: 70px 14px 90px; }
  .lightbox__prev { left: 14px; top: auto; bottom: 18px; transform: none; }
  .lightbox__next { right: 14px; top: auto; bottom: 18px; transform: none; }
}

/* ---------- Kapcsolat ---------- */
.contact { position: relative; overflow: hidden; }
.contact__glow {
  position: absolute; left: 50%; top: -10%; transform: translateX(-50%); width: 140vw; height: 70vh; pointer-events: none;
  background: radial-gradient(ellipse at top, rgba(90, 218, 195, 0.16), transparent 60%);
}
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact__intro { display: grid; gap: 22px; }
.contact__title { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.038em; line-height: 0.98; font-weight: 600; text-wrap: balance; }
.contact__title em { font-style: normal; color: var(--accent); }
.contact__cards { display: grid; gap: 14px; }
.ccard {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 24px 26px; border-radius: 20px; overflow: hidden;
  background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out), background-color 0.4s;
}
.ccard::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(90, 218, 195, 0.14), transparent 70%);
}
.ccard:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(90, 218, 195, 0.55), 0 30px 60px -30px var(--accent-glow); background: rgba(255, 255, 255, 0.045); }
.ccard:hover::before { opacity: 1; }
.ccard__icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(90, 218, 195, 0.12); color: var(--accent); display: grid; place-items: center; position: relative; }
.ccard__icon svg { width: 24px; height: 24px; }
.ccard__label { display: block; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); position: relative; line-height: 1.3; }
.ccard__value { display: block; font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; letter-spacing: -0.01em; margin-top: 8px; line-height: 1.25; position: relative; overflow-wrap: anywhere; }
.ccard__arrow { width: 22px; height: 22px; color: var(--text-3); transition: color 0.3s, transform 0.5s var(--ease-out); position: relative; }
.ccard:hover .ccard__arrow { color: var(--accent); transform: translate(3px, -3px); }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; gap: clamp(56px, 10vw, 72px); } .contact__intro { gap: 20px; } }
@media (max-width: 520px) { .ccard { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; padding: 20px 18px; } .ccard__icon { width: 48px; height: 48px; border-radius: 14px; } }

/* ---------- Lábléc ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg); position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 40px; align-items: start; }
.footer__logo { display: inline-block; color: #fff; }
.footer__logo svg { height: 42px; width: auto; }
.footer__tag { color: var(--text-3); font-size: 14.5px; margin-top: 18px; max-width: 38ch; line-height: 1.6; }
.footer h4 { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; font-weight: 600; }
.footer ul { display: grid; gap: 10px; }
.footer__grid a { color: var(--text-2); transition: color 0.3s; }
.footer__grid a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3);
}
.footer__bottom a:hover { color: var(--accent); }
.social { display: inline-flex; align-items: center; gap: 8px; }
.social svg { width: 16px; height: 16px; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* Vissza a tetejére + mobil lebegő CTA */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 700; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(16, 16, 16, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center;
  opacity: 0; transform: translateY(12px); visibility: hidden;
  transition: opacity 0.4s, transform 0.5s var(--ease-out), visibility 0.4s, background-color 0.3s, color 0.3s;
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible { opacity: 1; transform: none; visibility: visible; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); }
.float-cta {
  position: fixed; left: 50%; bottom: 16px; z-index: 750; display: none; align-items: center; gap: 12px;
  padding: 6px 6px 6px 20px; border-radius: 999px;
  background: rgba(16, 16, 16, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px rgba(0, 0, 0, 0.55);
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transform: translate(-50%, 130%); transition: transform 0.55s var(--ease-out);
}
.float-cta.is-visible { transform: translate(-50%, 0); }
.float-cta__link { display: flex; align-items: center; gap: 10px; padding-right: 6px; }
.float-cta__link i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.float-cta__btn { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.float-cta__btn svg { width: 18px; height: 18px; }
@media (max-width: 1000px) { .float-cta { display: flex; } .to-top { bottom: 78px; } }

/* ---------- Görgetéses megjelenés ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="scale"] { transform: scale(0.94); }
.js [data-reveal].is-inview { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.09s); }
.js [data-stagger].is-inview > * { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.err {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 90px; overflow: hidden; isolation: isolate;
}
.err__bg { position: absolute; inset: 0; z-index: -2; }
.err__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.32) saturate(0.7); transform: scale(1.04); animation: slowZoom 36s var(--ease-in-out) infinite alternate; }
@keyframes slowZoom { to { transform: scale(1.14) translateY(-2%); } }
.err::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(11, 11, 11, 0.15), rgba(11, 11, 11, 0.94) 72%); }
.err__inner { display: grid; justify-items: center; gap: 8px; }
.err__code {
  position: relative; display: inline-flex; line-height: 0.88; font-weight: 800; letter-spacing: -0.07em;
  font-size: clamp(120px, 27vw, 300px); color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.38); user-select: none;
}
.err__digit { display: inline-block; transform: translate(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px)); transition: transform 0.4s var(--ease-out); }
.js .err__digit { opacity: 0; animation: digitIn 1s var(--ease-out) forwards; }
.js .err__digit:nth-child(2) { animation-delay: 0.12s; } .js .err__digit:nth-child(3) { animation-delay: 0.24s; }
@keyframes digitIn { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.stamp {
  position: absolute; left: 50%; top: 52%; z-index: 2;
  padding: 6px 20px; border: 4px solid var(--accent); border-radius: 10px; color: var(--accent);
  font-weight: 800; font-size: clamp(22px, 4.2vw, 46px); letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.2;
  outline: 2px solid var(--accent); outline-offset: 5px; background: rgba(11, 11, 11, 0.5);
  -webkit-text-stroke: 0; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.6 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transform: translate(-50%, -50%) rotate(-9deg);
  animation: stampIn 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) 0.75s both;
}
@keyframes stampIn { from { opacity: 0; transform: translate(-50%, -50%) rotate(-9deg) scale(2.1); } to { opacity: 1; transform: translate(-50%, -50%) rotate(-9deg) scale(1); } }
.err__eyebrow { margin-bottom: 18px; }
.err h1 { font-size: clamp(28px, 3.8vw, 50px); letter-spacing: -0.028em; font-weight: 600; margin-top: 22px; text-wrap: balance; }
.err p { color: var(--text-2); max-width: 54ch; margin: 14px auto 0; }
.err__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.err__links { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-top: 44px; font-size: 14px; color: var(--text-3); }
.err__links a:hover { color: var(--accent); }
.js .err__inner > :not(.err__code) { opacity: 0; animation: digitIn 0.9s var(--ease-out) forwards; animation-delay: 1s; }
.js .err__inner > .err__actions { animation-delay: 1.15s; } .js .err__inner > .err__links { animation-delay: 1.3s; }

/* ---------- Csökkentett mozgás ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-stagger] > *, .js .hero__media, .js .hero-title__mark, .js .hero-title__word, .js .hero__tagline > *, .js .hero__actions > *, .js .hero__scroll { opacity: 1 !important; transform: none !important; }
  .js .hero__scroll { transform: translateX(-50%) !important; }
  .marquee__group { animation: none; }
}

/* ---------- Logó színek (sprite) ---------- */
.nav__logo svg, .footer__logo svg { color: #fff; }
