/* ==========================================================
   Védia – galéria
   A színek a "Lila áramlás" festményből: éjkék-lila alap,
   türkiz sáv, korall festékáramlás, narancs napkorong, szürke arc.
   ========================================================== */

@font-face { font-family: "Unbounded"; font-weight: 400; font-display: swap; src: url(fonts/unbounded-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 400; font-display: swap; src: url(fonts/unbounded-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(fonts/unbounded-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(fonts/unbounded-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(fonts/unbounded-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(fonts/unbounded-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url(fonts/onest-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url(fonts/onest-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* paletta a festményből */
  --night: #18122f;        /* sötét sáv */
  --night-2: #221a45;      /* emelt felület */
  --violet: #4a2e8e;       /* lila mező */
  --violet-deep: #2b1d66;
  --teal: #2b8a83;         /* türkiz sáv */
  --coral: #ef5b44;        /* festékáramlás */
  --amber: #f09a3b;        /* napkorong */
  --mist: #dcd8e8;         /* szürke arc – szöveg */
  --mist-dim: #a59fc2;     /* másodlagos szöveg */
  --line: rgba(220, 216, 232, .16);

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--mist);
  font: 400 17px/1.6 var(--text);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 14px; background: var(--amber); color: var(--night); border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- pöttysor (a festmény korall pöttyei) ---------- */
.dots {
  display: block;
  height: 10px;
  background-image: radial-gradient(circle, var(--coral) 0 4px, transparent 4.5px);
  background-size: 34px 10px;
  background-repeat: repeat-x;
}

/* ---------- gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid var(--coral);
  font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--coral); color: var(--night); }
.btn-solid:hover { background: #ff7560; border-color: #ff7560; }
.btn-line { background: transparent; color: var(--coral); }
.btn-line:hover { background: var(--coral); color: var(--night); }
.btn-wide { width: 100%; }
.btn svg { flex: none; }

/* ---------- fejléc ---------- */
.site-head {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter);
}
.brand { font: 700 20px/1 var(--display); text-decoration: none; letter-spacing: .01em; }
.site-head ul { display: flex; gap: clamp(14px, 3vw, 32px); margin: 0; padding: 0; list-style: none; font-size: 15px; }
.site-head nav a { text-decoration: none; color: var(--mist-dim); }
.site-head nav a:hover { color: var(--mist); }

/* ==========================================================
   HERO – a festmény rétegei: pöttysor, türkiz→lila sáv,
   lila korong, és rajta maga a kép
   ========================================================== */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: clamp(64px, 14vw, 96px);
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 104px);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-dots { width: min(100%, 440px); margin-bottom: clamp(4px, 1.5vw, 18px); }

.hero-text { display: grid; gap: 22px; align-content: center; justify-items: start; }
.hero-name {
  position: relative; justify-self: stretch;
  font: 700 clamp(72px, 19vw, 180px)/.86 var(--display);
  letter-spacing: -.045em;
  margin-left: -.04em;
  /* a festmény türkiz→lila sávja átfut a néven; ahol keresztezi, a betűk kivágásként sötétek */
  color: var(--mist);
  background: linear-gradient(var(--mist) 0 40%, var(--night) 40% 70%, var(--mist) 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-name::before {
  content: ""; position: absolute; z-index: -1;
  top: 40%; height: 30%;
  /* bal oldalon a képernyő széléig, jobbra a festmény alá fut */
  --edge: calc(-1 * var(--gutter) - max(0px, (100vw - var(--max)) / 2));
  left: var(--edge); right: var(--edge);
  background: linear-gradient(90deg, var(--teal) 0%, #3b5f8f 45%, var(--violet) 85%, var(--violet-deep) 100%);
  transform-origin: left center;
}
.hero-lead { max-width: 34ch; font-size: clamp(17px, 1.6vw, 19px); color: var(--mist); }

.hero-art { position: relative; margin: 0; justify-self: center; display: grid; gap: 12px; }
.hero-art::before {
  /* a festmény lila korongja */
  content: ""; position: absolute; z-index: -1;
  width: 128%; aspect-ratio: 1; border-radius: 50%;
  left: 50%; top: 46%; transform: translate(-40%, -50%);
  background: radial-gradient(circle at 35% 40%, #5a3aa6 0%, var(--violet) 38%, var(--violet-deep) 78%);
}
.hero-art img {
  width: min(78vw, 420px);
  box-shadow: 0 34px 60px -24px rgba(4, 1, 18, .85), 0 2px 0 rgba(255,255,255,.04);
}
.hero-art figcaption { font-size: 14px; color: var(--mist-dim); }

@media (min-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; min-height: min(78vh, 760px); }
  .hero-art { justify-self: end; }
  .hero-name::before { right: -70%; }
  .hero { gap: 40px; }
  .hero-art::before { width: 150%; transform: translate(-36%, -50%); }
  .hero-art img { width: min(34vw, 460px); }
}

/* egyetlen betöltési mozdulat: a sáv kifut, a kép megjelenik */
@media (prefers-reduced-motion: no-preference) {
  .hero-name::before { animation: band-in 1.1s cubic-bezier(.2, .7, .1, 1) both; }
  .hero-art { animation: art-in .9s .45s cubic-bezier(.2, .7, .1, 1) both; }
  @keyframes band-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes art-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- lépések ---------- */
.steps {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 9vw, 120px);
  display: grid; gap: 28px;
}
.steps h2 { font-size: clamp(22px, 2.6vw, 30px); }
.steps ol {
  display: grid; gap: 22px; grid-template-columns: 1fr;
  margin: 0; padding: 0; list-style: none; counter-reset: lepes;
}
.steps li {
  counter-increment: lepes;
  display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 4px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(lepes);
  grid-row: span 2;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--amber); color: var(--night); font: 700 16px/1 var(--display);
}
.steps h3 { font-family: var(--text); font-weight: 600; font-size: 18px; }
.steps p { color: var(--mist-dim); font-size: 16px; }
@media (min-width: 760px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* ==========================================================
   GALÉRIA – a képek "falon lógnak", alattuk az adatok
   ========================================================== */
.gallery {
  background: linear-gradient(180deg, var(--night) 0, #1c1538 220px, #1c1538 100%);
  padding: clamp(56px, 8vw, 104px) 0;
}
.gallery-head, .works { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.gallery-head h2 { font-size: clamp(36px, 6vw, 72px); font-weight: 700; letter-spacing: -.03em; }
.gallery-head p { color: var(--mist-dim); }

.works {
  display: grid; gap: clamp(48px, 6vw, 72px) clamp(28px, 4vw, 48px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}
.work { display: grid; grid-template-rows: auto auto auto 1fr; gap: 14px; }
.work-frame {
  aspect-ratio: 1 / 1.08;
  display: flex; align-items: center; justify-content: center;
  padding: 6%;
}
.work-frame img {
  max-height: 100%; width: auto; max-width: 100%; object-fit: contain;
  box-shadow: 0 26px 44px -20px rgba(4, 1, 18, .9);
}
.work h3 { font-size: 20px; }
.work dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 0; font-size: 15px; }
.work dt { color: var(--mist-dim); }
.work dd { margin: 0; }
.work .btn { align-self: end; justify-self: start; min-height: 44px; padding: 0 20px; font-size: 15px; }

.noscript { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); color: var(--mist-dim); }

/* ---------- műterem ---------- */
.studio {
  max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter);
  display: grid; gap: 28px; align-items: center;
}
.studio-photo { margin: 0; }
.studio-photo img { width: 100%; border-radius: 4px; }
.studio-text { display: grid; gap: 14px; max-width: 42ch; }
.studio-text h2 { font-size: clamp(24px, 3vw, 34px); }
.studio-text p { color: var(--mist-dim); }
@media (min-width: 880px) { .studio { grid-template-columns: 1.4fr 1fr; gap: 56px; } }

/* ---------- virtuális kiállítótér ---------- */
.tour { max-width: var(--max); margin: clamp(64px, 9vw, 120px) auto 0; padding: 0 var(--gutter); }
.tour-card {
  position: relative; overflow: hidden;
  display: grid; gap: 16px; justify-items: start;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 20px;
  background: linear-gradient(120deg, var(--violet-deep), var(--violet) 70%, var(--teal));
}
.tour-card::after {
  content: ""; position: absolute; right: clamp(-60px, -4vw, -20px); top: 50%; translate: 0 -50%;
  width: clamp(140px, 22vw, 260px); aspect-ratio: 1; border-radius: 50%;
  background: var(--amber); opacity: .9; pointer-events: none;
}
.tour-card > * { position: relative; z-index: 1; }
.tour-card .dots { width: 140px; }
.tour-card h2 { font-size: clamp(26px, 4vw, 44px); max-width: 16ch; }
.tour-card p { max-width: 46ch; color: var(--mist); }
@media (max-width: 640px) { .tour-card { padding-bottom: 96px; } .tour-card::after { top: auto; bottom: -70px; translate: 0 0; width: 150px; } }

/* ---------- kapcsolat ---------- */
.contact {
  position: relative; overflow: hidden;
  max-width: var(--max); margin: 0 auto clamp(56px, 8vw, 96px); padding: clamp(40px, 6vw, 72px) var(--gutter);
  display: grid; gap: 18px; justify-items: start;
  border-top: 1px solid var(--line);
}
.contact h2 { font-size: clamp(30px, 5vw, 56px); font-weight: 700; letter-spacing: -.03em; max-width: 14ch; }
.contact p { max-width: 44ch; color: var(--mist-dim); }
.contact .btn { margin-top: 8px; }

/* ---------- lábléc ---------- */
.site-foot {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px;
  display: grid; gap: 16px; color: var(--mist-dim); font-size: 14px;
}
.site-foot .dots { width: min(100%, 340px); }

/* ==========================================================
   VIRTUÁLIS ELHELYEZÉS ABLAK
   ========================================================== */
.ar {
  width: min(980px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px);
  padding: 0; border: 0; border-radius: 18px;
  background: var(--night-2); color: var(--mist);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.ar::backdrop { background: rgba(10, 6, 26, .78); }
.ar-inner { position: relative; display: grid; grid-template-columns: 1fr; }
.ar-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(24, 18, 47, .7); color: var(--mist); cursor: pointer;
}
.ar-close:hover { background: var(--night); }
.ar-stage {
  /* a festmény mögött fal, a hero sávjával */
  background:
    linear-gradient(90deg, var(--teal), var(--violet)) 0 50% / 100% 18% no-repeat,
    radial-gradient(120% 90% at 50% 40%, #2c2257 0%, var(--night) 80%);
}
.ar-stage model-viewer {
  display: block; width: 100%; height: min(46vh, 420px);
  --poster-color: transparent; --progress-bar-color: var(--coral);
}
.ar-info { display: grid; gap: 16px; align-content: start; padding: 22px 20px 24px; }
.ar-info h2 { font-size: clamp(22px, 3vw, 30px); padding-right: 48px; }
.ar-meta { color: var(--mist-dim); margin-top: -8px; }
.ar-tips { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.ar-tips li::marker { color: var(--amber); font-weight: 700; }
#ar-mobile { display: grid; gap: 18px; }
.ar-qr { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; }
.qr { background: var(--mist); padding: 8px; border-radius: 10px; }
.qr svg { display: block; width: 100%; height: auto; }
.ar-qr p { font-size: 15px; }
.ar-note { padding: 12px 14px; border-radius: 10px; background: rgba(240, 154, 59, .12); color: var(--mist); font-size: 15px; }
.ar-hint { font-size: 13px; color: var(--mist-dim); }

@media (min-width: 820px) {
  .ar-inner { grid-template-columns: 1.25fr 1fr; min-height: 480px; }
  .ar-stage { border-radius: 18px 0 0 18px; }
  .ar-stage model-viewer { height: 100%; min-height: 480px; }
  .ar-info { padding: 40px 32px 32px; align-content: center; }
}
@media (max-width: 819px) {
  .ar { inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .ar-inner { min-height: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .ar[open] { animation: ar-in .25s ease-out both; }
  @keyframes ar-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
