:root {
  --bg: #070907;
  --bg-2: #0b0e0a;
  --line: rgba(198, 255, 62, 0.14);
  --text: #eef2e8;
  --dim: #87917f;
  --neon: #c6ff3e;
  --font-d: "Archivo", sans-serif;
  --font-m: "Space Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-d);
  line-height: 1.55;
  overflow-x: hidden;
}

::selection { background: var(--neon); color: #000; }

.mono { font-family: var(--font-m); font-size: 0.78rem; letter-spacing: 0.05em; }
.dim { color: var(--dim); }
.container { padding: 0 var(--pad); }
.kicker { color: var(--neon); text-transform: uppercase; margin-bottom: 18px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- egyedi kurzor ---------- */
@media (hover: hover) and (pointer: fine) {
  html:not(.fallback) body { cursor: none; }
  html:not(.fallback) a, html:not(.fallback) button { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 1000;
  border-radius: 50%;
  translate: -50% -50%;
}
.cursor-dot { width: 8px; height: 8px; background: var(--neon); }
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(198, 255, 62, 0.6);
  transition: scale 0.35s var(--ease), background 0.35s;
}
.cursor-ring.is-hover { scale: 1.7; background: rgba(198, 255, 62, 0.08); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
html.fallback .cursor-dot, html.fallback .cursor-ring { display: none; }

/* ---------- betöltő ---------- */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 900;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
}
.loader-mark { font-weight: 900; font-style: italic; font-size: 2.4rem; }
.loader-mark span { color: var(--neon); font-size: 0.55em; vertical-align: super; }
.loader-line {
  width: min(320px, 60vw); height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.loader-line span { display: block; width: 100%; height: 100%; background: var(--neon); transform: scaleX(0); transform-origin: 0 0; }
.loader-count { color: var(--dim); }
html.fallback .loader { display: none; }

/* ---------- szemcse ---------- */
.noise {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 800;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-2%,2%); }
  40% { transform: translate(2%,-1%); } 60% { transform: translate(-1%,-2%); }
  80% { transform: translate(1%,2%); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  z-index: 600;
  transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 7, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.hidden { transform: translateY(-110%); }
.nav-logo {
  font-weight: 900; font-style: italic; font-size: 1.35rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em;
  display: inline-block;
}
.nav-logo span { color: var(--neon); font-size: 0.6em; vertical-align: super; }
.nav-mid { color: var(--dim); text-transform: uppercase; }
.menu-btn {
  width: 52px; height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 9, 7, 0.5);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
}
.menu-btn span {
  display: block; width: 20px; height: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.menu-btn:hover span { background: var(--neon); }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- teljes képernyős menü ---------- */
.menu {
  position: fixed; inset: 0;
  background: var(--bg-2);
  z-index: 500;
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px var(--pad) 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: baseline; gap: 18px;
  color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: clamp(8px, 1.8vh, 18px) 0;
}
.menu-links i { color: var(--neon); font-style: normal; }
.menu-links b {
  font-weight: 900; font-style: italic;
  font-size: clamp(2rem, 7.5vh, 4.4rem);
  line-height: 1; letter-spacing: -0.02em;
  transition: color 0.25s, translate 0.35s var(--ease);
  display: inline-block;
}
.menu-links a:hover b { color: var(--neon); translate: 16px 0; }
.menu-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--dim); text-transform: uppercase;
}
.menu-foot a { color: var(--neon); text-decoration: none; }
html.fallback .menu { transition: clip-path 0.5s var(--ease), visibility 0.5s; }
html.fallback body.menu-open .menu, body.menu-open .menu.menu-ready-fallback { clip-path: inset(0 0 0% 0); visibility: visible; }

/* ---------- split betűk ---------- */
.split, [data-split] { display: inline-block; }
.split .char, [data-split] .char { display: inline-block; will-change: transform; }
.masked { overflow: hidden; padding-bottom: 0.08em; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--pad) 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -12%;
  background:
    radial-gradient(ellipse 45% 40% at 75% 30%, rgba(198, 255, 62, 0.1), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 84px 84px, 84px 84px;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 40%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 40%, black 25%, transparent 78%);
  will-change: transform;
}
.hero-wrap {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}
.hero-kicker { color: var(--neon); text-transform: uppercase; margin-bottom: 20px; }
.hero-title {
  font-size: clamp(3.6rem, 12.5vw, 11rem);
  font-weight: 900; font-style: italic;
  line-height: 0.88; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.hero-title .ht-line { display: block; }
.hero-title .outline .char {
  color: transparent;
  -webkit-text-stroke: 2px var(--neon);
  text-shadow: 0 0 46px rgba(198, 255, 62, 0.22);
}
.hero-sub { color: var(--dim); font-weight: 600; margin: 26px 0 34px; font-size: clamp(0.95rem, 1.8vw, 1.15rem); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-weight: 800; font-style: italic; text-transform: uppercase;
  letter-spacing: 0.03em; font-size: 0.92rem;
  color: #000; background: var(--neon);
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  will-change: transform;
}
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn.big { font-size: clamp(1rem, 2.6vw, 1.5rem); padding: 20px 46px; }

/* kártyapakli */
.stack { position: relative; height: clamp(300px, 46vw, 480px); }
.scard {
  position: absolute; inset: 0;
  margin: auto;
  width: min(78%, 300px); height: auto;
  will-change: transform;
}
.scard-ph {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.scard figcaption { margin-top: 10px; color: var(--dim); text-transform: uppercase; }
.g1 { background: linear-gradient(160deg, #131a0d, #202b10); }
.g2 { background: linear-gradient(160deg, #0d1a13, #10281f); }
.g3 { background: linear-gradient(160deg, #0d151a, #102228); }
.g4 { background: linear-gradient(160deg, #161a0d, #262b10); }
.g5 { background: linear-gradient(160deg, #1a130d, #2b2010); }
.g6 { background: linear-gradient(160deg, #140d1a, #1f1028); }
html.fallback .scard:nth-child(2) { transform: translate(18px, 14px) rotate(3deg) scale(0.95); }
html.fallback .scard:nth-child(3) { transform: translate(-14px, 26px) rotate(-6deg) scale(0.9); }
html.fallback .scard:nth-child(4) { opacity: 0; }

.hero-foot {
  position: absolute; bottom: 20px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--pad);
  color: var(--dim); text-transform: uppercase;
  z-index: 2;
}
.hero-foot-x { color: var(--neon); }

/* ---------- marquee ---------- */
.marquee {
  background: var(--neon); color: #000;
  overflow: hidden; padding: 13px 0;
  border-top: 2px solid #000; border-bottom: 2px solid #000;
  position: relative; z-index: 5;
}
.mq-track { display: inline-flex; white-space: nowrap; will-change: transform; }
.mq-track span { font-weight: 900; font-style: italic; font-size: 1.25rem; }
.mq-invert { background: var(--bg-2); color: var(--neon); border-color: var(--line); }
html.fallback .mq-track { animation: mq 18s linear infinite; }
@keyframes mq { to { transform: translateX(-33.333%); } }

/* ---------- szekció index számok ---------- */
section { position: relative; }
.idx {
  position: absolute;
  top: 0; right: var(--pad);
  font-size: clamp(7rem, 22vw, 18rem);
  font-weight: 900; font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(198, 255, 62, 0.1);
  pointer-events: none; user-select: none;
  z-index: 0;
}

.h2 {
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 900; font-style: italic;
  letter-spacing: -0.02em; line-height: 1;
  text-transform: uppercase;
  margin-bottom: 40px;
  position: relative; z-index: 1;
}

/* ---------- manifesztó ---------- */
.manifesto { padding: clamp(110px, 18vh, 200px) 0; }
.manifesto-text {
  font-size: clamp(1.5rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.manifesto-text .word { display: inline-block; }

/* ---------- két világ ---------- */
.worlds {
  display: flex;
  min-height: 72svh;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.world {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: clamp(28px, 5vw, 56px);
  transition: flex 0.7s var(--ease);
  border-right: 1px solid var(--line);
}
.world:last-child { border-right: 0; }
@media (hover: hover) { .worlds:hover .world:hover { flex: 1.7; } }
.w-day { background: linear-gradient(200deg, #141a0c 0%, var(--bg) 70%); }
.w-night { background: linear-gradient(160deg, #0c101a 0%, var(--bg) 70%); }
.world-inner { position: relative; z-index: 1; }
.world-emoji { font-size: clamp(2.4rem, 5vw, 4rem); display: block; margin-bottom: 14px; }
.world-title {
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  font-weight: 900; font-style: italic;
  line-height: 0.9; text-transform: uppercase;
  margin-bottom: 18px;
}
.world-title.outline .char { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.world ul { list-style: none; color: var(--dim); text-transform: uppercase; display: grid; gap: 6px; }

/* ---------- kedvencek (pin + tap to lock) ---------- */
.fav {
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.fav-track {
  display: flex; align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  padding: 0 var(--pad);
  will-change: transform;
}
.fav-intro { flex-shrink: 0; width: min(72vw, 460px); position: relative; }
.idx-in { position: absolute; top: -1.2em; right: auto; left: 0; }
.fcard {
  flex-shrink: 0;
  width: min(64vw, 300px);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M24 24l8 8m0-8l-8 8' stroke='%23c6ff3e' stroke-width='1' stroke-linecap='round' opacity='0.35'/%3E%3C/svg%3E"),
    linear-gradient(165deg, #10150c, #0b0e0a);
  color: var(--text);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: space-between;
  padding: 20px;
  text-align: left;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
  will-change: transform;
}
.fcard:hover { border-color: rgba(198, 255, 62, 0.55); box-shadow: 0 0 44px rgba(198, 255, 62, 0.12); }
.fcard-no { color: var(--dim); }
.fcard-emoji { font-size: clamp(3.4rem, 8vw, 5rem); align-self: center; }
.fcard-name {
  font-family: var(--font-d);
  font-weight: 900; font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: -0.01em;
}
.fcard-lock { color: var(--dim); text-transform: uppercase; font-size: 0.68rem; }
.fcard.locked { border-color: var(--neon); box-shadow: 0 0 50px rgba(198, 255, 62, 0.22); }
.fcard.locked .fcard-lock { color: var(--neon); }
.fcard.locked .fcard-lock::after { content: " ✓"; }
.fav-detail {
  margin-top: 34px;
  padding: 0 var(--pad);
  color: var(--neon);
  text-transform: uppercase;
  min-height: 1.4em;
}

/* ---------- számok ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(28px, 5vh, 52px) var(--pad);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.stat:last-child { border-right: 0; }
.num {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 900; font-style: italic;
  color: var(--neon); line-height: 1;
}
.stat .mono { text-transform: uppercase; }

/* ---------- galéria oszlopok ---------- */
.gallery { padding: clamp(100px, 16vh, 180px) 0 60px; overflow: hidden; }
.gcols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
  padding: 0 var(--pad);
  align-items: start;
}
.gcol { display: grid; gap: clamp(14px, 2vw, 28px); will-change: transform; }
.gcol:nth-child(2) { margin-top: clamp(40px, 8vw, 110px); }
.tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(2.6rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.45s var(--ease);
}
.tile:hover { border-color: var(--neon); transform: scale(1.02); }
.tile figcaption {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 0.68rem; color: var(--text);
  text-transform: uppercase;
  opacity: 0.85;
}

/* videó-kinézet: play gomb + villogó REC + timestamp */
.tile .tile-emoji { filter: saturate(0.85); }
.tile .play {
  position: absolute;
  width: 54px; height: 54px;
  border: 1px solid rgba(238, 242, 232, 0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(7, 9, 7, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: scale 0.35s var(--ease), border-color 0.3s, color 0.3s;
  padding-left: 4px;
}
.tile:hover .play { scale: 1.15; border-color: var(--neon); color: var(--neon); }
.tile .rec {
  position: absolute; top: 10px; right: 12px;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--text); opacity: 0.85;
}
.tile .rec i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ff3b3b;
  animation: recblink 1.4s steps(2) infinite;
}
@keyframes recblink { 50% { opacity: 0.15; } }
.gallery-note { margin: 40px var(--pad) 0; text-transform: uppercase; }

/* ---------- social ---------- */
.social { padding: clamp(100px, 16vh, 180px) 0 0; }
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(18px, 3.6vh, 32px) var(--pad);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}
.row::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--neon);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.row:hover::before { transform: scaleY(1); }
.row:hover { color: #000; }
.row > * { position: relative; z-index: 1; }
.row-name {
  font-size: clamp(1.7rem, 5.5vw, 3.6rem);
  font-weight: 900; font-style: italic;
  letter-spacing: -0.02em; line-height: 1;
  transition: translate 0.35s var(--ease);
}
.row:hover .row-name { translate: 14px 0; }
.row-handle { opacity: 0.7; }
.row-arrow { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 900; transition: transform 0.35s var(--ease); }
.row:hover .row-arrow { transform: translate(5px, -5px) rotate(45deg); }

/* ---------- kapcsolat + footer ---------- */
.contact {
  padding: clamp(110px, 20vh, 220px) var(--pad);
  text-align: center;
  background: radial-gradient(ellipse 70% 55% at 50% 60%, rgba(198, 255, 62, 0.08), transparent);
}
.contact-title {
  font-size: clamp(2.4rem, 8.5vw, 7rem);
  font-weight: 900; font-style: italic;
  letter-spacing: -0.03em; line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.footer { border-top: 1px solid var(--line); }
.footer-name {
  padding: clamp(20px, 4vh, 50px) var(--pad) 0;
  text-align: center;
  overflow: hidden;
}
.footer-name span {
  font-size: clamp(3rem, 12.5vw, 12rem);
  font-weight: 900; font-style: italic;
  letter-spacing: -0.03em; line-height: 0.95;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(198, 255, 62, 0.45);
  transition: color 0.5s;
}
.footer-name:hover span { color: var(--neon); -webkit-text-stroke-color: var(--neon); }
.footer-meta {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  padding: 22px var(--pad) 26px;
  text-transform: uppercase;
}
.footer-meta a { color: var(--neon); text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .stack { height: clamp(300px, 70vw, 420px); margin-top: 10px; }
  .worlds { flex-direction: column; }
  .world { border-right: 0; border-bottom: 1px solid var(--line); min-height: 44svh; }
  .world:last-child { border-bottom: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .row-handle { display: none; }
  .row { grid-template-columns: 1fr auto; }
  .nav-mid { display: none; }
  .gcols { grid-template-columns: repeat(2, 1fr); }
  .gcol:nth-child(3) { display: none; }
}

/* ---------- fallback (nincs GSAP) ---------- */
html.fallback [data-split] .char { transform: none; }
html.fallback .manifesto-text .word { opacity: 1; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .noise, .mq-track { animation: none !important; }
  .loader { display: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .fav { height: auto; padding: 80px 0; }
  .fav-track { flex-wrap: wrap; transform: none !important; }
  * { transition-duration: 0.01s !important; }
}
