/* ============================================================
   4D Tájépítész Iroda — main.css v2
   SLA-inspired airy editorial minimalism
   ============================================================ */

/* ── 1. Design Tokens ──────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:           #FFFFFF;
  --color-bg-alt:       #F8F7F4;
  --color-text:         #1A1A1A;
  --color-text-muted:   #888888;
  --color-divider:      #E8E8E8;
  --color-accent:       #C0105A;
  --color-overlay:      rgba(0,0,0,0.15);

  /* Typography */
  --font-family:        'Prompt', sans-serif;
  --size-h1:            clamp(36px, 5vw, 52px);
  --size-h2:            clamp(28px, 3.5vw, 40px);
  --size-h3:            22px;
  --size-body-lg:       17px;
  --size-body-md:       15px;
  --size-label:         12px;
  --size-stat:          clamp(48px, 6vw, 72px);
  --size-nav:           16px;

  /* Weights */
  --weight-light:       300;
  --weight-regular:     400;
  --weight-semi:        600;

  /* Spacing */
  --section-py:         100px;
  --container:          1440px;
  --gap:                24px;
  --inner:              32px;

  /* Transitions */
  --ease:               cubic-bezier(0.4, 0, 0.2, 1);
  --duration:           300ms;
  --duration-slow:      700ms;
}

/* ── 2. Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family:      var(--font-family);
  font-size:        var(--size-body-md);
  font-weight:      var(--weight-regular);
  line-height:      1.6;
  color:            var(--color-text);
  background-color: var(--color-bg);
  overflow-x:       hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: var(--font-family); }

/* ── 3. Typography helpers ─────────────────────────────────── */
.t-h1 {
  font-size:      var(--size-h1);
  font-weight:    var(--weight-semi);
  line-height:    1.1;
  letter-spacing: -0.02em;
}
.t-h2 {
  font-size:   var(--size-h2);
  font-weight: var(--weight-semi);
  line-height: 1.2;
}
.t-h3 {
  font-size:   var(--size-h3);
  font-weight: var(--weight-semi);
  line-height: 1.4;
}
.t-body-lg {
  font-size:   var(--size-body-lg);
  font-weight: var(--weight-light);
  line-height: 1.8;
}
.t-body-lg a {
  color:                 inherit;
  text-decoration:       underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-divider);
  transition:            text-decoration-color var(--duration) var(--ease);
}
.t-body-lg a:hover {
  text-decoration-color: var(--color-accent);
}
.t-body-md {
  font-size:   var(--size-body-md);
  font-weight: var(--weight-regular);
  line-height: 1.6;
}
.t-label {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  line-height:    1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.t-stat {
  font-size:   var(--size-stat);
  font-weight: var(--weight-semi);
  line-height: 1;
}
.t-muted { color: var(--color-text-muted); }
.t-accent { color: var(--color-accent); }

/* ── 4. Layout ─────────────────────────────────────────────── */
.container {
  width:     100%;
  max-width: var(--container);
  margin:    0 auto;
  padding:   0 var(--inner);
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

.section { padding: var(--section-py) 0; }
.section--alt { background-color: var(--color-bg-alt); }

/* ── 5. Navigation ─────────────────────────────────────────── */
.site-nav {
  position:      fixed;
  top:           0;
  left:          0;
  width:         100%;
  z-index:       100;
  background:    transparent; /* Always transparent — elements float over content */
  border-bottom: 1px solid transparent;
  transition:    none;
}
/* Overlay open: hamburger X always dark (white overlay behind it) */
.site-nav__hamburger.is-open .site-nav__hamburger-icon span {
  background-color: var(--color-text) !important;
}
.site-nav__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         24px var(--inner);
  max-width:       var(--container);
  margin:          0 auto;
}
.site-nav__hamburger {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:  40px;
  height: 40px;
  color:  var(--color-text);
  transition: color var(--duration) var(--ease);
}
.site-nav__hamburger:hover { color: var(--color-accent); }
.site-nav__hamburger-icon {
  display:        flex;
  flex-direction: column;
  gap:            5px;
}
.site-nav__hamburger-icon span {
  display:    block;
  width:      36px;
  height:     2px;
  background: currentColor;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
/* hamburger open state */
.site-nav__hamburger.is-open .site-nav__hamburger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__hamburger.is-open .site-nav__hamburger-icon span:nth-child(2) { opacity: 0; }
.site-nav__hamburger.is-open .site-nav__hamburger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav__logo {
  font-size:      18px;
  font-weight:    var(--weight-regular);
  letter-spacing: -0.01em;
  color:          var(--color-text);
  transition:     color var(--duration) var(--ease);
  display:        flex;
  align-items:    center;
}
.site-nav__logo:hover { color: var(--color-accent); }
.site-nav__logo img { height: 80px; width: auto; }
.site-nav__logo-img { height: 80px; width: auto; display: block; }
.site-nav__logo-text {
  font-size:   18px;
  font-weight: var(--weight-regular);
  color:       var(--color-text);
  white-space: nowrap;
}

.site-nav__right {
  display:     flex;
  align-items: center;
  gap:         20px;
}

.site-nav__contact {
  font-size:   18px;
  font-weight: var(--weight-light);
  color:       var(--color-text);
  transition:  color var(--duration) var(--ease);
}
.site-nav__contact:hover { color: var(--color-accent); }

.site-nav__lang {
  display:     flex;
  align-items: center;
  gap:         8px;
}

@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 0.85; transform: translateY(0); }
}

.site-nav__lang a {
  font-size:      var(--size-label);
  font-weight:    var(--weight-semi);
  letter-spacing: 0.12em;
  color:          currentColor;
  opacity:        0.85;
  transition:     opacity var(--duration) var(--ease), color var(--duration) var(--ease);
  animation:      langFadeIn 500ms var(--ease) both;
}
.site-nav__lang a:nth-child(1) { animation-delay: 0ms; }
.site-nav__lang a:nth-child(2) { animation-delay: 90ms; }
.site-nav__lang a:hover {
  opacity: 1;
  color:   var(--color-accent);
}
.site-nav__lang a + a::before {
  content:      '/';
  margin-right: 8px;
  opacity:      0.5;
}

/* ── Fullscreen Menu Overlay ───────────────────────────────── */
.nav-overlay {
  position:   fixed;
  inset:      0;
  z-index:    99;
  background: var(--color-bg);
  display:    flex;
  align-items: center;
  padding:    120px var(--inner) var(--inner);
  opacity:    0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}
.nav-overlay.is-open {
  opacity:        1;
  pointer-events: auto;
}
.nav-overlay__list {
  display:        flex;
  flex-direction: column;
  gap:            16px;
}
.nav-overlay__link {
  font-size:   clamp(28px, 4vw, 48px);
  font-weight: var(--weight-semi);
  color:       var(--color-text);
  transition:  color var(--duration) var(--ease);
  display:     inline-block;
}
.nav-overlay__link:hover { color: var(--color-accent); }
.nav-overlay__link.is-active { color: var(--color-accent); }

.nav-overlay__lang {
  position: absolute;
  bottom: var(--inner);
  left:   var(--inner);
  display: flex;
  gap: 12px;
}
.nav-overlay__lang a {
  font-size:      var(--size-label);
  font-weight:    var(--weight-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  transition:     color var(--duration) var(--ease);
}
.nav-overlay__lang a:hover { color: var(--color-text); }
/* Active = current language: muted, not clickable */
.nav-overlay__lang a.is-active { color: var(--color-text-muted); font-weight: var(--weight-light); opacity: 0.45; pointer-events: none; cursor: default; }
.nav-overlay__lang a + a::before {
  content: '|';
  margin-right: 12px;
  color: var(--color-divider);
}

/* ── 6. Hero (video) ───────────────────────────────────────── */
.hero {
  position:         relative;
  width:            100%;
  height:           100vh;
  min-height:       600px;
  display:          flex;
  background-color: #1A1A1A;
  align-items:      flex-end;
  padding-bottom:   80px;
  overflow:         hidden;
  margin-top:       0; /* nav overlays hero on homepage */
}
.hero__media {
  position: absolute;
  inset:    0;
  z-index:  0;
}
.hero__media video,
.hero__media img {
  width:      100%;
  height:     100%;
  object-fit: cover;
}
.hero__overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  z-index:    1;
}
.hero__content {
  position:   relative;
  z-index:    2;
  padding:    0 var(--inner);
  max-width:  var(--container);
  margin:     0 auto;
  width:      100%;
}
.hero__eyebrow {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.75);
  margin-bottom:  16px;
}
.hero__title {
  font-size:      var(--size-h1);
  font-weight:    var(--weight-semi);
  line-height:    1.1;
  letter-spacing: -0.02em;
  color:          #fff;
  max-width:      700px;
  margin-bottom:  32px;
}
.hero__cta {
  font-size:   var(--size-nav);
  font-weight: var(--weight-light);
  color:       rgba(255,255,255,0.9);
  display:     inline-flex;
  align-items: center;
  gap:         8px;
  transition:  color var(--duration) var(--ease), gap var(--duration) var(--ease);
}
.hero__cta:hover {
  color: #fff;
  gap:   12px;
}

/* ── 7. Section header ─────────────────────────────────────── */
.section-header {
  display:         flex;
  justify-content: space-between;
  align-items:     baseline;
  margin-bottom:   64px;
}
.section-header__link {
  font-size:   var(--size-nav);
  font-weight: var(--weight-light);
  color:       var(--color-text-muted);
  transition:  color var(--duration) var(--ease);
}
.section-header__link:hover { color: var(--color-text); }

/* ── 8. Featured projects — horizontal scroll track ────────── */

/*
 * The scroll track breaks out of .container intentionally:
 * it bleeds to both viewport edges while cards start aligned
 * with the page content (via padding-left: var(--inner)).
 * The last card is deliberately half-visible as scroll affordance.
 */
.projects-scroll {
  display:                  flex;
  align-items:              flex-start;    /* allow vertical stagger */
  gap:                      var(--gap);
  overflow-x:               auto;
  scroll-snap-type:         x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:          none;          /* Firefox */
  padding-left:             var(--inner);
  /* right padding = inner + ~half card width → last card peeks */
  padding-right:            calc(var(--inner) + 120px);
  padding-bottom:           96px;          /* space for vertically staggered cards */
  margin-top:               48px;
}
.projects-scroll::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* Each card — three-beat stagger: width + vertical offset vary by position */
.proj-item {
  cursor:            pointer;
  flex:              0 0 min(440px, 72vw);
  scroll-snap-align: start;
}

/* Beat 1: large, sits high */
.proj-item:nth-child(3n+1) {
  flex:       0 0 min(460px, 74vw);
  margin-top: 0;
}
/* Beat 2: medium, pushed down */
.proj-item:nth-child(3n+2) {
  flex:       0 0 min(380px, 68vw);
  margin-top: 80px;
}
/* Beat 3: slightly wide, mid-level */
.proj-item:nth-child(3n) {
  flex:       0 0 min(420px, 71vw);
  margin-top: 35px;
}

.proj-item > a { display: block; width: 100%; }
.proj-item__img-wrap {
  position:     relative;
  overflow:     hidden;
  background:   var(--color-bg-alt);
  width:        100%;
  display:      block;
  aspect-ratio: 4/3;
}

.proj-item__img {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}
.proj-item:hover .proj-item__img { transform: scale(1.01); }

.proj-item__overlay {
  position:   absolute;
  inset:      0;
  background: rgba(0,0,0,0);
  display:    flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease);
}
.proj-item:hover .proj-item__overlay { background: rgba(0,0,0,0.15); }

.proj-item__overlay-text {
  font-size:   var(--size-h3);
  font-weight: var(--weight-semi);
  color:       #fff;
  opacity:     0;
  transform:   translateY(8px);
  transition:  opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.proj-item:hover .proj-item__overlay-text {
  opacity:   1;
  transform: translateY(0);
}

.proj-item__meta {
  margin-top: 16px;
  display:    flex;
  justify-content: space-between;
  align-items: center;
}
.proj-item__title {
  font-size:   var(--size-body-lg);
  font-weight: var(--weight-regular);
  color:       var(--color-text);
}
.proj-item__cat {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  margin-top:     4px;
}
.proj-item__arrow {
  font-size:   var(--size-nav);
  color:       var(--color-text-muted);
  opacity:     0;
  transform:   translateX(0);
  transition:  opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.proj-item:hover .proj-item__arrow {
  opacity:   1;
  transform: translateX(4px);
}

/* ── Filter panel (two-dimension: Típus + Szolgáltatás) ────── */

/* Mobile trigger button — visible only on small screens */
.filter-mobile-btn {
  display:        none;
  align-items:    center;
  gap:            8px;
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-text);
  border-bottom:  1px solid var(--color-text);
  padding-bottom: 2px;
  margin-bottom:  24px;
}

/* Desktop layout: reset link + groups in a row */
.filter-drawer {
  display:        flex;
  align-items:    flex-start;
  gap:            80px;
  margin-bottom:  56px;
  padding-bottom: 32px;
  border-bottom:  1px solid var(--color-divider);
}

/* Reset link */
.filter-reset {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition:     color var(--duration) var(--ease);
  white-space:    nowrap;
  margin-top:     4px;
  margin-right:   40px; /* extra space before groups */
}
.filter-reset:hover { color: var(--color-text); }

/* Filter group (Típus / Szolgáltatás) */
.filter-group {
  min-width: 180px;
}

/* Group heading button */
.filter-group__toggle {
  display:        inline-flex;
  align-items:    center;
  gap:            8px;
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-text);
  margin-bottom:  20px;
}
/* Chevron rotates when group is collapsed */
.filter-group__chevron {
  transition: transform var(--duration) var(--ease);
}
.filter-group.is-closed .filter-group__chevron { transform: rotate(-90deg); }
.filter-group.is-closed .filter-group__options { display: none; }

/* Options list */
.filter-group__options {
  display:        flex;
  flex-direction: column;
  gap:            12px;
}

/* Individual option button */
.filter-option {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  color:          var(--color-text-muted);
  text-align:     left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:     color var(--duration) var(--ease);
  position:       relative;
  padding-left:   16px;
}
.filter-option::before {
  content:    '—';
  position:   absolute;
  left:       0;
  opacity:    0;
  transition: opacity var(--duration) var(--ease);
}
.filter-option:hover { color: var(--color-text); }
.filter-option:hover::before { opacity: 0.4; }
.filter-option.is-active {
  color:          var(--color-text);
  font-weight:    var(--weight-regular);
}
.filter-option.is-active::before { opacity: 1; }

/* Empty state */
.filter-empty {
  text-align:  center;
  color:       var(--color-text-muted);
  font-size:   var(--size-body-md);
  padding:     80px 0;
}

/* ── Mobile filter (≤ 768px) ─────────────────────────────── */
@media (max-width: 768px) {
  .filter-mobile-btn { display: flex; }

  /* Drawer hidden by default on mobile */
  .filter-drawer {
    display:        none;
    flex-direction: column;
    gap:            0;
    margin-bottom:  32px;
    padding-bottom: 0;
    border-bottom:  none;
    background:     var(--color-bg);
    border:         1px solid var(--color-divider);
    padding:        24px;
  }
  .filter-drawer.is-open { display: flex; }

  .filter-reset {
    order:         10; /* push reset to bottom in mobile */
    margin-top:    24px;
    padding-top:   24px;
    border-top:    1px solid var(--color-divider);
  }

  .filter-group {
    border-bottom: 1px solid var(--color-divider);
    padding:       16px 0;
  }
  .filter-group:last-of-type { border-bottom: none; }

  /* On mobile groups start collapsed */
  .filter-group__toggle { margin-bottom: 0; }
  .filter-group__options {
    margin-top: 16px;
    padding-left: 8px;
  }
  /* Keep chevron rotation logic via JS toggling is-closed */
}

/* ── 9. Statistics ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.stat-item {
  padding: 0 24px;
  border-left: 1px solid var(--color-divider);
}
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-number {
  font-size:   var(--size-stat);
  font-weight: var(--weight-semi);
  line-height: 1;
  color:       var(--color-text);
  margin-bottom: 8px;
}
.stat-label {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
}

/* ── 10. Services ──────────────────────────────────────────── */
.services-list { max-width: 800px; }
.service-item {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  border-top:      1px solid var(--color-divider);
  padding:         var(--inner) 0;
  transition:      background var(--duration) var(--ease);
}
.service-item:last-child { border-bottom: 1px solid var(--color-divider); }
.service-item__content { flex: 1; }
.service-item__name {
  font-size:   var(--size-h3);
  font-weight: var(--weight-semi);
  color:       var(--color-text);
  margin-bottom: 6px;
}
.service-item__desc {
  font-size:   var(--size-body-md);
  font-weight: var(--weight-light);
  color:       var(--color-text-muted);
}
.service-item__arrow {
  color:       var(--color-text-muted);
  font-size:   var(--size-nav);
  transform:   translateX(0);
  transition:  transform var(--duration) var(--ease), color var(--duration) var(--ease);
  margin-left: 24px;
}
.service-item:hover .service-item__arrow {
  transform: translateX(4px);
  color:     var(--color-text);
}

/* ── 11. CTA Section ───────────────────────────────────────── */
.cta-section {
  position:         relative;
  padding:          160px 0;
  text-align:       center;
  overflow:         hidden;
  background-color: #1A1A1A; /* fallback when no image is set */
}
.cta-section__bg {
  position:   absolute;
  inset:      0;
  z-index:    0;
}
.cta-section__bg img {
  width:      100%;
  height:     100%;
  object-fit: cover;
}
.cta-section__overlay {
  position:   absolute;
  inset:      0;
  background: rgba(0,0,0,0.6);
  z-index:    1;
}
.cta-section__content {
  position: relative;
  z-index:  2;
  padding:  0 var(--inner);
}
.cta-section__title {
  font-size:      clamp(32px, 4vw, 52px);
  font-weight:    var(--weight-semi);
  color:          #fff;
  margin-bottom:  32px;
  letter-spacing: -0.02em;
}
.cta-btn {
  display:     inline-block;
  padding:     16px 48px;
  border:      1px solid rgba(255,255,255,0.7);
  color:       #fff;
  font-size:   var(--size-nav);
  font-weight: var(--weight-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:  background var(--duration) var(--ease),
               border-color var(--duration) var(--ease),
               color var(--duration) var(--ease);
}
.cta-btn:hover {
  background:   var(--color-accent);
  border-color: var(--color-accent);
  color:        #fff;
}

/* ── 12. Footer ────────────────────────────────────────────── */
.site-footer {
  background:    var(--color-bg);
  border-top:    1px solid var(--color-divider);
  padding:       80px 0 40px;
}
.footer-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:                   64px;
  margin-bottom:         64px;
}
.footer-brand__name {
  font-size:   18px;
  font-weight: var(--weight-semi);
  margin-bottom: 8px;
}
.footer-brand__tagline {
  font-size:   var(--size-body-md);
  font-weight: var(--weight-light);
  color:       var(--color-text-muted);
  margin-bottom: 24px;
}
.footer-nap {
  font-size:   var(--size-body-md);
  font-weight: var(--weight-light);
  color:       var(--color-text-muted);
  line-height: 1.8;
}
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  transition:     color var(--duration) var(--ease);
}
.footer-nav a:hover { color: var(--color-text); }
.footer-nav a.is-active { color: var(--color-accent); }

.footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-social a {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  transition:     color var(--duration) var(--ease);
}
.footer-social a:hover { color: var(--color-text); }

.footer-bottom {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  border-top:      1px solid var(--color-divider);
  padding-top:     24px;
}
.footer-bottom p,
.footer-bottom a {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.08em;
  color:          var(--color-text-muted);
  transition:     color var(--duration) var(--ease);
}
.footer-bottom a:hover { color: var(--color-text); }

.footer-legal {
  display:         flex;
  flex-wrap:       wrap;
  gap:             16px;
  list-style:      none;
  padding:         0;
  margin:          0;
  align-items:     center;
}
.footer-legal li {
  display: inline-flex;
  align-items: center;
}
.footer-legal li + li::before {
  content:     '·';
  margin-right: 16px;
  color:       var(--color-divider);
}

/* ── 13. Team page ─────────────────────────────────────────── */
.team-leads {
  display: grid;
  grid-template-columns: 45fr 30fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
}

/* Homepage team section — symmetric 2-col, no offset, card-level animation */
.team-leads--home {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 0;
}
.team-leads--home .team-lead {
  /* override: no stagger on the wrapper; each card animates individually */
}
.team-leads--home .team-lead__img-wrap {
  aspect-ratio: 3/4;
}
.team-leads--home .team-lead--secondary .team-lead__img-wrap,
.team-leads--home .team-lead:nth-child(2) .team-lead__img-wrap {
  margin-top: 0; /* remove asymmetric offset from csapat page */
}
.team-lead__img-wrap {
  overflow: hidden;
  background: var(--color-bg-alt);
}
.team-lead--primary .team-lead__img-wrap { aspect-ratio: 4/5; }
.team-lead--secondary .team-lead__img-wrap { aspect-ratio: 4/5; margin-top: 80px; }
.team-lead__img { width: 100%; height: 100%; object-fit: cover; }
.team-lead__name {
  font-size:   var(--size-h3);
  font-weight: var(--weight-semi);
  margin-top:  20px;
  margin-bottom: 4px;
}
.team-lead__title {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
}
.team-all-link {
  display:    inline-flex;
  align-items: center;
  gap:        8px;
  font-size:  var(--size-nav);
  font-weight: var(--weight-light);
  color:      var(--color-accent);
  transition: gap var(--duration) var(--ease);
}
.team-all-link:hover { gap: 12px; }

/* Team full grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.team-member__img-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--color-bg-alt);
  margin-bottom: 16px;
}
.team-member__img { width: 100%; height: 100%; object-fit: cover; }
.team-member__name {
  font-size:   var(--size-h3);
  font-weight: var(--weight-semi);
}
.team-member__info {
  margin-top: 16px;
}
.team-member__title {
  font-size:      var(--size-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  margin-top:     4px;
}
.team-member__email {
  display:        block;
  font-size:      var(--size-label);
  font-weight:    var(--weight-regular);
  letter-spacing: 0.04em;
  color:          var(--color-text-muted);
  margin-top:     10px;
  transition:     color var(--duration) var(--ease);
}
.team-member__email:hover { color: var(--color-accent); }
.team-member__linkedin {
  display:    inline-flex;
  align-items: center;
  margin-top:  10px;
  color:       var(--color-text-muted);
  transition:  color var(--duration) var(--ease);
}
.team-member__linkedin:hover { color: var(--color-accent); }

/* Team lead bio + LinkedIn */
.team-lead__bio {
  font-size:   var(--size-body-md);
  color:       var(--color-text-muted);
  line-height: 1.7;
  margin-top:  16px;
  max-width:   340px;
}
.team-lead__bio p { margin: 0 0 0.75em; }
.team-lead__bio p:last-child { margin-bottom: 0; }
.team-lead__links {
  display:        flex;
  flex-direction: column;
  gap:            10px;
  margin-top:     20px;
}
.team-lead__email {
  font-size:      var(--size-label);
  font-weight:    var(--weight-regular);
  letter-spacing: 0.04em;
  color:          var(--color-text-muted);
  transition:     color var(--duration) var(--ease);
}
.team-lead__email:hover { color: var(--color-accent); }
.team-lead__linkedin {
  display:     inline-flex;
  align-items: center;
  gap:         8px;
  font-size:   var(--size-label);
  font-weight: var(--weight-regular);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:       var(--color-text-muted);
  transition:  color var(--duration) var(--ease);
}
.team-lead__linkedin:hover { color: var(--color-accent); }

/* ── 14. News / Archive ────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}
.news-item { border-top: 1px solid var(--color-divider); padding-top: 24px; }
.news-item__header {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  margin-bottom:   12px;
}
.news-item__cat {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-accent);
}
.news-item__date {
  font-size:   var(--size-label);
  font-weight: var(--weight-light);
  color:       var(--color-text-muted);
}
.news-item__title {
  font-size:   var(--size-h3);
  font-weight: var(--weight-semi);
  line-height: 1.4;
  margin-bottom: 16px;
  transition:  color var(--duration) var(--ease);
}
.news-item:hover .news-item__title { color: var(--color-accent); }
.news-item__more {
  font-size:   var(--size-nav);
  font-weight: var(--weight-light);
  color:       var(--color-text-muted);
  display:     inline-flex;
  align-items: center;
  gap:         6px;
  transition:  gap var(--duration) var(--ease), color var(--duration) var(--ease);
}
.news-item:hover .news-item__more {
  color: var(--color-text);
  gap:   10px;
}
.news-item__excerpt {
  font-size:     var(--size-body-md);
  font-weight:   var(--weight-light);
  line-height:   1.6;
  color:         var(--color-text-muted);
  margin-bottom: 16px;
}

/* News category filter tabs */
.filter-tabs {
  display:        flex;
  flex-wrap:      wrap;
  gap:            8px 24px;
  margin-bottom:  64px;
  border-bottom:  1px solid var(--color-divider);
  padding-bottom: 16px;
}
.filter-tab {
  background:     transparent;
  border:         0;
  padding:        8px 0;
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  cursor:         pointer;
  transition:     color var(--duration) var(--ease);
}
.filter-tab:hover { color: var(--color-text); }
.filter-tab.is-active { color: var(--color-accent); }
.news-pagination .page-numbers {
  display:        inline-block;
  padding:        8px 12px;
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  color:          var(--color-text-muted);
  text-decoration: none;
  transition:     color var(--duration) var(--ease);
}
.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current { color: var(--color-accent); }

/* ── 15. Breadcrumb ───────────────────────────────────────── */
.breadcrumb {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         0;
  padding:     28px 0 0;
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  opacity: 0.65;
}
.breadcrumb a {
  color:           var(--color-text-muted);
  text-decoration: none;
  transition:      color 0.2s;
}
.breadcrumb a:hover {
  color: var(--color-text);
}
.breadcrumb__sep {
  margin:     0 10px;
  opacity:    0.4;
  font-weight: var(--weight-light);
}
.breadcrumb > span:last-child {
  color:   var(--color-text);
  opacity: 0.5;
}

/* ── 15b. Archive projekt grid ─────────────────────────────── */
.projects-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   var(--gap, 24px);
}

/* Size variants — col-span + aspect-ratio */
.projects-grid .proj-item { flex: none; } /* override homepage scroll flex */

.projects-grid .proj-item--lg {
  grid-column: span 2;
}
.projects-grid .proj-item--lg .proj-item__img-wrap {
  aspect-ratio: 16 / 10;
}
.projects-grid .proj-item--sm .proj-item__img-wrap {
  aspect-ratio: 3 / 4;
}
.projects-grid .proj-item--md .proj-item__img-wrap {
  aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-grid .proj-item--lg { grid-column: span 2; }
  .projects-grid .proj-item--sm,
  .projects-grid .proj-item--md { grid-column: span 1; }
  .projects-grid .proj-item--sm .proj-item__img-wrap,
  .projects-grid .proj-item--md .proj-item__img-wrap { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid .proj-item--lg,
  .projects-grid .proj-item--sm,
  .projects-grid .proj-item--md { grid-column: span 1; }
  .projects-grid .proj-item--lg .proj-item__img-wrap,
  .projects-grid .proj-item--sm .proj-item__img-wrap,
  .projects-grid .proj-item--md .proj-item__img-wrap { aspect-ratio: 16 / 9; }
}

/* ── 16. Single projekt ────────────────────────────────────── */
.projekt-hero {
  width:        100%;
  aspect-ratio: 16 / 9;  /* show full 16:9 image, no cropping */
  overflow:     hidden;
  position:     relative;
  margin-top:   0;       /* nav is position:fixed — overlays the hero like on front page */
}
.projekt-hero img {
  width:      100%;
  height:     100%;
  object-fit: cover;     /* cover is fine — aspect-ratio ensures no cropping on 16:9 images */
}
.projekt-hero__overlay {
  position: absolute;
  inset:    0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.15) 50%,
    transparent 100%
  );
}
.projekt-hero__content {
  position:   absolute;
  bottom:     15%;   /* ~15% from bottom = visually higher than footer-pinned */
  left:       0;
  right:      0;
  z-index:    2;
  padding:    0 var(--inner);
  max-width:  var(--container);
  margin:     0 auto;
  width:      100%;
}
.projekt-hero__category {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.7);
  margin-bottom:  12px;
}
.projekt-hero__title {
  font-size:      clamp(2rem, 5vw, var(--size-h1));
  font-weight:    var(--weight-semi);
  line-height:    1.1;
  letter-spacing: -0.02em;
  color:          #fff;
  max-width:      800px;
  margin:         0;
  text-shadow:    0 2px 8px rgba(0,0,0,0.3);
}
.projekt-content {
  display: grid;
  grid-template-columns: 60fr 35fr;
  gap: 80px;
  padding: 80px 0;
}
.projekt-data { }
.projekt-data__row {
  border-top: 1px solid var(--color-divider);
  padding: 16px 0;
}
.projekt-data__label {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  margin-bottom:  4px;
}
.projekt-data__value {
  font-size:   var(--size-body-md);
  font-weight: var(--weight-semi);
}
.projekt-awards {
  display:        flex;
  flex-direction: column;
  gap:            6px;
  margin-top:     2px;
}
.projekt-award-item {
  font-size:   var(--size-body-md);
  font-weight: var(--weight-regular);
  color:       var(--color-text);
}
.projekt-award-item__year {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  color:          var(--color-accent);
  margin-right:   8px;
  letter-spacing: 0.06em;
}
.projekt-award-item__link {
  color:           var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-divider);
  transition:      text-decoration-color var(--duration) var(--ease);
}
.projekt-award-item__link:hover {
  text-decoration-color: var(--color-accent);
}
.award-item__name--link {
  display:         block;
  color:           var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-divider);
  transition:      text-decoration-color var(--duration) var(--ease);
  font-size:       var(--size-body-lg);
  font-weight:     var(--weight-regular);
}
.award-item__name--link:hover {
  text-decoration-color: var(--color-accent);
}
.award-item__silent-link {
  color:           inherit;
  text-decoration: none;
  cursor:          pointer;
}

/* Gallery asymmetric */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin: 64px 0;
}
.gallery-item { position: relative; overflow: hidden; background: var(--color-bg-alt); }
.gallery-item--lg { grid-column: span 8; aspect-ratio: 4/3; }
.gallery-item--sm { grid-column: span 4; aspect-ratio: 3/4; margin-top: 96px; }
.gallery-item--md { grid-column: 4 / span 6; aspect-ratio: 1/1; }
.gallery-item img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}
.gallery-item:hover img { transform: scale(1.02); }
.gallery-item { cursor: zoom-in; }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position:        fixed;
  inset:           0;
  z-index:         9000;
  background:      rgba(0,0,0,0.95);
  display:         flex;
  align-items:     center;
  justify-content: center;
  opacity:         0;
  pointer-events:  none;
  transition:      opacity 300ms var(--ease);
}
.lightbox.is-open {
  opacity:        1;
  pointer-events: all;
}
.lightbox__img-wrap {
  position:        relative;
  max-width:       90vw;
  max-height:      90vh;
  display:         flex;
  align-items:     center;
  justify-content: center;
}
.lightbox__img {
  max-width:        90vw;
  max-height:       90vh;
  object-fit:       contain;
  display:          block;
  opacity:          0;
  cursor:           zoom-in;
  transition:       opacity 300ms var(--ease);
  transform-origin: center center;
  user-select:      none;
  -webkit-user-drag: none;
}
.lightbox.is-open .lightbox__img { opacity: 1; }

.lightbox__close,
.lightbox__fullscreen {
  position:    fixed;
  top:         24px;
  color:       rgba(255,255,255,0.7);
  line-height: 1;
  cursor:      pointer;
  transition:  color 200ms, background 200ms;
  z-index:     9001;
  background:  none;
  border:      none;
  font-family: var(--font-family);
  display:     inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close,
.lightbox__fullscreen  { right: auto; padding: 10px; }
.lightbox__close       { right: 24px; }
.lightbox__fullscreen  { right: 64px; }
.lightbox__close:hover,
.lightbox__fullscreen:hover { color: #fff; }
.lightbox__prev,
.lightbox__next {
  position:    fixed;
  top:         50%;
  transform:   translateY(-50%);
  color:       rgba(255,255,255,0.6);
  font-size:   40px;
  line-height: 1;
  cursor:      pointer;
  padding:     16px;
  transition:  color 200ms;
  background:  none;
  border:      none;
  font-family: var(--font-family);
  z-index:     9001;
}
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev:hover,
.lightbox__next:hover { color: #fff; }
.lightbox__caption {
  position:    fixed;
  bottom:      24px;
  left:        50%;
  transform:   translateX(-50%);
  color:       rgba(255,255,255,0.5);
  font-size:   var(--size-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lightbox__counter {
  position:    fixed;
  top:         28px;
  left:        32px;
  color:       rgba(255,255,255,0.4);
  font-size:   var(--size-label);
  letter-spacing: 0.08em;
}
.gallery-item__caption {
  font-size:      var(--size-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  margin-top:     12px;
}

/* ── Project credits ──────────────────────────────────────── */
.projekt-credits {
  max-width:    640px;
  margin:       96px 0 32px;
  border-top:   1px solid var(--color-divider);
  padding-top:  32px;
}
.projekt-credits__heading {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  margin:         0 0 20px;
}
.projekt-credits__body {
  font-size:   var(--size-body-md);
  line-height: 1.6;
  color:       var(--color-text-muted);
}
.projekt-credits__body p { margin: 0 0 8px; }
.projekt-credits__body p:last-child { margin-bottom: 0; }

/* Related projects */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* ── 16. Contact page ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0;
}
.contact-info__label {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  margin-bottom:  4px;
}
.contact-info__value {
  font-size:   var(--size-body-lg);
  font-weight: var(--weight-light);
  color:       var(--color-text);
  margin-bottom: 32px;
}
.contact-map {
  margin-top: 40px;
  height: 280px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.contact-map iframe {
  width:  100%;
  height: 100%;
  border: none;
  filter: grayscale(0.3);
}

/* Contact form */
.contact-form { }
.form-group { margin-bottom: 32px; }
.form-label {
  display:        block;
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--color-text-muted);
  margin-bottom:  8px;
}
.form-input,
.form-select,
.form-textarea {
  width:        100%;
  background:   transparent;
  border:       none;
  border-bottom: 1px solid var(--color-text);
  padding:      12px 0;
  font-family:  var(--font-family);
  font-size:    var(--size-body-md);
  font-weight:  var(--weight-light);
  color:        var(--color-text);
  outline:      none;
  transition:   border-color var(--duration) var(--ease);
  border-radius: 0;
  appearance:   none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--color-accent); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width:        100%;
  padding:      18px;
  background:   var(--color-accent);
  color:        #fff;
  font-family:  var(--font-family);
  font-size:    var(--size-nav);
  font-weight:  var(--weight-semi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border:       none;
  cursor:       pointer;
  transition:   background var(--duration) var(--ease);
}
.form-submit:hover { background: #a00e4e; }
.form-message { margin-top: 16px; font-size: var(--size-body-md); }
.form-message--success { color: #005726; }
.form-message--error   { color: #ba1a1a; }

/* ── Micro-interactions ─────────────────────────────────────── */

/* Focus line: grows from center over border-bottom */
.form-group {
  position: relative;
}
.form-group::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
  pointer-events: none;
}
.form-group.is-focused::after { transform: scaleX(1); }

/* Label: color shift on focus */
.form-label { transition: color 0.25s var(--ease); }
.form-group.is-focused .form-label { color: var(--color-accent); }

/* Submit button: loading / success / error states */
.form-submit {
  transition: background var(--duration) var(--ease),
              opacity var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.form-submit--loading {
  opacity: 0.65;
  cursor: wait;
}
.form-submit--success {
  background: #1a6b3f;
}
.form-submit--success:hover { background: #1a6b3f; }

.form-submit--error {
  animation: form-shake 0.45s ease;
}
@keyframes form-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(3px); }
}

/* Stagger: projekt page sequential reveal */
.stagger-children .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-up:nth-child(2) { transition-delay: 0.12s; }
.stagger-children .fade-up:nth-child(3) { transition-delay: 0.22s; }
.stagger-children .fade-up:nth-child(4) { transition-delay: 0.30s; }
.stagger-children .fade-up:nth-child(5) { transition-delay: 0.37s; }

/* ── 17. Iroda (About) page ────────────────────────────────── */
.iroda-hero {
  padding: 120px 0 80px;
}
.iroda-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}
.iroda-values { margin-top: 80px; }
.iroda-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}
.value-item { border-top: 2px solid var(--color-accent); padding-top: 24px; }
.value-item__name {
  font-size:   var(--size-h3);
  font-weight: var(--weight-semi);
  margin-bottom: 12px;
}
.value-item__desc {
  font-size:   var(--size-body-md);
  font-weight: var(--weight-light);
  color:       var(--color-text-muted);
  line-height: 1.7;
}

/* ── Awards + Press two-column layout (Iroda page) ─────────── */
.iroda-awards-press { margin-top: 80px; }
.awards-press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
}
@media (max-width: 768px) {
  .awards-press-grid {
    grid-template-columns: 1fr;
    gap: 64px 0;
  }
  /* Lightbox: 44px touch targets, hide chevrons (use swipe + tap zones) */
  .lightbox__close      { right: 8px;  top: 12px; padding: 11px; }
  .lightbox__fullscreen { right: 56px; top: 12px; padding: 11px; }
  .lightbox__prev,
  .lightbox__next       { display: none; }
  .lightbox__caption,
  .lightbox__counter    { font-size: 11px; }
  .lightbox__counter    { top: 18px; left: 18px; }
}

/* Show more toggle */
.list-overflow {
  max-height: 0;
  overflow: hidden;
  transition: max-height 600ms ease;
}
.list-overflow.is-open {
  max-height: 3000px;
}
.show-more-btn {
  margin-top: 24px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family:    var(--font-family);
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--color-accent);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 200ms;
}
.show-more-btn:hover { opacity: 0.7; }
.show-more-btn::after {
  content: '↓';
  transition: transform 300ms ease;
  display: inline-block;
}
.show-more-btn.is-open::after {
  transform: rotate(180deg);
}

/* ── Awards list (Iroda page) ───────────────────────────────── */
.iroda-awards { margin-top: 80px; }
.awards-list {
  border-top: 1px solid var(--color-divider);
}
.award-item {
  display:         flex;
  align-items:     baseline;
  gap:             40px;
  padding:         28px 0;
  border-bottom:   1px solid var(--color-divider);
}
.award-item__year {
  font-size:      var(--size-label);
  font-weight:    var(--weight-light);
  letter-spacing: 0.1em;
  color:          var(--color-accent);
  min-width:      48px;
  flex-shrink:    0;
}
.award-item__name {
  font-size:   var(--size-body-lg);
  font-weight: var(--weight-regular);
  color:       var(--color-text);
}
.award-item__meta {
  font-size:   var(--size-body-md);
  font-weight: var(--weight-light);
  color:       var(--color-text-muted);
  margin-top:  4px;
}

/* ── 18. Scroll animations ─────────────────────────────────── */
.fade-up {
  opacity:   0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.is-visible {
  opacity:   1;
  transform: translateY(0);
}
/* stagger */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* hero content fade-in */
.hero-fade {
  opacity:   0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease) 0.3s, transform 0.8s var(--ease) 0.3s;
}
.hero-fade.is-loaded {
  opacity:   1;
  transform: translateY(0);
}

/* ── 19. Page header (inner pages) ────────────────────────── */
:root { --nav-height: 128px; }
.page-header {
  padding: var(--nav-height) 0 0;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: 64px;
}
.page-header__title {
  font-size:      var(--size-h1);
  font-weight:    var(--weight-semi);
  letter-spacing: -0.02em;
  line-height:    1.1;
  margin-bottom:  48px;
}

/* ── 20. Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-left: none; border-top: 1px solid var(--color-divider); padding: 24px 0 0; }
  .stat-item:nth-child(-n+2) { border-top: none; }
  .team-leads { grid-template-columns: 1fr 1fr; gap: 40px; }
  .team-lead--secondary .team-lead__img-wrap { margin-top: 40px; }
  .team-leads--home { grid-template-columns: 1fr 1fr; gap: 40px; }
  .team-leads--home .team-lead:nth-child(2) .team-lead__img-wrap { margin-top: 0; }
  .projekt-content { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  /* Mobile/tablet: form first, address+map second (form is the call-to-action) */
  .contact-grid > :nth-child(1) { order: 2; }
  .contact-grid > :nth-child(2) { order: 1; }
  .iroda-intro { grid-template-columns: 1fr; gap: 40px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; --inner: 20px; }
  /* Scroll track: on mobile cards are 80vw, right padding tighter */
  .projects-scroll {
    padding-right:  calc(var(--inner) + 60px);
    padding-bottom: 8px;   /* no stagger on mobile */
    align-items:    stretch;
  }
  /* Reset stagger — all cards same size and top-aligned on mobile */
  .proj-item,
  .proj-item:nth-child(3n+1),
  .proj-item:nth-child(3n+2),
  .proj-item:nth-child(3n) {
    flex:       0 0 80vw;
    margin-top: 0;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .team-leads { grid-template-columns: 1fr; }
  .team-lead--secondary .team-lead__img-wrap { margin-top: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--lg, .gallery-item--sm, .gallery-item--md {
    grid-column: span 1;
    grid-column-start: auto;
    margin-top: 0;
    aspect-ratio: 4/3;
  }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .iroda-values__grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .filter-drawer { padding: 16px; }
}

/* ─── Generic page (page.php) — privacy notice, cookie policy, etc. ───── */
.page-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 0 120px;
}
.page-doc__header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: 24px;
}
.page-doc__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.page-doc__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}
.page-doc__body p { margin: 0 0 16px; }
.page-doc__body h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 40px 0 12px;
  letter-spacing: -0.005em;
}
.page-doc__body h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 24px 0 8px;
}
.page-doc__body ul,
.page-doc__body ol {
  margin: 0 0 16px;
  padding-left: 20px;
}
.page-doc__body li { margin: 4px 0; }
.page-doc__body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-doc__body strong { font-weight: 600; }
.page-doc__body code {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 13px;
  background: var(--color-divider);
  padding: 2px 6px;
  border-radius: 2px;
}
.page-doc__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.page-doc__body th,
.page-doc__body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
}
.page-doc__body th {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.02);
}

/* ─── Complianz consent banner — brand override ────────────────────────── */
/* Hide Complianz's built-in floating "Manage Consent" tab — we have a
   footer "Manage cookies" link (.fdtaj-show-cookies) that does the same.
   Hide only the button (not the #cmplz-manage-consent container), so the
   JS revoke trigger still has its anchor target. */
.cmplz-btn.cmplz-manage-consent,
.cmplz-cookies-overview {
  display: none !important;
}


/* Width override — Complianz's bottom-right.css sets `min-width: var(--cmplz_banner_width)`
   which beats our `width` declaration. Force min-width to 0 so width controls the size.
   Also override display: grid (Complianz default) to block — grid items don't shrink to
   a 200px peek strip cleanly.
   Visibility is gated on .cmplz-show: Complianz toggles this class to dismiss the banner
   on Accept/Deny (NOT .cmplz-hidden, despite that class also existing in the markup). */
.cmplz-cookiebanner.banner-a {
  min-width: 0 !important;
  width: 200px !important;
  max-width: 200px !important;
}
.cmplz-cookiebanner.banner-a.cmplz-show {
  display: block !important;
}
.cmplz-cookiebanner.banner-a:not(.cmplz-show),
.cmplz-cookiebanner.banner-a.cmplz-dismissed,
.cmplz-cookiebanner.banner-a.cmplz-hidden {
  display: none !important;
}
.cmplz-cookiebanner.banner-a.cookie-peek-expanded {
  width: 340px !important;
  max-width: 340px !important;
}
/* Mobile: don't sit in bottom-right (collides with hero CTA). Center-bottom
   pill, sized to content so the strip doesn't span an empty 100% width. */
@media (max-width: 768px) {
  .cmplz-cookiebanner.banner-a {
    width: auto !important;
    max-width: calc(100% - 32px) !important;
    left: 50% !important;
    right: auto !important;
    bottom: 12px !important;
    transform: translateX(-50%) !important;
    padding: 0 16px !important;
    height: 32px !important;
    max-height: 32px !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .cmplz-cookiebanner.banner-a.cookie-peek-expanded {
    width: calc(100% - 32px) !important;
    max-width: calc(100% - 32px) !important;
    bottom: 12px !important;
    /* Collapsed mobile state locks the pill at height/max-height 32px and
       centers it as a flex pill; expanding must release the height clamp and
       switch to a scrollable block, otherwise the banner only widens (the
       content stays hidden behind overflow). */
    height: auto !important;
    max-height: min(80vh, 480px) !important;
    display: block !important;
    overflow-y: auto !important;
    padding: 16px 18px !important;
    font-size: 13px !important;
  }
  .cmplz-cookiebanner.banner-a:not(.cookie-peek-expanded) .cmplz-header {
    font-size: 13px !important;
    margin: 0 !important;
  }
}
/* Hide everything except the header in peek mode. */
.cmplz-cookiebanner.banner-a:not(.cookie-peek-expanded) > *:not(.cmplz-header) {
  display: none !important;
  visibility: hidden !important;
}
/* Peek-only header tweak (global flex rules above already center it). */
.cmplz-cookiebanner.banner-a:not(.cookie-peek-expanded) .cmplz-header {
  margin: 0 !important;
}
.cmplz-cookiebanner.banner-a {
  font-family: 'Prompt', system-ui, -apple-system, sans-serif !important;
  border-radius: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.5) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
  padding: 10px 14px !important;
  max-height: 40px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  transition: max-height 0.35s ease, padding 0.35s ease, width 0.35s ease, max-width 0.35s ease !important;
}
.cmplz-cookiebanner.banner-a.cookie-peek-expanded {
  max-height: 420px !important;
  padding: 16px 18px !important;
  cursor: default !important;
}
.cmplz-cookiebanner.banner-a .cmplz-header::after {
  content: ' ▲';
  display: inline-block;
  margin-left: 6px;
  font-size: 8px;
  opacity: 0.5;
  vertical-align: middle;
  transition: transform 0.3s;
}
.cmplz-cookiebanner.banner-a.cookie-peek-expanded .cmplz-header::after {
  transform: rotate(180deg);
  opacity: 0.3;
}
.cmplz-cookiebanner.banner-a .cmplz-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
  margin: 0 0 6px !important;
  color: #1a1a1a !important;
  white-space: nowrap !important;
}
.cmplz-cookiebanner.banner-a .cmplz-title {
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: 0.01em !important;
  color: #1a1a1a !important;
  white-space: nowrap !important;
  margin: 0 !important;
  /* Complianz default hides .cmplz-title below 425px — we want it visible
     on every screen so the peek strip shows the label, not just the ▲ marker. */
  display: inline-block !important;
  justify-self: auto !important;
  grid-column-start: auto !important;
}
.cmplz-cookiebanner.banner-a.cookie-peek-expanded .cmplz-header {
  margin-bottom: 12px !important;
}
.cmplz-cookiebanner.banner-a .cmplz-message {
  font-family: inherit !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  color: #1a1a1a !important;
  margin-bottom: 12px !important;
}
.cmplz-cookiebanner.banner-a .cmplz-message a,
.cmplz-cookiebanner.banner-a .cmplz-links a {
  color: #C0105A !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}
.cmplz-cookiebanner.banner-a .cmplz-buttons {
  display: flex !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
  margin-top: 8px !important;
}
.cmplz-cookiebanner.banner-a .cmplz-btn {
  font-family: inherit !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  border-radius: 0 !important;
  padding: 9px 14px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  transition: all 0.15s ease !important;
  border-width: 1px !important;
  cursor: pointer !important;
}
.cmplz-cookiebanner.banner-a .cmplz-btn.cmplz-accept,
.cmplz-cookiebanner.banner-a .cmplz-btn.cmplz-accept-all {
  background: #C0105A !important;
  color: #ffffff !important;
  border: 1px solid #C0105A !important;
}
.cmplz-cookiebanner.banner-a .cmplz-btn.cmplz-accept:hover,
.cmplz-cookiebanner.banner-a .cmplz-btn.cmplz-accept-all:hover {
  background: #9d0d4a !important;
  border-color: #9d0d4a !important;
}
.cmplz-cookiebanner.banner-a .cmplz-btn.cmplz-deny {
  background: transparent !important;
  color: #1a1a1a !important;
  border: 1px solid #1a1a1a !important;
}
.cmplz-cookiebanner.banner-a .cmplz-btn.cmplz-deny:hover {
  background: #1a1a1a !important;
  color: #ffffff !important;
}
.cmplz-cookiebanner.banner-a .cmplz-btn.cmplz-view-preferences,
.cmplz-cookiebanner.banner-a .cmplz-btn.cmplz-categories,
.cmplz-cookiebanner.banner-a .cmplz-btn.cmplz-save-preferences {
  background: transparent !important;
  color: #777 !important;
  border: 1px solid transparent !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.cmplz-cookiebanner.banner-a .cmplz-btn.cmplz-view-preferences:hover,
.cmplz-cookiebanner.banner-a .cmplz-btn.cmplz-categories:hover,
.cmplz-cookiebanner.banner-a .cmplz-btn.cmplz-save-preferences:hover {
  color: #1a1a1a !important;
}
.cmplz-cookiebanner.banner-a .cmplz-category .cmplz-slider {
  background: #e6e6e6 !important;
}
.cmplz-cookiebanner.banner-a .cmplz-category input:checked + .cmplz-slider {
  background: #C0105A !important;
}
@media (max-width: 600px) {
  .cmplz-cookiebanner.banner-a {
    max-width: calc(100% - 32px) !important;
    margin: 16px !important;
    padding: 20px !important;
  }
  .cmplz-cookiebanner.banner-a .cmplz-btn {
    flex: 1 1 100% !important;
    text-align: center !important;
  }
}
