/* =========================================================
   NOX Atelier — tetováló portfólió sablon
   Színek, betűk, térközök: a :root-ban állíthatók.
   ========================================================= */

:root {
  --ink: #0b0b0b;
  --ink-2: #121212;
  --ink-3: #1a1a1a;
  --bone: #ebe6dc;
  --bone-2: #bdb7ac;
  --mute: #7f7a72;
  --line: rgba(235, 230, 220, 0.14);
  --blood: #e0262f;

  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;

  --gut: clamp(16px, 2.6vw, 44px);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.js body.is-loading { overflow: hidden; }
main { position: relative; z-index: 1; overflow-x: clip; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--blood); color: var(--bone); }
:focus-visible { outline: 1px solid var(--blood); outline-offset: 4px; }
html.cursor-on, html.cursor-on * { cursor: none !important; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: fixed; left: var(--gut); top: -100px; z-index: 10001;
  background: var(--bone); color: var(--ink); padding: 12px 18px; font-size: 14px;
}
.skip:focus { top: var(--gut); }

/* ---------- Tipó ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7.6vw, 8.6rem);
  line-height: .9;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.h2 em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.02em;
  font-size: 1.12em;
  line-height: .8;
}
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .06em .24em; margin: -.16em -.06em -.24em; }
.wi { display: inline-block; will-change: transform; }

.line { display: block; overflow: hidden; padding: .16em 0 .06em; margin: -.16em 0 -.06em; }
.line--serif { padding-bottom: .26em; margin-bottom: -.26em; }
.line__inner { display: inline-block; will-change: transform; }
.line--serif em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  text-transform: none; letter-spacing: -.03em;
  font-size: 1.32em; line-height: .66; display: inline-block; padding: 0 .06em;
}

.link { border-bottom: 1px solid var(--line); transition: border-color .3s, color .3s; }
.link:hover { border-color: var(--blood); color: var(--blood); }

.btn-line {
  display: inline-flex; align-items: center; gap: 16px;
  border: 1px solid var(--bone); border-radius: 99px; padding: 18px 28px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn-line::before { content: ""; position: absolute; inset: 0; background: var(--bone); transform: translateY(101%); transition: transform .6s var(--ease); z-index: -1; border-radius: inherit; }
.btn-line:hover { color: var(--ink); }
.btn-line:hover::before { transform: translateY(0); }
.btn-line i { font-style: normal; font-size: 16px; }

/* ---------- Szemcse ---------- */
.grain {
  /* 130%: a legnagyobb eltolás 9%, ennyi ráhagyás bőven fedi. A korábbi 200%-os réteg négy képernyőnyi
     textúrát tartott a memóriában, és minden lépésnél ennyit kellett újra összeállítani. */
  position: fixed; inset: -15%; width: 130%; height: 130%;
  z-index: 9500; pointer-events: none; opacity: .07; will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.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 1.2s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-6%, 4%); }
  40%  { transform: translate(5%, -7%); }
  60%  { transform: translate(-9%, -3%); }
  80%  { transform: translate(7%, 6%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Kurzor ---------- */
/* tetoválógép — a tű hegye (SVG 25,91) pontosan az egérpozíción; az egész gép kissé jobbra dől, mint a kézben */
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; display: none; transition: opacity .3s; }
html.cursor-on .cursor { display: block; }
.cursor__machine {
  position: absolute; left: 0; top: 0; width: 46px; height: 70px;
  margin: -69.2px 0 0 -19.2px;                 /* tűhegy (19.2px, 69.2px) a (0,0)-ban */
  transform-origin: 19.2px 69.2px;
  will-change: transform;
}
.cursor__svg { display: block; overflow: visible; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); transition: transform .45s var(--ease-out), opacity .3s; transform-origin: 19.2px 69.2px; }
.m-fill { fill: var(--bone); }
.m-grip { fill: #c9c2b5; }
.m-wire { stroke: var(--ink); stroke-width: 1.1; opacity: .55; }
.m-line, .m-spring { stroke: var(--bone); stroke-width: 2.4; }
.m-needle path { stroke: var(--blood); stroke-width: 1.6; }
.m-needle { transform-origin: 25px 80px; }
.cursor.is-buzz .cursor__svg { animation: buzz .07s linear infinite; }
.cursor.is-buzz .m-needle { animation: needlePulse .09s linear infinite; }
@keyframes buzz { 0% { translate: 0 0; } 25% { translate: .6px -.5px; } 50% { translate: -.5px .4px; } 75% { translate: .4px .6px; } 100% { translate: 0 0; } }
@keyframes needlePulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
.cursor.is-down .cursor__svg { transform: translateY(5px) scale(.94); }
.cursor.is-hidden .cursor__svg { opacity: 0; transform: scale(.4); }
.cursor.is-out { opacity: 0; }
.cursor__label {
  position: absolute; left: 22px; top: 6px;
  background: var(--blood); color: var(--bone);
  font-size: 12px; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
  padding: 6px 11px; border-radius: 99px;
  opacity: 0; transform: translateX(-8px) scale(.7); transform-origin: left center;
  transition: opacity .3s, transform .45s var(--ease-out);
}
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
/* kattintáskor a bőrön maradó tintapötty */
.ink-dot {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--blood); mix-blend-mode: screen;
}

/* ---------- Betöltő ---------- */
.loader { position: fixed; inset: 0; z-index: 9000; pointer-events: none; color: var(--ink); }
.no-js .loader { display: none; }
.loader__panel { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--bone); }
.loader__panel--top { top: 0; }
.loader__panel--bottom { bottom: 0; }
.loader__inner { position: absolute; inset: 0; padding: var(--gut); display: grid; grid-template-rows: 1fr auto auto; grid-template-columns: 1fr auto; }
.loader__words {
  grid-row: 2; align-self: end; position: relative; height: 1.1em; overflow: hidden; width: 60vw;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.1;
}
.loader__words span { position: absolute; left: 0; top: 0; }
.loader__count { grid-row: 2; grid-column: 2; align-self: end; font-family: var(--f-display); font-size: clamp(7rem, 24vw, 24rem); line-height: .78; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.loader__bar { grid-row: 3; grid-column: 1 / -1; height: 1px; background: rgba(11, 11, 11, .15); margin-top: 18px; position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--blood); transform: scaleX(0); transform-origin: left; }

/* ---------- Navigáció ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  padding: 20px var(--gut); color: var(--bone); mix-blend-mode: difference;
  transition: transform .7s var(--ease);
}
.nav.is-hidden { transform: translateY(-120%); }
.nav__logo { font-family: var(--f-display); font-size: 30px; line-height: 1; letter-spacing: .02em; }
.nav__logo sup { font-family: var(--f-sans); font-size: 10px; vertical-align: top; margin-left: 2px; }
.nav__links { display: flex; gap: clamp(16px, 2vw, 32px); margin-left: auto; font-size: 14px; }
.nav__cta { display: inline-block; border: 1px solid currentColor; border-radius: 99px; padding: 10px 20px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-family: var(--f-mono); }
.nav__cta span { display: inline-block; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 26px; }
.menu-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll span { display: inline-block; position: relative; transition: transform .6s var(--ease); }
.roll span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; font-family: var(--f-serif); font-style: italic; font-size: 1.12em; letter-spacing: -.01em; }
.roll:hover span, .roll:focus-visible span { transform: translateY(-100%); }

.menu {
  position: fixed; inset: 0; z-index: 700; background: var(--bone); color: var(--ink);
  clip-path: circle(0% at 100% 0%); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px var(--gut) var(--gut); pointer-events: none;
}
.menu-open .menu { pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(3rem, 14vw, 7rem); line-height: .98; border-bottom: 1px solid rgba(11,11,11,.12); padding: 4px 0; }

.progress { position: fixed; right: 14px; top: 50%; height: 140px; width: 1px; margin-top: -70px; background: var(--line); z-index: 600; overflow: hidden; }
.progress i { position: absolute; inset: 0; background: var(--blood); transform: scaleY(0); transform-origin: top; }

/* =========================================================
   FÉNYPENGE — a Szent Mihály lándzsájából, utána háttérmotívum
   ========================================================= */
.sword { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0; mix-blend-mode: screen; will-change: opacity; --g: 1; --aura: 0; }
/* A háttérben sötét lap fölött ül: ott a screen keverés látványra ugyanaz, mint a sima, viszont
   minden képkockán a teljes képernyőt kellene vele újra összekeverni. */
.sword.is-behind { z-index: 0; mix-blend-mode: normal; }
.sword > div { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.sword__blade, .sword__handle, .sword__guard {
  height: 4px; border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 244, 222, .95), #fffaf0 40%, rgba(255, 238, 210, .9) 85%, rgba(255, 230, 190, 0));
  box-shadow:
    0 0 calc(3px + 9px * var(--g)) rgba(255, 255, 255, .95),
    0 0 calc(8px + 26px * var(--g)) rgba(255, 214, 150, .8),
    0 0 calc(24px + 80px * var(--g)) rgba(255, 150, 60, .5);
}
.sword__blade { overflow: hidden; }
.sword__blade i {
  position: absolute; top: 0; bottom: 0; left: 0; width: 16%;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff, rgba(255,255,255,0));
  animation: glint 5s var(--ease) infinite;
}
@keyframes glint { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(700%); } }
.sword__handle { opacity: .75; background: linear-gradient(90deg, rgba(255, 236, 205, .5), rgba(255, 244, 222, .95)); }
.sword__guard { background: rgba(255, 246, 228, .95); }
.sword__aura {
  width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 160, .42) 0%, rgba(255, 160, 70, .16) 30%, rgba(255, 120, 40, 0) 65%);
  opacity: var(--aura);
}

/* =========================================================
   ZOOM-UTAZÁS (jz) — nyitány és "Mélyebbre"
   ========================================================= */
.jz { position: relative; }
.jz__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.jz__layer {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  overflow: hidden; transform-origin: 0 0; visibility: hidden; background: var(--ink);
}
.jz__layer:first-child { visibility: visible; }
.jz__layer.is-entering {
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 calc(var(--feather, 100) * 1%), transparent 100%);
          mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 calc(var(--feather, 100) * 1%), transparent 100%);
}
img.jz__fit { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.jz__stencil, .jz__ink { display: none; }
.jz__stencil { filter: url(#stencil); }
.jz__ink { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.jz__layer.is-inking .jz__stencil, .jz__layer.is-inking .jz__ink { display: block; }
.jz__layer.is-inking .jz__img { visibility: hidden; }

.jz__title {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gut);
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.4rem, 13.4vw, 17rem); line-height: .86;
  text-transform: uppercase; letter-spacing: -.01em;
  color: var(--bone); mix-blend-mode: difference; pointer-events: none;
  transform-origin: 50% 50%;
}
.jz__title .line:nth-child(2) { padding-left: 27vw; }
.jz__title .line:nth-child(3) { padding-left: 46vw; }

.jz__cap { position: absolute; z-index: 3; left: var(--gut); bottom: 40px; pointer-events: none; }
.jz__cap--open { left: auto; right: var(--gut); text-align: right; }
.jz__cap-title { display: block; font-family: var(--f-serif); font-style: italic; font-size: clamp(2.2rem, 4.6vw, 5rem); line-height: .95; letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.jz__cap-meta { display: block; margin-top: 8px; font-size: 15px; color: var(--bone-2); text-shadow: 0 1px 16px rgba(0,0,0,.6); }
.jz__caps .jz__cap { opacity: 0; }

.jz__needle { position: absolute; z-index: 3; left: 50%; bottom: 26px; width: 1px; height: 64px; background: var(--line); overflow: hidden; }
.jz__needle i { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--blood); animation: needle 1.8s var(--ease) infinite; }
@keyframes needle { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

.jz__statement {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 var(--gut);
}
.jz__statement-a { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2.6rem, 7.4vw, 8.4rem); line-height: .9; }
.jz__statement-b { font-family: var(--f-serif); font-size: clamp(3rem, 9vw, 10.4rem); line-height: .9; letter-spacing: -.02em; }

.jz__layer--end { background: #050505; display: flex; align-items: center; justify-content: center; }
.jz__end { display: flex; flex-direction: column; align-items: center; gap: 44px; text-align: center; padding: 0 var(--gut); }
.jz__end-text { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(3rem, 9vw, 10rem); line-height: .9; }
.jz__end-text em { display: block; font-family: var(--f-serif); text-transform: none; font-size: 1.12em; color: var(--blood); letter-spacing: -.02em; }

/* =========================================================
   MUNKÁK — vízszintes galéria
   ========================================================= */
.works { position: relative; }
.works__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 84px 0 44px; overflow: hidden; }
.works__head { padding: 0 var(--gut); margin-bottom: 5vh; }
.works__title { font-size: clamp(2.6rem, 6vw, 6.8rem); }
.works__track { display: flex; align-items: center; gap: 4.5vw; padding: 0 var(--gut); width: max-content; height: 64vh; will-change: transform; }
.work { position: relative; flex-shrink: 0; outline: none; transition: opacity .6s var(--ease); }
.work__media { position: relative; overflow: hidden; background: var(--ink-3); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: filter .4s; }
.work__media img.is-ripple { filter: url(#ripple); }
.work__media::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .5s; pointer-events: none; }
.work:focus-visible .work__media::after { border-color: var(--blood); }
.work--tall { align-self: flex-start; }
.work--tall .work__media { height: 57vh; aspect-ratio: 2 / 3; }
.work--mid .work__media { height: 50vh; aspect-ratio: 4 / 5; }
.work--low { align-self: flex-end; }
.work--low .work__media { height: 50vh; aspect-ratio: 2 / 3; }
.work--wide .work__media { height: 46vh; aspect-ratio: 3 / 2; }
.work--square { align-self: flex-start; }
.work--square .work__media { height: 44vh; aspect-ratio: 1; }
.work__info { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 14px; }
.work__name { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.6rem); line-height: 1; }
.work__meta { font-size: 14px; color: var(--bone-2); }
@media (hover: hover) { .works__track:hover .work:not(:hover) { opacity: .28; } }
.works__end { flex-shrink: 0; width: min(46vw, 640px); padding-left: 3vw; display: flex; flex-direction: column; gap: 36px; align-items: flex-start; }
.works__end-big { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(3rem, 6vw, 7rem); line-height: .92; }
.works__end-big em { font-family: var(--f-serif); text-transform: none; font-weight: 400; color: var(--blood); font-size: 1.14em; }
.works__bar { margin: 5vh var(--gut) 0; height: 1px; background: var(--line); position: relative; overflow: hidden; flex-shrink: 0; }
.works__bar i { position: absolute; inset: 0; background: var(--bone); transform: scaleX(0); transform-origin: left; }

/* =========================================================
   GALÉRIA-FAL
   ========================================================= */
.wall { padding: 20vh var(--gut) 14vh; overflow: hidden; }
.wall__title { text-align: center; margin-bottom: 12vh; }
.wall__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 32px); align-items: start; }
.wall__col { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 32px); will-change: transform; }
.wall__col:nth-child(2) { margin-top: 14vh; }
.wall__col:nth-child(3) { margin-top: 5vh; }
.wall__item { position: relative; overflow: hidden; margin: 0; background: var(--ink-3); outline: none; }
.wall__item img { width: 100%; height: auto; transition: transform 1.4s var(--ease-out); }
.wall__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 45%); opacity: 0; transition: opacity .6s; pointer-events: none; }
.wall__item figcaption {
  position: absolute; left: 20px; bottom: 16px; z-index: 1;
  font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 2.2vw, 2.4rem); line-height: 1;
  opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .7s var(--ease-out);
}
.wall__item:focus-visible { outline: 1px solid var(--blood); outline-offset: 4px; }
@media (hover: hover) {
  .wall__item:hover img { transform: scale(1.06); }
  .wall__item:hover::after, .wall__item:hover figcaption { opacity: 1; }
  .wall__item:hover figcaption { transform: none; }
}

/* =========================================================
   MINDÖRÖKKÉ
   ========================================================= */
.forever { position: relative; background: var(--ink); }
.forever__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: var(--ink); }
.forever__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.forever__mask { position: absolute; inset: 0; background: var(--ink); color: #fff; mix-blend-mode: multiply; display: flex; align-items: center; justify-content: center; }
.forever__word { font-family: var(--f-display); font-size: 19.5vw; line-height: 1; letter-spacing: -.005em; white-space: nowrap; text-transform: uppercase; }
.forever__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,11,.9) 0%, rgba(11,11,11,.3) 45%, rgba(11,11,11,.1) 100%); opacity: 0; pointer-events: none; }
.forever__caption { position: absolute; left: var(--gut); right: var(--gut); bottom: 9vh; z-index: 2; }

/* =========================================================
   STÍLUSOK
   ========================================================= */
.styles { padding: 20vh var(--gut) 14vh; position: relative; }
.styles__title { text-align: right; margin-bottom: 8vh; }
.styles__list { list-style: none; border-top: 1px solid var(--line); }
.style {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 70px 1.25fr 1fr; align-items: center; gap: 2rem;
  padding: clamp(18px, 2.2vw, 34px) 0; border-bottom: 1px solid var(--line);
  transition: color .5s var(--ease);
}
.style::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -1); background: var(--bone); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); }
.style__num { font-family: var(--f-mono); font-size: 12px; color: var(--mute); transition: color .5s; }
.style__name { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2.4rem, 6.4vw, 7rem); line-height: .95; transition: transform .7s var(--ease); }
.style__desc { font-size: 15px; max-width: 36ch; color: var(--bone-2); transition: color .5s; }
.style__thumb { display: none; }
@media (hover: hover) {
  .style:hover { color: var(--ink); }
  .style:hover::before { transform: scaleY(1); transform-origin: top; }
  .style:hover .style__name { transform: translateX(3vw) skewX(-8deg); }
  .style:hover .style__desc, .style:hover .style__num { color: var(--ink); }
}
.styles__float { position: fixed; left: 0; top: 0; z-index: 60; width: min(24vw, 340px); aspect-ratio: 3 / 4; pointer-events: none; }
.styles__float-inner { width: 100%; height: 100%; overflow: hidden; clip-path: inset(50% 0% 50% 0%); }
.styles__float-inner img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 900px) { .styles__float { display: none; } }

/* =========================================================
   STENCIL → BŐR
   ========================================================= */
.compare { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6vw; align-items: center; padding: 16vh var(--gut); }
.compare__text .h2 { margin-bottom: 28px; }
.compare__text p { max-width: 40ch; color: var(--bone-2); font-size: 1.05rem; }
.compare__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-3); --pos: 50%; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare__ink, .compare__stencil img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* clip-path helyett két ellentétes eltolás: a stencilt rajzoló SVG-szűrő (elmosás + élkeresés) így
   egyszer fut le, húzáskor csak a rétegek mozognak. A clip-path minden képkockán újrafuttatta. */
.compare__stencil { position: absolute; inset: 0; overflow: hidden; transform: translate3d(calc(var(--pos) - 100%), 0, 0); will-change: transform; }
.compare__stencil img { filter: url(#stencilClean); transform: translate3d(calc(100% - var(--pos)), 0, 0); will-change: transform; }
.compare__handle { position: absolute; inset: 0; pointer-events: none; z-index: 2; transform: translate3d(calc(var(--pos) - 50%), 0, 0); will-change: transform; }
.compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--bone); }
.compare__knob { position: absolute; top: 50%; left: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--blood); color: var(--bone); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.compare__knob i { font-style: normal; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; z-index: 3; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare__frame:focus-within { outline: 1px solid var(--blood); outline-offset: 6px; }

/* =========================================================
   SÖTÉTKAMRA
   ========================================================= */
.darkroom { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #050505; --x: 50%; --y: 50%; --r: 180px; touch-action: pan-y; }
.darkroom__ghost, .darkroom__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.darkroom__ghost { z-index: 1; opacity: .045; filter: grayscale(1) blur(2px); }
/* A zseblámpa egy lyukas, sötét fátyol a kép fölött. Korábban a kép mask-image-ét írtuk át minden
   képkockán, ettől a teljes képernyős fotó folyamatosan újrafestődött. Most a fátyol egyszer
   rajzolódik ki, és csak eltolás + nagyítás mozgatja (kompozitor), a kép érintetlen marad. */
.darkroom__spot {
  --s: 1024px;
  position: absolute; left: 0; top: 0; width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: radial-gradient(circle 48px at 50% 50%, rgba(5,5,5,0) 0%, rgba(5,5,5,.1) 35%, #050505 100%);
  pointer-events: none; opacity: 0; will-change: transform;
}
.darkroom.is-live .darkroom__spot { opacity: 1; }
.darkroom__text { position: absolute; left: var(--gut); bottom: 9vh; z-index: 2; pointer-events: none; mix-blend-mode: difference; }
.darkroom__text .h2 { margin-bottom: 18px; }
.darkroom__hint { font-size: 14px; color: var(--bone-2); }
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }
.darkroom__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; }

/* =========================================================
   A MŰVÉSZ
   ========================================================= */
.artist { display: grid; grid-template-columns: 5fr 7fr; gap: 6vw; padding: 20vh var(--gut) 16vh; }
.artist__media { aspect-ratio: 2 / 3; overflow: hidden; align-self: start; position: sticky; top: 12vh; }
.artist__media img, .artist__wide img { width: 100%; height: 100%; object-fit: cover; }
.artist__name { font-size: clamp(3.6rem, 9.4vw, 11rem); }
.artist__lead { font-size: clamp(1.4rem, 2.3vw, 2.4rem); line-height: 1.2; font-weight: 300; letter-spacing: -.025em; margin: 5vh 0 3vh; max-width: 28ch; }
.artist__list { list-style: none; margin: 6vh 0; border-top: 1px solid var(--line); }
.artist__list li { display: flex; gap: 2rem; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px; transition: padding .5s var(--ease), color .4s; }
.artist__list li:hover { padding-left: 14px; color: var(--blood); }
.artist__list li span:first-child { color: var(--mute); min-width: 48px; }
.artist__wide { aspect-ratio: 16 / 9; overflow: hidden; }

/* =========================================================
   GYIK
   ========================================================= */
.faq { display: grid; grid-template-columns: 1fr 1.25fr; gap: 6vw; padding: 14vh var(--gut) 16vh; }
.faq__title { font-size: clamp(2.6rem, 5.4vw, 6rem); align-self: start; }
.faq__list { border-top: 1px solid var(--line); align-self: start; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-size: clamp(1.25rem, 2vw, 2rem); font-weight: 300; letter-spacing: -.02em; cursor: pointer; transition: padding .5s var(--ease), color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { padding-left: 12px; }
.qa summary i { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .6s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa.is-open summary i::after { transform: rotate(0deg); }
.qa.is-open summary i::before { transform: rotate(180deg); }
.qa.is-open summary { color: var(--blood); }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 0 30px; color: var(--bone-2); max-width: 60ch; font-size: 1.02rem; }

/* =========================================================
   FOGLALÁS
   ========================================================= */
.booking { padding: 16vh var(--gut) 14vh; }
.booking__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(4rem, 15.5vw, 19rem); line-height: .84; letter-spacing: -.01em; margin-bottom: 10vh; }
.booking__title .line:nth-child(2) { padding-left: 22vw; }
.booking__title .line:nth-child(3) { text-align: right; }
.booking__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 7vw; }
.booking__lead { font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1.25; font-weight: 300; letter-spacing: -.02em; max-width: 24ch; }
.booking__lead b { font-weight: 400; font-family: var(--f-serif); font-style: italic; font-size: 1.15em; }
.booking__slots { display: inline-block; font-family: var(--f-display); color: var(--blood); font-size: 1.8em; line-height: 1; vertical-align: -0.12em; font-variant-numeric: tabular-nums; }
.booking__contact { margin-top: 6vh; line-height: 1.9; color: var(--bone-2); }

.form { display: grid; gap: 34px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--bone); font: inherit; font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 300; padding: 28px 0 12px; outline: none; resize: vertical; }
.field textarea { min-height: 140px; }
.field label { position: absolute; left: 0; top: 28px; color: var(--mute); pointer-events: none; font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 300; transform-origin: left top; transition: transform .5s var(--ease-out), color .4s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-26px) scale(.58); color: var(--bone-2); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bone); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field.is-error::after { background: var(--blood); transform: scaleX(1); }
.field.is-error label { color: var(--blood); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; transition: background-color .4s var(--ease), color .4s, border-color .4s; cursor: pointer; }
.chips label:hover span { border-color: var(--bone); }
.chips input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chips input:focus-visible + span { outline: 1px solid var(--blood); outline-offset: 3px; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 6px; }
.form__status { font-size: 15px; color: var(--bone); max-width: 36ch; min-height: 1.4em; }
.form__status.is-error { color: var(--blood); }
.form__submit { position: relative; flex-shrink: 0; width: clamp(120px, 12vw, 168px); aspect-ratio: 1; border-radius: 50%; background: var(--blood); color: var(--bone); font-family: var(--f-display); font-size: clamp(18px, 1.6vw, 24px); text-transform: uppercase; letter-spacing: .03em; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.form__submit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--bone); transform: scale(0); transition: transform .6s var(--ease); z-index: -1; }
.form__submit:hover { color: var(--ink); }
.form__submit:hover::before { transform: scale(1.02); }
.form__submit-text { display: inline-block; }

/* =========================================================
   LÁBLÉC
   ========================================================= */
.footer { position: relative; z-index: 1; padding: 10vh var(--gut) 40px; border-top: 1px solid var(--line); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo { font-family: var(--f-display); font-size: 40px; line-height: 1; }
.footer__logo sup { font-family: var(--f-sans); font-size: 11px; vertical-align: top; margin-left: 2px; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.footer__up { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 14px 22px; font-size: 14px; transition: border-color .3s, background-color .4s, color .4s; }
.footer__up span { display: inline-block; }
.footer__up:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.footer__credits { margin-top: 8vh; font-size: 12px; line-height: 1.7; color: var(--mute); max-width: 90ch; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: 1.25fr 1fr; visibility: hidden; pointer-events: none; }
.lightbox.is-open { visibility: visible; pointer-events: auto; }
.lightbox__bg { position: absolute; inset: 0; background: var(--ink-2); clip-path: circle(0% at 50% 50%); }
.lightbox__media { position: relative; overflow: hidden; height: 100vh; height: 100svh; clip-path: inset(100% 0 0 0); }
.lightbox__media img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__info { position: relative; padding: 12vh 4vw 6vh; display: flex; flex-direction: column; overflow-y: auto; }
.lightbox__num { font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.lightbox__title { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(3.4rem, 8vw, 9.4rem); line-height: .88; margin: 2vh 0 4vh; }
.lightbox__desc { font-size: 1.12rem; line-height: 1.55; color: var(--bone-2); max-width: 40ch; }
.lightbox__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: auto; padding-top: 4vh; border-top: 1px solid var(--line); }
.lightbox__meta dt { font-size: 13px; color: var(--mute); }
.lightbox__meta dd { margin-top: 4px; font-size: 1.1rem; }
.lightbox__nav { display: flex; justify-content: space-between; margin-top: 5vh; }
.lightbox__nav button, .lightbox__close { font-size: 14px; padding: 8px 0; transition: color .3s; }
.lightbox__nav button:hover, .lightbox__close:hover { color: var(--blood); }
.lightbox__close { position: absolute; top: 22px; right: var(--gut); display: flex; gap: 10px; align-items: center; z-index: 2; }
.lightbox__close i { font-style: normal; }
.js .lightbox__info > *, .js .lightbox__close { opacity: 0; }

/* =========================================================
   RESZPONZÍV
   ========================================================= */
@media (max-width: 1100px) {
  .style { grid-template-columns: 50px 1fr; }
  .style__desc { grid-column: 2; }
}

@media (max-width: 900px) {
  .nav { padding: 14px var(--gut); }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; padding: 9px 16px; }
  .nav__burger { display: block; margin-right: -10px; }
  .progress { display: none; }

  .jz__title { font-size: 18vw; justify-content: flex-start; padding-top: 22vh; }
  .jz__title .line:nth-child(2) { padding-left: 14vw; }
  .jz__title .line:nth-child(3) { padding-left: 30vw; }
  .jz__cap { bottom: 28px; }
  .jz__needle { display: none; }

  .works__pin { height: auto; padding: 14vh 0 6vh; overflow: visible; }
  .works__track { flex-direction: column; width: auto; height: auto; gap: 10vh; align-items: stretch; }
  .work, .work--tall, .work--low, .work--square { align-self: stretch; width: 86%; }
  .work:nth-child(even) { align-self: flex-end; }
  .work .work__media { height: auto; width: 100%; }
  .works__end { width: auto; padding: 4vh 0 0; }
  .works__bar { display: none; }

  .wall { padding: 14vh 12px 10vh; }
  .wall__cols { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wall__col { gap: 12px; }
  .wall__col:nth-child(2) { margin-top: 10vh; }
  .wall__item figcaption { opacity: 1; transform: none; left: 12px; bottom: 10px; font-size: 1.3rem; }
  .wall__item::after { opacity: .8; }

  .forever__caption { bottom: 7vh; }

  .styles { padding: 14vh var(--gut) 10vh; }
  .styles__title { text-align: left; }
  .style { grid-template-columns: 30px 1fr 72px; gap: 6px 14px; }
  .style__num { grid-row: 1 / 3; align-self: start; padding-top: 10px; }
  .style__name { grid-column: 2; grid-row: 1; }
  .style__desc { grid-column: 2; grid-row: 2; font-size: 14px; }
  .style__thumb { display: block; grid-column: 3; grid-row: 1 / 3; width: 72px; height: 92px; object-fit: cover; }

  .compare, .artist, .faq, .booking__grid { grid-template-columns: 1fr; }
  .compare { padding: 12vh var(--gut); gap: 5vh; }
  .artist { padding: 14vh var(--gut) 10vh; gap: 6vh; }
  .artist__media { position: relative; top: 0; width: 86%; }
  .faq { padding: 12vh var(--gut); gap: 5vh; }
  .booking__title .line:nth-child(2) { padding-left: 10vw; }
  .booking__grid { gap: 8vh; }

  .lightbox { grid-template-columns: 1fr; grid-template-rows: 52svh 1fr; }
  .lightbox__media { height: 52svh; }
  .lightbox__info { padding: 5vh var(--gut); }
  .lightbox__close { top: 14px; background: rgba(11,11,11,.86); padding: 10px 14px; border-radius: 99px; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column-reverse; align-items: flex-start; }
  .loader__words { width: 100%; }
  .loader__count { grid-row: 1; grid-column: 1 / -1; align-self: end; justify-self: end; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   KEVESEBB MOZGÁS
   ========================================================= */
/* Érintőképernyőn a szemcse áll: ott minden folyamatos animáció akkumulátort visz */
@media (hover: none) { .grain { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .darkroom__spot { display: none; }
}
