/* =========================================================
   DENSITY lab — stílusok
   Paletta a képek alapján: narancs, fekete, világosszürke, fehér
   ========================================================= */
:root {
  --orange: #ff4a00;
  --black: #0a0a0a;
  --grey: #d2d2d2;
  --white: #f7f5f2;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
}

/* PRÓBA: a narancs és a szürke helyet cserél (a változónevek maradnak).
   Visszaállítás: a HTML-oldalak <html> tagjéről töröld a data-palette="csere" részt. */
:root[data-palette="csere"] { --orange: #d2d2d2; --grey: #ff4a00; }
/* a narancshoz hangolt meleg sötétbarnák semleges sötétszürkék lesznek */
[data-palette="csere"] .frame { background: #161616; }
[data-palette="csere"] .step { background: #262626; color: #6b6b6b; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }

.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.thin { font-weight: 300; letter-spacing: 0.02em; }
.eyebrow { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mask { overflow: hidden; }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 999; background: var(--black); color: var(--white); padding: 0.75rem 1rem; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
[data-theme="dark"] :focus-visible { outline-color: var(--orange); }

/* SVG kirajzolás: pathLength=1 → 1 hosszú szaggatás */
.draw { stroke-dasharray: 1 1.5; stroke-dashoffset: 1; }
.no-js .draw, .reduced .draw { stroke-dashoffset: 0; }

/* ---------- Betöltő ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--black); color: var(--orange);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--pad);
}
.loader-inner { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.loader-bar { height: 2px; background: #222; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--orange); }
.no-js .loader, .reduced .loader { display: none; }

/* ---------- Filmszemcse ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 150; pointer-events: none;
  opacity: 0.11; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

/* ---------- Navigáció ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--pad);
  color: var(--black); transition: color 0.4s;
}
.nav.on-dark { color: var(--white); }
.nav-logo { font-size: 1.15rem; }
.nav ul { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); }
.nav ul a { font-size: 0.9rem; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-pill { border: 1px solid currentColor; border-radius: 99px; padding: 0.4rem 0.8rem; }
@media (max-width: 760px) { .nav nav { display: none; } }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 5rem var(--pad) 2rem; overflow: hidden;
}
.hero-top, .hero-bottom { position: absolute; left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; }
.hero-top { top: 5rem; }
.hero-bottom { bottom: 1.5rem; }
.scroll-hint span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

.hero-logo { width: min(92vw, 1400px); height: auto; overflow: visible; }
.logo-fill { fill: var(--black); }
.hero-sub { position: absolute; left: var(--pad); bottom: 18vh; }
.hero-word { font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1; }
.hero-tag { margin-top: 0.6rem; font-size: clamp(1rem, 1.5vw, 1.3rem); }

/* ---------- 2. Manifesztó ---------- */
.manifesto {
  position: relative; background: var(--grey);
  padding: clamp(6rem, 18vh, 12rem) var(--pad);
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
}
.hl-title { font-size: clamp(3rem, 10vw, 10rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 3rem; }
.hl { position: relative; display: table; padding: 0.02em 0.14em 0.08em; margin: 0.06em 0; }
.hl-bar { position: absolute; inset: 0; background: var(--black); transform-origin: left center; }
.hl-text { position: relative; color: var(--orange); }
.lead { max-width: 38ch; font-size: clamp(1.3rem, 2.3vw, 2rem); line-height: 1.25; font-weight: 500; margin-left: auto; }
.reveal-words .w { display: inline-block; }

/* ---------- 3. Nyitás ---------- */
.opening {
  position: relative; background: var(--black); color: var(--white);
  min-height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: 8rem 0;
}
.fold-stage { perspective: 1200px; margin: 0 -10vw 5rem; }
.fold {
  background: var(--orange); color: var(--black);
  padding: clamp(0.6rem, 1.4vw, 1.2rem) 0;
  transform-origin: top center; overflow: hidden;
}
.fold-a { transform: rotate(-4deg); }
.fold-b { transform: rotate(3deg); background: var(--white); margin-top: -0.4rem; }
.marquee { display: flex; overflow: hidden; white-space: nowrap; }
.marquee-track { display: flex; flex-shrink: 0; animation: marquee 22s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; }
.marquee span { font-size: clamp(2rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

.opening-copy { padding: 0 var(--pad); }
.opening-copy .eyebrow { color: var(--orange); }
.opening-date { font-size: clamp(4rem, 17vw, 17rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.85; color: var(--orange); }
.opening-text { margin-top: 2rem; font-size: clamp(1.2rem, 2vw, 1.7rem); max-width: 30ch; }
.split-chars .ch { display: inline-block; }

/* ---------- 4. Próbaüzem ---------- */
.trial {
  position: relative; background: var(--orange); height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  display: grid; place-items: center; padding: 6rem var(--pad);
}
.band { position: absolute; left: -20vw; right: -20vw; white-space: nowrap; padding: 1rem 0; }
.band-track { font-size: clamp(2.5rem, 7vw, 6.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; display: inline-block; }
.band-1 { top: 16%; background: var(--black); color: var(--orange); transform: rotate(-8deg); }
.band-2 { bottom: 16%; background: var(--white); color: var(--black); transform: rotate(6deg); }
.trial-card {
  position: relative; z-index: 2; background: var(--black); color: var(--white);
  padding: clamp(2rem, 5vw, 4rem); width: min(100%, 44rem);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.trial-card .eyebrow { color: var(--orange); }
.price { display: flex; align-items: baseline; gap: 0.6rem; color: var(--orange); font-weight: 800; letter-spacing: -0.05em; line-height: 0.85; }
.price-num { font-size: clamp(5rem, 16vw, 12rem); font-variant-numeric: tabular-nums; }
.price-unit { font-size: clamp(2rem, 5vw, 4rem); }
.price-what { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 700; margin-top: 1.5rem; }
.price-until { margin-top: 0.5rem; font-size: 1.15rem; color: var(--grey); }
.arrow { display: inline-block; color: var(--orange); }

/* ---------- 5. Idézet ---------- */
.quote { background: var(--white); padding: clamp(7rem, 20vh, 14rem) var(--pad); }
.quote blockquote p { font-size: clamp(2rem, 5.2vw, 5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; max-width: 20ch; }
.scrub-words .w { display: inline-block; opacity: 0.12; }
.no-js .scrub-words .w, .reduced .scrub-words .w { opacity: 1; }

/* ---------- 6. Hogyan: filmszalag ---------- */
.how { background: var(--black); color: var(--white); overflow: hidden; padding: 7rem 0 5rem; }
.how-head { padding: 0 var(--pad); margin-bottom: 3.5rem; }
.how-head .eyebrow { color: var(--orange); }
.how-head h2 { font-size: clamp(2.2rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }
.strip { position: relative; }
.strip-track {
  display: flex; gap: 0; width: max-content; padding: 0 var(--pad);
}
.frame {
  --perf: repeating-linear-gradient(90deg, transparent 0 14px, var(--black) 14px 30px);
  position: relative; width: clamp(280px, 34vw, 520px); flex-shrink: 0;
  background: #1b1612; padding: 2.4rem 0.9rem; border-right: 2px solid var(--black);
}
/* perforáció fent és lent */
.frame::before, .frame::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: var(--perf); border-radius: 2px;
}
.frame::before { top: 10px; }
.frame::after { bottom: 10px; }
.frame-edge { position: absolute; left: 1rem; right: 1rem; top: 26px; display: flex; justify-content: space-between; color: var(--orange); font-size: 0.6rem; opacity: 0.8; }
.frame-inner {
  aspect-ratio: 3 / 2; background: var(--orange); color: var(--black);
  padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; margin-top: 1rem;
}
.frame-no { position: absolute; top: 1rem; right: 1.25rem; font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.frame h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.frame p { margin-top: 0.4rem; max-width: 30ch; font-size: 0.98rem; }
.frame:nth-child(even) .frame-inner { background: var(--grey); }
.frame-end .frame-inner { background: var(--white); justify-content: center; align-items: center; }
.frame-ctas { gap: 1.2rem; }
@media (max-width: 760px) {
  /* rögzítéskor töltse ki a képernyőt, ne látsszon alatta a következő szakasz */
  .how { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 5rem 0 3rem; }
  .frame { width: 80vw; }
  /* a képkockaszám ne lógjon rá a címre */
  .frame-inner { aspect-ratio: auto; min-height: 15rem; padding: 4.8rem 1.25rem 1.25rem; }
  .frame-no { font-size: 3rem; top: 0.9rem; right: 1rem; }
}
.cta { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--black); color: var(--white); padding: 1rem 1.6rem; border-radius: 99px; font-weight: 600; }
.cta:hover { background: var(--orange); color: var(--black); }

/* ---------- 7. Szolgáltatások ---------- */
.services { background: var(--grey); padding: clamp(6rem, 16vh, 10rem) var(--pad); }
.svc-title { font-size: clamp(2.5rem, 7vw, 6.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 3rem; }
.svc { border-top: 1px solid var(--black); }
.svc:last-child { border-bottom: 1px solid var(--black); }
.svc-head {
  width: 100%; display: grid; grid-template-columns: 3rem 1fr auto 2rem; align-items: center; gap: 1rem;
  padding: 1.6rem 0; text-align: left; position: relative; overflow: hidden;
}
.svc-head::before { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); z-index: 0; }
.svc-head:hover::before, .svc-head[aria-expanded="true"]::before { transform: scaleY(1); }
.svc-head > * { position: relative; z-index: 1; }
.svc-name { font-size: clamp(1.4rem, 3.4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; transition: transform 0.5s var(--ease); }
.svc-head:hover .svc-name { transform: translateX(0.6rem); }
.svc-plus { width: 1.4rem; height: 1.4rem; position: relative; }
.svc-plus::before, .svc-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: currentColor; transition: transform 0.4s var(--ease); }
.svc-plus::after { transform: rotate(90deg); }
.svc-head[aria-expanded="true"] .svc-plus::after { transform: rotate(0deg); }
.svc-body { height: 0; overflow: hidden; }
.svc-body p { padding: 0 0 1.6rem 4rem; max-width: 60ch; }
@media (max-width: 600px) {
  .svc-head { grid-template-columns: 2rem 1fr 1.5rem; }
  .svc-price { grid-column: 2; grid-row: 2; }
  .svc-body p { padding-left: 3rem; }
}

/* ---------- 8. Kapcsolat ---------- */
.contact { position: relative; background: var(--orange); padding: clamp(7rem, 18vh, 12rem) var(--pad) 2rem; overflow: hidden; }
.contact-logos { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; pointer-events: none; opacity: 0.4; }
.contact-logos svg { width: 78vw; aspect-ratio: 1150 / 320; height: auto; flex-shrink: 0; fill: none; stroke: var(--black); stroke-width: 1.4; }
.contact-inner { position: relative; z-index: 1; }
.contact-title { font-size: clamp(3rem, 11vw, 11rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.88; margin-bottom: 4rem; }
.info { max-width: 56rem; }
.info-row { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--black); background: var(--orange); }
.info-row dd { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 500; line-height: 1.25; }
.link { display: inline-block; margin-top: 0.6rem; font-size: 1rem; border-bottom: 1px solid currentColor; }
/* helykitöltők: láthatóan jelölve, hogy ne maradjanak benne véletlenül */
.ph { background: repeating-linear-gradient(-45deg, rgba(0,0,0,0.08) 0 6px, transparent 6px 12px); outline: 1px dashed rgba(0,0,0,0.5); padding: 0 0.3em; }
.footer { position: relative; z-index: 1; margin-top: 8rem; padding-top: 1.2rem; border-top: 1px solid var(--black); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 600px) { .info-row { grid-template-columns: 1fr; gap: 0.3rem; } }

/* ---------- Csökkentett mozgás ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-hint span { animation: none; }
}
