/* ============================================================
   THERMO Kft. — Design system v2
   Editorial Luxury · Awwwards-tier · warm cream + brand scarlet
   Fraunces (display) · Plus Jakarta Sans (body)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --red: #C92A25;
  --red-deep: #9E1D19;
  --red-soft: #E0574F;

  /* Warm ink & greys (espresso base) */
  --ink: #1B1613;
  --ink-2: #2A231E;
  --graphite: #4C443D;
  --grey: #726A61;
  --grey-mute: #A89E92;

  /* Hairlines (never hard) */
  --line: rgba(27, 22, 19, .09);
  --line-2: rgba(27, 22, 19, .14);
  --line-hi: rgba(255, 255, 255, .65);

  /* Warm paper */
  --paper: #FDFBF7;
  --bone: #F5F1E9;
  --bone-2: #EDE7DB;
  --white: #FFFFFF;

  /* Dark surface (warm black) */
  --dark: #17120E;
  --dark-2: #201913;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Rhythm — heavy breathing room */
  --wrap: 1200px;
  --wrap-narrow: 800px;
  --section-y: clamp(5.5rem, 11vw, 11rem);

  /* Squircle radii */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Motion — spring-ish */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* Soft, diffused, warm-tinted shadows (no harsh black) */
  --shadow-soft: 0 2px 4px rgba(27,22,19,.03), 0 10px 26px -10px rgba(27,22,19,.08), 0 30px 60px -30px rgba(27,22,19,.12);
  --shadow-lift: 0 4px 10px rgba(27,22,19,.05), 0 18px 44px -14px rgba(27,22,19,.14), 0 46px 90px -44px rgba(27,22,19,.22);
  --shadow-glass: 0 6px 18px -6px rgba(27,22,19,.10), 0 20px 50px -20px rgba(27,22,19,.16);
  --inset-hi: inset 0 1px 0 rgba(255,255,255,.7);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.6;
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.08rem);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

/* ---------- Film-grain overlay (fixed, non-interactive) ---------- */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 380;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-optical-sizing: auto;
}
.display {
  font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem);
  font-weight: 340;
  line-height: 1.0;
  letter-spacing: -0.035em;
}
h2.section-title { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.7rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.62rem); font-weight: 400; }
.lede { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem); line-height: 1.45; color: var(--graphite); }
em, .italic { font-style: italic; }
strong { font-weight: 700; color: var(--ink); }
p + p { margin-top: 1.1em; }

/* Eyebrow — pill badge */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body);
  font-size: .66rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red);
  padding: .42rem .85rem;
  border-radius: var(--r-pill);
  background: rgba(201,42,37,.06);
  box-shadow: inset 0 0 0 1px rgba(201,42,37,.16);
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex: none; }
.eyebrow--muted { color: var(--grey); background: rgba(27,22,19,.04); box-shadow: inset 0 0 0 1px var(--line); }
.eyebrow--muted::before { background: var(--grey-mute); }
.eyebrow--light { color: var(--red-soft); background: rgba(224,87,79,.10); box-shadow: inset 0 0 0 1px rgba(224,87,79,.24); }
.eyebrow--light::before { background: var(--red-soft); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.wrap--narrow { max-width: var(--wrap-narrow); }
section { position: relative; }
.section { padding-block: var(--section-y); }
.section--bone { background: var(--bone); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--dark); color: var(--bone); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 780px; margin-bottom: clamp(2.6rem, 5vw, 4.4rem); }
.section-head .eyebrow { margin-bottom: 1.5rem; }
.section-head p { margin-top: 1.3rem; color: var(--grey); max-width: 58ch; font-size: 1.08rem; }
.section--ink .section-head p { color: rgba(245,241,233,.66); }
.hairline { height: 1px; background: var(--line); border: 0; }

/* ---------- Buttons — pill + button-in-button icon ---------- */
.btn {
  --bg: var(--ink); --fg: var(--bone);
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .7rem .8rem .7rem 1.5rem;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: .88rem; font-weight: 600; letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  position: relative;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.14);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .4s ease, color .4s ease;
  will-change: transform;
}
.btn .btn__arrow {
  width: 34px; height: 34px; flex: none; padding: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: var(--fg);
  box-sizing: border-box;
  transition: transform .5s var(--ease), background .4s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255,255,255,.16); }
.btn:hover .btn__arrow { transform: translate(3px, -2px) scale(1.06); }
.btn:active { transform: translateY(-1px) scale(.985); }
.btn--primary { --bg: var(--red); --fg: #fff; }
.btn--primary:hover { --bg: var(--red-deep); }
.btn--ghost {
  --bg: rgba(27,22,19,.02); --fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--inset-hi);
}
.btn--ghost .btn__arrow { background: rgba(27,22,19,.06); color: var(--ink); }
.btn--ghost:hover { --bg: var(--white); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-soft); }
.section--ink .btn--ghost { --bg: rgba(255,255,255,.04); --fg: var(--bone); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.section--ink .btn--ghost .btn__arrow { background: rgba(255,255,255,.12); color: #fff; }

/* Text link */
.tlink {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .92rem; color: var(--ink);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .5s var(--ease), color .3s ease;
}
.tlink:hover { background-size: 100% 1.5px; color: var(--red); }
.tlink .btn__arrow { width: 18px; height: 18px; padding: 0; transition: transform .45s var(--ease); }
.tlink:hover .btn__arrow { transform: translateX(4px); }
.section--ink .tlink { color: #fff; }

/* ============================================================
   HEADER — Fluid glass island
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: clamp(.85rem, 1.6vw, 1.35rem);
  padding-inline: 1rem;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: 100%; max-width: 1200px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem;
  padding: .5rem .5rem .5rem 1.4rem;
  border-radius: var(--r-pill);
  background: rgba(253,251,247,.55);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), 0 1px 0 rgba(27,22,19,.03);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  transition: box-shadow .6s var(--ease), background .6s var(--ease), transform .6s var(--ease), max-width .6s var(--ease);
}
.site-header.is-scrolled .nav {
  /* 8 menüpontnál a szélesség-zsugorodás kilógna a pillből — csak a háttér/árnyék változik. */
  max-width: 1200px;
  background: rgba(253,251,247,.82);
  box-shadow: var(--shadow-glass), inset 0 0 0 1px rgba(255,255,255,.6);
}
.brand { display: flex; align-items: center; gap: .65rem; z-index: 2; }
.brand__mark { width: 36px; height: 36px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 4px rgba(27,22,19,.12)); }
.brand__word { font-family: var(--font-body); font-weight: 800; letter-spacing: .16em; font-size: .98rem; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: clamp(.4rem, 1.1vw, 1.15rem); }
.nav__link {
  font-size: .85rem; font-weight: 500; letter-spacing: -0.005em; color: var(--graphite);
  position: relative; padding: .45rem .2rem; transition: color .3s ease; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: .2rem; right: .2rem; bottom: .15rem; height: 1.5px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta { padding: .5rem .55rem .5rem 1.15rem; font-size: .82rem; }
.nav__cta .btn__arrow { width: 30px; height: 30px; padding: 8px; }

.nav__toggle { display: none; width: 44px; height: 44px; z-index: 2; position: relative; border-radius: 50%; }
.nav__toggle span { position: absolute; left: 12px; width: 20px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease), opacity .3s ease; }
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav__toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1220px) {
  /* Labeled hamburger pill — a plain burger icon was not discoverable; a "Menü"
     label makes the collapsed menu obvious (family feedback, 2026-07). */
  .nav__toggle {
    display: flex; align-items: center; width: auto; height: 40px;
    padding: 0 42px 0 15px; border-radius: 999px;
    background: rgba(27,22,19,.05); box-shadow: inset 0 0 0 1px rgba(27,22,19,.14);
    color: var(--ink); font-family: var(--font-body); font-weight: 600;
    font-size: .82rem; letter-spacing: .03em;
  }
  .nav__toggle::before { content: "Menü"; }
  body.nav-open .nav__toggle::before { content: "Bezárás"; }
  .nav__toggle span { left: auto; right: 16px; }
  .nav__toggle span:nth-child(1) { top: 15px; }
  .nav__toggle span:nth-child(2) { top: 20px; }
  .nav__toggle span:nth-child(3) { top: 25px; }
  /* Drop the pill's backdrop-filter on mobile: a filtered ancestor becomes the
     containing block for position:fixed children and would trap the menu overlay. */
  .site-header .nav,
  .site-header.is-scrolled .nav {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(253,251,247,.92);
  }
  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: center; justify-content: center;
    gap: clamp(.25rem, 1.4vw, .75rem);
    padding: 5.5rem 1.5rem 3rem;
    overflow-y: auto;
    background: rgba(247,243,236,.98);
    backdrop-filter: saturate(140%) blur(22px);
    -webkit-backdrop-filter: saturate(140%) blur(22px);
    clip-path: circle(0% at calc(100% - 42px) 42px);
    transition: clip-path .7s var(--ease);
    pointer-events: none;
  }
  body.nav-open .nav__links { clip-path: circle(160% at calc(100% - 42px) 42px); pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .nav__link {
    font-family: var(--font-display); font-weight: 380;
    font-size: clamp(1.55rem, 6vw, 2.25rem); line-height: 1.2; color: var(--ink);
    padding: .15rem 0;
    opacity: 0; transform: translateY(22px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--red); }
  body.nav-open .nav__link { opacity: 1; transform: none; }
  body.nav-open .nav__link:nth-child(1) { transition-delay: .10s; }
  body.nav-open .nav__link:nth-child(2) { transition-delay: .15s; }
  body.nav-open .nav__link:nth-child(3) { transition-delay: .20s; }
  body.nav-open .nav__link:nth-child(4) { transition-delay: .25s; }
  body.nav-open .nav__link:nth-child(5) { transition-delay: .30s; }
  body.nav-open .nav__link:nth-child(6) { transition-delay: .35s; }
  body.nav-open .nav__link:nth-child(7) { transition-delay: .40s; }
  /* Show the CTA as a button at the bottom of the open menu */
  .nav__cta {
    display: inline-flex; margin-top: 1.4rem; font-size: .92rem;
    opacity: 0; transform: translateY(22px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  body.nav-open .nav__cta { opacity: 1; transform: none; transition-delay: .46s; }
  .nav__cta .btn__arrow { width: 34px; height: 34px; padding: 9px; }
}

/* ============================================================
   HERO — Editorial Split
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(8rem, 12vw, 11rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  min-height: min(100dvh, 900px);
  display: flex; align-items: center;
  background:
    radial-gradient(120% 80% at 88% 8%, rgba(201,42,37,.08), transparent 55%),
    radial-gradient(90% 70% at 6% 100%, rgba(27,22,19,.05), transparent 60%),
    linear-gradient(180deg, var(--bone) 0%, var(--paper) 45%, var(--bone) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; width: 100%; }
.hero__eyebrow { margin-bottom: 1.9rem; }
.hero h1 { margin-bottom: 1.9rem; }
.hero h1 .accent { color: var(--red); font-style: italic; font-weight: 340; }
.hero__sub { max-width: 44ch; color: var(--graphite); font-size: clamp(1.08rem, 1rem + 0.45vw, 1.28rem); line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

/* Layered double-bezel visual (Z-axis cascade) */
.hero__visual { position: relative; align-self: stretch; min-height: 480px; }
.hero__shell {
  position: relative; height: 100%; min-height: 480px;
  padding: 10px; border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(237,231,219,.5));
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(255,255,255,.6);
}
.hero__frame {
  position: relative; height: 100%; min-height: 460px;
  border-radius: calc(var(--r-xl) - 10px);
  overflow: hidden;
  background: radial-gradient(130% 100% at 72% 8%, #2c2620 0%, #1c1712 52%, #120e0a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 60px rgba(0,0,0,.3);
}
.hero__frame::after { content: none; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.hero__frame-mark { position: absolute; inset: 0; margin: auto; width: 56%; max-width: 250px; opacity: .92; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
/* Floating badge — nested card */
.hero__badge {
  position: absolute; right: -18px; top: 34px; z-index: 3;
  padding: 6px; border-radius: var(--r);
  background: rgba(253,251,247,.7); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(255,255,255,.6);
}
.hero__badge-core {
  background: var(--red); color: #fff;
  padding: .85rem 1.15rem; border-radius: calc(var(--r) - 6px);
  text-align: center; line-height: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.hero__badge b { font-family: var(--font-display); font-size: 1.7rem; display: block; font-weight: 400; }
.hero__badge span { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; opacity: .9; margin-top: .25rem; display: block; }
/* Small overlapping chip (Z-axis) */
.hero__chip {
  position: absolute; left: -22px; bottom: 46px; z-index: 3;
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .95rem .7rem .75rem; border-radius: var(--r-pill);
  background: rgba(253,251,247,.72); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(255,255,255,.6);
}
.hero__chip-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--bone-2); display: grid; place-items: center; color: var(--red); flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.hero__chip-dot svg { width: 18px; height: 18px; }
.hero__chip b { font-size: .9rem; font-weight: 700; display: block; line-height: 1.1; }
.hero__chip span { font-size: .72rem; color: var(--grey); }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 380px; order: -1; }
  .hero__shell, .hero__frame { min-height: 360px; }
  .hero__badge { right: 12px; }
  .hero__chip { left: 8px; }
}

/* ---------- Stats — double-bezel tray ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 10px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.6), rgba(237,231,219,.4));
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255,255,255,.6);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.stat {
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  background: var(--paper); border-radius: calc(var(--r-lg) - 10px);
  box-shadow: var(--inset-hi), 0 1px 2px rgba(27,22,19,.03);
}
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 1.3rem + 2vw, 3rem); line-height: 1; color: var(--ink); letter-spacing: -0.03em; font-weight: 400; }
.stat__num .unit { color: var(--red); }
.stat__label { margin-top: .6rem; font-size: .74rem; letter-spacing: .04em; color: var(--grey); text-transform: uppercase; font-weight: 600; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .stats { grid-template-columns: 1fr; } }

/* ============================================================
   SERVICES — double-bezel cards, asymmetric feel
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.svc {
  position: relative; background: var(--paper); padding: clamp(1.7rem, 3vw, 2.4rem);
  min-height: 250px; display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line), var(--inset-hi);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  will-change: transform;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line), var(--inset-hi); }
.svc__num { position: absolute; top: 1.6rem; right: 1.8rem; font-family: var(--font-display); font-size: 1rem; color: var(--grey-mute); font-feature-settings: "tnum"; }
.svc__icon {
  width: 54px; height: 54px; margin-bottom: auto;
  border-radius: 14px; display: grid; place-items: center; color: var(--ink);
  background: linear-gradient(160deg, var(--white), var(--bone));
  box-shadow: var(--inset-hi), inset 0 0 0 1px var(--line), 0 6px 14px -8px rgba(27,22,19,.2);
  transition: color .4s ease, transform .5s var(--ease);
}
.svc__icon svg { width: 26px; height: 26px; }
.svc:hover .svc__icon { color: var(--red); transform: translateY(-2px) rotate(-3deg); }
.svc h3 { margin-top: 1.7rem; margin-bottom: .5rem; font-size: 1.32rem; }
.svc p { font-size: .93rem; color: var(--grey); line-height: 1.55; }
.svc__extra { margin-top: .8rem; font-size: .82rem; color: var(--grey-mute); }
.svc__extra li { padding-left: .95rem; position: relative; }
.svc__extra li::before { content: "—"; position: absolute; left: 0; color: var(--red); }
@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philo__statement { max-width: 18ch; font-size: clamp(2.3rem, 1.3rem + 4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: clamp(2.4rem, 5vw, 4rem); font-weight: 340; }
.philo__statement .accent { color: var(--red); font-style: italic; }
.philo__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.8rem, 4vw, 3.6rem); }
.philo__cols p { color: var(--graphite); }
.section--ink .philo__cols p { color: rgba(245,241,233,.74); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); }
.principle {
  padding: 1.8rem; border-radius: var(--r-lg);
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
}
.principle::before { content: ""; position: absolute; left: 1.8rem; top: 0; width: 34px; height: 2px; background: var(--red); }
.principle__k { font-family: var(--font-display); font-size: 1.55rem; margin-bottom: .5rem; margin-top: .4rem; color: #fff; }
.principle p { font-size: .94rem; color: rgba(245,241,233,.66); }
@media (max-width: 760px) { .philo__cols { grid-template-columns: 1fr; } .principles { grid-template-columns: 1fr; } }

/* Pull quote */
.pullquote { max-width: 22ch; margin-inline: auto; text-align: center; font-family: var(--font-display); font-style: italic; font-weight: 360; font-size: clamp(1.7rem, 1.1rem + 2.8vw, 3.1rem); line-height: 1.16; letter-spacing: -0.02em; }
.pullquote .mark { color: var(--red); font-size: 1.4em; line-height: 0; vertical-align: -0.35em; }

/* Feature — split with double-bezel media */
.feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.feature__shell { padding: 10px; border-radius: var(--r-xl); background: linear-gradient(160deg, rgba(255,255,255,.6), rgba(237,231,219,.4)); box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(255,255,255,.6); }
.feature__media {
  border-radius: calc(var(--r-xl) - 10px); min-height: 380px; position: relative; overflow: hidden;
  background: radial-gradient(130% 100% at 28% 16%, #2a241e, #16110c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 60px rgba(0,0,0,.3);
  display: grid; place-items: center;
}
.feature__media .hero__frame-mark { position: static; width: 44%; }
.feature__media::after { content: attr(data-label); position: absolute; left: 1.3rem; bottom: 1.2rem; font-size: .62rem; letter-spacing: .22em; color: rgba(255,255,255,.34); font-weight: 600; }
.checklist li { position: relative; padding-left: 2rem; padding-block: .8rem; border-bottom: 1px solid var(--line); color: var(--graphite); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 12px; height: 12px; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
/* Real photo inside a feature media (founder / szakértő) */
.feature__media--photo { display: block; }
.feature__media--photo::after { content: none; }
.feature__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 26%; z-index: 1; }
.feature__ph { position: absolute; inset: 0; margin: auto; width: 40%; z-index: 0; }
.feature__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.1rem, 2.2vw, 1.5rem); color: #fff; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.01em; background: linear-gradient(180deg, transparent, rgba(20,16,12,.78)); display: none; }
.feature__caption small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: .3rem; }
.feature__media--photo.has-photo .feature__caption { display: block; }
/* Original Thermo pyramid as an intentional branded panel (not a placeholder) */
.feature__media--mark::after { content: none; }
.feature__markimg { width: 46%; max-width: 220px; object-fit: contain; filter: drop-shadow(0 22px 46px rgba(0,0,0,.5)); }
/* Brand logo image (drop-in): replaces the text wordmark; falls back to text on 404 (onerror removes img) */
.brand-card__logoimg { display: block; max-height: 44px; max-width: 172px; width: auto; height: auto; object-fit: contain; object-position: left center; }
.brand-card__logoimg ~ .brand-card__logo { display: none; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature__media { min-height: 280px; } .feature aside:first-child, .feature > div:first-child { order: 0; } }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; max-width: 880px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(rgba(255,255,255,.24), rgba(255,255,255,.06)); }
.tl-item { position: relative; padding-left: clamp(2.4rem, 5vw, 4rem); padding-bottom: clamp(2rem, 3.5vw, 3rem); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -5px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--dark); box-shadow: 0 0 0 2px rgba(255,255,255,.22); transition: background .4s ease, box-shadow .4s ease, transform .5s var(--ease); }
.tl-item:hover::before { box-shadow: 0 0 0 2px var(--red); transform: scale(1.3); }
.tl-item.is-highlight::before { background: var(--red); box-shadow: 0 0 0 2px var(--red), 0 0 20px rgba(201,42,37,.6); }
.tl-year { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.3vw, 2rem); color: var(--red-soft); line-height: 1; font-feature-settings: "tnum"; font-weight: 400; }
.tl-body { margin-top: .6rem; max-width: 60ch; color: rgba(245,241,233,.72); }
.tl-body b { color: #fff; font-weight: 600; }

/* ============================================================
   BRANDS / MAGAZINE
   ============================================================ */
.brands__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.brand-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--paper); border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem); min-height: 210px; overflow: hidden;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line), var(--inset-hi);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  will-change: transform;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line), var(--inset-hi); }
.brand-card__logo { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); letter-spacing: -0.02em; }
.brand-card__meta { font-size: .8rem; color: var(--grey-mute); margin-top: .35rem; }
.brand-card__foot { display: flex; align-items: center; gap: .5rem; margin-top: 1.6rem; font-size: .84rem; font-weight: 600; color: var(--red); }
.brand-card__foot .btn__arrow { width: 17px; height: 17px; transition: transform .45s var(--ease); }
.brand-card:hover .brand-card__foot .btn__arrow { transform: translate(3px,-2px); }
.brand-card__tri { position: absolute; right: -18px; bottom: -18px; width: 92px; color: var(--bone-2); transition: color .5s ease, transform .6s var(--ease); z-index: 0; }
.brand-card:hover .brand-card__tri { color: rgba(201,42,37,.12); transform: rotate(-8deg) scale(1.05); }
.brand-card > * { position: relative; z-index: 1; }
@media (max-width: 820px) { .brands__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .brands__grid { grid-template-columns: 1fr; } }

/* Spotlight */
.spotlight { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 4vw, 3.6rem); align-items: center; }
.spotlight__shell { padding: 10px; border-radius: var(--r-xl); background: linear-gradient(160deg, rgba(255,255,255,.6), rgba(237,231,219,.4)); box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(255,255,255,.6); }
.spotlight__media { min-height: 360px; border-radius: calc(var(--r-xl) - 10px); position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(130% 120% at 22% 12%, #26332a, #111b15); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 60px rgba(0,0,0,.3); }
.spotlight__media .hero__frame-mark { position: static; width: 44%; }
.spotlight__media::after { content: attr(data-label); position: absolute; left: 1.3rem; bottom: 1.2rem; font-size: .62rem; letter-spacing: .22em; color: rgba(255,255,255,.4); font-weight: 600; }
.spotlight__list { margin-top: 1.5rem; }
.spotlight__list li { padding: .65rem 0 .65rem 1.8rem; position: relative; color: var(--graphite); border-bottom: 1px solid var(--line); }
.spotlight__list li:last-child { border-bottom: 0; }
.spotlight__list li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: 11px; height: 11px; background: var(--red); clip-path: polygon(50% 0,100% 100%,0 100%); }
@media (max-width: 820px) { .spotlight { grid-template-columns: 1fr; } .spotlight__media { min-height: 260px; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 3.5vw, 3rem); }
.contact__cards { display: grid; gap: 1.2rem; align-content: start; }
.loc { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.5rem, 2.6vw, 2rem); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line), var(--inset-hi); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.loc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line), var(--inset-hi); }
.loc h3 { font-size: 1.24rem; margin-bottom: .8rem; display: flex; align-items: center; gap: .6rem; }
.loc h3 .dot { width: 9px; height: 9px; background: var(--red); border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgba(201,42,37,.12); }
.loc__row { display: flex; gap: .8rem; padding: .4rem 0; font-size: .93rem; color: var(--graphite); align-items: baseline; }
.loc__row .k { color: var(--grey-mute); min-width: 78px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; flex: none; font-weight: 600; }
.loc__row a { color: var(--ink); background-image: linear-gradient(var(--red),var(--red)); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s var(--ease), color .3s; padding-bottom: 1px; }
.loc__row a:hover { background-size: 100% 1.5px; color: var(--red); }
.map-embed { border-radius: var(--r-lg); overflow: hidden; min-height: 320px; height: 100%; background: var(--bone-2); position: relative; box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line); }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.35) contrast(1.02) sepia(.06); }
.contact__aside { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.badge-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: var(--r-pill); background: rgba(27,22,19,.03); box-shadow: inset 0 0 0 1px var(--line); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.social { display: flex; gap: .6rem; }
.social a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--graphite); background: var(--paper); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line); transition: background .4s, color .4s, transform .5s var(--ease); }
.social a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: rgba(245,241,233,.66); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.footer a { color: rgba(245,241,233,.66); transition: color .3s; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 2.8rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }
.footer__brand .brand__word { color: #fff; }
.footer__tag { max-width: 36ch; font-size: .93rem; color: rgba(245,241,233,.55); line-height: 1.6; }
.footer__col h4 { font-family: var(--font-body); font-weight: 700; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,241,233,.42); margin-bottom: 1.1rem; }
.footer__col li { padding: .35rem 0; font-size: .93rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; font-size: .8rem; color: rgba(245,241,233,.4); }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ============================================================
   REVEALS — blur-up
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(36px); filter: blur(8px); transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease); }
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; filter: none; }
[data-reveal-stagger].is-in > *:nth-child(1){transition-delay:.05s}
[data-reveal-stagger].is-in > *:nth-child(2){transition-delay:.11s}
[data-reveal-stagger].is-in > *:nth-child(3){transition-delay:.17s}
[data-reveal-stagger].is-in > *:nth-child(4){transition-delay:.23s}
[data-reveal-stagger].is-in > *:nth-child(5){transition-delay:.29s}
[data-reveal-stagger].is-in > *:nth-child(6){transition-delay:.35s}
[data-reveal-stagger].is-in > *:nth-child(7){transition-delay:.41s}
[data-reveal-stagger].is-in > *:nth-child(8){transition-delay:.47s}
[data-reveal-stagger].is-in > *:nth-child(9){transition-delay:.53s}
.hero [data-load] { opacity: 0; transform: translateY(28px); filter: blur(10px); animation: heroIn 1.1s var(--ease) forwards; }
.hero [data-load="1"]{animation-delay:.1s} .hero [data-load="2"]{animation-delay:.24s} .hero [data-load="3"]{animation-delay:.38s} .hero [data-load="4"]{animation-delay:.52s}
.hero__visual { opacity: 0; transform: translateY(30px) scale(.97); animation: heroInScale 1.3s var(--ease) .34s forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes heroInScale { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger] > *, .hero [data-load], .hero__visual { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
}

/* Utilities */
.center { text-align: center; }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: 3rem; }
.maxw { max-width: 62ch; }

/* Page hero (sub pages) */
.page-hero { padding-top: clamp(9.5rem, 15vw, 13rem); padding-bottom: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden;
  background: radial-gradient(100% 80% at 90% 0%, rgba(201,42,37,.07), transparent 55%), linear-gradient(180deg, var(--bone), var(--paper)); }
.page-hero h1 { margin-block: 1.5rem 1rem; }
.page-hero p { max-width: 58ch; color: var(--graphite); font-size: 1.15rem; }
.breadcrumbs { font-size: .78rem; color: var(--grey-mute); letter-spacing: .04em; }
.breadcrumbs a:hover { color: var(--red); }

/* Founder bio (forensic section) */
.founder-bio { margin-top: 1.4rem; font-size: .92rem; line-height: 1.6; color: var(--grey); padding-left: 1.1rem; border-left: 2px solid var(--red); }
.founder-bio strong { color: var(--ink); }

/* Films page hero with photo behind the text */
.page-hero--film { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.page-hero--film::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("../img/recepcio.jpg") center/cover no-repeat;
  opacity: .28;
}
.page-hero--film::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(23,18,14,.86), rgba(23,18,14,.55) 60%, rgba(201,42,37,.28));
}
.page-hero--film > .wrap { position: relative; z-index: 1; }
.page-hero--film h1 { color: #fff; }
.page-hero--film p { color: rgba(245,241,233,.82); }
.page-hero--film .breadcrumbs { color: rgba(245,241,233,.6); }
.page-hero--film .breadcrumbs a { color: rgba(245,241,233,.75); }
.page-hero--film .breadcrumbs a:hover { color: #fff; }

/* Reference cards */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.4vw, 1.7rem); }
.ref-card {
  border-radius: var(--r-lg); overflow: hidden; background: var(--paper);
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line), var(--inset-hi);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease); will-change: transform;
}
.ref-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line), var(--inset-hi); }
.ref-card__img { aspect-ratio: 4/3; position: relative; background: radial-gradient(120% 100% at 30% 20%, #26201b, #14100c); display: grid; place-items: center; }
.ref-card__img svg { width: 32%; opacity: .55; color: var(--bone); }
.ref-card__img::after { content: "FOTÓ HELYE"; position: absolute; bottom: .9rem; left: 1rem; font-size: .58rem; letter-spacing: .22em; color: rgba(255,255,255,.34); font-weight: 600; }
.ref-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.ref-card__cat { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.ref-card__body h3 { font-size: 1.24rem; margin-top: .55rem; }
.ref-card__body p { font-size: .9rem; color: var(--grey); margin-top: .5rem; line-height: 1.55; }
@media (max-width: 900px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ref-grid { grid-template-columns: 1fr; } }

.soon { text-align: center; border-radius: var(--r-lg); padding: clamp(2.4rem, 5vw, 4rem); background: var(--paper); box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line), var(--inset-hi); }
.soon h3 { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.2rem); margin-bottom: .7rem; }
.soon p { color: var(--grey); max-width: 52ch; margin-inline: auto; }

/* ============================================================
   FILTER CHIPS
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.chip {
  font-size: .82rem; font-weight: 600; letter-spacing: -0.01em; color: var(--graphite);
  padding: .6rem 1.1rem; border-radius: var(--r-pill);
  background: rgba(27,22,19,.02);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--inset-hi);
  transition: color .3s ease, background .4s var(--ease), box-shadow .4s ease, transform .3s var(--ease);
  will-change: transform;
}
.chip:hover { background: var(--white); transform: translateY(-1px); }
.chip.is-active { color: #fff; background: var(--red); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), var(--shadow-soft); }
.chip__n { opacity: .6; font-weight: 500; margin-left: .1rem; }

/* Hidden by filter */
.is-filtered { display: none !important; }

/* ============================================================
   GALLERY GRID / CARDS
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.gallery-card {
  position: relative; display: block; text-align: left;
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  background: var(--dark); aspect-ratio: 4/3; width: 100%;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  will-change: transform;
}
.gallery-card::before { content: ""; display: block; padding-top: 75%; }
.gallery-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line); }
.gallery-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s ease; }
.gallery-card:hover .gallery-card__img { transform: scale(1.06); }
.gallery-card__grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,0) 38%, rgba(20,16,12,.32) 62%, rgba(20,16,12,.86) 100%); }
.gallery-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.1rem, 2.2vw, 1.5rem); z-index: 1; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.gallery-card__cat { display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--red-soft); }
.gallery-card__title { display: block; font-family: var(--font-display); font-weight: 400; color: #fff; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.1; letter-spacing: -0.01em; }
.gallery-card__count {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 600; color: #fff;
  padding: .35rem .7rem; border-radius: var(--r-pill);
  background: rgba(20,16,12,.5); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.gallery-card__count svg { width: 13px; height: 13px; opacity: .85; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FILM GRID / CARDS
   ============================================================ */
.film-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2.2vw, 1.6rem); }
.film-card {
  position: relative; display: flex; flex-direction: column; text-align: left; cursor: pointer;
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden; width: 100%;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line), var(--inset-hi);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  will-change: transform;
}
.film-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line), var(--inset-hi); }
.film-card__thumb { position: relative; aspect-ratio: 16/9; background: var(--dark); overflow: hidden; }
/* aspect-ratio fallback régi böngészőkhöz (Safari<15, Chrome<88, FF<89): a pszeudó adja a magasságot */
.film-card__thumb::before { content: ""; display: block; padding-top: 56.25%; }
.film-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.film-card:hover .film-card__thumb img { transform: scale(1.06); }
.film-card__play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(201,42,37,.92); box-shadow: 0 10px 30px -8px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .5s var(--ease), background .4s ease; }
.film-card:hover .film-card__play { transform: scale(1.1); background: var(--red); }
.film-card__play svg { width: 22px; height: 22px; color: #fff; margin-left: 3px; }
.film-card__body { padding: clamp(1.1rem, 2vw, 1.4rem); display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.film-card__cat { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.film-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.14rem; line-height: 1.16; letter-spacing: -0.01em; color: var(--ink); }
.film-card__desc { font-size: .88rem; color: var(--grey); line-height: 1.5; }
@media (max-width: 860px) { .film-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .film-grid { grid-template-columns: 1fr; } }

/* ============================================================
   LIGHTBOX (image + video)
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(18,14,10,.82);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__stage { position: relative; max-width: 1180px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lightbox__media { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox__img {
  max-width: 100%; max-height: 80dvh; width: auto; height: auto; border-radius: var(--r);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.06);
  opacity: 0; transform: scale(.985); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.lightbox__img.is-ready { opacity: 1; transform: none; }
.lightbox__frame { position: relative; width: 100%; max-width: 1100px; aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); background: #000; }
.lightbox__frame::before { content: ""; display: block; padding-top: 56.25%; }
.lightbox__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* YouTube-beágyazó (magazin) — arány-fallback + abszolút iframe */
.embed-16x9 { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.embed-16x9::before { content: ""; display: block; padding-top: 56.25%; }
.embed-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; color: rgba(255,255,255,.9); }
.lightbox__caption { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; }
.lightbox__caption span { display: block; font-family: var(--font-body); font-size: .78rem; color: rgba(255,255,255,.55); margin-top: .15rem; }
.lightbox__counter { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.65); font-feature-settings: "tnum"; flex: none; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(253,251,247,.12); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  transition: background .4s ease, transform .4s var(--ease);
}
.lb-btn:hover { background: var(--red); transform: translateY(-50%) scale(1.08); }
.lb-prev { left: -8px; } .lb-next { right: -8px; }
.lb-prev svg { transform: rotate(180deg); }
.lb-btn svg { width: 22px; height: 22px; }
/* Labeled "Bezárás" pill, fixed to the viewport corner so it is always visible
   (family feedback: users couldn't find their way back out of a gallery). */
.lb-close {
  position: fixed; top: clamp(.7rem, 2.5vw, 1.4rem); right: clamp(.7rem, 2.5vw, 1.4rem); z-index: 3;
  width: auto; height: 44px; padding: 0 16px; gap: .5rem;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(253,251,247,.14); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  font-family: var(--font-body); font-weight: 600; font-size: .8rem; letter-spacing: .02em;
  transition: background .35s var(--ease);
}
.lb-close::after { content: "Bezárás"; }
.lb-close:hover { background: var(--red); }
.lb-close svg { width: 18px; height: 18px; }
body.lb-lock { overflow: hidden; }
@media (max-width: 640px) {
  .lb-btn { width: 44px; height: 44px; }
  .lb-prev { left: 2px; } .lb-next { right: 2px; }
  .lb-close { height: 40px; padding: 0 13px; font-size: .76rem; }
  .lightbox__img { max-height: 70dvh; }
}
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox__img { transition: none; } }

/* ============================================================
   SUBPAGES — service & brand detail (client-rendered)
   ============================================================ */
.subpage-body > p { color: var(--graphite); font-size: 1.12rem; line-height: 1.75; margin-bottom: 1.15rem; }
.subpage-body > p:first-child { font-size: 1.22rem; color: var(--ink); }
.subpage-body h3 { font-family: var(--font-display); font-weight: 420; font-size: clamp(1.4rem, 1rem+1.4vw, 1.9rem); letter-spacing: -0.01em; margin: 2rem 0 .8rem; }
.subpage-body h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; margin: 1.6rem 0 .5rem; }
.subpage-body strong { color: var(--ink); }
.subpage-body .md-list { list-style: none; margin: 1rem 0 1.4rem; padding: 0; }
.subpage-body .md-list li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; color: var(--graphite); line-height: 1.6; }
.subpage-body .md-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.subpage-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; }

.subpage-rel { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.subpage-rel:last-child { margin-bottom: 0; }
.subpage-rel__title { font-family: var(--font-display); font-weight: 420; font-size: clamp(1.3rem, 1rem+1.2vw, 1.7rem); letter-spacing: -0.01em; margin-bottom: 1.2rem; }
.subpage-rel__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }

.rel-card { display: flex; align-items: center; gap: .8rem; padding: 1.05rem 1.2rem; border-radius: var(--r); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), 0 2px 8px -4px rgba(27,22,19,.12); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.rel-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(201,42,37,.3), var(--shadow-glass); }
.rel-card__k { font-weight: 700; color: var(--ink); font-size: 1rem; }
.rel-card__m { display: block; font-size: .82rem; color: var(--grey-mute); margin-top: .15rem; }
.rel-card > span:first-child { flex: 1; }
.rel-card__go { flex: none; color: var(--red); }
.rel-card__go .btn__arrow { width: 20px; height: 20px; }

.rel-gallery { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; background: var(--bone-2);
  box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.rel-gallery::before { content: ""; display: block; padding-top: 75%; }
.rel-gallery:hover { transform: translateY(-3px); box-shadow: var(--shadow-glass); }
.rel-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.rel-gallery:hover img { transform: scale(1.05); }
.rel-gallery__t { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .7rem; color: #fff; font-size: .86rem; font-weight: 600; line-height: 1.25;
  background: linear-gradient(180deg, transparent, rgba(20,16,12,.82)); z-index: 1; }
.rel-gallery__play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; z-index: 1; display: grid; place-items: center; color: #fff;
  background: rgba(20,16,12,.4); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); transition: background .4s ease; }
.rel-gallery--film:hover .rel-gallery__play { background: var(--red); }
.rel-gallery__play svg { width: 22px; height: 22px; margin-left: 2px; }

/* Service card → subpage link affordance */
.svc__go { margin-top: auto; padding-top: 1.3rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; color: var(--red); }
.svc__go .btn__arrow { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.svc:hover .svc__go .btn__arrow { transform: translateX(3px); }

/* Subpage hero visual */
.page-hero--sub .eyebrow { display: inline-flex; margin-bottom: .4rem; }
.page-hero__icon { width: 54px; height: 54px; color: var(--red); margin-top: 1.6rem; }
.page-hero__logo { max-width: 190px; max-height: 74px; width: auto; object-fit: contain; margin-top: 1.8rem; }

/* ============================================================
   BLOG — lista + cikk (a build-site.mjs generálja)
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(1.2rem, 2.4vw, 1.8rem); }
.blog-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-soft), inset 0 0 0 1px var(--line), var(--inset-hi);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease); will-change: transform; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--line), var(--inset-hi); }
.blog-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: radial-gradient(130% 120% at 28% 16%, #2a241e, #16110c); }
.blog-card__media::before { content: ""; display: block; padding-top: 62.5%; }
.blog-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
/* Kép-placeholderek: valódi 3D piramis logó, kicsi és KÖZÉPEN, mindig teljesen látszik
   (magasságra is korlátozva → soha nem vágódik), és nincs felnagyítva a natív méret fölé. */
.blog-card__ph { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 104px; max-height: 104px; object-fit: contain; opacity: .9; filter: drop-shadow(0 14px 30px rgba(0,0,0,.5)); }
.ph-mark-img { position: static; width: auto; height: auto; max-width: 150px; max-height: 150px; object-fit: contain; opacity: .92; filter: drop-shadow(0 18px 40px rgba(0,0,0,.5)); }
.blog-card__body { display: flex; flex-direction: column; gap: .55rem; padding: clamp(1.2rem, 2.2vw, 1.6rem); flex: 1; }
.blog-card__meta { display: flex; align-items: center; gap: .7rem; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-mute); }
.blog-card__cat { color: var(--red); }
.blog-card__title { font-family: var(--font-display); font-weight: 420; font-size: 1.42rem; line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
.blog-card__excerpt { font-size: .92rem; color: var(--grey); line-height: 1.55; margin-top: .1rem; }

.blog-filters { justify-content: flex-start; }

/* Cikk */
.page-hero--article { padding-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.article-meta { font-size: .9rem !important; color: var(--grey-mute) !important; letter-spacing: .02em; }
.article-cover { margin: clamp(1.4rem, 3vw, 2.4rem) 0 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.article-cover img { width: 100%; height: auto; display: block; }
.article-body > h2 { margin-top: 2.4rem; }
.article-body img { border-radius: var(--r); margin: 1.4rem 0; box-shadow: var(--shadow-soft); }
.article-body blockquote { margin: 1.8rem 0; padding: .4rem 0 .4rem 1.6rem; border-left: 3px solid var(--red);
  font-family: var(--font-display); font-size: clamp(1.25rem, 1rem+1vw, 1.6rem); font-weight: 380; line-height: 1.35; color: var(--ink); font-style: italic; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--red-deep); }
.article-body ul { margin: 1rem 0 1.4rem; padding: 0; }
.article-body ul li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; color: var(--graphite); line-height: 1.6; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.article-body ol { margin: 1rem 0 1.4rem; padding-left: 1.4rem; color: var(--graphite); }
.article-body ol li { margin-bottom: .5rem; }

/* ============================================================
   CÉGTÖRTÉNET — idővonal + korszak-galériák
   ============================================================ */
.ct-era { display: grid; grid-template-columns: 150px 1fr; gap: clamp(1.4rem, 3vw, 3rem); }
.ct-era + .ct-era { border-top: 1px solid var(--line); margin-top: clamp(2.4rem, 5vw, 4rem); padding-top: clamp(2.4rem, 5vw, 4rem); }
.ct-era__year { font-family: var(--font-display); font-weight: 340; font-size: clamp(1.7rem, 1.2rem+1.5vw, 2.5rem); color: var(--red); letter-spacing: -0.02em; line-height: 1; position: sticky; top: 96px; display: inline-block; }
.ct-era__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 1.05rem+1.5vw, 2.15rem); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1.1rem; }
.ct-era__text p { color: var(--graphite); font-size: 1.05rem; line-height: 1.7; margin-bottom: .85rem; max-width: 64ch; }
.ct-era__text strong { color: var(--ink); }
.ct-gallery { margin-top: 1.7rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: .6rem; }
.ct-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r-sm); background: var(--bone-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ct-thumb::before { content: ""; display: block; padding-top: 75%; }
.ct-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ct-thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-glass); }
.ct-thumb:hover img { transform: scale(1.08); }
@media (max-width: 720px) {
  .ct-era { grid-template-columns: 1fr; gap: .6rem; }
  .ct-era__year { position: static; }
  .ct-gallery { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}
