/*
Theme Name: Davmarpolska VTC
Theme URI: https://davmarpolska.pl
Author: Davmarpolska
Description: Motyw wizytówki VTC + osadzenie panelu Hub (React). Styl DMP — limonka, teal, biel.
Version: 1.4.9
Text Domain: davmarpolska
*/

/* === DMP — paleta z logo (limonka + żółć z marki, teal tło) === */
:root {
  --dm-lime: #c4f538;
  --dm-lime-bright: #d8ff52;
  --dm-lime-dim: #9bc62a;
  --dm-lime-glow: rgba(196, 245, 56, 0.35);
  --dm-gold: #f5e848;
  --dm-gold-dim: #c9b92a;
  --dm-gold-glow: rgba(245, 232, 72, 0.22);
  --dm-bg: #061816;
  --dm-bg-elevated: #0c2421;
  --dm-surface: #0f2e2a;
  --dm-surface-glass: rgba(15, 46, 42, 0.65);
  --dm-border: #1a4540;
  --dm-border-accent: rgba(196, 245, 56, 0.4);
  --dm-accent: var(--dm-lime);
  --dm-accent-dim: var(--dm-lime-dim);
  --dm-text: #f2faf8;
  --dm-muted: #8ebdb4;
  --dm-white: #ffffff;
  --dm-success: #5cb88a;
  --dm-teal-mid: #1a5c52;
  --dm-font-body: "Montserrat", system-ui, -apple-system, sans-serif;
  --dm-font-display: "Rajdhani", "Montserrat", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--dm-font-body);
  background-color: var(--dm-bg);
  background-image:
    radial-gradient(ellipse 120% 70% at 50% -30%, var(--dm-lime-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 60%, var(--dm-gold-glow), transparent 50%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(196, 245, 56, 0.035) 11px,
      rgba(196, 245, 56, 0.035) 12px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      rgba(196, 245, 56, 0.035) 11px,
      rgba(196, 245, 56, 0.035) 12px
    );
  color: var(--dm-text);
  line-height: 1.6;
  min-height: 100vh;
}

h1,
h2,
h3,
.dm-hero h1,
.dm-section h2 {
  font-family: var(--dm-font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

a {
  color: var(--dm-lime);
  text-decoration: none;
}

a:hover {
  color: var(--dm-white);
  text-decoration: underline;
}

.dm-container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.dm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 31, 29, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dm-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.dm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.dm-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--dm-text);
  text-decoration: none;
  font-family: var(--dm-font-display);
}

.dm-logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.dm-logo__lime {
  color: var(--dm-lime);
}

.dm-logo__img {
  display: block;
  height: clamp(40px, 8vw, 52px);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.dm-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.dm-logo__sub {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--dm-muted);
  text-transform: uppercase;
}

.dm-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  align-items: center;
}

.dm-nav a:not(.dm-btn) {
  color: var(--dm-muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dm-nav a:not(.dm-btn):hover {
  color: var(--dm-lime);
  text-decoration: none;
}

.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  font-family: var(--dm-font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dm-btn-primary {
  background: var(--dm-lime);
  color: #0a1f1d;
  box-shadow: 0 0 0 1px rgba(196, 245, 56, 0.5);
}

.dm-btn-primary:hover {
  background: var(--dm-white);
  color: #0a1f1d;
  text-decoration: none;
  box-shadow: 0 0 20px var(--dm-lime-glow);
}

.dm-btn-ghost {
  background: transparent;
  color: var(--dm-text);
  border: 1px solid var(--dm-border);
}

.dm-btn-ghost:hover {
  border-color: var(--dm-lime);
  color: var(--dm-lime);
  text-decoration: none;
}

.dm-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(196, 245, 56, 0.12), transparent 60%);
}

.dm-hero h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.75rem);
  margin: 0 0 1rem;
  line-height: 1.2;
  text-shadow: 0 0 40px rgba(196, 245, 56, 0.15);
}

.dm-hero p {
  color: var(--dm-muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.dm-section {
  padding: 3rem 0;
  border-top: 1px solid var(--dm-border);
}

.dm-section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--dm-lime);
}

.dm-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dm-card {
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: 10px;
  padding: 1.35rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dm-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--dm-font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dm-text);
}

.dm-card p {
  margin: 0;
  color: var(--dm-muted);
  font-size: 0.95rem;
}

.dm-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--dm-border);
  color: var(--dm-muted);
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 0.03em;
}

/* Formularze (rekrutacja, logowanie WP) */
.dm-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--dm-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dm-form input,
.dm-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--dm-border);
  border-bottom: 2px solid var(--dm-border);
  background: var(--dm-bg-elevated);
  color: var(--dm-text);
  font: inherit;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dm-form input:focus,
.dm-form textarea:focus {
  outline: none;
  border-color: var(--dm-border-accent);
  border-bottom-color: var(--dm-lime);
  box-shadow: 0 0 0 1px rgba(196, 245, 56, 0.2);
}

.dm-form textarea {
  min-height: 120px;
  resize: vertical;
}

.dm-form .dm-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.dm-msg {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.dm-msg.ok {
  background: rgba(196, 245, 56, 0.12);
  border: 1px solid var(--dm-lime-dim);
  color: var(--dm-text);
}

.dm-msg.err {
  background: rgba(193, 18, 31, 0.2);
  border: 1px solid #e85d5d;
  color: #ffc9c9;
}

.dm-auth-links a {
  color: var(--dm-lime);
}

.dm-auth-links a:hover {
  color: var(--dm-white);
}

/* Strona Hub — pasek marki nad React */
.dm-hub-page-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

.dm-hub-page-brand__logo {
  height: clamp(44px, 10vw, 64px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(196, 245, 56, 0.25));
}

/* Hub shell — ta sama estetyka co aplikacja */
.dm-hub-shell {
  position: relative;
  min-height: 70vh;
  padding: 1.5rem 0 3rem;
}

.dm-hub-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  max-width: min(1100px, 92vw);
  margin-inline: auto;
  border-radius: 12px;
  pointer-events: none;
  border: 1px solid rgba(196, 245, 56, 0.08);
  box-shadow: inset 0 0 60px rgba(196, 245, 56, 0.04);
  height: calc(100% - 1rem);
  top: 0.5rem;
}

#davmarp-hub-root {
  min-height: 60vh;
  position: relative;
  z-index: 1;
}

/* Strony treści (wpisy) */
.dm-section h1,
.dm-page-title {
  font-family: var(--dm-font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dm-lime);
  margin: 0 0 1rem;
}

.entry-content {
  color: var(--dm-text);
}

.entry-content a {
  color: var(--dm-lime);
  font-weight: 600;
}

.entry-content a:hover {
  color: var(--dm-white);
}

/* Nagłówki stron logowania / rejestracji */
.dm-auth-page h1 {
  font-family: var(--dm-font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dm-lime);
  text-shadow: 0 0 28px rgba(196, 245, 56, 0.2);
}

/* Pełnoekranowe powitanie wyłączone — ukryj ewentualny stary HTML z cache CDN */
#dm-welcome,
.dm-welcome {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Hero — split + zdjęcie */
.dm-hero--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

@media (min-width: 900px) {
  .dm-hero--split {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
  }

  .dm-hero--split .dm-hero__text {
    text-align: left;
  }
}

.dm-hero__visual {
  position: relative;
}

.dm-hero__frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--dm-border-accent);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(196, 245, 56, 0.12),
    inset 0 0 60px rgba(196, 245, 56, 0.06);
}

.dm-hero__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.dm-hero__shine {
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(196, 245, 56, 0.08) 48%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 55%
  );
  transform: translate(-5%, -5%) rotate(12deg);
  pointer-events: none;
}

/* Galeria strony głównej */
.dm-gallery__intro {
  color: var(--dm-muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
  animation: dmRevealUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.14s backwards;
}

.dm-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  align-items: start;
}

@media (min-width: 700px) {
  .dm-gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 1rem;
  }

  .dm-gallery__item--tall {
    grid-row: span 2;
    aspect-ratio: 3 / 4;
    max-height: min(72vh, 640px);
    width: 100%;
    justify-self: stretch;
  }

  .dm-gallery__item--wide {
    grid-column: span 2;
  }

  .dm-gallery__grid--premium .dm-gallery__item--tall {
    max-height: min(76vh, 680px);
  }
}

.dm-gallery__grid--premium {
  gap: 0.65rem;
}

@media (min-width: 700px) {
  .dm-gallery__grid--premium {
    gap: 0.88rem;
    grid-auto-flow: row dense;
    align-items: stretch;
  }

  /*
   * Mozaika 4×2 bez dziur:
   * [tall][g2][g3][g5]
   * [tall][ — g4 wide — ][g6]
   */
  .dm-gallery__grid--premium .dm-gallery__item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .dm-gallery__grid--premium .dm-gallery__item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .dm-gallery__grid--premium .dm-gallery__item:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .dm-gallery__grid--premium .dm-gallery__item:nth-child(4) {
    grid-column: 4;
    grid-row: 1;
  }

  .dm-gallery__grid--premium .dm-gallery__item:nth-child(5) {
    grid-column: 2 / span 2;
    grid-row: 2;
  }

  .dm-gallery__grid--premium .dm-gallery__item:nth-child(6) {
    grid-column: 4;
    grid-row: 2;
  }
}

.dm-gallery__item {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--dm-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  min-height: 0;
}

.dm-gallery__item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--dm-border-accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 24px rgba(196, 245, 56, 0.12);
}

.dm-gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
}

html.dm-gallery-scroll-js .dm-gallery__grid--premium .dm-gallery__item:not(.dm-gallery__item--in) img {
  opacity: 0;
  transform: scale(0.9);
}

html.dm-gallery-scroll-js .dm-gallery__grid--premium .dm-gallery__item.dm-gallery__item--in img {
  opacity: 1;
  transform: scale(1);
  transition:
    transform 1.15s cubic-bezier(0.28, 0.82, 0.38, 1),
    opacity 1s cubic-bezier(0.28, 0.82, 0.38, 1);
}

@media (min-width: 700px) {
  .dm-gallery__item--tall img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
  }
}

/* =============================================================================
   Strona główna — styl premium (kolory logo, światło, animacje)
   ============================================================================= */

.dm-front {
  position: relative;
  z-index: 1;
}

.dm-front__ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.dm-front__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(196, 245, 56, 0.09), transparent 50%),
    radial-gradient(ellipse 70% 50% at 110% 40%, rgba(245, 232, 72, 0.06), transparent 45%),
    radial-gradient(ellipse 50% 60% at -10% 80%, rgba(26, 92, 82, 0.45), transparent 50%);
}

.dm-front__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  animation: dmPremiumOrbFloat 16s ease-in-out infinite;
}

.dm-front__orb--a {
  width: min(480px, 70vw);
  height: min(480px, 70vw);
  background: radial-gradient(circle, rgba(196, 245, 56, 0.55) 0%, transparent 68%);
  top: -12%;
  right: -8%;
  animation-delay: 0s;
}

.dm-front__orb--b {
  width: min(360px, 55vw);
  height: min(360px, 55vw);
  background: radial-gradient(circle, rgba(245, 232, 72, 0.35) 0%, transparent 70%);
  bottom: 5%;
  left: -12%;
  animation-delay: -5s;
}

.dm-front__orb--c {
  width: min(280px, 45vw);
  height: min(280px, 45vw);
  background: radial-gradient(circle, rgba(26, 92, 82, 0.9) 0%, transparent 65%);
  top: 42%;
  left: 35%;
  animation-delay: -9s;
  opacity: 0.35;
}

@keyframes dmPremiumOrbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(2%, 3%) scale(1.05);
  }
  66% {
    transform: translate(-2%, -2%) scale(0.96);
  }
}

body.dm-front-splash .dm-header {
  background: rgba(6, 24, 22, 0.78);
  border-bottom-color: rgba(196, 245, 56, 0.18);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(196, 245, 56, 0.07),
    0 0 60px rgba(196, 245, 56, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dm-hero--premium {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  background: none;
  position: relative;
}

.dm-hero--premium::before {
  content: "";
  position: absolute;
  inset: -2rem -4vw 40%;
  background: radial-gradient(ellipse 80% 70% at 20% 30%, rgba(196, 245, 56, 0.1), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.dm-hero__badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.9rem;
  font-family: var(--dm-font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: none;
  text-align: center;
  color: var(--dm-gold);
  border: 1px solid rgba(245, 232, 72, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 232, 72, 0.12), rgba(196, 245, 56, 0.06));
  box-shadow:
    0 0 24px rgba(245, 232, 72, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation:
    dmRevealUp 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.06s backwards,
    dmHeroBadgeGlow 4s ease-in-out 0.85s infinite;
}

@keyframes dmHeroBadgeGlow {
  0%,
  100% {
    border-color: rgba(245, 232, 72, 0.35);
    box-shadow:
      0 0 24px rgba(245, 232, 72, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 28px rgba(196, 245, 56, 0.14);
  }
  50% {
    border-color: rgba(196, 245, 56, 0.55);
    box-shadow:
      0 0 36px rgba(245, 232, 72, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 48px rgba(196, 245, 56, 0.32);
  }
}

.dm-hero--premium .dm-hero__text > h1,
.dm-hero--premium .dm-hero__text > .dm-hero__lead {
  animation: dmRevealUp 0.78s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.dm-hero--premium .dm-hero__text > h1 {
  animation-delay: 0.18s;
}

.dm-hero--premium .dm-hero__text > .dm-hero__lead {
  animation-delay: 0.3s;
}

.dm-hero--premium h1 {
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  line-height: 1.12;
  margin-bottom: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: none;
  background: linear-gradient(105deg, var(--dm-white) 0%, var(--dm-lime-bright) 42%, var(--dm-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 42px rgba(196, 245, 56, 0.22));
}

@supports not (background-clip: text) {
  .dm-hero--premium h1 {
    color: var(--dm-text);
    -webkit-text-fill-color: unset;
    filter: none;
    text-shadow: 0 0 40px rgba(196, 245, 56, 0.2);
  }
}

.dm-hero__lead {
  color: var(--dm-muted);
  max-width: 38rem;
  margin: 0 0 1.85rem;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.65;
}

.dm-btn--glow {
  position: relative;
  box-shadow:
    0 0 0 1px rgba(196, 245, 56, 0.45),
    0 0 28px rgba(196, 245, 56, 0.25);
  animation: dmBtnGlowPulse 3.2s ease-in-out infinite;
}

@keyframes dmBtnGlowPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(196, 245, 56, 0.45),
      0 0 28px rgba(196, 245, 56, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(245, 232, 72, 0.55),
      0 0 40px rgba(196, 245, 56, 0.38);
  }
}

.dm-hero__frame--premium {
  border-radius: 16px;
  border: 1px solid rgba(196, 245, 56, 0.22);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(196, 245, 56, 0.1),
    0 0 80px rgba(196, 245, 56, 0.12),
    inset 0 0 80px rgba(196, 245, 56, 0.05);
  animation: dmHeroFramePulse 5s ease-in-out infinite alternate;
}

@keyframes dmHeroFramePulse {
  from {
    box-shadow:
      0 24px 80px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(196, 245, 56, 0.1),
      0 0 60px rgba(196, 245, 56, 0.1),
      inset 0 0 80px rgba(196, 245, 56, 0.04);
  }
  to {
    box-shadow:
      0 28px 90px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(245, 232, 72, 0.2),
      0 0 100px rgba(196, 245, 56, 0.2),
      inset 0 0 90px rgba(196, 245, 56, 0.08);
  }
}

.dm-hero__frame--premium .dm-hero__img {
  animation: dmHeroKen 18s ease-in-out infinite alternate;
}

@keyframes dmHeroKen {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.05) translate(-1.2%, -0.6%);
  }
}

.dm-hero__shine--animated {
  animation: dmHeroShineMove 7s ease-in-out infinite;
}

@keyframes dmHeroShineMove {
  0% {
    transform: translate(-35%, -25%) rotate(12deg);
    opacity: 0.85;
  }
  50% {
    transform: translate(25%, 18%) rotate(12deg);
    opacity: 1;
  }
  100% {
    transform: translate(-35%, -25%) rotate(12deg);
    opacity: 0.85;
  }
}

.dm-section--premium {
  position: relative;
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
  border-top: none;
}

.dm-section--premium::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 2.5rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 245, 56, 0.25) 20%,
    rgba(245, 232, 72, 0.35) 50%,
    rgba(196, 245, 56, 0.25) 80%,
    transparent
  );
  box-shadow: 0 0 20px rgba(196, 245, 56, 0.2);
}

.dm-section__head {
  margin-bottom: 1.75rem;
}

.dm-gallery .dm-section__head {
  animation: dmRevealUp 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.04s backwards;
}

.dm-section__eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--dm-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dm-gold);
  opacity: 0.95;
}

.dm-section--premium h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: var(--dm-text);
  text-shadow: 0 0 32px rgba(196, 245, 56, 0.12);
}

.dm-section--premium h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--dm-lime), var(--dm-gold));
  box-shadow: 0 0 16px rgba(196, 245, 56, 0.45);
}

.dm-card--premium {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(18, 55, 50, 0.92) 0%, rgba(8, 28, 26, 0.96) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(196, 245, 56, 0.14);
  border-radius: 14px;
  padding: 1.5rem 1.45rem;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.dm-card--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(196, 245, 56, 0.12), transparent 55%);
  pointer-events: none;
  opacity: 0.9;
}

.dm-card--premium > * {
  position: relative;
  z-index: 1;
}

.dm-card--premium:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 245, 56, 0.35);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(196, 245, 56, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dm-card--premium h3 {
  color: var(--dm-lime-bright);
  text-shadow: 0 0 20px rgba(196, 245, 56, 0.2);
}

.dm-card--wide {
  max-width: 52rem;
}

.dm-grid--premium .dm-card--premium:nth-child(1) {
  animation: dmRevealUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.05s backwards;
}

.dm-grid--premium .dm-card--premium:nth-child(2) {
  animation: dmRevealUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards;
}

.dm-grid--premium .dm-card--premium:nth-child(3) {
  animation: dmRevealUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.25s backwards;
}

@keyframes dmRevealUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dmGreenGlowSoft {
  0%,
  100% {
    border-color: rgba(196, 245, 56, 0.14);
    box-shadow:
      0 10px 36px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(0, 0, 0, 0.2),
      0 0 22px rgba(196, 245, 56, 0.08);
  }
  50% {
    border-color: rgba(196, 245, 56, 0.32);
    box-shadow:
      0 10px 36px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(196, 245, 56, 0.18),
      0 0 40px rgba(196, 245, 56, 0.2);
  }
}

.dm-gallery__grid--premium .dm-gallery__item {
  border: 1px solid rgba(196, 245, 56, 0.14);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 0 24px rgba(196, 245, 56, 0.055),
    0 0 44px rgba(196, 245, 56, 0.028);
  transition:
    transform 1.25s cubic-bezier(0.28, 0.82, 0.38, 1),
    box-shadow 1.25s ease,
    border-color 1.25s ease,
    filter 1.25s ease,
    width 1.25s cubic-bezier(0.28, 0.82, 0.38, 1),
    max-height 1.25s cubic-bezier(0.28, 0.82, 0.38, 1);
}

#flota.dm-gallery.dm-section--premium {
  position: relative;
  overflow: visible;
}

#flota.dm-gallery.dm-section--premium::after {
  content: "";
  position: absolute;
  inset: -1.5rem -6vw -2rem;
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.68;
  background:
    radial-gradient(ellipse 85% 65% at 22% 32%, rgba(196, 245, 56, 0.09), transparent 58%),
    radial-gradient(ellipse 60% 55% at 88% 68%, rgba(245, 232, 72, 0.06), transparent 52%),
    radial-gradient(ellipse 110% 90% at 50% 105%, rgba(26, 92, 82, 0.12), transparent 48%);
}

#flota .dm-gallery__grid--premium {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.dm-gallery__grid--premium .dm-gallery__item.dm-gallery__item--spotlight {
  z-index: 12;
  justify-self: center;
  align-self: center;
  width: min(100%, min(92vw, 500px));
  max-width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(46vh, 400px);
  height: auto;
  transform: scale(1.22) translateY(-22px);
  border-color: rgba(245, 232, 72, 0.45);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(245, 232, 72, 0.3),
    0 0 36px rgba(196, 245, 56, 0.28),
    0 0 64px rgba(196, 245, 56, 0.14),
    0 0 88px rgba(245, 232, 72, 0.07);
  filter:
    drop-shadow(0 22px 38px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 32px rgba(196, 245, 56, 0.35))
    drop-shadow(0 0 56px rgba(245, 232, 72, 0.18));
  transition:
    transform 1.25s cubic-bezier(0.28, 0.82, 0.38, 1),
    width 1.25s cubic-bezier(0.28, 0.82, 0.38, 1),
    max-height 1.25s cubic-bezier(0.28, 0.82, 0.38, 1),
    box-shadow 1.25s ease,
    border-color 1.25s ease,
    filter 1.25s ease;
}

.dm-gallery__grid--premium .dm-gallery__item.dm-gallery__item--spotlight img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  max-height: none;
  transition: transform 1.25s cubic-bezier(0.28, 0.82, 0.38, 1);
  filter: saturate(1.06) contrast(1.02);
}

.dm-gallery__grid--premium .dm-gallery__item.dm-gallery__item--spotlight::after {
  opacity: 1;
  box-shadow:
    inset 0 0 52px rgba(196, 245, 56, 0.24),
    inset 0 0 96px rgba(245, 232, 72, 0.06);
}

.dm-gallery__grid--premium .dm-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow:
    inset 0 0 36px rgba(196, 245, 56, 0.1),
    inset 0 0 72px rgba(245, 232, 72, 0.025);
  transition:
    opacity 0.55s ease,
    box-shadow 1.25s ease;
}

.dm-gallery__grid--premium .dm-gallery__item:hover:not(.dm-gallery__item--spotlight) {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(196, 245, 56, 0.38);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.48),
    0 0 32px rgba(196, 245, 56, 0.22),
    0 0 56px rgba(196, 245, 56, 0.08),
    0 0 0 1px rgba(245, 232, 72, 0.22);
  filter: drop-shadow(0 0 14px rgba(196, 245, 56, 0.12));
}

.dm-gallery__grid--premium .dm-gallery__item:hover:not(.dm-gallery__item--spotlight)::after {
  opacity: 1;
}

body.dm-front-splash .dm-footer {
  border-top-color: rgba(196, 245, 56, 0.12);
  box-shadow: 0 -1px 0 rgba(245, 232, 72, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .dm-front__orb,
  .dm-btn--glow,
  .dm-hero__frame--premium,
  .dm-hero__frame--premium .dm-hero__img,
  .dm-hero__shine--animated,
  .dm-hero__badge,
  .dm-hero--premium .dm-hero__text > h1,
  .dm-hero--premium .dm-hero__text > .dm-hero__lead,
  .dm-gallery .dm-section__head,
  .dm-gallery__intro,
  .dm-gallery__grid--premium .dm-gallery__item {
    animation: none !important;
  }

  .dm-grid--premium .dm-card--premium {
    animation: none !important;
  }

  .dm-btn--glow {
    box-shadow: 0 0 0 1px rgba(196, 245, 56, 0.45);
  }

  .dm-hero__frame--premium {
    box-shadow:
      0 24px 80px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(196, 245, 56, 0.15),
      0 0 60px rgba(196, 245, 56, 0.12);
  }

  .dm-hero__badge {
    box-shadow:
      0 0 24px rgba(245, 232, 72, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .dm-gallery__grid--premium .dm-gallery__item {
    border-color: rgba(196, 245, 56, 0.14);
    box-shadow:
      0 10px 36px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(0, 0, 0, 0.2);
  }

  html.dm-gallery-scroll-js .dm-gallery__grid--premium .dm-gallery__item:not(.dm-gallery__item--in) img,
  html.dm-gallery-scroll-js .dm-gallery__grid--premium .dm-gallery__item.dm-gallery__item--in img {
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: none !important;
  }

  #flota.dm-gallery.dm-section--premium::after {
    opacity: 0.62;
  }

  .dm-gallery__grid--premium .dm-gallery__item.dm-gallery__item--spotlight {
    justify-self: stretch;
    align-self: stretch;
    width: auto;
    max-width: none;
    aspect-ratio: auto;
    max-height: none;
    transform: scale(1.12) translateY(-14px);
    filter:
      drop-shadow(0 20px 36px rgba(0, 0, 0, 0.48))
      drop-shadow(0 0 28px rgba(196, 245, 56, 0.28));
    border-color: rgba(196, 245, 56, 0.42);
    box-shadow:
      0 26px 56px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(196, 245, 56, 0.28),
      0 0 40px rgba(196, 245, 56, 0.22);
    transition: none !important;
  }

  .dm-gallery__grid--premium .dm-gallery__item.dm-gallery__item--spotlight::after {
    box-shadow:
      inset 0 0 48px rgba(196, 245, 56, 0.22),
      inset 0 0 90px rgba(245, 232, 72, 0.06);
  }

  .dm-gallery__grid--premium .dm-gallery__item.dm-gallery__item--spotlight img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
    transform: none !important;
    filter: none !important;
  }
}
