
/* Refined loading transition */
.js body::after {
  content: "LG";
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--paper);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -.08em;
  opacity: 1;
  visibility: visible;
  transition: opacity .38s ease, visibility .38s ease;
}
.js.page-ready body::after { opacity: 0; visibility: hidden; pointer-events: none; }

:root {
  --bg: #111111;
  --bg-soft: #171717;
  --paper: #eee8df;
  --text: #f3eee7;
  --muted: #bdb5aa;
  --line: rgba(238, 232, 223, .13);
  --accent: #d7f000;
  --max: 1320px;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .75rem 1rem;
  background: var(--paper);
  color: #111;
  border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.narrow { width: min(820px, 100%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(238, 232, 223, .96);
  color: #211f20;
  border-top: 3px solid #111;
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand img { width: 142px; height: auto; }
.header-contact {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .35;
  background:
    linear-gradient(30deg, transparent 48.5%, rgba(255,255,255,.035) 49%, rgba(255,255,255,.035) 51%, transparent 51.5%) 0 0 / 520px 300px,
    linear-gradient(150deg, transparent 48.5%, rgba(255,255,255,.025) 49%, rgba(255,255,255,.025) 51%, transparent 51.5%) 0 0 / 520px 300px;
  pointer-events: none;
}
.patterned {
  position: relative;
  background: transparent;
}

.hero {
  min-height: min(820px, calc(100svh - 96px));
  display: grid;
  align-items: center;
}
.hero-inner { padding-block: clamp(90px, 13vw, 170px); }
.eyebrow {
  margin: 0 0 1.3rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
}
h1, h2 { margin: 0; letter-spacing: -.045em; line-height: .99; }
h1 { max-width: 1050px; font-size: clamp(3.1rem, 7.7vw, 7.6rem); font-weight: 650; }
h1 span { color: var(--paper); }
h2 { font-size: clamp(2.3rem, 5vw, 4.8rem); font-weight: 620; }
.hero-copy {
  max-width: 790px;
  margin: clamp(2rem, 4vw, 3.2rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
}
.hero-actions, .contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  margin-top: 2.2rem;
}
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .85rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--accent); color: #111; }
.button-primary:hover { background: #efff55; }
.button-secondary { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.03); }
.button-secondary:hover { border-color: var(--paper); }

.projects { padding-block: clamp(85px, 10vw, 145px); }
.section-heading { display: grid; gap: .7rem; margin-bottom: 3.2rem; }
.section-heading p:last-child { margin: .5rem 0 0; color: var(--muted); font-size: 1.08rem; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
}
.project-card {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #080808;
  box-shadow: 0 18px 50px rgba(0,0,0,.26);
  cursor: default;
  transform: translateY(16px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s ease, border-color .25s ease;
}
.project-card.visible { transform: translateY(0); opacity: 1; }
.project-card:hover { transform: translateY(-8px); border-color: rgba(215,240,0,.55); }
.project-card img, .project-card iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.35), transparent 40%);
  pointer-events: none;
}
.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 3;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: rgba(0,0,0,.26);
  color: white;
  font-size: 1.35rem;
  backdrop-filter: blur(5px);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: transform .22s ease, background .22s ease;
}
.project-card:hover .play-button { transform: translate(-50%, -50%) scale(1.08); background: rgba(0,0,0,.55); }

.strategy, .contact { padding-block: clamp(95px, 12vw, 170px); }
.strategy p:not(.eyebrow), .contact p:not(.eyebrow) {
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}
.email-link { color: var(--paper); text-underline-offset: .35em; font-weight: 650; }

.site-footer { background: var(--paper); color: #211f20; }
.footer-inner {
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.footer-inner img { width: 130px; }
.footer-inner p { margin: 0; font-size: .9rem; }

.video-modal {
  width: min(460px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  background: #050505;
  color: white;
  overflow: visible;
}
.video-modal::backdrop { background: rgba(0,0,0,.84); backdrop-filter: blur(8px); }
.video-frame { aspect-ratio: 9 / 16; overflow: hidden; border-radius: 21px; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute;
  right: -12px;
  top: -12px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: #111;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: auto; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 78px; }
  .brand img { width: 116px; }
  .header-contact { font-size: .76rem; }
  .hero-inner { padding-block: 78px 88px; }
  h1 { font-size: clamp(2.65rem, 13.5vw, 4.2rem); }
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-card { width: min(100%, 390px); margin-inline: auto; }
  .hero-actions, .contact-actions { align-items: stretch; }
  .button { width: 100%; }
  .email-link { width: 100%; text-align: center; padding-top: .5rem; }
  .footer-inner { min-height: 170px; flex-direction: column; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .project-card { opacity: 1; transform: none; }
}

/* Footer navigation */
.footer-inner { flex-wrap: wrap; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  font-size: .84rem;
  font-weight: 650;
}
.footer-links a,
.footer-cookie-button {
  color: inherit;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: .2rem 0;
  font: inherit;
  cursor: pointer;
}
.footer-links a:hover,
.footer-cookie-button:hover { border-bottom-color: currentColor; }

/* Consent-aware video placeholders */
.project-media { width: 100%; height: 100%; }
.privacy-poster {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: .15rem;
  padding: 1.4rem;
  background:
    radial-gradient(circle at 72% 18%, rgba(215,240,0,.12), transparent 34%),
    linear-gradient(155deg, #202020, #080808 70%);
  color: var(--paper);
}
.privacy-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .45;
  background:
    linear-gradient(30deg, transparent 48.5%, rgba(255,255,255,.055) 49%, rgba(255,255,255,.055) 51%, transparent 51.5%) 0 0 / 280px 160px,
    linear-gradient(150deg, transparent 48.5%, rgba(255,255,255,.035) 49%, rgba(255,255,255,.035) 51%, transparent 51.5%) 0 0 / 280px 160px;
}
.privacy-poster span,
.privacy-poster strong,
.privacy-poster small { position: relative; z-index: 1; }
.privacy-poster span { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.privacy-poster strong { font-size: clamp(3rem, 8vw, 5.4rem); line-height: .92; letter-spacing: -.07em; }
.privacy-poster small { color: var(--muted); font-size: .8rem; }
.privacy-poster em { position: relative; z-index: 1; margin-top: .45rem; color: var(--paper); font-size: .72rem; font-style: normal; opacity: .82; }

/* Discreet privacy panel */
.cookie-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  width: min(650px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: .72rem .78rem .72rem .9rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
  background: rgba(20,20,20,.94);
  color: var(--text);
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .22s ease, transform .22s ease;
}
.cookie-panel[hidden] { display: none; }
.cookie-panel.visible { opacity: 1; transform: translateY(0); }
.cookie-copy h2 { margin: 0 0 .15rem; font-size: .84rem; letter-spacing: -.015em; }
.cookie-copy p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.cookie-copy a { display: inline-block; margin-top: .22rem; color: var(--paper); font-size: .68rem; text-underline-offset: .22em; }
.cookie-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: .45rem; }
.cookie-actions .button { min-height: 34px; padding: .42rem .68rem; font-size: .68rem; white-space: nowrap; cursor: pointer; }
.cookie-actions .button-secondary { color: var(--paper); }

/* Legal pages */
.legal-main,
.not-found {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.legal-main::before,
.not-found::before {
  content: "";
  position: fixed;
  inset: 96px 0 0;
  z-index: 0;
  opacity: .35;
  background:
    linear-gradient(30deg, transparent 48.5%, rgba(255,255,255,.035) 49%, rgba(255,255,255,.035) 51%, transparent 51.5%) 0 0 / 520px 300px,
    linear-gradient(150deg, transparent 48.5%, rgba(255,255,255,.025) 49%, rgba(255,255,255,.025) 51%, transparent 51.5%) 0 0 / 520px 300px;
  pointer-events: none;
}
.legal-wrap { position: relative; z-index: 1; width: min(calc(100% - 48px), 980px); padding-block: clamp(80px, 10vw, 140px); }
.legal-wrap h1 { font-size: clamp(3.3rem, 8vw, 7rem); }
.legal-lead { max-width: 760px; margin: 2rem 0 3.2rem; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.32rem); }
.legal-card {
  margin-top: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.025);
}
.legal-card h2 { margin-bottom: 1.25rem; font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.legal-card p { margin: .8rem 0 0; color: var(--muted); }
.legal-card strong { color: var(--paper); }
.legal-card a { color: var(--paper); text-underline-offset: .25em; }
.legal-list { margin: 0; }
.legal-list > div { display: grid; grid-template-columns: minmax(180px, .65fr) 1.35fr; gap: 1.2rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.legal-list > div:last-child { border-bottom: 0; }
.legal-list dt { color: var(--muted); font-size: .9rem; }
.legal-list dd { margin: 0; font-weight: 620; }
.legal-updated { margin-top: 2rem; color: var(--muted); font-size: .88rem; }
.legal-back { margin-top: 1.2rem; }
.not-found { min-height: calc(100svh - 96px); display: grid; align-items: center; }
.not-found > .container { position: relative; z-index: 1; padding-block: 100px; }
.not-found h1 { font-size: clamp(3rem, 8vw, 7rem); }

@media (max-width: 760px) {
  .cookie-panel { right: 14px; bottom: 14px; width: calc(100% - 28px); grid-template-columns: 1fr; gap: .7rem; padding: .85rem; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .button { width: 100%; white-space: normal; }
  .legal-list > div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 620px) {
  .footer-links { flex-direction: column; gap: .45rem; }
  .footer-inner { padding-block: 28px; }
  .legal-wrap { width: min(calc(100% - 28px), 980px); }
}


/* v1.7 – videó lejátszása közvetlenül a projektkártyában */
.project-card.playing {
  transform: none;
  border-color: rgba(215,240,0,.55);
}
.project-card.playing::after { display: none; }
.project-card.playing:hover { transform: none; }
.project-card.playing .project-media,
.project-card.playing iframe {
  width: 100%;
  height: 100%;
}
.project-card.playing iframe {
  display: block;
  border: 0;
}
.play-button[hidden] { display: none !important; }

/* v1.8 — Native YouTube player from the first click */
.project-card.youtube-ready {
  cursor: default;
}

.project-card.youtube-ready:hover {
  transform: translateY(-4px);
}

.project-card.youtube-ready::after {
  display: none;
}

.project-card .project-media,
.project-card .project-media iframe {
  width: 100%;
  height: 100%;
}

.project-card .project-media iframe {
  display: block;
  border: 0;
}

.project-card .privacy-poster {
  width: 100%;
  height: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
