:root {
  --void: #050304;
  --surface: #0a0608;
  --elevated: #110a0c;
  --border: rgba(255, 106, 61, 0.22);
  --lava: #ff4d2e;
  --lava-bright: #ff7a4a;
  --lava-deep: #c41e1e;
  --ember: #ffb547;
  --text: #f7f2ef;
  --text-soft: #c8bdb8;
  --text-muted: #8f827c;
  --glow-lava: rgba(255, 77, 46, 0.45);
  --glow-soft: rgba(255, 122, 74, 0.2);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 4.25rem;
  --max: 52rem;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --focus-ring: 0 0 0 3px var(--void), 0 0 0 5px var(--lava-bright);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--void);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 500;
  padding: 0.85rem 1.25rem;
  background: var(--lava);
  color: var(--void);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 0.35s var(--ease-out-expo);
}
.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--focus-ring);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* Köszöntő overlay (+AA: kontraszt, fókusz, nem csak szín) */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 380;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  animation: welcomeIn 0.65s var(--ease-out-expo) forwards;
}

.welcome[hidden] {
  display: none !important;
}

.welcome.is-closing {
  animation: welcomeOut 0.45s var(--ease-out-expo) forwards;
}

@keyframes welcomeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes welcomeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.welcome__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 3, 0.82);
  backdrop-filter: blur(12px);
}

.welcome__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 106, 61, 0.28);
  background: linear-gradient(165deg, rgba(22, 12, 14, 0.98), rgba(8, 5, 6, 0.99));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 120, 80, 0.08) inset;
}

.welcome__skip {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  z-index: 2;
  padding: 0.45rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--lava-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: var(--radius-sm);
}
.welcome__skip:hover {
  color: var(--ember);
}

.welcome__logo-wrap {
  display: flex;
  justify-content: center;
  margin: 1.75rem 0 1rem;
}

.welcome__logo {
  width: min(52vw, 200px);
  height: auto;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(196, 30, 30, 0.4)) drop-shadow(0 0 36px rgba(255, 90, 50, 0.2));
  animation: welcomeLogoFloat 8s ease-in-out infinite;
}

@keyframes welcomeLogoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

.welcome__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  color: #ffffff;
}

.welcome__text {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-align: center;
  color: #e8e2de;
}

.welcome__text strong {
  color: #ffffff;
  font-weight: 600;
}

.welcome__btn {
  display: block;
  width: 100%;
  padding: 0.95rem 1.15rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--void);
  background: linear-gradient(135deg, var(--lava-bright), var(--lava));
  box-shadow: 0 10px 32px rgba(255, 77, 46, 0.38);
  transition:
    transform 0.25s var(--ease-out-expo),
    filter 0.25s ease;
}
.welcome__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.welcome__btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 10px 32px rgba(255, 77, 46, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  .welcome {
    animation: none;
  }
  .welcome.is-closing {
    animation: none;
    opacity: 0;
  }
  .welcome__logo {
    animation: none;
  }
}

/* Háttér: mozgó láva-fény, mesh, “aurora” sáv + zaj */
.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ambient__mesh {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse 85% 55% at 15% 35%, rgba(255, 77, 46, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 45% at 88% 55%, rgba(196, 30, 30, 0.14), transparent 50%),
    radial-gradient(ellipse 55% 40% at 50% 95%, rgba(255, 180, 71, 0.1), transparent 45%);
  animation: meshBreath 22s ease-in-out infinite alternate;
}

@keyframes meshBreath {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.85;
  }
  100% {
    transform: translate(-4%, 3%) scale(1.06) rotate(2deg);
    opacity: 1;
  }
}

.ambient__ribbon {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 45vh;
  top: 15%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 77, 46, 0.06) 25%,
    rgba(255, 180, 71, 0.1) 45%,
    rgba(196, 30, 30, 0.08) 60%,
    transparent 85%
  );
  filter: blur(40px);
  transform-origin: center;
  animation: ribbonFlow 26s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes ribbonFlow {
  0%,
  100% {
    transform: translateY(0) skewY(-2deg) scaleY(1);
    opacity: 0.65;
  }
  40% {
    transform: translateY(6%) skewY(1deg) scaleY(1.05);
    opacity: 0.95;
  }
  70% {
    transform: translateY(-4%) skewY(-1deg) scaleY(0.98);
    opacity: 0.78;
  }
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.ambient__glow--1 {
  width: min(90vw, 600px);
  height: min(90vw, 600px);
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, var(--lava-deep), transparent 65%);
  animation: driftA 28s ease-in-out infinite;
}

.ambient__glow--2 {
  width: min(80vw, 480px);
  height: min(80vw, 480px);
  bottom: -20%;
  left: -15%;
  background: radial-gradient(circle, var(--lava), transparent 70%);
  animation: driftB 32s ease-in-out infinite;
}

.ambient__glow--3 {
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 140, 90, 0.35), transparent 68%);
  animation: driftC 24s ease-in-out infinite;
  opacity: 0.35;
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainFlicker 12s ease-in-out infinite;
}

@keyframes grainFlicker {
  0%,
  100% {
    opacity: 0.03;
  }
  50% {
    opacity: 0.055;
  }
}

@keyframes driftA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-6%, 8%) scale(1.08);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translate(0, 0) scale(1.05);
  }
  50% {
    transform: translate(8%, -5%) scale(1);
  }
}

@keyframes driftC {
  0%,
  100% {
    transform: translate(-50%, 0) scale(1);
  }
  33% {
    transform: translate(-48%, -5%) scale(1.12);
  }
  66% {
    transform: translate(-52%, 4%) scale(0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient__mesh,
  .ambient__ribbon,
  .ambient__grain {
    animation: none !important;
  }
  .ambient__mesh {
    opacity: 0.9;
  }
  .ambient__ribbon {
    opacity: 0.55;
  }
  .ambient__grain {
    opacity: 0.04;
  }
  .ambient__glow--1,
  .ambient__glow--2,
  .ambient__glow--3 {
    animation: none;
    opacity: 0.32;
  }

}

/* Fejléc */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(5, 3, 4, 0.92) 0%, rgba(5, 3, 4, 0.75) 75%, transparent 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 77, 46, 0.12);
}

.header-inner {
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, var(--text), var(--lava-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not (-webkit-background-clip: text) {
  .logo-word {
    color: var(--lava-bright);
    -webkit-text-fill-color: unset;
    background: none;
  }
}
.logo-word:hover {
  filter: brightness(1.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 7px;
  padding: 0.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--lava), var(--ember));
  border-radius: 2px;
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.site-nav a {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  transition: color 0.3s var(--ease-out-expo);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--lava), var(--ember));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out-expo);
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}
.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(8, 5, 6, 0.97);
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-nav a:last-child {
    border-bottom: none;
  }
  .site-nav a::after {
    display: none;
  }
}

/* Main fölé */
#main {
  position: relative;
  z-index: 1;
}

/* Hero + 3D logó */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.25rem 4rem;
}

.hero__inner {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lava-bright);
}

.hero__stage {
  perspective: 1400px;
  perspective-origin: 50% 40%;
}

.logo-3d {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  animation: heroBob 7s ease-in-out infinite;
}

.logo-3d__shadow {
  position: absolute;
  left: 50%;
  bottom: -4%;
  width: min(70%, 320px);
  height: 28px;
  transform: translateX(-50%) rotateX(90deg);
  background: radial-gradient(ellipse, rgba(255, 60, 30, 0.55), transparent 65%);
  filter: blur(16px);
  opacity: 0.75;
  animation: shadowPulse 7s ease-in-out infinite;
  pointer-events: none;
}

.logo-3d__tilt {
  transform-style: preserve-3d;
  animation: heroTilt 14s ease-in-out infinite;
}

.logo-3d__img {
  display: block;
  width: min(72vw, 420px);
  height: auto;
  margin: 0 auto;
  border-radius: 24px;
  filter: drop-shadow(0 24px 48px rgba(196, 30, 30, 0.35)) drop-shadow(0 0 60px var(--glow-soft));
  transform-style: preserve-3d;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.12s ease-out;
}

@keyframes heroBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes heroTilt {
  0%,
  100% {
    transform: rotateX(8deg) rotateY(-12deg) rotateZ(0deg);
  }
  33% {
    transform: rotateX(-4deg) rotateY(10deg) rotateZ(1deg);
  }
  66% {
    transform: rotateX(6deg) rotateY(-6deg) rotateZ(-0.5deg);
  }
}

@keyframes shadowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) rotateX(90deg) scale(1);
  }
  50% {
    opacity: 0.85;
    transform: translateX(-50%) rotateX(90deg) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-3d,
  .logo-3d__tilt,
  .logo-3d__shadow {
    animation: none !important;
  }
  .logo-3d__tilt {
    transform: rotateX(4deg) rotateY(-4deg);
  }
}

.hero__hint {
  margin: 2.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero__hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 2.5rem;
  margin: 1rem auto 0;
  background: linear-gradient(180deg, var(--lava), transparent);
  animation: lineGrow 2.2s var(--ease-out-expo) infinite alternate;
}

@keyframes lineGrow {
  from {
    opacity: 0.3;
    transform: scaleY(0.85);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__hint::after {
    animation: none;
    opacity: 0.5;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Szekciók */
.section {
  padding: 4rem 1.25rem 5rem;
}

.section__max {
  max-width: calc(var(--max) + 2.5rem);
  margin: 0 auto;
}

.section__head {
  margin-bottom: 2.75rem;
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, var(--lava-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not (-webkit-background-clip: text) {
  .section__title {
    color: var(--text);
    -webkit-text-fill-color: unset;
    background: none;
  }
}

.section__lead {
  margin: 0;
  color: var(--text-soft);
  max-width: 36rem;
}

/* Lebegő kártya */
.float-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(22, 12, 14, 0.95), rgba(12, 8, 10, 0.92));
  border: 1px solid var(--border);
  box-shadow:
    0 4px 40px rgba(255, 60, 30, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: cardLevitate 11s ease-in-out infinite;
  overflow: hidden;
  isolation: isolate;
}

.float-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 77, 46, 0.45) 22%,
    rgba(255, 180, 71, 0.55) 48%,
    rgba(196, 30, 30, 0.4) 72%,
    transparent 100%
  );
  background-size: 280% 280%;
  animation: cardBorderOrbit 14s linear infinite;
  z-index: -2;
  opacity: 0.65;
  pointer-events: none;
}

.float-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 1px);
  background: linear-gradient(145deg, rgba(22, 12, 14, 0.98), rgba(12, 8, 10, 0.96));
  z-index: -1;
  pointer-events: none;
}

@keyframes cardBorderOrbit {
  0% {
    background-position: 0% 40%;
  }
  100% {
    background-position: 100% 60%;
  }
}

.float-card__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 122, 74, 0.28), transparent 65%);
  pointer-events: none;
  animation: cardGlowPulse 7s ease-in-out infinite;
}

@keyframes cardGlowPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.float-card__header {
  position: relative;
  margin-bottom: 1.5rem;
}

.float-card__identity {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.float-card__pfp {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 122, 74, 0.5);
  box-shadow: 0 0 28px var(--glow-soft);
  animation: cardPfpAura 5s ease-in-out infinite;
}

@keyframes cardPfpAura {
  0%,
  100% {
    box-shadow:
      0 0 28px var(--glow-soft),
      0 0 0 0 rgba(255, 122, 74, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 42px rgba(255, 77, 46, 0.45),
      0 0 0 5px rgba(255, 122, 74, 0);
    transform: scale(1.03);
  }
}

.float-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.float-card__handle {
  margin: 0.2rem 0 0;
  font-weight: 600;
  color: var(--lava-bright);
  font-size: 1.05rem;
}

.float-card__body p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}
.float-card__body p:last-child {
  margin-bottom: 0;
}

.float-card__quote {
  position: relative;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--lava);
  background: rgba(255, 77, 46, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text) !important;
  animation: quoteSheen 10s ease-in-out infinite;
}

@keyframes quoteSheen {
  0%,
  100% {
    background-color: rgba(255, 77, 46, 0.06);
    box-shadow: inset 0 0 0 0 rgba(255, 180, 71, 0);
  }
  50% {
    background-color: rgba(255, 77, 46, 0.11);
    box-shadow: inset 0 0 24px rgba(255, 120, 80, 0.06);
  }
}

.float-card__quote em {
  font-style: italic;
  color: #fff;
}

@keyframes cardLevitate {
  0%,
  100% {
    transform: translateY(0) rotate(-0.35deg);
  }
  33% {
    transform: translateY(-14px) rotate(0.25deg);
  }
  66% {
    transform: translateY(-6px) rotate(-0.2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-card {
    animation: none;
  }
  .float-card::before {
    animation: none;
    opacity: 0.35;
  }
  .float-card__glow,
  .float-card__pfp,
  .float-card__quote {
    animation: none !important;
  }
  .float-card__pfp {
    transform: none;
    box-shadow: 0 0 28px var(--glow-soft);
  }
}

/* Projektek */
.projects-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.showcase-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: calc(var(--radius) + 4px);
  background: var(--elevated);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.55s var(--ease-out-expo),
    box-shadow 0.55s var(--ease-out-expo),
    border-color 0.45s ease;
}

a.showcase-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 138, 94, 0.55);
  box-shadow:
    0 28px 70px rgba(255, 60, 30, 0.18),
    0 0 0 1px rgba(255, 180, 71, 0.15) inset;
}

a.showcase-card:active {
  transform: translateY(-2px) scale(1.005);
}

.showcase-card__bar {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(90deg, rgba(255, 60, 30, 0.18), rgba(20, 10, 12, 0.92));
  border-bottom: 1px solid rgba(255, 77, 46, 0.2);
}

.showcase-card__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px;
}

.showcase-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.showcase-card__tag {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lava-bright);
}

.showcase-card__cta {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ember);
  opacity: 0.9;
}

.showcase-card__body {
  padding: 1.5rem 1.35rem 1.65rem;
}

.showcase-card__body p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}
.showcase-card__body p:last-child {
  margin-bottom: 0;
}

.showcase-card__link-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.15rem;
  font-weight: 600;
  color: var(--lava-bright);
}

.showcase-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lava);
  box-shadow: 0 0 12px var(--lava);
}

.showcase-card__muted {
  color: var(--text-muted) !important;
  font-weight: 500;
}

/* Rejtély kártya */
.mystery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 280px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(circle at 50% 30%, #151515 0%, #020202 65%);
  cursor: pointer;
  text-align: center;
  color: var(--text);
  font-family: var(--font-display);
  transition:
    transform 0.45s var(--ease-out-expo),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

.mystery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 46, 0.35);
  box-shadow: 0 24px 60px rgba(255, 40, 20, 0.12);
}

.mystery-card:focus-visible {
  box-shadow: var(--focus-ring), 0 24px 60px rgba(255, 40, 20, 0.15);
}

.mystery-card__label {
  position: relative;
  z-index: 2;
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

.mystery-card__inner {
  position: relative;
  z-index: 1;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  flex: 1 0 auto;
  min-height: 200px;
  height: 200px;
  box-sizing: border-box;
}

.mystery-card__center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 800;
  color: rgba(255, 77, 46, 0.25);
  animation: qmPulse 2.8s ease-in-out infinite;
}

.mystery-card__qm {
  position: absolute;
  font-weight: 800;
  color: var(--lava);
  text-shadow: 0 0 24px var(--glow-lava);
  animation: qmFloat 3.6s ease-in-out infinite;
  opacity: 0;
}

.mystery-card__qm--1 {
  left: 5%;
  top: 8%;
  font-size: 2rem;
  animation-delay: 0s;
}
.mystery-card__qm--2 {
  right: 6%;
  top: 6%;
  font-size: 1.65rem;
  animation-delay: 0.45s;
}
.mystery-card__qm--3 {
  left: 8%;
  bottom: 12%;
  font-size: 1.45rem;
  animation-delay: 0.9s;
}
.mystery-card__qm--4 {
  right: 7%;
  bottom: 14%;
  font-size: 1.85rem;
  animation-delay: 1.35s;
}
.mystery-card__qm--5 {
  left: calc(50% - 0.52rem);
  top: 2%;
  font-size: 1.25rem;
  animation-delay: 0.2s;
}
.mystery-card__qm--6 {
  left: calc(50% - 0.5rem);
  bottom: 4%;
  font-size: 1.35rem;
  animation-delay: 1.65s;
}
.mystery-card__qm--7 {
  left: 2%;
  top: 42%;
  font-size: 1.15rem;
  animation-delay: 2s;
}
.mystery-card__qm--8 {
  right: 2%;
  top: 44%;
  font-size: 1.55rem;
  animation-delay: 2.35s;
}

.mystery-card__hint {
  position: relative;
  z-index: 2;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.mystery-card .mystery-omni {
  position: relative;
  z-index: 2;
  display: block;
  margin: 0.15rem 0 0.65rem;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  text-transform: uppercase;
  color: rgba(247, 242, 239, 0.22);
  text-shadow: 0 0 32px rgba(255, 77, 46, 0.18);
  user-select: none;
  pointer-events: none;
}

@keyframes qmFloat {
  0%,
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.85);
  }
  30%,
  70% {
    opacity: 1;
    transform: translateY(-6px) scale(1);
  }
}

@keyframes qmPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mystery-card__qm,
  .mystery-card__center {
    animation: none !important;
    opacity: 0.85;
  }
  .mystery-card__center {
    opacity: 0.35;
  }
}

/* Lábléc */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 5rem 1.25rem 3.5rem;
  border-top: 1px solid rgba(255, 77, 46, 0.15);
  background: linear-gradient(180deg, transparent, rgba(12, 6, 8, 0.85));
}

.footer__max {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.footer__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.footer__text {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--text-soft);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.footer__links a,
.footer__email-open {
  color: var(--lava-bright);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer__links a:hover,
.footer__email-open:hover {
  color: var(--ember);
  text-decoration: underline;
}

.footer__email-open {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  font-family: var(--font-body);
}
.footer__email-open:focus-visible {
  border-radius: 4px;
}

.footer__sep {
  color: var(--text-muted);
}

.footer__brand {
  margin-bottom: 1.25rem;
}

.footer__logo {
  display: block;
  margin: 0 auto;
  max-width: 100px;
  width: 100%;
  height: auto;
  opacity: 0.88;
  filter: drop-shadow(0 0 20px rgba(255, 90, 50, 0.25));
  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease-out-expo);
}

.footer__logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__handle {
  color: var(--text-soft);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.4s var(--ease-out-expo) forwards;
  opacity: 0;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #1a1010, #0a0606);
  border: 1px solid var(--border);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 120, 80, 0.1) inset;
  transform: scale(0.94) translateY(16px);
  opacity: 0;
  animation: popIn 0.5s var(--ease-out-expo) 0.08s forwards;
}

.modal.is-closing .modal__backdrop {
  animation: fadeOut 0.35s ease forwards;
}
.modal.is-closing .modal__dialog {
  animation: popOut 0.35s var(--ease-out-expo) forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes popOut {
  to {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal__backdrop,
  .modal__dialog {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease;
}
.modal__close:hover {
  background: rgba(255, 77, 46, 0.2);
}

.modal__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-right: 2rem;
}

.modal__text {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
}

.modal__text--compact {
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.modal__email-address {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-all;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 106, 61, 0.25);
  border-radius: var(--radius-sm);
  text-align: center;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.modal__btn--secondary:hover {
  filter: brightness(1.12);
  background: rgba(255, 255, 255, 0.12);
}

.modal__copy-feedback {
  min-height: 1.35rem;
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: var(--ember);
}

.modal__btn {
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: var(--void);
  background: linear-gradient(135deg, var(--lava-bright), var(--lava));
  box-shadow: 0 8px 28px rgba(255, 77, 46, 0.35);
  transition:
    transform 0.25s var(--ease-out-expo),
    filter 0.25s ease;
}
.modal__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
