:root {
  --dnd-ink: #120d09;
  --dnd-ink-soft: #21170f;
  --dnd-night: #080707;
  --dnd-night-2: #0f0b09;
  --dnd-panel: #19120d;
  --dnd-parchment: #f5eddf;
  --dnd-parchment-2: #fff9ee;
  --dnd-gold: #ddb36c;
  --dnd-gold-light: #f3d89f;
  --dnd-gold-deep: #8d673a;
  --dnd-wine: #5e132c;
  --dnd-wine-light: #7a183b;
  --dnd-line-dark: rgba(18, 13, 9, 0.14);
  --dnd-line-light: rgba(221, 179, 108, 0.28);
  --dnd-muted-dark: #685849;
  --dnd-muted-light: rgba(255, 249, 238, 0.7);
  --dnd-radius-sm: 18px;
  --dnd-radius: 28px;
  --dnd-radius-lg: 40px;
  --dnd-shadow: 0 24px 70px rgba(21, 12, 6, 0.12);
  --dnd-shadow-dark: 0 28px 90px rgba(0, 0, 0, 0.34);
  --dnd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bs-primary: var(--dnd-gold);
  --bs-primary-rgb: 221, 179, 108;
  --bs-link-color: var(--dnd-gold-deep);
  --bs-link-hover-color: var(--dnd-wine);
  --bs-body-font-family: "Manrope", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  overflow-x: hidden;
  background: var(--dnd-night);
  color: var(--dnd-ink);
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: var(--dnd-gold);
  color: var(--dnd-ink);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.dnd-display {
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1,
.display-1 {
  font-size: clamp(2.65rem, 6.5vw, 6.4rem);
  line-height: 0.98;
}

h2,
.display-2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.08;
}

h3,
.display-3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h4,
h5,
h6 {
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p,
li,
input,
select,
textarea,
button,
.btn,
.badge,
.header-link {
  font-family: "Manrope", system-ui, sans-serif;
}

p:last-child {
  margin-bottom: 0;
}

a {
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--dnd-gold-light);
  outline-offset: 4px;
}

.page-wrapper {
  position: relative;
  z-index: 2;
  background: var(--dnd-parchment);
}

.page-wrapper
  > section:not(.banner-section):not(.inner-hero):not(.bg-dark):not(
    .bg-primary
  ):not(.bg-light-gray):not(.dnd-dark-section):not(.dnd-marquee-section) {
  background: var(--dnd-parchment);
}

.page-wrapper .bg-light-gray {
  background-color: var(--dnd-parchment-2) !important;
}

.page-wrapper .bg-dark,
.footer.bg-dark,
.dnd-dark-section {
  background-color: var(--dnd-night-2) !important;
}

.text-primary {
  color: var(--dnd-gold) !important;
}

.bg-primary,
.round-36.bg-primary,
.round-64.bg-primary {
  background: linear-gradient(
    135deg,
    var(--dnd-gold-deep),
    var(--dnd-gold) 55%,
    var(--dnd-gold-light)
  ) !important;
}

.border-primary {
  border-color: var(--dnd-gold) !important;
}

/* Header */
.header,
.header.fixed-header {
  min-height: 104px;
  padding: 19px 0;
  border-color: var(--dnd-gold);
  background: linear-gradient(180deg, rgba(8, 7, 7, 0.92), rgba(8, 7, 7, 0.48));
  backdrop-filter: blur(14px);
  box-shadow: none;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
  z-index: 99;
}

.header.fixed-header {
  background: rgba(8, 7, 7, 0.94);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.22);
}

.header .container,
.header-wrapper {
  min-height: 62px;
}

.header .logo a.dnd-logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  text-decoration: none;
}

.header .logo img.dnd-brand-logo,
.header .logo img[src*="dndgameboard-logo.png"] {
  width: 62px;
  height: 62px;
  min-width: 62px;
  max-width: 62px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 8px 20px rgba(221, 179, 108, 0.16));
}

.header .dnd-logo-text strong {
  display: block;
  color: #fff9ee;
  font-family: "Unbounded", sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.08;
  text-transform: uppercase;
  white-space: nowrap;
}

.header .dnd-logo-text em {
  display: block;
  margin-top: 6px;
  color: var(--dnd-gold-light);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.header .toggle-menu,
.header.fixed-header .toggle-menu {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border: 1px solid rgba(243, 216, 159, 0.45);
  background: rgba(255, 249, 238, 0.96) !important;
  color: var(--dnd-ink) !important;
  transition:
    transform 0.25s var(--dnd-ease),
    background 0.25s ease;
}

.header .toggle-menu:hover {
  transform: rotate(7deg) scale(1.04);
  background: var(--dnd-gold-light) !important;
}

.header .dnd-top-cta {
  display: none;
}

.header .dropdown-menu {
  z-index: 2000;
  border: 1px solid rgba(141, 103, 58, 0.2);
  border-radius: 28px;
  box-shadow: var(--dnd-shadow-dark);
}

.dnd-nav-note {
  padding: 14px;
  border: 1px solid rgba(141, 103, 58, 0.28);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(221, 179, 108, 0.18),
    rgba(243, 216, 159, 0.58)
  );
  color: var(--dnd-ink);
}

/* Buttons */
.btn:not(.btn-secondary) {
  min-height: 58px;
  border: 1px solid rgba(243, 216, 159, 0.72);
  background: linear-gradient(
    135deg,
    var(--dnd-gold-deep),
    var(--dnd-gold) 54%,
    var(--dnd-gold-light)
  );
  box-shadow: 0 16px 34px rgba(141, 103, 58, 0.2);
  color: var(--dnd-ink);
  transition:
    transform 0.25s var(--dnd-ease),
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn:not(.btn-secondary) .btn-text {
  color: var(--dnd-ink);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.btn:not(.btn-secondary):hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--dnd-wine), var(--dnd-wine-light));
  border-color: rgba(243, 216, 159, 0.78);
  box-shadow: 0 20px 44px rgba(94, 19, 44, 0.34);
}

.btn:not(.btn-secondary):hover .btn-text {
  color: #fff9ee;
}

.btn-outline-light {
  border-color: rgba(243, 216, 159, 0.5) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}

.btn-outline-light .btn-text {
  color: #fff9ee !important;
}

.btn-outline-light:hover {
  background: var(--dnd-gold-light) !important;
}

.btn-outline-light:hover .btn-text {
  color: var(--dnd-ink) !important;
}

a[href*="quiz.geekdndparty.today"].btn:hover {
  background: linear-gradient(135deg, var(--dnd-wine), var(--dnd-wine-light));
}

/* Ambient layer */
.dnd-aether-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.dnd-aether-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 12% 12%,
      rgba(221, 179, 108, 0.11),
      transparent 25%
    ),
    radial-gradient(circle at 88% 16%, rgba(94, 19, 44, 0.12), transparent 24%),
    radial-gradient(
      circle at 50% 100%,
      rgba(243, 216, 159, 0.06),
      transparent 34%
    );
}

.dnd-aether-ember {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(243, 216, 159, 0.95);
  box-shadow: 0 0 16px rgba(221, 179, 108, 0.62);
  animation:
    ember-rise linear infinite,
    ember-flicker ease-in-out infinite;
  pointer-events: none;
}

@keyframes ember-rise {
  from {
    translate: 0 28px;
  }
  to {
    translate: 18px -82px;
  }
}

@keyframes ember-flicker {
  0%,
  100% {
    opacity: 0.16;
  }
  50% {
    opacity: 0.9;
  }
}

/* Hero */
.banner-section {
  isolation: isolate;
  min-height: 100svh;
  background: var(--dnd-night);
}

.banner-section::before {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(8, 7, 7, 0.72),
      rgba(8, 7, 7, 0.18) 62%,
      rgba(8, 7, 7, 0.46)
    ),
    linear-gradient(180deg, rgba(8, 7, 7, 0.2), rgba(8, 7, 7, 0.82));
}

.banner-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 180px;
  background: linear-gradient(transparent, var(--dnd-night));
  pointer-events: none;
}

.dnd-hero-video {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(1.05) brightness(0.74);
}

.dnd-video-fallback {
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65)),
    url("../images/dnd/hero-map.svg");
  background-position: center;
  background-size: cover;
}

.banner-section .container {
  position: relative;
  z-index: 4;
}

.banner-section h1 {
  max-width: 12ch;
  color: #fff9ee;
  font-size: clamp(3rem, 8vw, 8.6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.44);
}

.dnd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dnd-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dnd-kicker::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

/* Shared labels and section rhythm */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
  color: var(--dnd-gold-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-label-light {
  color: var(--dnd-gold-light);
}

.section-lead {
  max-width: 720px;
  color: var(--dnd-muted-dark);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.75;
}

.dnd-dark-section .section-lead,
.inner-hero .section-lead {
  color: var(--dnd-muted-light);
}

.border-line {
  border-color: rgba(141, 103, 58, 0.36);
}

.badge.text-bg-dark {
  background: var(--dnd-ink) !important;
  color: #fff9ee !important;
}

/* Existing cards and illustrations */
.dnd-card,
.dnd-class-card,
.dnd-parchment-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(141, 103, 58, 0.18);
  border-radius: var(--dnd-radius);
  background: rgba(255, 249, 238, 0.96);
  box-shadow: 0 14px 42px rgba(21, 12, 6, 0.07);
  transition:
    transform 0.45s var(--dnd-ease),
    box-shadow 0.45s var(--dnd-ease),
    border-color 0.45s ease;
}

.dnd-card:hover,
.dnd-class-card:hover,
.dnd-parchment-card:hover {
  transform: translateY(-10px);
  border-color: rgba(141, 103, 58, 0.42);
  box-shadow: var(--dnd-shadow);
}

.dnd-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition:
    transform 0.8s var(--dnd-ease),
    filter 0.5s ease;
}

.dnd-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.dnd-card p,
.dnd-class-card p,
.dnd-parchment-card p {
  color: var(--dnd-muted-dark);
}

.dnd-intro-img {
  width: 100%;
  border: 1px solid rgba(141, 103, 58, 0.2);
  border-radius: var(--dnd-radius);
  box-shadow: var(--dnd-shadow);
}

.dnd-info-chip,
.dnd-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(141, 103, 58, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #25160f;
  font-size: 0.82rem;
  font-weight: 700;
}

.dnd-class-card .badge {
  background: var(--dnd-ink) !important;
  color: var(--dnd-gold-light) !important;
}

.dnd-dark-panel {
  overflow: hidden;
  border: 1px solid var(--dnd-line-light);
  border-radius: var(--dnd-radius-lg);
  background:
    radial-gradient(
      circle at 74% 16%,
      rgba(221, 179, 108, 0.2),
      transparent 30%
    ),
    linear-gradient(135deg, #19120d, #070708 72%);
  box-shadow: var(--dnd-shadow-dark);
  color: #fff9ee;
}

.dnd-dark-panel p {
  color: var(--dnd-muted-light);
}

.dnd-service-num {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--dnd-gold-deep),
    var(--dnd-gold-light)
  );
  color: var(--dnd-ink);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(141, 103, 58, 0.2);
}

.dnd-list li {
  margin-bottom: 0.72rem;
}

.dnd-list li::marker {
  color: var(--dnd-gold-deep);
}

.dnd-price {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
}

/* Studiova carousel, refined */
.featured-projects .portfolio-img {
  border-radius: var(--dnd-radius);
  box-shadow: var(--dnd-shadow);
}

.featured-projects .portfolio-img img {
  transition:
    transform 0.75s var(--dnd-ease),
    filter 0.5s ease;
}

.featured-projects .portfolio:hover .portfolio-img img {
  transform: scale(1.055);
  filter: saturate(1.1) contrast(1.02);
}

.featured-projects .portfolio-overlay {
  background: linear-gradient(180deg, transparent, rgba(8, 7, 7, 0.54));
}

.featured-projects-slider .owl-stage-outer {
  padding: 1.2rem 0 2rem;
}

/* Audience service tabs */
.audience-tabs {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.55fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.audience-tablist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.audience-tab {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--dnd-line-light);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 249, 238, 0.72);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  transition:
    transform 0.3s var(--dnd-ease),
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.audience-tab::after {
  content: "↗";
  color: var(--dnd-gold);
  font-size: 1.2rem;
}

.audience-tab:hover,
.audience-tab[aria-selected="true"] {
  transform: translateX(6px);
  border-color: rgba(243, 216, 159, 0.54);
  background: linear-gradient(
    135deg,
    rgba(141, 103, 58, 0.5),
    rgba(94, 19, 44, 0.28)
  );
  color: #fff9ee;
}

.audience-panel {
  display: none;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--dnd-line-light);
  border-radius: var(--dnd-radius-lg);
  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(221, 179, 108, 0.18),
      transparent 30%
    ),
    #15100c;
  box-shadow: var(--dnd-shadow-dark);
}

.audience-panel.is-active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  animation: panel-enter 0.55s var(--dnd-ease) both;
}

.audience-panel-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.audience-panel-copy p {
  color: var(--dnd-muted-light);
}

.audience-panel-art {
  display: grid;
  place-items: center;
  min-height: 310px;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(94, 19, 44, 0.12),
    rgba(221, 179, 108, 0.1)
  );
}

.audience-panel-art img {
  width: min(100%, 430px);
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.3));
  transition: transform 0.7s var(--dnd-ease);
}

.audience-panel:hover .audience-panel-art img {
  transform: translateY(-8px) rotate(1deg) scale(1.02);
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Why an organizer */
.why-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.why-card {
  position: relative;
  grid-column: span 4;
  min-height: 300px;
  overflow: hidden;
  padding: clamp(1.7rem, 3vw, 2.6rem);
  border: 1px solid rgba(141, 103, 58, 0.18);
  border-radius: var(--dnd-radius);
  background: rgba(255, 249, 238, 0.86);
  transition:
    transform 0.45s var(--dnd-ease),
    background 0.45s ease,
    color 0.45s ease;
}

.why-card::after {
  position: absolute;
  right: -0.1em;
  bottom: -0.3em;
  color: rgba(141, 103, 58, 0.08);
  content: attr(data-number);
  font-family: "Unbounded", sans-serif;
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  transition:
    transform 0.55s var(--dnd-ease),
    color 0.4s ease;
}

.why-card:hover {
  transform: translateY(-9px);
  background: var(--dnd-ink-soft);
  color: #fff9ee;
}

.why-card:hover p {
  color: var(--dnd-muted-light);
}

.why-card:hover::after {
  transform: translate(-12px, -8px) rotate(-6deg);
  color: rgba(221, 179, 108, 0.12);
}

.why-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 2rem;
  border-radius: 50%;
  background: var(--dnd-gold);
  color: var(--dnd-ink);
  font-size: 1.25rem;
  font-weight: 800;
}

.why-card p {
  position: relative;
  z-index: 1;
  color: var(--dnd-muted-dark);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.pricing-card {
  position: relative;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  padding: clamp(1.7rem, 3vw, 2.7rem);
  border: 1px solid var(--dnd-line-light);
  border-radius: var(--dnd-radius);
  background: rgba(255, 255, 255, 0.035);
  color: #fff9ee;
  transition:
    transform 0.45s var(--dnd-ease),
    border-color 0.35s ease,
    background 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-12px);
  border-color: rgba(243, 216, 159, 0.62);
  background: rgba(221, 179, 108, 0.08);
}

.pricing-card.is-featured {
  background: linear-gradient(
    155deg,
    rgba(94, 19, 44, 0.44),
    rgba(141, 103, 58, 0.22)
  );
  transform: translateY(-16px);
}

.pricing-card.is-featured:hover {
  transform: translateY(-24px);
}

.pricing-tag {
  width: fit-content;
  margin-bottom: 2rem;
  padding: 7px 11px;
  border: 1px solid var(--dnd-line-light);
  border-radius: 999px;
  color: var(--dnd-gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pricing-title {
  margin-bottom: 0.8rem;
}

.pricing-value {
  margin-bottom: 2rem;
  color: var(--dnd-gold-light);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
}

.pricing-card p,
.pricing-card li {
  color: var(--dnd-muted-light);
}

.pricing-card .btn {
  margin-top: auto;
}

/* Marquee */
.dnd-marquee-section {
  overflow: hidden;
  border-block: 1px solid rgba(18, 13, 9, 0.12);
  background: linear-gradient(
    135deg,
    var(--dnd-gold-deep),
    var(--dnd-gold-light)
  );
  color: var(--dnd-ink);
}

.dnd-marquee {
  display: flex;
  width: max-content;
  padding: 1.15rem 0;
  animation: marquee-run 30s linear infinite;
}

.dnd-marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.dnd-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  padding-right: 1.3rem;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.dnd-marquee-item::after {
  content: "✦";
  font-size: 0.8em;
}

.dnd-marquee-section:hover .dnd-marquee {
  animation-play-state: paused;
}

@keyframes marquee-run {
  to {
    transform: translateX(-50%);
  }
}

/* FAQ */
.dnd-faq .accordion-item {
  border: 0;
  border-bottom: 1px solid rgba(141, 103, 58, 0.22);
  background: transparent;
}

.dnd-faq .accordion-button {
  padding: 1.7rem 0;
  background: transparent;
  color: var(--dnd-ink);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.4;
  box-shadow: none;
}

.dnd-faq .accordion-button:not(.collapsed) {
  color: var(--dnd-wine);
}

.dnd-faq .accordion-body {
  max-width: 850px;
  padding: 0 0 1.8rem;
  color: var(--dnd-muted-dark);
  font-size: 1.04rem;
  line-height: 1.75;
}

/* Resources */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.resource-card {
  display: flex;
  min-height: 410px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--dnd-line-light);
  border-radius: var(--dnd-radius);
  background: rgba(255, 255, 255, 0.04);
  color: #fff9ee;
  text-decoration: none;
  transition:
    transform 0.45s var(--dnd-ease),
    border-color 0.35s ease,
    background 0.35s ease;
}

.resource-card:hover {
  transform: translateY(-10px);
  border-color: rgba(243, 216, 159, 0.56);
  background: rgba(221, 179, 108, 0.08);
  color: #fff9ee;
}

.resource-art {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(221, 179, 108, 0.22),
      transparent 38%
    ),
    linear-gradient(135deg, #21170f, #0b0908);
}

.resource-art::before {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(243, 216, 159, 0.5);
  border-radius: 24px;
  background: rgba(221, 179, 108, 0.08);
  content: attr(data-symbol);
  color: var(--dnd-gold-light);
  font-family: "Unbounded", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 92px;
  text-align: center;
  transform: rotate(-4deg);
  transition: transform 0.6s var(--dnd-ease);
}

.resource-card:hover .resource-art::before {
  transform: rotate(4deg) scale(1.06);
}

.resource-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.7rem;
}

.resource-card-copy p {
  color: var(--dnd-muted-light);
}

.resource-link {
  margin-top: auto;
  color: var(--dnd-gold-light);
  font-weight: 700;
}

/* Rich internal heroes */
.inner-hero {
  position: relative;
  display: flex;
  min-height: min(760px, 88svh);
  align-items: center;
  overflow: hidden;
  padding: 170px 0 90px;
  background:
    radial-gradient(
      circle at 82% 25%,
      rgba(221, 179, 108, 0.2),
      transparent 25%
    ),
    radial-gradient(circle at 14% 90%, rgba(94, 19, 44, 0.16), transparent 30%),
    var(--dnd-night-2);
  color: #fff9ee;
}

.inner-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(221, 179, 108, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 179, 108, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.inner-hero .container {
  position: relative;
  z-index: 2;
}

.inner-hero h1 {
  max-width: 12ch;
  color: #fff9ee;
}

.inner-hero-art {
  position: relative;
  display: grid;
  min-height: 440px;
  place-items: center;
}

.inner-hero-art::before,
.inner-hero-art::after {
  position: absolute;
  border: 1px solid rgba(221, 179, 108, 0.2);
  border-radius: 50%;
  content: "";
  animation: orbit-spin 18s linear infinite;
}

.inner-hero-art::before {
  width: 390px;
  height: 390px;
}

.inner-hero-art::after {
  width: 300px;
  height: 300px;
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 25s;
}

.inner-hero-art img {
  position: relative;
  z-index: 2;
  width: min(100%, 470px);
  filter: drop-shadow(0 32px 65px rgba(0, 0, 0, 0.42));
  animation: hero-float 6s ease-in-out infinite;
}

.hero-metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.hero-metric {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--dnd-line-light);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dnd-gold-light);
  font-size: 0.78rem;
  font-weight: 700;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.6deg);
  }
  50% {
    transform: translateY(-14px) rotate(0.6deg);
  }
}

/* Resource guide page */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: 135px;
}

.guide-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(141, 103, 58, 0.22);
}

.guide-nav a {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(141, 103, 58, 0.22);
  color: var(--dnd-ink);
  font-weight: 700;
  text-decoration: none;
}

.guide-nav a span {
  color: var(--dnd-gold-deep);
  font-size: 0.75rem;
}

.guide-nav a:hover {
  color: var(--dnd-wine);
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.guide-article {
  padding: clamp(1.7rem, 5vw, 4.5rem);
  border: 1px solid rgba(141, 103, 58, 0.18);
  border-radius: var(--dnd-radius-lg);
  background: var(--dnd-parchment-2);
  box-shadow: var(--dnd-shadow);
  scroll-margin-top: 130px;
}

.guide-article h2 {
  margin-bottom: 1.5rem;
}

.guide-lead {
  margin-bottom: 2.5rem;
  color: var(--dnd-muted-dark);
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  line-height: 1.72;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.guide-steps > div {
  padding: 1.4rem;
  border: 1px solid rgba(141, 103, 58, 0.16);
  border-radius: var(--dnd-radius-sm);
  background: rgba(221, 179, 108, 0.08);
}

.guide-steps strong,
.character-prompts strong {
  color: var(--dnd-ink);
  font-size: 1.02rem;
}

.guide-steps p,
.character-prompts p {
  margin-top: 0.5rem;
  color: var(--dnd-muted-dark);
}

.guide-callout {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--dnd-wine);
  border-radius: 0 var(--dnd-radius-sm) var(--dnd-radius-sm) 0;
  background: rgba(94, 19, 44, 0.07);
}

.character-prompts {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 2.4rem;
  padding: 0;
  list-style: none;
}

.character-prompts li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(141, 103, 58, 0.18);
}

.character-prompts li > span {
  color: var(--dnd-gold-deep);
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.checklist-grid label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(141, 103, 58, 0.16);
  border-radius: 14px;
  background: rgba(221, 179, 108, 0.06);
  font-weight: 600;
  cursor: pointer;
}

.checklist-grid input {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--dnd-wine);
}

/* Forms */
.contact-hero {
  min-height: 720px;
  padding-top: 180px !important;
  background:
    radial-gradient(
      circle at 90% 15%,
      rgba(255, 249, 238, 0.38),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      var(--dnd-gold-deep),
      var(--dnd-gold) 55%,
      var(--dnd-gold-light)
    ) !important;
}

.contact-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 13, 9, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 13, 9, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  pointer-events: none;
}

.contact-hero > .container {
  position: relative;
  z-index: 2;
}

.dnd-form .form-control,
.dnd-form .form-select {
  min-height: 58px;
  padding-left: 0;
  border: 0;
  border-bottom: 1px solid rgba(18, 13, 9, 0.42);
  border-radius: 0;
  background: transparent;
  color: var(--dnd-ink);
}

.dnd-form textarea.form-control {
  min-height: 120px;
}

.dnd-form .form-control::placeholder {
  color: rgba(18, 13, 9, 0.56);
}

.dnd-form .form-control:focus,
.dnd-form .form-select:focus {
  border-color: var(--dnd-wine);
  background: transparent;
  box-shadow: none;
  color: var(--dnd-ink);
}

.form-status {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(33, 115, 70, 0.12);
  color: #145d35;
}

.form-status.is-error {
  background: rgba(140, 35, 51, 0.12);
  color: #7a183b;
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--dnd-line-light);
}

.footer .dnd-logo-footer {
  width: 138px;
  max-width: 138px;
  height: auto;
}

.footer h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.footer a:hover {
  color: var(--dnd-gold-light) !important;
}

.get-template a {
  display: none !important;
}

#scrollToTopBtn {
  border: 1px solid rgba(243, 216, 159, 0.66);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Premium motion helpers layered on top of AOS */
[data-aos="dnd-title"] {
  opacity: 0;
  transform: translateY(42px) rotateX(8deg);
  transform-origin: bottom left;
  transition-property: opacity, transform;
}

[data-aos="dnd-title"].aos-animate {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

[data-aos="dnd-card"] {
  opacity: 0;
  transform: translateY(38px) scale(0.965);
  transition-property: opacity, transform;
}

[data-aos="dnd-card"].aos-animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-aos="dnd-reveal-left"] {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-26px);
  transition-property: opacity, transform, clip-path;
}

[data-aos="dnd-reveal-left"].aos-animate {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateX(0);
}

[data-aos="dnd-reveal-right"] {
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transform: translateX(26px);
  transition-property: opacity, transform, clip-path;
}

[data-aos="dnd-reveal-right"].aos-animate {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translateX(0);
}

@media (max-width: 1199.98px) {
  .why-card {
    grid-column: span 6;
  }

  .pricing-grid,
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.is-featured {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
  }

  .audience-tabs {
    grid-template-columns: 1fr;
  }

  .audience-tablist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-tab:hover,
  .audience-tab[aria-selected="true"] {
    transform: translateY(-3px);
  }

  .audience-panel.is-active {
    grid-template-columns: 1fr;
  }

  .audience-panel-art {
    min-height: 270px;
  }

  .inner-hero {
    min-height: auto;
    padding-top: 150px;
  }

  .contact-hero {
    min-height: auto;
    padding-top: 124px !important;
  }

  .inner-hero-art {
    min-height: 340px;
  }

  .inner-hero-art::before {
    width: 310px;
    height: 310px;
  }

  .inner-hero-art::after {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 0.96rem;
  }

  .header,
  .header.fixed-header {
    min-height: 78px;
    padding: 12px 0;
  }

  .header .container,
  .header-wrapper {
    min-height: 52px;
  }

  .header .logo a.dnd-logo-lockup {
    min-height: 52px;
    gap: 10px;
  }

  .header .logo img.dnd-brand-logo,
  .header .logo img[src*="dndgameboard-logo.png"] {
    width: 50px;
    height: 50px;
    min-width: 50px;
    max-width: 50px;
  }

  .header .dnd-logo-text strong {
    font-size: 0.76rem;
  }

  .header .dnd-logo-text em {
    font-size: 0.49rem;
    letter-spacing: 0.15em;
  }

  .header .toggle-menu,
  .header.fixed-header .toggle-menu {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .banner-section h1 {
    font-size: clamp(3.1rem, 16vw, 5rem);
  }

  .why-grid,
  .pricing-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .guide-steps,
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    grid-column: auto;
    min-height: 260px;
  }

  .pricing-card {
    min-height: auto;
  }

  .audience-tablist {
    grid-template-columns: 1fr;
  }

  .audience-panel-copy {
    padding: 1.7rem;
  }

  .inner-hero {
    padding: 124px 0 64px;
  }

  .inner-hero-art {
    min-height: 280px;
  }

  .inner-hero-art::before {
    width: 250px;
    height: 250px;
  }

  .inner-hero-art::after {
    width: 190px;
    height: 190px;
  }

  .btn:not(.btn-secondary) {
    min-height: 54px;
    padding-left: 24px;
  }

  .btn:not(.btn-secondary) .btn-text {
    font-size: 0.92rem;
  }
}

@media (max-width: 399.98px) {
  .header .dnd-logo-text strong {
    font-size: 0.68rem;
  }

  .header .dnd-logo-text em {
    font-size: 0.43rem;
  }
}

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

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

  [data-aos] {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
  }
}
