/* ==========================================================================
   Vári Juliánna – arcfestés · single-page marketing site
   Design language: "paletta" – paper ground, pigment blobs, brush strokes,
   oversized ghost numerals, editorial ledger instead of card grids.
   No framework, no build step. Mobile-first.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --paper:   #fbf8f4;
  --tint:    #f3ece3;
  --ink:     #17161b;
  --ink-soft:#4a4650;
  --ink-mute:#6e6874;

  /* A pigmentok mind szövegként is olvashatók: a legkisebb mért érték
     a paper és a tint háttéren is eléri az AA 4.5:1 határt. */
  --teal:    #0d6b63;
  --magenta: #b4326a;
  --amber:   #8f5a08;
  --violet:  #6b4bab;
  --leaf:    #44722b;

  --line:    rgba(23,22,27,.13);
  --line-2:  rgba(23,22,27,.26);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap:    76rem;
  --gutter:  clamp(1.15rem, 4vw, 3.25rem);
  --radius:  1.1rem;
  --shadow:  0 1px 2px rgba(23,22,27,.06), 0 14px 34px -18px rgba(23,22,27,.28);
  --shadow-l:0 2px 4px rgba(23,22,27,.07), 0 34px 70px -30px rgba(23,22,27,.4);

  --step--1: clamp(.78rem, .755rem + .12vw, .86rem);
  --step-0:  clamp(.95rem, .905rem + .2vw, 1.06rem);
  --step-1:  clamp(1.1rem, 1.03rem + .34vw, 1.3rem);
  --step-2:  clamp(1.35rem, 1.2rem + .6vw, 1.75rem);
  --step-3:  clamp(1.7rem, 1.4rem + 1.3vw, 2.5rem);
  --step-4:  clamp(2.15rem, 1.6rem + 2.4vw, 3.6rem);
  --step-5:  clamp(2.7rem, 1.5rem + 5vw, 5.4rem);

  --header-h: 4.4rem;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,.84,.3,1);

  /* sötét szekciók fókuszgyűrűje: a --teal ott alig látszana */
  --focus-dark: #7fdccf;
  color-scheme: light;
}

/* ---------- 2. Reset & base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* anchors land below the sticky header on every breakpoint */
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 450;
  letter-spacing: .004em;
  /* a `clip` a gyökeren eltörölné a sticky fejlécet, ezért a túlcsordulást
     a testen fogjuk meg – a rétegzett kontextus itt is megmarad */
  overflow-x: hidden;
}
/* paper grain – the single texture that ties the whole page together */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: .3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-color: color-mix(in srgb, var(--teal) 40%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
svg { fill: currentColor; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: 52rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: .75rem; top: -3.5rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem;
  border-radius: .6rem; font-weight: 700; text-decoration: none; font-size: var(--step--1);
  transition: top .18s var(--ease);
}
.skip-link:focus-visible { top: .75rem; }
.muted-inline { color: var(--ink-mute); }

/* ---------- 3. Shared pieces -------------------------------------------- */
.section { position: relative; padding-block: clamp(3.6rem, 8vw, 7.5rem); }
.section--tint { background: var(--tint); }
.section--tint::before, .section--tint::after {
  content: ""; position: absolute; left: 0; right: 0; height: 26px;
  background: var(--tint);
  clip-path: polygon(0 60%, 6% 30%, 14% 62%, 22% 26%, 31% 58%, 40% 24%, 49% 56%,
                     58% 22%, 67% 54%, 76% 24%, 85% 56%, 93% 28%, 100% 52%, 100% 100%, 0 100%);
}
.section--tint::before { top: -1px; }
.section--tint::after  { bottom: -1px; transform: scaleY(-1); }

.sec-head { position: relative; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.sec-num {
  position: absolute;
  /* belseje felé húzva: különben a szekció tetejénél levágódik */
  top: -.18em; left: -.2em;
  font-family: var(--display);
  font-size: clamp(5.2rem, 13vw, 10rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ink) 13%, transparent);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.kicker {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: .55rem;
  font-size: var(--step--1); font-weight: 800;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .8rem;
}
.kicker::before {
  content: ""; width: 2.1rem; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--magenta) 55%, var(--amber));
}
.sec-title { position: relative; z-index: 1; font-size: var(--step-4); }
.sec-title em { font-style: italic; color: var(--magenta); }
.sec-lede {
  position: relative; z-index: 1;
  max-width: 46ch; margin-top: 1.1rem;
  font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55;
}
.sec-head--split { display: grid; gap: 1.2rem; align-items: end; }
@media (min-width: 800px) { .sec-head--split { grid-template-columns: 1.35fr .8fr; } }

.sw { width: .5rem; height: .5rem; border-radius: 50%; display: inline-block; }
.sw--teal { background: var(--teal); }
.sw--magenta { background: var(--magenta); }
.sw--amber { background: var(--amber); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .72rem 1.35rem;
  border-radius: 999px; font-weight: 750; font-size: var(--step--1);
  letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s, color .16s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--ink { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.btn--ink:hover { background: #000; box-shadow: var(--shadow-l); transform: translateY(-2px); }
.btn--line { border: 1.5px solid var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: #fff; transform: translateY(-2px); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li {
  padding: .42rem .85rem; border-radius: 999px;
  font-size: var(--step--1); font-weight: 650;
  background: #fff; border: 1px solid var(--line);
  transition: border-color .16s, transform .16s, background .16s;
}
.chips li:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ---------- 4. Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  /* NOTE: `backdrop-filter` makes the header the containing block for every
     `position: fixed` descendant, including the mobile nav panel. That panel
     hangs off this element and its `top: calc(var(--header-h) + 4px)` is
     measured from here - it happens to equal this header's own rendered
     height (inner min-height + the 4px rail), which is why it lands exactly
     below the bar. Change the header height and that offset must change too,
     or the panel detaches. Verified in Chromium, not a coincidence to lean on. */
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
  padding-block: .5rem;
}
.site-header__rail {
  display: flex; height: 4px; gap: 2px;
}
.site-header__rail i { flex: 1; border-radius: 0 0 2px 2px; opacity: .85; }
.site-header__rail i:nth-child(1) { background: var(--teal); }
.site-header__rail i:nth-child(2) { background: var(--magenta); }
.site-header__rail i:nth-child(3) { background: var(--amber); }
.site-header__rail i:nth-child(4) { background: var(--violet); }
.site-header__rail i:nth-child(5) { background: var(--leaf); }
.site-header__rail i:nth-child(6) { background: var(--teal); opacity: .55; }
.site-header__rail i:nth-child(7) { background: var(--magenta); opacity: .4; }
.site-header__rail i:nth-child(8) { background: var(--amber); opacity: .3; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: -.015em;
}
.brand__tag {
  font-size: .62rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute);
}

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav__list { display: none; gap: .1rem; flex-wrap: wrap; }
.nav__list a {
  display: block; padding: .45rem .62rem; border-radius: 999px;
  font-size: var(--step--1); font-weight: 700; color: var(--ink); text-decoration: none;
  position: relative; transition: color .16s, background .16s;
}
.nav__list a::after {
  content: ""; position: absolute; left: .62rem; right: .62rem; bottom: .28rem; height: 2px;
  background: var(--pig, var(--magenta)); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s var(--ease);
}
.nav__list a:hover { color: var(--teal); }
.nav__list a:hover::after, .nav__list a:focus-visible::after { transform: scaleX(1); }
.nav__list li:nth-child(1) a { --pig: var(--teal); }
.nav__list li:nth-child(2) a { --pig: var(--magenta); }
.nav__list li:nth-child(3) a { --pig: var(--amber); }
.nav__list li:nth-child(4) a { --pig: var(--violet); }
.nav__list li:nth-child(5) a { --pig: var(--leaf); }
.nav__list li:nth-child(6) a { --pig: var(--teal); }
.nav__list li:nth-child(7) a { --pig: var(--magenta); }
.nav__cta { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border-radius: 12px;
  border: 1px solid var(--line-2);
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .24s var(--ease), opacity .18s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 949px) {
  .nav {
    position: fixed; inset: calc(var(--header-h) + 4px) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .35rem;
    padding: 1rem var(--gutter) calc(1.1rem + env(safe-area-inset-bottom));
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 44px -22px rgba(23,22,27,.4);
    max-height: calc(100dvh - var(--header-h) - 4px);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .24s var(--ease), opacity .2s, visibility .24s;
  }
  /* A NYITÁSNÁL a `visibility` nem animál (az after-change stílus transition
     listája dönt): így a panel azonnal fókuszálható, a tab a hivatkozásokra
     esik. Záráskor viszont a lapon maradó `visibility` kitart a fade végéig. */
  .nav.is-open {
    transform: none; opacity: 1; visibility: visible;
    transition: transform .24s var(--ease), opacity .2s;
  }
  .nav__list { display: grid; gap: 0; }
  .nav__list a {
    padding: .85rem .3rem; border-radius: 0; font-size: 1.06rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__list a::after { left: .3rem; right: auto; width: 1.6rem; bottom: .55rem; }
  .nav__cta { display: inline-flex; margin-top: .9rem; width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 950px) {
  .nav__list { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- 5. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(2.6rem, 5vw, 4.6rem) clamp(3.4rem, 7vw, 7rem);
  overflow: hidden;
  /* a képfalnek kell a mag */
  min-height: 30rem;
  min-height: clamp(30rem, 84svh, 46rem);
  display: grid;
  align-content: center;
}
/* A pigmentmosta a képfal RÉÉ comesz (z-index 1), ezért a festmények a
   szélek felé oldódnak fel, és nem versenyeznek a szöveggel. */
.hero__bleed {
  position: absolute; inset: -20% -10% auto -22%; height: 120%; z-index: 0;
  background:
    radial-gradient(42% 46% at 18% 26%, color-mix(in srgb, var(--magenta) 22%, transparent), transparent 70%),
    radial-gradient(38% 44% at 78% 12%, color-mix(in srgb, var(--teal) 20%, transparent), transparent 72%),
    radial-gradient(46% 50% at 52% 84%, color-mix(in srgb, var(--amber) 16%, transparent), transparent 70%);
  filter: blur(6px);
}
/* A szöveg mindig a képfal felett van. */
.hero__grid {
  position: relative; z-index: 3;
  display: grid; gap: clamp(1.8rem, 5vw, 3.2rem); align-items: center;
}
.hero__copy { order: 1; }
.hero__cta  { order: 2; }
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.06fr .94fr;
    column-gap: clamp(2rem, 4vw, 3.4rem);
    grid-template-rows: auto auto;
  }
  .hero__copy { order: 0; grid-column: 1; grid-row: 1; }
  .hero__cta  { order: 0; grid-column: 1; grid-row: 2; }
  /* a jobb oszlop szándékosan üres: ott szól a háttérben a képfal */
}

.hero__kicker {
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
  font-size: var(--step--1); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.1rem;
}
.hero__title {
  font-size: var(--step-5);
  font-weight: 680;
  margin-bottom: 1.15rem;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--magenta); }
.mark { position: relative; white-space: nowrap; }
.mark__stroke {
  position: absolute; left: -2%; bottom: -.06em; width: 104%; height: .3em;
  color: var(--amber); opacity: .9;
}
.mark__stroke use { stroke: currentColor; stroke-width: 11; stroke-linecap: round; fill: none; }
@media (max-width: 560px) { .mark { white-space: normal; } .mark__stroke { display: none; } }

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 44ch; }
.lead strong { color: var(--ink); font-weight: 800; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2rem; }
@media (max-width: 899px) { .hero__actions { margin-top: 1.8rem; } }

.hero__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(6.6rem, 1fr));
  gap: .9rem .6rem; border-top: 1.5px solid var(--line-2); padding-top: 1rem;
}
.hero__facts > div { padding-right: 1rem; min-width: 0; }
.hero__facts dt {
  font-size: .66rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-mute);
}
.hero__facts dd {
  margin: .18rem 0 0; font-family: var(--display); font-weight: 650;
  font-size: var(--step-2); letter-spacing: -.02em; line-height: 1.1;
}
.hero__facts dd small {
  display: block; font-family: var(--body); font-weight: 600;
  font-size: var(--step--1); letter-spacing: 0; color: var(--ink-mute); line-height: 1.35;
  margin-top: .2rem; overflow-wrap: anywhere;
}
/* Szűken a tények két oszlopra, hogy a „mintaegyeztetéssel” és a
   „25 000 Ft” ne törjön el – így egyik oszlop sem szűkül a szavak alá. */
@media (max-width: 560px) {
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem .8rem; }
  .hero__facts dd { font-size: var(--step-1); }
}

/* A hero egyetlen képe egy kézzel festett téglap belsejében. A maszk
   (assets/img/hero-mask.png, l. tools/make-hero-mask.py) felül rojtos
   festélsélt ad, alul pedig a fotó pigmentporrá bomlik – ezért nem kell
   se `clip-path`, se `border-radius`. A fotó mögé ugyanaz a maszk kerül
   eltolt pigment-alulrajzként, mint a ki nem egyezett colour regiszter.
   A lap áttetsző és lassan lélegzik: a szöveg végig az első sorban marad. */
.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero__art {
  --art-mask: url("../img/hero-mask.png");
  position: absolute;
  top: 50%;
  right: clamp(.5rem, 2.5vw, 3.5rem);
  height: min(90%, 780px);
  aspect-ratio: 3 / 4;
  margin: 0;
  translate: 0 -48%;
  opacity: .62;
  animation: slab-drift 46s ease-in-out infinite;
}
.hero__art picture,
.hero__art__ink {
  position: absolute;
  inset: 0;
  display: block;
  -webkit-mask-image: var(--art-mask);
  mask-image: var(--art-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.hero__art picture { z-index: 1; }
.hero__art img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 27%;
}
.hero__art__ink {
  background: linear-gradient(155deg,
    var(--teal) 0%, var(--magenta) 52%, var(--amber) 100%);
  /* szándékos, kimaradt colour regiszter: a pigmentaszt szetoltva nyomuk */
  transform: translate(5.2%, 4.4%);
  opacity: .55;
}
@keyframes slab-drift {
  0%, 100% { transform: rotate(-2deg) scale(1)     translate3d(0, 0, 0); }
  50%      { transform: rotate(.8deg) scale(1.04)  translate3d(-1.4%, -1.1%, 0); }
}

/* Papírhalo a szöveg alatt: a betűk mindig közel azonos fényerejű papírra
   kerülnek, így a kontraszt a fotó felett is megmarad (WCAG AA – a tényleges
   pixeljeinken ellenőrizve: tools/check-hero-contrast.py). */
.hero__copy, .hero__cta { position: relative; }
.hero__copy::before, .hero__cta::before {
  content: "";
  position: absolute; z-index: -1; pointer-events: none;
  inset: -14% -32% -22% -36%;
  background: radial-gradient(64% 60% at 48% 50%,
    var(--paper) 0%, rgba(251, 248, 244, .97) 58%, rgba(251, 248, 244, 0) 84%);
}

/* 900px alatt a festett lap kikerül a szöveg mögül a saját sorába: a fotó
   így sosem lóghat a betűk alá (a 768 px-es tartományban a régi megoldás
   a tények harmadik oszlopa mögé csúszott), a halo pedig nem kell. */
@media (max-width: 899px) {
  .hero { min-height: 0; padding-bottom: clamp(2.2rem, 7vw, 3.6rem); }
  .hero__grid { order: 1; z-index: 3; }
  .hero__stage {
    position: relative; inset: auto; overflow: visible;
    order: 2; margin-top: clamp(1.8rem, 6vw, 3.2rem);
  }
  .hero__art {
    position: relative; top: auto; right: auto; translate: none;
    height: auto; width: min(72%, 24rem); aspect-ratio: 3 / 4;
    margin-inline: auto; opacity: .96;
  }
  .hero__copy::before, .hero__cta::before { inset: 0; background: none; }
  .hero__bleed { height: 92%; opacity: .85; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__art { animation: none; }
}

/* ---------- 6. Ticker ---------------------------------------------------- */
.ticker {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink); color: var(--paper);
  padding-block: .72rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { display: flex; width: max-content; }
.ticker__row { display: flex; align-items: center; gap: 1.15rem; padding-right: 1.15rem; white-space: nowrap; }
.ticker__row span { font-size: var(--step--1); font-weight: 750; letter-spacing: .04em; }
.ticker__row b { color: var(--amber); font-size: .7rem; }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: slide 46s linear infinite; }
  .ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(-50%); } }
}

/* ---------- 7. Rólam ----------------------------------------------------- */
.about { display: grid; gap: clamp(1.8rem, 4vw, 3rem); }
@media (min-width: 860px) { .about { grid-template-columns: 15rem minmax(0, 1fr); } }

.polaroid {
  margin: 0; background: #fff; padding: .7rem .7rem 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  transition: transform .3s var(--ease);
}
.polaroid:hover { transform: rotate(0deg) translateY(-4px); }
.polaroid img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
.polaroid figcaption {
  font-family: var(--display); font-style: italic; font-size: var(--step-0);
  text-align: center; padding: .55rem 0 .7rem;
}
.about__side { display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .about__side { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; } }

.facts { display: grid; gap: .1rem; margin: 0; }
.facts > div { padding: .7rem 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt {
  font-size: .64rem; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink-mute);
}
.facts dd { margin: .22rem 0 0; font-size: var(--step-0); font-weight: 700; line-height: 1.4; }

.about__body { max-width: 62ch; font-size: var(--step-1); line-height: 1.72; }
.about__body p { margin-bottom: 1.15em; }
.dropcap::first-letter {
  float: left; font-family: var(--display); font-weight: 700;
  font-size: 3.4em; line-height: .82; padding: .06em .12em 0 0; color: var(--teal);
}

.timeline { margin-top: 2.2rem; display: grid; gap: 0; border-left: 2px solid var(--line-2); }
.timeline li {
  position: relative; display: grid; gap: .1rem;
  padding: .8rem 0 .8rem 1.35rem;
}
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 1.18rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--teal);
}
.timeline li:nth-child(2)::before { border-color: var(--magenta); }
.timeline li:nth-child(3)::before { border-color: var(--amber); }
.timeline li:nth-child(4)::before { border-color: var(--violet); }
.timeline li:nth-child(5)::before { border-color: var(--leaf); }
.timeline__year {
  font-family: var(--display); font-weight: 700; font-size: var(--step-0);
  letter-spacing: .01em; color: var(--teal);
}
.timeline li:nth-child(2) .timeline__year { color: var(--magenta); }
.timeline li:nth-child(3) .timeline__year { color: var(--amber); }
.timeline li:nth-child(4) .timeline__year { color: var(--violet); }
.timeline li:nth-child(5) .timeline__year { color: var(--leaf); }
.timeline__text { font-size: var(--step-0); color: var(--ink-soft); line-height: 1.45; }

/* ---------- 8. Szolgáltatások – ledger ---------------------------------- */
.ledger {
  display: grid; gap: 0;
  border-top: 1.5px solid var(--line-2);
  counter-reset: none;
}
.ledger__item {
  position: relative;
  display: grid; gap: .35rem .0rem;
  padding: 1.5rem 0 1.5rem 3.4rem;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.ledger__item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--pig); transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease);
}
.ledger__item:hover::before { transform: scaleY(1); }
.ledger__item:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--pig) 7%, transparent), transparent 42%); }
.ledger__no {
  position: absolute; left: 0; top: 1.42rem;
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: var(--step-1); color: var(--pig); width: 2.6rem; text-align: center;
}
.ledger__item h3 { font-size: var(--step-2); color: var(--ink); }
.ledger__item p { color: var(--ink-soft); max-width: 58ch; margin: 0; }
@media (min-width: 900px) {
  .ledger { grid-template-columns: 1fr 1fr; column-gap: 3.2rem; }
  .ledger__item { padding-left: 3.6rem; }
}

.occasions { margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.occasions__title, .process__title {
  font-size: var(--step-2); margin-bottom: 1.1rem;
}
.process { margin-top: clamp(2.6rem, 5vw, 4rem); }
.process__list {
  display: grid; gap: 1.1rem; counter-reset: step;
  border-top: 1.5px solid var(--line-2); padding-top: 1.6rem;
}
@media (min-width: 760px) { .process__list { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; } }
.process__list li { position: relative; padding-top: .2rem; }
.process__dot {
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 700; font-size: var(--step-0);
  margin-bottom: .8rem;
}
.process__list h4 { font-size: var(--step-1); margin-bottom: .4rem; }
.process__list p { font-size: var(--step-0); color: var(--ink-soft); line-height: 1.55; }

/* ---------- 9. Technikák és anyagok ------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 3.4rem); }
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); align-items: start; }
  .split__head { position: sticky; top: calc(var(--header-h) + 1.6rem); }
}
.swatch-rail { display: flex; gap: .45rem; margin-top: 1.5rem; }
.swatch-rail li {
  width: 1.65rem; height: 1.65rem; border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  background: var(--pig); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  transition: transform .25s var(--ease);
}
.swatch-rail li:hover { transform: translateY(-4px) rotate(8deg); }

.materials { display: grid; gap: clamp(2rem, 5vw, 3.2rem); }
.material {
  display: grid; gap: 1.2rem; align-items: center;
  padding-bottom: clamp(2rem, 5vw, 3.2rem);
  border-bottom: 1px solid var(--line);
}
.material:last-child { border-bottom: 0; padding-bottom: 0; }
@media (min-width: 620px) {
  .material { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.8rem; }
  .material--rev .material__art { order: 2; }
}
.material__art {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--tint);
}
.material__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.material:hover .material__art img { transform: scale(1.035); }
.material__body h3 { font-size: var(--step-3); margin-bottom: .7rem; }
.material__body p { color: var(--ink-soft); line-height: 1.62; }
.material__brand {
  display: inline-block; margin-top: .9rem !important;
  padding: .38rem .8rem; border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--teal) 26%, transparent);
  color: var(--teal); font-size: var(--step--1); font-weight: 750;
}

/* ---------- 10. Galéria (sötét szekció) --------------------------------- */
.section--ink {
  background: #17161b; color: #f4efe9;
  --line: rgba(255,255,255,.14);
  --line-2: rgba(255,255,255,.3);
  --ink: #f4efe9; --ink-soft: #cfc7c0; --ink-mute: #a49b95; --paper: #17161b;
}
.section--ink .sec-num { -webkit-text-stroke-color: rgba(255,255,255,.18); }
.section--ink .kicker { color: #6fd3c6; }
.section--ink .sec-title em { color: #f2a3c2; }
.section--ink .btn--line { border-color: rgba(255,255,255,.3); color: #f4efe9; }
.section--ink .btn--line:hover { background: rgba(255,255,255,.08); }

.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-bottom: 1.6rem;
}
.filter {
  /* 2.75rem = 44px: iOS recommends at least this for a touch target */
  min-height: 2.75rem; padding: .5rem 1.05rem; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.24); color: #e7e1da;
  font-size: var(--step--1); font-weight: 750;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.filter:hover { border-color: #fff; transform: translateY(-2px); }
.filter.is-active { background: #f4efe9; color: #17161b; border-color: #f4efe9; }
.filters__count { margin: 0 0 0 auto; font-size: var(--step--1); color: #a49b95; }
.filters__count span { font-weight: 800; color: #e7e1da; font-variant-numeric: tabular-nums; }

.gallery {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
}
@media (min-width: 640px)  { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
/* Tiles are the grid items; a "wide" slot spans two columns and doubles its
   aspect ratio, so every row keeps one clean height without row-span maths. */
.tile-wrap { display: block; }
.tile-wrap--wide { grid-column: span 2; }
.tile-wrap--wide .tile { aspect-ratio: 2 / 1; }

.tile {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; overflow: hidden; border-radius: var(--radius);
  background: #232128; aspect-ratio: 1 / 1;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile picture, .tile img { width: 100%; height: 100%; }
.tile img { object-fit: cover; }
.tile__cap {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem .8rem .7rem;
  font-family: var(--display); font-weight: 600; font-size: var(--step-0);
  color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(10,9,12,.88), rgba(10,9,12,.45) 55%, transparent);
  transform: translateY(102%); transition: transform .3s var(--ease);
}
/* Érintőn nincs hover: a felirat és a címke akkor is látható marad. */
@media (hover: none) {
  .tile__cap { transform: none; }
  .tile__chip { opacity: 1; transform: none; }
}
.tile__chip {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  padding: .22rem .58rem; border-radius: 999px;
  background: rgba(23,22,27,.72); color: #fff;
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .25s, transform .25s;
}
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: 0 22px 44px -18px rgba(0,0,0,.7); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: none; }
.tile:hover .tile__chip, .tile:focus-visible .tile__chip { opacity: 1; transform: none; }
.tile-wrap[hidden] { display: none; }

/* ---------- 11. Árak + kalkulátor --------------------------------------- */
.pricing { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
@media (min-width: 900px) { .pricing { grid-template-columns: 1.05fr .95fr; align-items: start; } }

.price-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow);
}
.price-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--magenta) 34%, var(--amber) 68%, var(--violet));
}
.price-card__list { display: grid; gap: .62rem; margin-bottom: 1.6rem; }
.price-card__list li {
  position: relative; padding-left: 1.5rem;
  font-size: var(--step-0); color: var(--ink-soft); line-height: 1.5;
}
.price-card__list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: .72rem; height: .72rem; border-radius: 50% 44% 54% 46%;
  background: var(--teal); opacity: .85;
}
.price-card__cta { width: 100%; }

.calc {
  background: var(--ink); color: #f4efe9;
  border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-l);
}
.calc__title { font-size: var(--step-2); color: #f4efe9; margin-bottom: .5rem; }
.calc__hint { font-size: var(--step-0); color: #b3aaa4; line-height: 1.5; margin-bottom: 1.5rem; }
.calc__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.calc__row label { font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #a49b95; }
.calc__big { font-family: var(--display); font-size: var(--step-2); font-weight: 700; color: #6fd3c6; letter-spacing: -.02em; }
.calc__slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 26px; background: transparent; margin: 0 0 1.5rem; cursor: grab;
}
.calc__slider:active { cursor: grabbing; }
.calc__slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, #6fd3c6, #f2a3c2);
}
.calc__slider::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #6fd3c6, #f2a3c2); }
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: #f4efe9; border: 3px solid #6fd3c6; box-shadow: 0 4px 12px rgba(0,0,0,.45);
}
.calc__slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #f4efe9; border: 3px solid #6fd3c6; box-shadow: 0 4px 12px rgba(0,0,0,.45);
}
.calc__out { display: grid; gap: .1rem; margin: 0 0 1.1rem; }
.calc__out > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .72rem 0; border-top: 1px solid rgba(255,255,255,.13);
}
.calc__out dt { font-size: var(--step-0); color: #a49b95; }
.calc__out dd {
  margin: 0; font-family: var(--display); font-size: var(--step-2);
  font-weight: 700; letter-spacing: -.02em; color: #f4efe9;
}
.calc__tba { font-family: var(--body) !important; font-size: var(--step-0) !important; font-weight: 700; color: #f2a3c2 !important; }
.calc__note { font-size: var(--step--1); color: #9b928c; line-height: 1.5; }

/* ---------- 12. Terület ------------------------------------------------- */
.area { display: grid; gap: clamp(1.8rem, 4vw, 3rem); }
@media (min-width: 880px) { .area { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.area__art {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 3 / 4; box-shadow: var(--shadow-l);
}
.area__art img { width: 100%; height: 100%; object-fit: cover; }
.area__art figcaption {
  position: absolute; inset: auto .9rem .9rem .9rem; padding: .5rem .9rem;
  border-radius: 999px; background: rgba(23,22,27,.7); color: #fff;
  font-size: var(--step--1); font-weight: 700; text-align: center;
  backdrop-filter: blur(6px);
}
@media (min-width: 880px) { .area__art { position: sticky; top: calc(var(--header-h) + 1.6rem); } }
.area__list h3 {
  font-size: var(--step-1); margin: 1.6rem 0 .8rem;
}
.area__list h3:first-child { margin-top: 0; }
.area__base { display: flex; align-items: center; gap: .6rem; font-size: var(--step-1); font-weight: 700; }
.area__base .dot {
  width: .8rem; height: .8rem; border-radius: 50%; background: var(--magenta);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--magenta) 18%, transparent);
}
.chips--towns li { background: #fff; }
.area__cta { margin-top: 1.6rem; }

/* ---------- 13. GYIK ---------------------------------------------------- */
.faq { display: grid; gap: .7rem; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: .9rem;
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: color-mix(in srgb, var(--teal) 34%, transparent); box-shadow: var(--shadow); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.15rem; cursor: pointer; list-style: none;
  min-height: 3rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q {
  font-family: var(--display); font-weight: 650; font-size: var(--step-1);
  letter-spacing: -.015em; line-height: 1.25;
}
.faq__ico {
  flex: none; position: relative; width: 1.55rem; height: 1.55rem;
  border-radius: 50%; border: 1.5px solid var(--line-2); transition: background .2s, border-color .2s;
}
.faq__ico::before, .faq__ico::after {
  content: ""; position: absolute; inset: 50% .38rem auto .38rem; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .24s var(--ease), background .2s;
}
.faq__ico::after { transform: rotate(90deg); }
.faq__item[open] .faq__ico { background: var(--teal); border-color: var(--teal); }
.faq__item[open] .faq__ico::before, .faq__item[open] .faq__ico::after { background: #fff; }
.faq__item[open] .faq__ico::after { transform: rotate(0deg); }
.faq__item p {
  padding: 0 1.15rem 1.2rem; margin: 0;
  color: var(--ink-soft); line-height: 1.65; max-width: 68ch;
}
/* a nyílás kártya beúszása: a magasságát nem animáljuk (details), csak a
   szöveget – így sincs layout-eltolódás */
.js .faq__item[open] > p { animation: faq-in .42s var(--ease-out) both; }
@keyframes faq-in { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: none; } }
.faq__item summary:hover .faq__q { color: var(--teal); }
.faq__q { transition: color .18s; }
@media (min-width: 700px) { .faq__item summary { padding: 1.2rem 1.4rem; } .faq__item p { padding: 0 1.4rem 1.35rem; } }

/* ---------- 14. Kapcsolat ------------------------------------------------ */
.section--contact {
  background: linear-gradient(160deg, #14131a, #1d1b24 55%, #241d2a);
  color: #f4efe9;
  --ink: #f4efe9; --ink-soft: #cfc7c0; --ink-mute: #a49b95;
  --line: rgba(255,255,255,.14);
}
.section--contact .sec-num { -webkit-text-stroke-color: rgba(255,255,255,.18); }
.section--contact .kicker { color: #6fd3c6; }
.section--contact .btn--ink { background: #f4efe9; color: #17161b; }

.contact { display: grid; gap: .7rem; margin-bottom: 2rem; }
@media (min-width: 700px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__item a {
  display: grid; gap: .18rem; align-content: center;
  position: relative; overflow: hidden;
  min-height: 6.2rem; padding: 1.15rem 1.3rem;
  border-radius: var(--radius); text-decoration: none; color: #f4efe9;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.11);
  transition: background .22s, border-color .22s, transform .22s var(--ease);
}
.contact__item a::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--pig); transition: width .22s var(--ease);
}
.contact__item a:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); transform: translateY(-3px); }
.contact__item a:hover::before { width: 8px; }
.contact__label {
  font-size: .64rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: #a49b95;
}
.contact__value {
  font-family: var(--display); font-size: var(--step-2); font-weight: 650;
  letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere;
}
.contact__go {
  font-size: var(--step--1); font-weight: 750; color: #6fd3c6;
  opacity: 0; transform: translateX(-6px); transition: opacity .22s, transform .22s;
}
@media (hover: none) { .contact__go { opacity: 1; transform: none; } }
.contact__item a:hover .contact__go, .contact__item a:focus-visible .contact__go { opacity: 1; transform: none; }

.contact__base {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.2rem;
  padding: 1.15rem 1.3rem; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
}
.contact__base span { font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #a49b95; }
.contact__base strong { font-family: var(--display); font-size: var(--step-1); font-weight: 650; }
.contact__base small { color: #a49b95; font-size: var(--step--1); }

/* ---------- 15. Lábléc --------------------------------------------------- */
.site-footer { background: #100f14; color: #f4efe9; padding-block: clamp(2.6rem, 5vw, 4rem) 1.6rem; }
.site-footer__inner {
  display: grid; gap: 2rem; padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 780px) { .site-footer__inner { grid-template-columns: 1.2fr 1fr .8fr; } }
.foot-brand__mark { width: 2.1rem; height: 2.1rem; margin-bottom: .7rem; }
.foot-brand__name { font-family: var(--display); font-size: var(--step-2); font-weight: 650; margin: 0 0 .35rem; }
.foot-brand__tag { color: #a49b95; font-size: var(--step--1); line-height: 1.55; }
.foot-nav ul, .foot-contact p { font-size: var(--step-0); }
.foot-nav ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .18rem; }
.foot-nav a, .foot-contact a {
  color: #cfb8d6; text-decoration: none; display: inline-block; padding: .22rem 0;
  transition: color .16s, transform .16s;
}
.foot-nav a:hover, .foot-contact a:hover { color: #fff; text-decoration: underline; }
.foot-contact p { margin: 0 0 .35rem; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem;
  padding-top: 1.5rem; font-size: var(--step--1); color: rgba(244,239,233,.62);
}
.site-footer__legal a { color: rgba(244,239,233,.78); }
.site-footer__src { text-align: right; }
@media (max-width: 640px) { .site-footer__src { text-align: left; } }

/* ---------- 16. Lightbox ------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(12,11,14,.94);
  backdrop-filter: blur(8px);
  overscroll-behavior: contain;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; gap: .8rem; justify-items: center; max-width: min(94vw, 62rem); }
.lightbox__figure img {
  max-width: 100%; max-height: calc(100dvh - 8rem); width: auto; height: auto;
  border-radius: .8rem; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  background: #1d1b22;
}
.lightbox__cap { display: flex; align-items: baseline; gap: 1rem; color: #f4efe9; flex-wrap: wrap; justify-content: center; }
.lightbox__title { font-family: var(--display); font-size: var(--step-1); font-weight: 650; }
.lightbox__count { font-size: var(--step--1); color: #a49b95; font-variant-numeric: tabular-nums; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 1.5rem; line-height: 1;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .18s, transform .18s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); transform: scale(1.06); }
.lightbox__close { top: max(1rem, env(safe-area-inset-top)); right: 1rem; font-size: 1.35rem; }
.lightbox__nav { top: 50%; margin-top: -23px; }
.lightbox__nav--prev { left: .7rem; }
.lightbox__nav--next { right: .7rem; }
@media (min-width: 900px) { .lightbox__nav--prev { left: 2.5rem; } .lightbox__nav--next { right: 2.5rem; } }
body.lb-open { overflow: hidden; }

/* ---------- 17. Motion, ink, print --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ticker__track { transform: none !important; }
}

/* Tudatos döntés: a content-visibility: auto a becsült sor magasságok miatt
   az #anchor ugrásokat rossz helyre viszi ezen az egyoldalas lapon. */

@media print {
  .site-header, .nav-toggle, .ticker, .drips, .lightbox, .filters, .calc, .quote,
  .neonfield, .motif, .area-map, .to-top, .scroll-line { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1.2rem; break-inside: avoid; }
  .section--ink, .section--contact, .site-footer, .calc, .quote {
    background: #fff !important; color: #000 !important;
  }
  .faq__item p, .ledger__item p { color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   KIEGÉSZÍTÉS · 18–24. rend: szignaturás mozgás, szélrajzok, csepp-sor,
   UV-mese, alkotmány-térkép, ajánlatkérés-vázló, vissza-a-tetejére.

   Alapelv: a mozgás sosem viszi el a tartalmat. A `reveal` és a `draw`
   állapotot a JS kapcsolja be (`html.js` + `.is-in`); szkript nélkül minden
   elem a végállásában látszik, `prefers-reduced-motion` esetén pedig az
   átmenetek nullára futnak. Az elmozdításhoz a `translate` tulajdonságot
   használjuk (nem a `transform`-t), így az elem saját `transform`-ja
   – például a polaroid billenése – megmarad.
   ========================================================================== */

/* ---------- 18. Reveal + draw --------------------------------------------- */
.js [data-rise] {
  opacity: 0;
  translate: 0 18px;
  transition: opacity .8s var(--ease-out) calc(var(--i, 0) * 65ms),
              translate .8s var(--ease-out) calc(var(--i, 0) * 65ms);
}
.js [data-rise].is-in { opacity: 1; translate: none; }

/* A <use> shadow-fájába a CSS-választó nem nyúl be, de a `stroke-dasharray`
   és a `stroke-dashoffset` öröklődő tulajdonság – ezért a GAZDÁRA állítjuk,
   és a `pathLength="1"`-re normalált út végigfut egyenletesen. */
.js .motif:not([data-rise]), .js .ledger__icon, .js .mark__stroke, .js .process__line, .js .to-top__icon {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s var(--ease) calc(var(--i, 0) * 90ms);
}
.js .motif.is-in, .js .motif[data-rise].is-in, .js .ledger__item.is-in .ledger__icon,
.js .mark.is-in .mark__stroke, .js .process.is-in .process__line,
.js .to-top.is-in .to-top__icon { stroke-dashoffset: 0; }

/* a hero ecsetvonása azonnal fut: az első rajzoláskor akarjuk, nem görgetéskor */
.js .hero .mark__stroke { transition-delay: .55s; }
.js .hero .mark.is-in .mark__stroke { stroke-dashoffset: 0; }

/* ---------- 19. Szélrajzok (nagy, halvány motívumok) --------------------- */
.motif {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(7rem, 16vw, 15rem); height: auto; fill: none;
  stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  color: var(--ink); opacity: .09;
}
.section--ink .motif, .section--contact .motif { color: #fff; opacity: .13; }
.motif--rolam      { top: 1.2rem; right: 2%; width: clamp(8rem, 20vw, 19rem); }
.motif--szol       { bottom: 3%; right: 1.5%; width: clamp(9rem, 22vw, 21rem); opacity: .07; }
.motif--anyag      { top: 8%; left: -1%; width: clamp(7rem, 15vw, 13rem); }
.motif--arak       { top: 2rem; right: 3%; width: clamp(8rem, 18vw, 15rem); }
.motif--gik        { top: 22%; right: 1%; width: clamp(7rem, 14vw, 12rem); }
.motif--kapcsolat  { bottom: -6%; right: 2%; width: clamp(10rem, 24vw, 22rem); }
.motif--munak      { top: 12%; left: 1%; width: 4.6rem; opacity: .3; color: var(--magenta); }
.motif--munak2     { top: 46%; right: .5%; width: 3.2rem; opacity: .22; color: var(--teal); }
.motif--munak3     { bottom: 8%; left: 22%; width: 2.4rem; opacity: .18; color: var(--amber); }
@media (max-width: 620px) { .motif { display: none; } }

/* a sorszám lassan lélegzik a nézetben: mozgás JS nélkül, ott, ahol a
   böngésző bírja a `view()` idővonalat */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec-num {
      animation: num-drift linear both;
      animation-timeline: view();
      animation-range: entry 5% exit 95%;
    }
    .material__art img {
      animation: num-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes num-drift {
      from { transform: translate3d(0, 2.2rem, 0); }
      to   { transform: translate3d(0, -2.2rem, 0); }
    }
  }
}

/* ---------- 20. Ecsetvonal a hero címében + folyamatvonal ---------------- */
.mark__stroke { overflow: visible; }
.process__wrap { position: relative; }
.process__line {
  /* a pontok közepe: a lista paddinge + az elem paddinge + fél pötty */
  position: absolute; left: 0; right: 0; top: 1.7rem;
  width: 100%; height: 2.3rem; fill: none; stroke: currentColor;
  color: var(--line-2); stroke-width: 4; stroke-linecap: round; pointer-events: none;
}
@media (max-width: 759px) { .process__line { display: none; } }

/* a friss pigment: a sötét sávból lecsorgó cseppek. A sáv maga folytatja a
   ticker hátterét, a cseppek pedig a papírra lógnak – ezért nekik is tint-
   színűnek kell lenniük, a konténernek viszont tilos háttér. */
.drips { line-height: 0; }
.drips svg { display: block; width: 100%; height: clamp(34px, 5.4vw, 62px); color: var(--ink); }
.drips__band { fill: var(--ink); }
.drip { fill: currentColor; stroke: none; opacity: .92; }
@media (prefers-reduced-motion: no-preference) {
  .drip {
    transform-box: fill-box; transform-origin: top center;
    animation: drip-run 11s var(--ease) var(--d, 0s) infinite;
  }
  @keyframes drip-run {
    0%, 6%  { transform: scaleY(.35); }
    38%     { transform: scaleY(1); }
    62%     { transform: scaleY(1); }
    100%    { transform: scaleY(.35); }
  }
}

/* ---------- 21. UV-mese a sötét galériában ------------------------------ */
/* Halvány UV-ütés a sötét szekcióban: egyetlen nagy, gyengére blurözött
   hátsófolt, hogy az üres lyukak ne látszanak négyzetnek. */
.neonfield { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.neonfield i {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(140px); mix-blend-mode: screen; opacity: .1;
}
.neonfield i:nth-child(1) { background: #12b8a6; top: -34vmax; left: -26vmax; }
.neonfield i:nth-child(2) { background: #e0559b; bottom: -40vmax; right: -24vmax; opacity: .085; }
.neonfield i:nth-child(3) { background: #6f4bd0; top: 18%; left: 26%; opacity: .06; }
.section--ink .wrap, .section--contact .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .neonfield i { animation: neon-drift 26s ease-in-out infinite alternate; }
  .neonfield i:nth-child(2) { animation-duration: 34s; animation-delay: -6s; }
  .neonfield i:nth-child(3) { animation-duration: 30s; animation-delay: -14s; }
  @keyframes neon-drift {
    from { transform: translate3d(-4%, -2%, 0) scale(1); }
    to   { transform: translate3d(5%, 4%, 0) scale(1.14); }
  }
}

/* a csempe a mutató alatt „ki nem egyezett regiszterre” csúszik */
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg,
    color-mix(in srgb, var(--teal) 55%, transparent),
    transparent 42%, color-mix(in srgb, var(--magenta) 45%, transparent));
  mix-blend-mode: color-dodge; opacity: 0; transition: opacity .35s var(--ease);
}
.tile:hover::before, .tile:focus-visible::before { opacity: .5; }
.tile img { transition: transform .6s var(--ease), translate .6s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.055); translate: 2px -2px; }

/* ---------- 22. Pigment-alkotmány (elérési kör) -------------------------- */
.area-map {
  margin: 2.2rem 0 0; padding: clamp(.8rem, 2vw, 1.3rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(165deg, #fff, var(--tint));
  box-shadow: var(--shadow);
}
.area-map__svg { display: block; width: 100%; height: auto; aspect-ratio: 132 / 100; }
.area-map__blob {
  fill: color-mix(in srgb, var(--teal) 5%, transparent);
  stroke: color-mix(in srgb, var(--teal) 30%, transparent);
  stroke-width: .5; stroke-dasharray: 2.2 1.8;
}
.area-map__duna { fill: none; stroke: var(--violet); stroke-width: .9; opacity: .4; stroke-linecap: round; }
.area-map__link {
  stroke: var(--magenta); stroke-width: .3; opacity: .22;
  stroke-linecap: round; transition: opacity .3s;
}
.js .area-map__link { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease) var(--d, 0s), opacity .3s; }
.js .area-map.is-in .area-map__link { stroke-dashoffset: 0; }
.area-map__dot { fill: var(--teal); transition: fill .2s, r .2s var(--ease); }
.area-map__dot.is-base { fill: var(--magenta); }
.area-map__dot.is-buda { fill: var(--amber); }
.area-map__label {
  font-family: var(--body); font-size: 3.6px; fill: var(--ink-soft);
  letter-spacing: .01em; transition: fill .2s;
}
.area-map__label.is-base { fill: var(--ink); }
.area-map__dot.is-lit { fill: var(--ink); }
.area-map__label.is-lit { fill: var(--magenta); }
@media (prefers-reduced-motion: no-preference) {
  .area-map__dot {
    transform-box: fill-box; transform-origin: center;
    animation: dot-breathe 5.4s ease-in-out var(--d, 0s) infinite;
  }
  @keyframes dot-breathe { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.45); } }
}
@media (max-width: 700px) {
  /* szűken nagyítani kell a címkét: a képernyőn ugyanez 3,6px-ből ~9px lenne */
  .area-map__label { font-size: 4.6px; }
  .area-map__link { stroke-width: .28; }
}

/* ---------- 23. Ajánlatkérés-vázló --------------------------------------- */
.quote {
  margin-top: 2.4rem; padding: clamp(1.3rem, 3.4vw, 2.1rem);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(127, 220, 207, .1), transparent 60%),
    radial-gradient(120% 140% at 100% 100%, rgba(242, 163, 194, .1), transparent 60%),
    rgba(255, 255, 255, .04);
  box-shadow: var(--shadow-l);
}
.quote__title { font-size: var(--step-2); color: #f4efe9; margin-bottom: .5rem; }
.quote__hint { color: #b3aaa4; font-size: var(--step-0); line-height: 1.55; max-width: 62ch; }
/* Four fields only fit side by side when each gets >= ~15rem: that is what
   the longest <option> needs, otherwise Safari clips the label. At the old
   1040px breakpoint the four columns collapsed to 204px each - on an iPad in
   landscape (1080-1194px: iPad Air / Pro) that is what pushed the date field
   out of its slot. So 4 columns start at 1240px; below that it stays 2 up,
   where every field still has 420-500px to breathe. */
.quote__grid { display: grid; gap: 1rem 1.2rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .quote__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .quote__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* `min-width: 0` is mandatory here. A grid item's `min-width: auto` resolves
   to the widest <option> for a <select>, and to the sum of the segments for
   an <input type="date"> - Safari refuses to shrink past that, so instead of
   the field compressing, the card blows out. */
.quote__field { display: grid; gap: .4rem; margin: 0; min-width: 0; }
.quote__field label {
  font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #a49b95;
}
.quote__field select, .quote__field input {
  width: 100%; min-width: 0; min-height: 2.9rem; padding: .6rem .8rem;
  /* iOS Safari zooms the whole page when a control focuses at <16px. On an
     iPad `--step-0` lands at 16.0px - too close to call, so floor it. */
  font: inherit; font-size: max(1rem, var(--step-0)); line-height: 1.35;
  color: #f4efe9;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .7rem;
  transition: border-color .2s, background .2s;
}
.quote__field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.1rem;
  text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, #a49b95 50%), linear-gradient(135deg, #a49b95 50%, transparent 50%);
  /* arrow centred, not offset from the top: a <select> box grows with the
     font and each browser's own form styling, so 1.28rem drifted off-centre */
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.quote__field select option { color: #17161b; }
.quote__field :is(select, input):hover { border-color: rgba(255, 255, 255, .45); }

/* WebKit draws its own calendar icon inside the date field and it lands on
   top of the value unless we reserve room for it. */
.quote__field input[type="date"] {
  color-scheme: dark;
  -webkit-appearance: textfield;
  padding-right: 2.5rem;
}
.quote__field input[type="date"]::-webkit-date-and-time-value {
  min-inline-size: 0; color: #f4efe9; text-align: start;
}
.quote__field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(.7);
}
/* the <input type="number"> spinner sits on the digits the same way */
.quote__field input[type="number"] { padding-right: 1.5rem; }
.quote__sum {
  margin: 1.4rem 0 0 !important; padding: .95rem 1.1rem; border-radius: .8rem;
  background: rgba(0, 0, 0, .28); border: 1px dashed rgba(255, 255, 255, .2);
  font-size: var(--step-0); color: #cfc7c0; line-height: 1.5;
}
.quote__sum strong { color: #f4efe9; font-weight: 800; font-family: var(--display); letter-spacing: -.01em; }
.quote__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.quote__send { background: #6fd3c6; color: #0b2b28; box-shadow: 0 14px 30px -14px rgba(111, 211, 198, .6); }
.quote__send:hover { background: #8ce4d8; transform: translateY(-2px); }
.quote__actions .btn--line { border-color: rgba(255, 255, 255, .3); color: #f4efe9; }
.quote__note { margin: 1.1rem 0 0 !important; font-size: var(--step--1); color: #9b928c; line-height: 1.5; max-width: 66ch; }

/* ---------- 24. Fejléc: haladási festéksor, aktív menüpont, vissza-fel ---- */
.scroll-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2;
  background: rgba(23, 22, 27, .07); overflow: hidden;
}
.scroll-line i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(var(--p, 0)); transform-origin: left;
  background: linear-gradient(90deg, var(--teal), var(--magenta) 34%, var(--amber) 68%, var(--violet));
}
.nav__list a.is-active { color: var(--ink); }
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__list a.is-active { font-weight: 800; }

.to-top {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 1.3rem; padding: .5rem .95rem .5rem .55rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16); text-decoration: none;
  color: rgba(244, 239, 233, .8); font-size: var(--step--1); font-weight: 750;
  transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.to-top:hover { color: #fff; border-color: rgba(255, 255, 255, .4); transform: translateY(-2px); }
.to-top__icon { width: 1.9rem; height: 1.9rem; fill: none; stroke: currentColor; stroke-width: 3.2;
  stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.site-footer__legal { flex-direction: column; }
.site-footer__legal > .to-top { align-self: flex-start; }
@media (min-width: 900px) {
  .site-footer__legal { flex-direction: row; align-items: center; }
  .to-top { margin-top: 0; margin-left: auto; }
}

/* a szolgáltatások kis ábrái: a sorszám mellett a technika jelképe */
.ledger__icon {
  position: absolute; right: 0; top: 1.5rem;
  width: clamp(2.4rem, 5vw, 3.4rem); height: auto; fill: none;
  stroke: currentColor; color: var(--pig); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .5; transition: opacity .3s, transform .4s var(--ease);
}
.ledger__item:hover .ledger__icon { opacity: 1; transform: translateY(-3px) rotate(-4deg); }
@media (max-width: 899px) { .ledger__icon { display: none; } }

/* sötét talapon a fókuszgyűrű is világosabb */
.section--ink :focus-visible, .section--contact :focus-visible, .site-footer :focus-visible,
.quote :focus-visible, .calc :focus-visible { outline-color: var(--focus-dark); }

/* Vészkapcsoló: ha a main.js be sem töltődik, a fenti időmérő `no-motion`-t
   ad a gyökelemre – így a tartalom sosem maradhat rejtve. */
.no-motion [data-rise] { opacity: 1; translate: none; transition: none; }
.no-motion .motif, .no-motion .motif:not([data-rise]), .no-motion .ledger__icon,
.no-motion .mark__stroke, .no-motion .process__line, .no-motion .to-top__icon,
.no-motion .area-map__link {
  stroke-dasharray: none; stroke-dashoffset: 0; transition: none;
}

/* nagy kontraszt: a dekoráció eltűnik, a vonalak és a címkék erősebbek */
@media (prefers-contrast: more) {
  :root {
    --line: rgba(23, 22, 27, .4); --line-2: rgba(23, 22, 27, .68);
    --ink-soft: #2c2932; --ink-mute: #3f3b47;
  }
  body::after { display: none; }
  .motif, .neonfield, .drips, .sec-num, .tile::before { display: none; }
  .nav__list a { text-decoration: underline; text-underline-offset: .22em; }
  .btn--line, .chips li, .faq__item, .area-map, .quote { border-width: 2px; }
  .chips--towns li { border-color: var(--line-2); }
  .section--ink, .section--contact { --line: rgba(255, 255, 255, .5); --line-2: rgba(255, 255, 255, .8); }
  .section--ink .tile figcaption, .tile__cap { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; translate: none; transition: none; }
  /* a :not([data-rise]) változat kell, mert a 18. részben van nála specifikusabb szabály */
  .js .motif, .js .motif:not([data-rise]), .js .ledger__icon, .js .mark__stroke,
  .js .process__line, .js .to-top__icon, .js .area-map__link {
    stroke-dasharray: none; stroke-dashoffset: 0; transition: none;
  }
  .js [data-rise] { opacity: 1; translate: none; }
  .drip, .area-map__dot, .neonfield i, .sec-num, .material__art img,
  .js .faq__item[open] > p { animation: none !important; }
  .tile::before { display: none; }
}

/* 950–1299 px között a fejlécbe nem fér a teljes menü + a telefonszám: a
   sorok közti levegőt és a CTA szövegét vesszük vissza. A szám alapból
   látszik (széles asztali nézet és a mobil panel), csak a szűk sávban rövidül. */
.nav__cta-word { display: none; }
@media (min-width: 950px) and (max-width: 1299px) {
  .nav { gap: .8rem; }
  .nav__list { gap: 0; }
  .nav__list a { padding: .42rem .44rem; font-size: .82rem; }
  .nav__list a::after { left: .44rem; right: .44rem; }
  .nav__cta { padding: .6rem 1rem; }
  .nav__cta-num { display: none; }
  .nav__cta-word { display: inline; }
}
/* 950–1079 px: a menü alig fér el, ha mindenből egy keveset elengedünk */
@media (min-width: 950px) and (max-width: 1079px) {
  .nav { gap: .5rem; }
  .nav__list a { padding: .4rem .34rem; font-size: .78rem; }
  .nav__list a::after { left: .34rem; right: .34rem; bottom: .24rem; }
  .brand__name { font-size: 1rem; }
  .brand__tag { letter-spacing: .12em; font-size: .58rem; }
}
@media (min-width: 1300px) { .nav__cta-word { display: none; } }
