﻿*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:root {
  /* ── Alap ─────────────────────────────── */
  --bg:                  #0a0a0c;
  --text:                #ffffff;
  --muted:               rgba(200, 210, 225, 0.60);
  --accent:              rgba(220, 230, 245, 0.90);
  --glass:               rgba(14, 20, 46, 0.22);
  --glass-border:        rgba(200, 210, 225, 0.14);
  --glass-dark:          rgba(14, 20, 46, 0.55);

  /* ── Fejléc ──────────────────────────── */
  --header-text:         #111118;
  --header-nav:          rgba(15, 15, 22, 0.55);
  --header-nav-hover:    rgba(15, 15, 22, 0.82);
  --header-nav-active:   rgba(15, 15, 22, 0.92);
  --header-burger:       rgba(15, 15, 22, 0.75);

  /* ── Hamburger dropdown ──────────────── */
  --dropdown-bg:         rgba(12, 12, 16, 0.55);
  --dropdown-border:     rgba(255, 255, 255, 0.12);
  --dropdown-text:       rgba(255, 255, 255, 0.45);
  --dropdown-text-hover: rgba(255, 255, 255, 0.85);
  --dropdown-hover-bg:   rgba(255, 255, 255, 0.04);

  /* ── Üveg pill / menü ────────────────── */
  --pill-bg:             rgba(12, 12, 16, 0.35);
  --pill-border:         rgba(255, 255, 255, 0.10);
  --pill-shine:          rgba(255, 255, 255, 0.08);
  --pill-underline:      rgba(0, 0, 0, 0.20);
  --pill-shadow:         rgba(0, 0, 0, 0.42);

  /* ── Info panel ──────────────────────── */
  --info-cat:            rgba(255, 255, 255, 0.82);
  --info-name:           #ffffff;
  --info-toggle:         rgba(255, 255, 255, 0.55);
  --info-desc:           rgba(255, 255, 255, 0.92);
  --info-tag-border:     rgba(255, 255, 255, 0.35);
  --info-tag-text:       rgba(255, 255, 255, 0.82);

  /* ── Pont-navigator ──────────────────── */
  --dot-base:            rgba(255, 255, 255, 0.22);
  --dot-hover:           rgba(255, 255, 255, 0.50);
  --dot-active:          rgba(255, 255, 255, 0.88);

  /* ── Alkategória / menüelemek ─────────── */
  --subcat:              rgba(255, 255, 255, 0.42);
  --subcat-hover:        rgba(255, 255, 255, 0.70);
  --subcat-active:       #ffffff;
  --menu-item:           rgba(255, 255, 255, 0.38);
  --menu-item-hover:     rgba(255, 255, 255, 0.68);
  --menu-item-active:    #ffffff;

  /* ── Kategória nyilak ────────────────── */
  --arrow-border:        rgba(255, 255, 255, 0.14);
  --arrow-color:         rgba(255, 255, 255, 0.65);
  --arrow-hover-bg:      rgba(255, 255, 255, 0.10);
  --arrow-hover-border:  rgba(255, 255, 255, 0.28);
  --arrow-active-bg:     rgba(255, 255, 255, 0.12);

  /* ── Overlay / papír téma ────────────── */
  --paper-bg:            rgb(246, 243, 238);
  --paper-text:          #1c1a16;
  --paper-eyebrow:       rgba(28, 26, 22, 0.45);
  --paper-em:            rgba(28, 26, 22, 0.36);
  --paper-body:          rgba(28, 26, 22, 0.62);
  --paper-muted:         rgba(28, 26, 22, 0.50);
  --paper-border:        rgba(28, 26, 22, 0.12);
  --paper-divider:       rgba(28, 26, 22, 0.15);
  --paper-hover:         rgba(28, 26, 22, 0.55);
  --paper-num:           rgba(28, 26, 22, 0.35);
  --paper-chip-border:   rgba(28, 26, 22, 0.18);
  --paper-chip-text:     rgba(28, 26, 22, 0.65);

  /* ── Smart contrast (.bg-light) ──────── */
  --light-text:              rgba(0, 0, 0, 0.88);
  --light-muted:             rgba(0, 0, 0, 0.65);
  --light-body:              rgba(0, 0, 0, 0.78);
  --light-toggle:            rgba(0, 0, 0, 0.50);
  --light-toggle-hover:      rgba(0, 0, 0, 0.90);
  --light-tag-border:        rgba(0, 0, 0, 0.30);
  --light-tag-text:          rgba(0, 0, 0, 0.70);
  --light-subcat:            rgba(0, 0, 0, 0.42);
  --light-subcat-hover:      rgba(0, 0, 0, 0.70);
  --light-subcat-active:     rgba(0, 0, 0, 0.92);
  --light-nav:               rgba(0, 0, 0, 0.42);
  --light-nav-hover:         rgba(0, 0, 0, 0.72);
  --light-nav-active:        rgba(0, 0, 0, 0.92);
  --light-dot:               rgba(0, 0, 0, 0.22);
  --light-dot-hover:         rgba(0, 0, 0, 0.50);
  --light-dot-active:        rgba(0, 0, 0, 0.85);
  --light-burger:            rgba(0, 0, 0, 0.80);
  --light-arrow-border:      rgba(0, 0, 0, 0.18);
  --light-arrow-bg:          rgba(0, 0, 0, 0.06);
  --light-arrow-color:       rgba(0, 0, 0, 0.60);
  --light-arrow-hover-bg:    rgba(0, 0, 0, 0.12);
  --light-arrow-hover-color: rgba(0, 0, 0, 0.88);
}

html, body {
  font-family: 'Inter', sans-serif;
  background: var(--paper-bg);
  color: var(--text);
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
}

@media (pointer: fine) {
  * { cursor: none !important; }
}

.custom-cursor {
  display: none;
  position: fixed;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: left, top;
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.custom-cursor::before,
.custom-cursor::after {
  content: '';
  position: absolute;
  top: 50%;
}

/* Kattintható: kis teli pont */
.custom-cursor.cursor--pointer {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-color: transparent;
}


/* Szöveg: csak vékony függőleges vonal, kör nélkül */
.custom-cursor.cursor--text {
  width: 0;
  height: 0;
  border-color: transparent;
  background: transparent;
}
.custom-cursor.cursor--text::after {
  content: '';
  left: 50%;
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
}

@media (pointer: fine) {
  .custom-cursor { display: block; }
}

/* HATTER */

#bgWrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: var(--bg);
  transition: opacity 0.8s ease;
}

.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translateX(100%);
}

.bg-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.18) 0%, transparent 26%),
    linear-gradient(to top,    rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.14) 38%, transparent 62%),
    linear-gradient(to right,  rgba(0,0,0,0.22) 0%, transparent 42%);
}

/* FEJLEC */

#siteHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.23rem 3.5rem;
  background: var(--paper-bg);
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--header-text);
  cursor: pointer;
  user-select: none;
  transition: color 0.25s;
}

.logo-ek {
  color: #003566;
  text-shadow: 0.4px 0 0 #003566, -0.4px 0 0 #003566;
}

.logo-design {
  -webkit-text-stroke: 0.9px #1c1a16;
  color: transparent;
}

.top-nav { display: flex; gap: 1.4rem; }

.top-nav a {
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-nav);
  cursor: pointer;
  transition: color 0.25s;
  user-select: none;
  text-decoration: none;
}
.top-nav a:hover  { color: var(--header-nav-hover); }
.top-nav a.active { color: var(--header-nav-active); }

/* MOBIL LISTA GOMB */

.mobile-list-btn {
  display: none;
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-nav);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}
.mobile-list-btn:hover { color: var(--header-nav-active); }

/* HAMBURGER */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  z-index: 210;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--header-burger);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.22s ease, background 0.25s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* HAMBURGER LEGORDULO - uveg pill stilus, csak a jobb oldal fele */

.top-nav-dropdown {
  display: none;
  position: fixed;
  top: 3.6rem;
  right: 1.3rem;
  z-index: 195;
  flex-direction: column;
  width: 195px;
  background: var(--paper-bg);
  border: 0.5px solid var(--paper-border);
  border-radius: 16px;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 8px 36px rgba(28, 26, 22, 0.12);
  overflow: hidden;
}
.top-nav-dropdown.open { display: flex; }
.top-nav-dropdown a {
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-nav);
  cursor: pointer;
  text-decoration: none;
  padding: 0.9rem 1.3rem;
  transition: color 0.2s, background 0.2s;
  user-select: none;
}
.top-nav-dropdown a:hover    { color: var(--header-nav-active); background: var(--paper-border); }
.top-nav-dropdown a.active   { color: var(--header-nav-active); }

/* COOKIE BAR */

.cookie-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: var(--paper-bg);
  border-top: 0.5px solid rgba(28, 26, 22, 0.12);
  padding: 0 2.5rem;
  min-height: 43px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cookie-bar.visible { opacity: 1; }

.cookie-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: 860px;
}

.cookie-bar-text {
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(28, 26, 22, 0.60);
  flex: 1;
}
.cookie-bar-text .cb-short { display: none; }

.cookie-bar-btn {
  padding: 0.45rem 1.3rem;
  background: rgba(28, 26, 22, 0.68);
  border: none;
  color: var(--paper-bg);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.cookie-bar-btn:hover { opacity: 0.78; }

/* COOKIE OVERLAY */

.float-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.float-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* SWIPE HINT */

.swipe-hint-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.swipe-hint-overlay.visible { opacity: 1; }


.swipe-hint-text {
  position: relative;
  z-index: 1;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #ffffff;
  opacity: 0.6;
  mix-blend-mode: difference;
  user-select: none;
}


.cookie-box {
  background: var(--paper-bg);
  padding: 2rem 2.4rem 1.8rem;
  max-width: 400px;
  width: calc(100% - 3rem);
  border-radius: 14px;
}

.cookie-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  color: var(--paper-text);
  margin-bottom: 0.6rem;
  text-align: center;
}

.cookie-text {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--paper-body);
  margin-bottom: 1.6rem;
  text-align: center;
}

.cookie-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.cookie-btn-accept {
  padding: 0.65rem 1.8rem;
  background: rgba(28, 26, 22, 0.68);
  border: none;
  color: var(--paper-bg);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  border-radius: 8px;
  transition: opacity 0.2s;
}
.cookie-btn-accept:hover { opacity: 0.78; }

.cookie-btn-decline {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--paper-muted);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(28,26,22,0.25);
  text-underline-offset: 3px;
  padding: 0;
  transition: color 0.2s;
}
.cookie-btn-decline:hover { color: var(--paper-text); }

.cookie-btn-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.cookie-btn-sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28, 26, 22, 0.30);
}




/* NEZETEK */

.view {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
}
.view.active {
  opacity: 1;
  pointer-events: all;
}

#portfolio-view {
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
#portfolio-view:active { cursor: grabbing; }

/* CENTER STACK */

.center-stack {
  position: absolute;
  bottom: 3.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, calc(100vw - 4rem));
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
}

/* INFO PANEL */

.info-panel-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.proj-nav-label {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  opacity: 0.28;
  transition: opacity 0.22s;
  flex-shrink: 0;
  width: 140px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.3rem 0;
  min-width: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.proj-nav-label:hover        { opacity: 0.88; }
.proj-nav-label:focus        { outline: none; }
.proj-nav-label:active       { opacity: 0.28; }
.proj-nav-label.hidden       { opacity: 0; pointer-events: none; }

.proj-nav-label--prev { justify-content: flex-start; }
.proj-nav-label--next { justify-content: flex-start; }

.proj-nav-chevron { width: 6px; height: 10px; flex-shrink: 0; display: block; }

.proj-nav-name {
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}


.info-panel {
  width: auto;
  min-width: 200px;
  max-width: 460px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: opacity 0.35s ease;
}

/* Info header - mindig lathato, egymás alatt */

.info-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem 0.2rem;
  user-select: none;
  gap: 0.1rem;
}

.info-header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
}

.info-hcat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--info-cat);
}

.info-hdot { display: none; }

.info-hname {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--info-name);
}


.toggle-icon {
  width: 9px; height: 9px;
}

/* Info body - mindig lathato */

.info-body {
  padding: 0.18rem 1rem 0.1rem;
  text-align: center;
}

.info-desc {
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.85;
  color: var(--info-desc);
  margin-bottom: 0.4rem;
}

.info-meta {
  font-size: 0.60rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--info-toggle);
  margin-top: 0.15rem;
}

.info-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}

.info-tags .tag {
  padding: 3px 9px;
  border: 0.5px solid var(--info-tag-border);
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--info-tag-text);
  background: transparent;
}

/* POTTY NAVIGATOR */

.dot-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--dot-base);
  cursor: pointer;
  padding: 0;
  transition: background 0.28s, transform 0.28s;
  flex-shrink: 0;
}
.dot:hover   { background: var(--dot-hover); }
.dot.active  {
  background: var(--dot-active);
  transform: scale(1.55);
}

/* ALKATEGORIA SOR */

.subcat-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-height: 18px;
}
.subcat-row::-webkit-scrollbar { display: none; }

.subcat-item {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subcat);
  cursor: pointer;
  user-select: none;
  transition: color 0.22s;
  white-space: nowrap;
}
.subcat-item:hover  { color: var(--subcat-hover); }
.subcat-item.active { color: var(--subcat-active); }

/* MENU */

.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--paper-bg);
  padding: 0.9rem 3.5rem;
  display: flex;
  align-items: center;
  z-index: 50;
}

.menu-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.menu-pill::-webkit-scrollbar { display: none; }

.menu-sep {
  color: var(--header-nav);
  opacity: 0.35;
  font-size: 0.72rem;
  flex-shrink: 0;
  user-select: none;
  padding: 0 0.3rem;
}

.menu-item {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--header-nav);
  cursor: pointer;
  transition: color 0.22s;
  white-space: nowrap;
  user-select: none;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}
.menu-item:hover  { color: var(--header-nav-hover); }
.menu-item.active { color: var(--header-nav-active); }

/* MOBIL KATEGORIANAVIGATOR */

.mobile-cat-nav {
  display: none;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--paper-bg);
  padding: 0 1.3rem;
  min-height: 43px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 50;
}

.cat-arrow {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--header-nav);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.cat-arrow:hover  { color: var(--header-nav-active); }
.cat-arrow:active { color: var(--header-nav-active); }
.cat-arrow svg { width: 12px; height: 12px; }

.cat-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-nav-active);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* OVERLAY PANEL */

#about-view,
#contact-view,
#services-view,
#list-view {
  z-index: 15;
  overflow-y: auto;
}

.overlay-panel {
  min-height: 100vh;
  padding: 7.5rem 3.5rem 5rem;
  background: var(--paper-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--paper-text);
}

.op-inner         { max-width: 820px; margin: 0 auto; }
.op-inner--narrow { max-width: 520px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.display-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.95;
  margin-bottom: 1.8rem;
}
.display-heading em {
  font-style: normal;
  color: var(--accent);
}

.body-text {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 520px;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 0.5px solid var(--glass-border);
  margin-bottom: 3rem;
}

.astat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
}
.astat-lbl {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.exp-list { margin-top: 0.5rem; }

.exp-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 0.85rem 0;
  border-bottom: 0.5px solid var(--glass-border);
}
.exp-item:first-child { border-top: 0.5px solid var(--glass-border); }

.exp-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 5.5rem;
}

.exp-text {
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

.services-block {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
}

.srv-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem 1.2rem 1rem 0;
  border-bottom: 0.5px solid var(--glass-border);
  flex: 1 1 auto;
  min-width: 160px;
}
.srv-row:first-of-type { border-top: 0.5px solid var(--glass-border); }

.srv-name {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.srv-tags {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.divider {
  width: 36px;
  height: 0.5px;
  background: var(--glass-border);
  margin: 1.8rem 0;
}

.contact-links { margin-top: 0.5rem; }

.clink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 0.5px solid var(--glass-border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
.clink:first-child { border-top: 0.5px solid var(--glass-border); }
.clink:hover { color: var(--accent); }

.clink-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  width: 90px;
  flex-shrink: 0;
}
.clink-value {
  font-size: 0.85rem;
  font-weight: 400;
  text-align: right;
}

/* PROCESS LEPESEK */

/* TOOLS ROW */

.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
}

.tool-chip {
  padding: 5px 14px;
  border: 0.5px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* SZOFTVER STACK RÁCS */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 0.5rem;
  border-top: 0.5px solid var(--glass-border);
  border-left: 0.5px solid var(--glass-border);
}

.stack-cat {
  padding: 1.4rem;
  border-right: 0.5px solid var(--glass-border);
  border-bottom: 0.5px solid var(--glass-border);
}

.stack-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.stack-cat-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1.1;
}

.stack-cat-sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}


.stack-list {
  display: flex;
  flex-direction: column;
}

.stack-row {
  padding: 0.45rem 0;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Overlay felülírások stack-hoz */
.overlay-panel .stack-grid     { border-color: var(--paper-border); }
.overlay-panel .stack-cat      { border-color: var(--paper-border); }
.overlay-panel .stack-cat-name { color: var(--paper-text); }
.overlay-panel .stack-cat-sub  { color: var(--paper-muted); }
.overlay-panel .stack-row      { color: var(--paper-body); }

/* KAPCSOLAT OLDAL */

.contact-op { max-width: 900px; }

.impr-block {
  margin-bottom: 1.6rem;
}
.impr-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 26, 22, 0.45);
  margin-bottom: 0.4rem;
}
.impr-block .body-text { margin-bottom: 0.3rem; font-size: 0.72rem; }
.impr-block code {
  font-family: monospace;
  font-size: 0.78rem;
  background: rgba(28,26,22,0.06);
  padding: 1px 5px;
  border-radius: 3px;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-lead {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 1.8rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cf-field { display: flex; flex-direction: column; }

.cf-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.7rem 1rem 0;
  background: var(--glass);
  border: 0.5px solid var(--glass-border);
  border-bottom: none;
}

.cf-input {
  background: var(--glass);
  border: 0.5px solid var(--glass-border);
  border-top: none;
  color: var(--text);
  padding: 0.5rem 1rem 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  outline: none;
  resize: none;
  transition: border-color 0.25s;
}
.cf-input:focus { border-color: var(--accent); }
.cf-textarea { min-height: 110px; }

.cf-btn {
  display: block;
  width: 100%;
  padding: 0.95rem;
  background: transparent;
  border: 0.5px solid var(--glass-border);
  color: var(--muted);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.22em;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.28s, color 0.28s, border-color 0.28s;
}
.cf-btn:hover { background: var(--glass); color: var(--text); border-color: var(--accent); }

/* Papír téma felülírások — kapcsolat */
.overlay-panel .contact-lead      { color: var(--paper-body); }
.overlay-panel .cf-label          { background: rgba(28,26,22,0.04); border-color: var(--paper-border); color: var(--paper-eyebrow); }
.overlay-panel .cf-input          { background: rgba(28,26,22,0.04); border-color: var(--paper-border); color: var(--paper-text); }
.overlay-panel .cf-input::placeholder { color: var(--paper-muted); }
.overlay-panel .cf-input:focus    { border-color: var(--paper-text); }
.overlay-panel .cf-btn            { border-color: var(--paper-border); color: var(--paper-eyebrow); }
.overlay-panel .cf-btn:hover      { background: rgba(28,26,22,0.06); color: var(--paper-text); border-color: var(--paper-text); }

/* SZOLGÁLTATÁS KÁRTYA RÁCS */

.svc-intro-text {
  font-size: 0.83rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 0.5px solid var(--glass-border);
  border-left: 0.5px solid var(--glass-border);
  margin-bottom: 2.8rem;
}

.svc-card {
  padding: 1.4rem 1.4rem 1.2rem;
  border-right: 0.5px solid var(--glass-border);
  border-bottom: 0.5px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.svc-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1;
}

.svc-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.3;
}

.svc-desc {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  flex: 1;
}

.svc-card .svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.svc-card .tag {
  padding: 2px 8px;
  border: 0.5px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Overlay felülírások a kártyákhoz */
.overlay-panel .svc-intro-text      { color: var(--paper-body); }
.overlay-panel .svc-grid            { border-color: var(--paper-border); }
.overlay-panel .svc-card            { border-color: var(--paper-border); }
.overlay-panel .svc-num             { color: var(--paper-num); }
.overlay-panel .svc-title           { color: var(--paper-text); }
.overlay-panel .svc-desc            { color: var(--paper-body); }
.overlay-panel .svc-card .tag       { border-color: var(--paper-chip-border); color: var(--paper-chip-text); }

/* OVERLAY PANEL — PAPÍR STÍLUS FELÜLÍRÁSOK */

.overlay-panel .section-eyebrow         { color: var(--paper-eyebrow); }
.overlay-panel .display-heading          { color: var(--paper-text); }
.overlay-panel .display-heading em       { color: var(--paper-text); }
.overlay-panel .body-text                { color: var(--paper-body); }
.overlay-panel .astat-num                { color: var(--paper-text); }
.overlay-panel .astat-lbl                { color: var(--paper-muted); }
.overlay-panel .about-stats              { border-top-color: var(--paper-border); }
.overlay-panel .exp-item                 { border-bottom-color: var(--paper-border); }
.overlay-panel .exp-item:first-child     { border-top-color: var(--paper-border); }
.overlay-panel .exp-year                 { color: var(--paper-num); }
.overlay-panel .exp-text                 { color: var(--paper-body); }
.overlay-panel .srv-row                  { border-bottom-color: var(--paper-border); }
.overlay-panel .srv-row:first-of-type    { border-top-color: var(--paper-border); }
.overlay-panel .srv-name                 { color: var(--paper-text); }
.overlay-panel .srv-tags                 { color: var(--paper-muted); }
.overlay-panel .divider                  { background: var(--paper-divider); }
.overlay-panel .clink                    { border-bottom-color: var(--paper-border); color: var(--paper-text); }
.overlay-panel .clink:first-child        { border-top-color: var(--paper-border); }
.overlay-panel .clink:hover              { color: var(--paper-hover); }
.overlay-panel .clink-label              { color: var(--paper-eyebrow); }
.overlay-panel .tool-chip                { border-color: var(--paper-chip-border); color: var(--paper-chip-text); }

/* SCROLLBAR */

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 2px; }

/* SMART CONTRAST - JS adds .bg-light to body when background is bright */

.bg-light .logo               { color: var(--light-text); }
.bg-light .top-nav a          { color: var(--light-nav); }
.bg-light .top-nav a:hover    { color: var(--light-nav-hover); }
.bg-light .top-nav a.active   { color: var(--light-nav-active); }
.bg-light .hamburger span     { background: var(--light-burger); }

/* LOADING SCREEN */

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ls-bg {
  position: absolute;
  inset: 0;
  background: var(--paper-bg);
  transition: opacity 0.8s ease;
}

#loading-screen.ls-fade .ls-bg {
  opacity: 0;
}

.ls-content {
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease;
}

#loading-screen.ls-hide-text .ls-content {
  opacity: 0;
}

.ls-word {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 13vw, 140px);
  letter-spacing: 0.05em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.ls-ek {
  -webkit-text-stroke: 2px #003566;
  color: transparent;
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation:
    ls-reveal-ek 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.15s,
    ls-fill-ek   0.65s ease forwards 1.55s;
}

.ls-design {
  -webkit-text-stroke: 2.5px #1c1a16;
  color: transparent;
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation:
    ls-reveal-design 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.35s;
}

@keyframes ls-reveal-ek {
  to { clip-path: inset(0 0% 0 0); }
}

@keyframes ls-reveal-design {
  to { clip-path: inset(0 0% 0 0); }
}

@keyframes ls-fill-ek {
  to { color: #003566; }
}

@keyframes ls-fill-design {
  to { color: rgba(28, 26, 22, 0.90); -webkit-text-stroke-color: rgba(28, 26, 22, 0.4); }
}

/* PROJEKT LISTA */

.proj-list { margin-top: 0.3rem; }

.proj-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1rem 0;
  border-bottom: 0.5px solid var(--glass-border);
}
.proj-list-item:first-child { border-top: 0.5px solid var(--glass-border); }

.proj-list-thumb {
  width: 96px;
  height: 64px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.proj-list-info { flex: 1; min-width: 0; }

.proj-list-meta {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.proj-list-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.proj-list-desc {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proj-list-tools {
  font-size: 0.62rem;
  color: var(--muted);
  opacity: 0.65;
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}

/* Overlay papír téma */
.overlay-panel .proj-list-item { border-color: var(--paper-border); }
.overlay-panel .proj-list-meta { color: var(--paper-muted); }
.overlay-panel .proj-list-name { color: var(--paper-text); }
.overlay-panel .proj-list-desc { color: var(--paper-body); }
.overlay-panel .proj-list-tools { color: var(--paper-muted); }

/* PROJEKT KATEGORIA FEJLEC (lista nezet) */

.proj-cat-header {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.proj-cat-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-text);
  margin-bottom: 0.55rem;
}

.proj-cat-line {
  height: 1px;
  background: rgba(28, 26, 22, 0.35);
  width: 100%;
}

/* PROJEKT KARTYA RACS (lista nezet) */

.proj-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0;
}

.proj-card {
  border: 0.5px solid var(--paper-border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.18s;
}
.proj-card:hover { background: rgba(28, 26, 22, 0.04); }
.proj-card:hover .proj-card-img { opacity: 0.88; }

.proj-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(28, 26, 22, 0.06);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  image-rendering: auto;
}

.proj-card-info { padding: 0.8rem 1rem 0.95rem; }

.proj-card-meta {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.22rem;
}

.proj-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.28rem;
  line-height: 1.3;
}

.proj-card-desc {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proj-card-tools {
  font-size: 0.60rem;
  color: var(--muted);
  opacity: 0.65;
  margin-top: 0.32rem;
  letter-spacing: 0.04em;
}

.overlay-panel .proj-cat-title { color: var(--paper-text); }
.overlay-panel .proj-cat-line  { background: rgba(28, 26, 22, 0.35); }
.overlay-panel .proj-card-meta { color: var(--paper-muted); }
.overlay-panel .proj-card-name { color: var(--paper-text); }
.overlay-panel .proj-card-desc { color: var(--paper-body); }
.overlay-panel .proj-card-tools { color: var(--paper-muted); }

/* MOBIL RESPONSIVE */

@media (max-width: 700px) {

  /* Header — azonos magasság és logóméret mint desktopon */
  #siteHeader { padding: 0.23rem 1.3rem; }
  .logo { font-size: 1.7rem; }

  /* Desktop nav rejt, hamburger + lista gomb jelenik meg */
  .top-nav { display: none !important; }
  .hamburger { display: flex; }
  .mobile-list-btn { display: none; }

  /* Projekt nav labels — mobilon csak a nyíl ikon, szöveg nélkül */
  .proj-nav-label       { width: 36px; padding: 0.3rem 0.2rem; }
  .proj-nav-label--next { justify-content: flex-end; }
  .proj-nav-name        { display: none; }

  /* Info panel — nagyobb szöveg, középen */
  .info-panel  { max-width: 100%; }
  .info-header { padding: 0 0 0.1rem; gap: 0.1rem; }
  .info-hcat   { font-size: 0.62rem; }
  .info-hname  { font-size: 1.1rem; }
  .info-body   { padding: 0.1rem 0; }
  .info-desc   { font-size: 0.8rem; line-height: 1.75; margin-bottom: 0.2rem; }

  /* Dots és subcat — kisebb */
  .dot        { width: 5px; height: 5px; }
  .dot-row    { gap: 6px; min-height: 14px; }
  .subcat-row { display: none; }

  /* Desktop pill el, mobil kategorianavigator be */
  .bottom-nav     { display: none; }
  .mobile-cat-nav {
    display: flex;
  }
  .cat-pill { font-size: 0.78rem; letter-spacing: 0.06em; }

  /* Cookie sáv mobilon: rövid szöveg, menühöz igazodó padding, 1 sor = 43px */
  .cookie-bar { padding-left: 1.3rem; padding-right: 1.3rem; }
  .cookie-bar-text .cb-full  { display: none; }
  .cookie-bar-text .cb-short { display: inline; }

  /* Overlay pages */
  .overlay-panel { padding: 5.5rem 1.4rem 3rem; }
  .op-inner--narrow { max-width: 100%; }
  .about-stats { gap: 1.4rem; flex-wrap: wrap; }
  .exp-item { gap: 0.9rem; }
  .services-block { flex-direction: column; }
  .srv-row { flex-direction: row; align-items: baseline; justify-content: space-between; min-width: unset; padding: 0.9rem 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .tools-row { gap: 6px; }

  /* Lista kártyák: 1 oszlop mobilon */
  .proj-cards { grid-template-columns: 1fr; }

}