/* Sima görgetés; gyökér betű: FHD ~16px → 4K ~20px (folyamatos) */
html {
  scroll-behavior: smooth;
  font-size: clamp(16px, 9.28px + 0.35vw, 20px);
}

/* Főoldal horgony: --home-anchor-top = .site-top__inner magasság + 30px (home-anchor-scroll.js) */
body.page-home #projects,
body.page-home #about {
  scroll-margin-top: var(--home-anchor-top, 10rem);
}

body.page-rainmeter #rainmeter-list {
  scroll-margin-top: calc(10.25rem + 2.5rem);
}

@media (max-width: 640px) {
  body.page-rainmeter #rainmeter-list {
    scroll-margin-top: calc(12.5rem + 2.5rem);
  }
}

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

body {
  overflow-y: auto; /* auto, hogy lehessen görgetni */
  overflow-x: hidden;
  background: #0d0d0d;
  font-family: 'Inter', sans-serif;
  color: #fff;
  line-height: 1.6;
}

/* ===== CANVAS HÁTTÉR ===== */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 1;
}

.logo-container {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03); /* Ugyanaz a háttér, mint a kártyáknál */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Finom keret */
  border-radius: 4px;
  backdrop-filter: blur(5px); /* Üvegszerű elmosás */
  transition: border-color 0.3s ease;
}

.logo-container:hover {
  border-color: rgba(0, 255, 255, 0.4); /* Hover effekt, mint a kártyáknál */
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 60px; /* A kért méret */
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
  display: block;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  backdrop-filter: blur(5px);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #00FFFF;
  border-color: rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ===== TARTALOM RÉTEG ===== */
/* Fő oszlop szélessége: ~900px @ ~1920px nézet → ~1720px @ ~3840px (lineáris, nem ugrál média törésponttal) */
.content-wrapper {
  position: relative;
  z-index: 5;
  max-width: min(1720px, max(900px, calc(900px + (100vw - 1920px) * 0.4271)));
  margin: 0 auto;
  padding: 25vh 5% max(12vh, 5.5rem);
}

body.page-home .content-wrapper {
  padding-top: min(14vh, 5.5rem);
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero--with-site-top {
  margin-bottom: 4rem;
}

.hero h1,
.hero .hero__title {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.hero .hero__tagline.tagline {
  margin-bottom: 2rem;
}

/* Főoldal: fejléc cím csak görgetés után (hero eléri a sávot) */
body.page-home:not(.page-home--header-brand) .site-top__page-intro--dockable {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

body.page-home.page-home--header-brand .site-top__page-intro--dockable {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.hero__brand {
  transition: opacity 0.22s ease, visibility 0.22s ease, max-height 0.32s ease, margin-bottom 0.32s ease;
  overflow: hidden;
  max-height: 12em;
}

/* Összecsukás csak ha a hero már teljesen felgörgetve (nem rövidíti a dokumentumot horgony-görgetés közben) */
body.page-home.page-home--hero-collapsed .hero__brand {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin-bottom: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand,
  body.page-home .site-top__page-intro--dockable {
    transition: none;
  }
}

/* Horgony véglegesítése: egy lépésben álljon a layout (ne max-height / opacity animáljon közben) */
body.page-home--suppress-anchor-transition .hero__brand,
body.page-home--suppress-anchor-transition .site-top__page-intro--dockable {
  transition: none !important;
}

.tagline {
  font-size: 1.1rem;
  color: #00FFFF;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.bio-short {
  max-width: min(46rem, max(600px, calc(600px + (100vw - 1920px) * 0.208333)));
  margin: 0 auto;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

/* ===== PROJEKT KÁRTYÁK ===== */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 1.35rem + 0.45vw, 2.35rem);
  margin-top: 5rem;
}

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 4px;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, border 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.4);
}

.card h3 {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #fff;
}

.card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Kártya = link (Rainmeter → aloldal) */
a.card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.card--link:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.4);
}

.card--link__hint {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 255, 255, 0.85);
}

/* Almappa: ugyanaz a vizuális rendszer (960 → 1720 ugyanazon görbe mentén) */
.content-wrapper--subpage {
  max-width: min(1720px, max(960px, calc(960px + (100vw - 1920px) * 0.39583)));
  padding-top: 1.5rem;
}

/* Fix fejléc minden oldalon: üveg sáv; méret/pozíció: index (60px logó, 25px / 50px-szerű margók) */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  padding: 0;
  background: none;
  border: none;
}

.site-top__inner {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  padding: 25px clamp(20px, 5vw, 50px);
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-top .site-top__logo .logo-img {
  height: 60px;
  width: auto;
}

.site-top .site-top__logo.logo-container {
  padding: 10px 20px;
}

.site-top__logo {
  justify-self: start;
  grid-column: 1;
}

.site-top__page-intro {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  min-width: 0;
  max-width: min(90vw, 28rem);
}

.site-top__page-title {
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
  color: #fff;
}

.site-top__page-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #00ffff;
}

.site-top__nav-main {
  grid-column: 3;
  justify-self: end;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.site-top__subbar {
  margin: 0;
  padding: 0.4rem clamp(20px, 5vw, 50px) 0;
  background: none;
  border: none;
}

.site-top__subbar-inner {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.site-top .site-top__nav-main a {
  padding: 10px 20px;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.site-top__back {
  grid-column: 3;
  justify-self: end;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-top__back:hover,
.site-top__back:focus-visible {
  outline: none;
  color: #00ffff;
}

body.page-home .main-scroll,
body.page-rainmeter .main-scroll {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  box-sizing: border-box;
  padding-bottom: 4.5rem;
}

/* Főoldal: üveg + logó (index méret), nincs subbar */
body.page-home .main-scroll {
  padding-top: 8.5rem;
}

/* Rainmeter: + vissza sor */
body.page-rainmeter .main-scroll {
  padding-top: 10.25rem;
}

@media (max-width: 640px) {
  .site-top__inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .site-top__logo {
    grid-column: 1;
    grid-row: 1;
  }
  .site-top__nav-main {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
  .site-top__page-intro {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    max-width: 100%;
  }
  .site-top__subbar-inner {
    grid-template-columns: 1fr;
  }
  .site-top__back {
    grid-column: 1;
    justify-self: end;
  }
  body.page-home .main-scroll {
    padding-top: 10.5rem;
  }
  body.page-rainmeter .main-scroll {
    padding-top: 12.5rem;
  }
}

.hero--compact {
  margin-bottom: 2.5rem;
}

.hero--compact h1 {
  font-size: 2.75rem;
}

/* Rainmeter projektlista */
.project-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

body.page-rainmeter .content-wrapper--subpage {
  padding-top: 0.9rem;
}

.subpage-lede {
  margin: 0 auto 0.35rem;
  max-width: min(58ch, 100%);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
  letter-spacing: 0.01em;
}

body.page-rainmeter .project-board {
  margin-top: 1.25rem;
}

.project-tile {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.project-tile:hover {
  border-color: rgba(0, 255, 255, 0.35);
  transform: translateY(-3px);
}

.project-tile--muted {
  opacity: 0.92;
}

/* Fejléc: skin név bal, státusz jobb */
.project-tile__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 1.15rem;
  min-height: 0;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 55%, rgba(0, 60, 70, 0.2) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-tile__header--wip {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.project-tile__body {
  padding: 1.35rem 1.25rem 1.5rem;
  text-align: left;
}

.project-tile__section {
  margin-top: 1rem;
}

.status-pill {
  display: inline-block;
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-pill--released {
  color: #7dffb3;
  border-color: rgba(125, 255, 179, 0.35);
  background: rgba(125, 255, 179, 0.06);
}

.status-pill--wip {
  color: #ffdf7a;
  border-color: rgba(255, 223, 122, 0.35);
  background: rgba(255, 223, 122, 0.06);
}

.project-tile__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  letter-spacing: -0.02em;
  text-align: left;
}

.project-tile__gallery-panel {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-tile__gallery-panel .project-tile__subhead {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.project-tile__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem 0.75rem;
}

.project-tile__shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.project-tile__thumb {
  display: block;
  width: 100%;
  max-width: 140px;
  margin: 0 auto;
  aspect-ratio: 5 / 3;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-tile__thumb:hover,
.project-tile__thumb:focus-visible {
  outline: none;
  border-color: rgba(0, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.2);
}

.project-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.project-tile__shot-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

/* Teljes méret (lightbox) */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 1rem;
  box-sizing: border-box;
}

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.image-lightbox__frame {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(80vw, 96rem);
  height: min(80vh, 54rem);
  max-width: 100%;
  max-height: 100%;
}

.image-lightbox__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  height: 100%;
}

.image-lightbox__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 24rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(12, 12, 12, 0.82);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.image-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.image-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  margin-top: 0;
  transform: translateY(-50%);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.image-lightbox__nav--prev {
  left: 0.8rem;
}

.image-lightbox__nav--next {
  right: 0.8rem;
}

.image-lightbox__nav:hover,
.image-lightbox__nav:focus-visible {
  outline: none;
  border-color: rgba(0, 255, 255, 0.5);
  color: #00ffff;
  background: rgba(20, 20, 20, 0.92);
}

.image-lightbox__nav[hidden] {
  display: none;
}

.image-lightbox__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  outline: none;
  border-color: rgba(0, 255, 255, 0.5);
  color: #00ffff;
}

.image-lightbox__caption {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(8px);
  width: 100%;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
}

.image-lightbox__caption-title {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 255, 255, 0.88);
}

.image-lightbox__caption-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.image-lightbox__fullsize {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: rgba(20, 20, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.image-lightbox__fullsize:hover,
.image-lightbox__fullsize:focus-visible {
  outline: none;
  border-color: rgba(0, 255, 255, 0.5);
  color: #00ffff;
  background: rgba(20, 20, 20, 0.92);
  transform: translateY(-1px);
}

.image-lightbox__fullsize[hidden] {
  display: none;
}

@media (max-width: 960px) {
  .image-lightbox__frame {
    width: min(94vw, 58rem);
    height: auto;
  }

  .image-lightbox__content {
    grid-template-columns: 1fr;
    height: auto;
  }

  .image-lightbox__media {
    width: 100%;
    height: min(72vh, 40rem);
    min-height: 16rem;
  }

  .image-lightbox__caption {
    width: 100%;
    min-height: 0;
    max-height: min(28vh, 16rem);
  }

  .image-lightbox__close {
    top: -2.25rem;
    right: 0;
  }
}

.project-tile__lede {
  margin-bottom: 1rem;
}

.project-tile__version {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(0, 255, 255, 0.85);
  margin-bottom: 0.75rem;
}

.project-tile__desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-tile__desc:last-child {
  margin-bottom: 0;
}

.project-tile__desc--tight {
  margin-bottom: 0;
}

/* Lenyíló teljes leírás (<details>): Features alapból rejtve */
.project-tile__details {
  margin: 1rem 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.project-tile__details-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.75rem 2.25rem 0.75rem 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, color 0.2s ease;
}

.project-tile__details-summary::-webkit-details-marker,
.project-tile__details-summary::marker {
  display: none;
}

.project-tile__details-summary::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.55rem;
  color: rgba(0, 255, 255, 0.75);
  transition: transform 0.2s ease;
}

.project-tile__details[open] .project-tile__details-summary::after {
  transform: translateY(-50%) rotate(-180deg);
}

.project-tile__details-summary:hover,
.project-tile__details-summary:focus-visible {
  outline: none;
  background: rgba(0, 255, 255, 0.06);
  color: #fff;
}

.project-tile__details-summary-hint {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

.project-tile__details-body {
  padding: 0 1.15rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-tile__details-body > .project-tile__section:first-child {
  margin-top: 0;
}

.project-tile__subhead {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0, 255, 255, 0.9);
  margin: 1.15rem 0 0.6rem;
}

.project-tile__subhead:first-child {
  margin-top: 1rem;
}

.project-tile__list {
  margin: 0 0 0.25rem;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.project-tile__list li {
  margin-bottom: 0.4rem;
}

.project-tile__list--numbered {
  list-style: decimal;
}

.project-tile__code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85em;
  color: rgba(0, 255, 255, 0.85);
  background: rgba(0, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.project-tile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-tile__cta {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #0d0d0d;
  background: rgba(0, 255, 255, 0.9);
  border-radius: 4px;
  border: 1px solid rgba(0, 255, 255, 0.5);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.project-tile__cta:hover {
  background: #00ffff;
  transform: translateY(-1px);
}

.project-tile__cta--ghost {
  background: transparent;
  color: rgba(0, 255, 255, 0.9);
  border-color: rgba(0, 255, 255, 0.35);
}

.project-tile__cta--ghost:hover {
  background: rgba(0, 255, 255, 0.08);
  color: #00ffff;
}

.subpage-back {
  margin-top: 3.5rem;
  text-align: center;
}

.subpage-back a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.subpage-back a:hover {
  color: #00ffff;
}

/* ===== LÁBLÉC (Ko-fi + copyright közép + mottó jobb) ===== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem 1.25rem;
  padding: 0.55rem clamp(0.85rem, 3vw, 2.25rem);
  background: rgba(13, 13, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  user-select: none;
}

.site-footer__kofi {
  justify-self: start;
  max-width: min(26rem, 100%);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__kofi-accent {
  color: rgba(0, 255, 255, 0.88);
  font-weight: 500;
}

.site-footer__kofi:hover,
.site-footer__kofi:focus-visible {
  outline: none;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__kofi:hover .site-footer__kofi-accent,
.site-footer__kofi:focus-visible .site-footer__kofi-accent {
  color: #00ffff;
}

.site-footer__copy {
  justify-self: center;
  text-align: center;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__motto {
  justify-self: end;
  text-align: right;
  margin: 0;
  max-width: min(16rem, 42vw);
  font-size: 0.68rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: rgba(0, 255, 255, 0.62);
}

@media (max-width: 720px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer__kofi {
    justify-self: center;
    text-align: center;
    order: 1;
  }

  .site-footer__copy {
    order: 2;
  }

  .site-footer__motto {
    justify-self: center;
    text-align: center;
    max-width: 20rem;
    order: 3;
  }
}

/* ===== MOBIL FINOMÍTÁS ===== */
@media (max-width: 768px) {
  .hero h1,
  .hero .hero__title { font-size: 2.5rem; }
  .content-wrapper:not(.content-wrapper--subpage) {
    padding-top: 20vh;
  }
  body.page-home .content-wrapper {
    padding-top: min(10vh, 4rem);
  }
  .site-top__inner {
    padding: 20px clamp(16px, 4vw, 28px);
  }
  .about-content {
    padding: 1.35rem 2rem;
  }
  .project-tile__gallery {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.5rem;
  }
  .project-tile__thumb {
    max-width: none;
  }
  .project-tile__shot-label {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
}

/* ABOUT SZEKCIÓ STÍLUSA (Add a fájl végére) */
.about-section {
  padding: 5vh 0;
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.about-content {
  max-width: min(100%, max(850px, calc(850px + (100vw - 1920px) * 0.453125)));
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 3.5rem;
  border-radius: 4px;
  backdrop-filter: blur(10px);
  text-align: left;
}

.about-content h2 {
  font-weight: 300;
  font-size: 2.2rem;
  color: #00FFFF;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.about-text {
  max-width: 75ch;
  margin-inline: auto;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  line-height: 1.8;
}

.about-text strong {
  color: #fff;
  font-weight: 600;
}

/* Bal oldali lebegő portál-dokk (CDN logók) */
.portal-dock {
  position: fixed;
  left: clamp(10px, 2.2vw, 22px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 14;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  pointer-events: none;
}

.portal-dock__tile {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.portal-dock__tile:hover,
.portal-dock__tile:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 255, 0.45);
  transform: scale(1.06);
}

.portal-dock__icon {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
  object-fit: contain;
}

@media (max-width: 640px) {
  .portal-dock {
    left: auto;
    right: clamp(8px, 2vw, 14px);
    top: auto;
    bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    transform: none;
    flex-direction: row;
    gap: 0.5rem;
  }

  .portal-dock__tile {
    width: 2.85rem;
    height: 2.85rem;
  }

  .portal-dock__icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-dock__tile {
    transition: none;
  }

  .portal-dock__tile:hover,
  .portal-dock__tile:focus-visible {
    transform: none;
  }
}
