/* DRIP DRAGONS WEBSITE — kit-local styles */
@import url("colors_and_type.css");

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg-page); color: var(--fg-1); font-family: var(--font-system); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ───────── Navbar (decomposed bone images) ───────── */
.dd-nav {
  position: fixed;
  top: -16vh; /* push the canvas up so bones sit near the top of the viewport */
  left: 50%;
  transform: translateX(-50%);
  width: 84%;
  max-width: 880px;
  aspect-ratio: 1200 / 800;
  z-index: 100;
  pointer-events: none; /* container is empty space; only zones receive events */
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.32));
}
.dd-nav-bone-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Each bone scales/rotates around its OWN center within the canvas, so it
   "lifts" in place rather than swinging around the canvas centre. */
.dd-nav-bone-img.bone-logo    { transform-origin: 14.5% 47%; }
.dd-nav-bone-img.bone-more    { transform-origin: 45%   50%; transform: translateX(-0.8%); }
.dd-nav-bone-img.bone-about   { transform-origin: 51%   50%; }
.dd-nav-bone-img.bone-gallery { transform-origin: 60%   50%; }
.dd-nav-bone-img.bone-lore    { transform-origin: 72%   50%; }
.dd-nav-bone-img.bone-connect { transform-origin: 96%   50%; }
.dd-nav-bone-img.bone-more.is-hover {
  transform: translateX(-0.8%) scale(1.08) translateY(-4px) rotate(-2.5deg);
}
.dd-nav-bone-img.is-hover {
  transform: scale(1.08) translateY(-4px) rotate(-2.5deg);
}
/* Single transparent hit layer covering the whole nav canvas. JS samples
   the alpha channel of each bone PNG at the cursor position to decide
   what (if anything) is under the cursor — so hover/click only fire on
   the visible bone artwork, not the shadow or empty space. */
.dd-nav-hitlayer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: auto;
  cursor: default;
}
.dd-nav-hitlayer.is-over { cursor: pointer; }
/* Keyboard-only focus targets: visually hidden but reachable via Tab. */
.dd-nav-a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  top: 50%;
}
.a11y-logo    { left: 14.5%; }
.a11y-more    { left: 45%; }
.a11y-about   { left: 51%; }
.a11y-gallery { left: 60%; }
.a11y-lore    { left: 72%; }
.a11y-connect { left: 96%; }
.dd-nav-a11y:focus-visible {
  outline: 2px solid rgba(60, 90, 200, 0.7);
  outline-offset: 4px;
  opacity: 1;
  width: 6%;
  height: 12%;
  top: 44%;
  border-radius: 50%;
}

@media (max-width: 720px) {
  .dd-nav { width: 94%; top: -12vh; }
}

/* ───────── Homepage hero (scroll-driven frame scrub) ───────── */
.dd-home {
  position: relative; background: var(--ink-chalkboard);
}
.dd-home-stage {
  background: #d4d4d8;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px 48px;
  box-sizing: border-box;
}
.dd-home-stage-light {
  background: transparent;
  perspective: 1400px;
  padding: 120px 32px 96px;
  min-height: auto;
  justify-content: flex-start;
  padding-left: 7vw;
}
.dd-home-light-wrap {
  background: #e2e2e2;
  padding-top: 260px;
  padding-bottom: 120px;
}
.dd-home-shapes {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(20px, 3vw, 48px);
  padding: 0 clamp(20px, 4vw, 64px);
  --shape-size: min(520px, 38vw);
}
.dd-home-square {
  width: var(--shape-size);
  height: var(--shape-size);
  border-radius: 28px;
  background: #cfcfcf;
  border: 2px solid #111111;
  flex: 0 0 auto;
  overflow: hidden;
}
.dd-home-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dd-home-rect {
  position: relative;
  flex: 1 1 auto;
  max-width: 900px;
  height: var(--shape-size);
  border-radius: 28px;
  background: radial-gradient(120% 140% at 50% 38%, #16181b 0%, var(--ink-chalkboard) 72%);
  border: 2px solid #111111;
  margin-left: 48px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Real video, once dropped in, fills the rectangle */
.dd-home-rect video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Trailer controls: restart · progress bar · sound ── */
.dd-video-ctrl {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 40px; /* sits just above the bottom film-strip edge */
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 13, 14, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dd-home-rect:hover .dd-video-ctrl,
.dd-video-ctrl:focus-within {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.dd-video-btn {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--neon-mint);
  background: transparent;
  color: var(--chalk-white);
  cursor: pointer;
  padding: 0;
}
.dd-video-btn:hover { background: rgba(125, 200, 154, 0.18); }
.dd-video-btn svg { width: 18px; height: 18px; fill: currentColor; }
.dd-video-bar {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.2);
  cursor: pointer;
  overflow: hidden;
}
.dd-video-bar-fill {
  height: 100%;
  background: var(--neon-mint);
  border-radius: 999px;
}

.dd-video-vol {
  flex: none;
  width: 90px;
  height: 8px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-mint) var(--vol), rgba(244, 239, 230, 0.2) var(--vol));
  cursor: pointer;
}
.dd-video-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--chalk-white);
  border: none;
}
.dd-video-vol::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--chalk-white);
  border: none;
}
.dd-video-vol::-moz-range-track { background: transparent; }

/* ── Creative "video coming soon" placeholder ── */
.dd-video-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
/* film-strip sprocket edges (top + bottom) */
.dd-video-ph::before,
.dd-video-ph::after,
.dd-film-edges::before,
.dd-film-edges::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background-image: repeating-linear-gradient(90deg,
    rgba(244, 239, 230, 0.14) 0 10px, transparent 10px 26px);
  opacity: 0.5;
}
.dd-video-ph::before { top: 14px; }
.dd-video-ph::after { bottom: 14px; }
.dd-film-edges::before { top: 14px; }
.dd-film-edges::after { bottom: 14px; }
.dd-film-edges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* diagonal sheen sweep, suggests a live surface */
.dd-video-ph-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 32%,
    rgba(244, 239, 230, 0.05) 47%,
    rgba(125, 200, 154, 0.12) 50%,
    rgba(244, 239, 230, 0.05) 53%,
    transparent 68%);
  animation: dd-ph-sheen 5s ease-in-out infinite;
}
@keyframes dd-ph-sheen {
  0%, 12%  { transform: translateX(-65%); }
  62%, 100% { transform: translateX(65%); }
}
/* pulsing play button */
.dd-video-ph-play {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(12, 13, 14, 0.55);
  border: 2px solid var(--neon-mint);
  box-shadow: 0 0 0 0 rgba(125, 200, 154, 0.45);
  animation: dd-ph-pulse 2.6s ease-out infinite;
}
.dd-video-ph-play svg {
  width: 34px;
  height: 34px;
  fill: var(--chalk-white);
  margin-left: 5px; /* optically centre the triangle */
}
@keyframes dd-ph-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(125, 200, 154, 0.45); }
  70%  { box-shadow: 0 0 0 26px rgba(125, 200, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 200, 154, 0); }
}
.dd-video-ph-label {
  font-family: var(--font-display);
  color: var(--chalk-white);
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: 0.06em;
  opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) {
  .dd-video-ph-sheen,
  .dd-video-ph-play { animation: none; }
}

/* ───────── Latest creations gallery ───────── */
.dd-latest {
  background: transparent;
  color: #1a1a1c;
  padding: 120px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dd-latest-head {
  max-width: 720px;
  text-align: center;
  margin: 0 auto 40px;
}
.dd-latest-title {
  font-family: var(--font-display, serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: #fafafa;
}
.dd-latest-sub {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(244, 244, 245, 0.55);
  margin: 0;
}
.dd-latest-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 1180px;
  height: 420px;
  padding: 0 4px;
}
.dd-latest-card {
  position: relative;
  flex: 1 1 0;
  min-width: 60px;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #e5e0d4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: flex-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.dd-latest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.96) saturate(1.05);
  transition: filter 0.5s ease, transform 0.6s ease;
}
.dd-latest-strip:hover .dd-latest-card { flex-grow: 0.6; }
.dd-latest-strip .dd-latest-card:hover { flex-grow: 4; }
.dd-latest-card:hover img { filter: brightness(1.04) saturate(1.1); transform: scale(1.02); }
@media (max-width: 880px) {
  .dd-home-light-wrap { padding-top: 96px; }
  .dd-latest { padding: 0 16px 40px; }
  .dd-latest-strip { height: 320px; gap: 6px; }
  .dd-latest-card { min-width: 40px; }
  .dd-home-stage-light { padding: 16px 16px 64px; }
}
.dd-home-sketch {
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  border: 2px solid #0f0f10;
}

/* ───────── Spotlight (light beam over sketch) ───────── */
.dd-spotlight {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --beam: 0;
  --beam-size: 22%;
  --beam-edge: 55%;
  position: relative;
  width: min(900px, 82vw);
  aspect-ratio: 1024 / 720;
  max-height: 86vh;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.04) inset;
  transform: none;
  transition: none;
  cursor: crosshair;
}
.dd-spotlight img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* Base layer — full sharp drawing, always visible */
.dd-spotlight-base {
  filter: brightness(1.02) contrast(1.04);
  z-index: 1;
}
/* Dark translucent "calque" overlay with a beam-shaped hole */
.dd-spotlight-sharp {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(8, 8, 10, 0.62);
  -webkit-mask-image: radial-gradient(
    circle at var(--mx) var(--my),
    transparent 0,
    transparent calc(var(--beam-size) * var(--beam)),
    #000 calc(var(--beam-edge) * var(--beam) + 0.01%)
  );
  mask-image: radial-gradient(
    circle at var(--mx) var(--my),
    transparent 0,
    transparent calc(var(--beam-size) * var(--beam)),
    #000 calc(var(--beam-edge) * var(--beam) + 0.01%)
  );
  transition: -webkit-mask-image 0.25s ease-out, mask-image 0.25s ease-out;
}
/* Warm glow halo around the cursor */
.dd-spotlight-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(255, 235, 180, 0.28) 0%,
    rgba(255, 220, 150, 0.12) 18%,
    transparent 45%
  );
  mix-blend-mode: screen;
  opacity: var(--beam);
  transition: opacity 0.3s ease-out;
}
@media (max-width: 720px) {
  .dd-spotlight { --beam-size: 30%; --beam-edge: 70%; }
}
/* ───────── Team showcase ───────── */
.tm-wrap {
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 90px;
  font-family: var(--font-sans, system-ui, sans-serif);
  color: #f4f4f5;
}
.tm-grid {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.tm-col { display: flex; flex-direction: column; gap: 12px; }
.tm-col-0 { margin-top: 0; }
.tm-col-1 { margin-top: 64px; }
.tm-col-2 { margin-top: 30px; }
.tm-photo {
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .4s ease;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
}
.tm-photo img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  transition: filter .5s ease;
}
.tm-photo.is-dim { opacity: 0.55; }

.tm-list {
  flex-shrink: 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
}
.tm-rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tm-row {
  cursor: pointer;
  transition: opacity .3s ease;
}
.tm-row.is-dim { opacity: 0.4; }
.tm-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tm-dot {
  width: 16px; height: 12px;
  border-radius: 5px;
  background: rgba(244, 244, 245, 0.22);
  flex-shrink: 0;
  transition: all .3s ease;
}
.tm-row.is-active .tm-dot {
  background: #f4f4f5;
  width: 22px;
}
.tm-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(244, 244, 245, 0.75);
  transition: color .3s ease;
}
.tm-row.is-active .tm-name { color: #f4f4f5; }
.tm-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.tm-row.is-active .tm-social {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.tm-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 5px;
  color: rgba(244, 244, 245, 0.55);
  transition: color .15s ease, background .15s ease, transform .15s ease;
  text-decoration: none;
}
.tm-social a:hover {
  color: #f4f4f5;
  background: rgba(244, 244, 245, 0.1);
  transform: scale(1.12);
}
.tm-role {
  margin: 6px 0 0 26px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.45);
}
@media (max-width: 880px) {
  .tm-wrap { flex-direction: column; gap: 32px; }
  .tm-grid { overflow-x: auto; padding-bottom: 4px; }
  .tm-col-1 { margin-top: 40px; }
  .tm-col-2 { margin-top: 18px; }
  .tm-photo { width: 130px !important; height: 140px !important; }
  .tm-col-1 .tm-photo { width: 145px !important; height: 155px !important; }
  .tm-col-2 .tm-photo { width: 135px !important; height: 145px !important; }
}
.dd-hero-frames {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; background: var(--ink-chalkboard);
}
.dd-hero-frame-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.dd-hero-spacer {
  position: relative; z-index: 0;
  height: calc(4000px + 100vh);
}
.dd-post-hero {
  position: relative; z-index: 10;
  background: transparent;
  border-top: 2px solid #111111;
}
.dd-home-intro {
  position: relative;
  background: rgba(244, 239, 230, 0.85); /* chalk-white, translucent */
  color: var(--fg-1);
  min-height: 100vh;
  overflow: hidden;
}
/* ───────── Reusable metal-frame "anatomy" element ───────── */
.dd-anatomy-frame {
  position: relative;
  width: 100%;
  max-width: 880px;
  aspect-ratio: 736 / 414; /* metal-frame.png native ratio */
  margin: 48px auto 96px;  /* extra bottom margin for glow */
}
.dd-anatomy-frame-glow {
  position: absolute;
  left: -6%; right: -6%;
  bottom: -28%;
  height: 80%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 35%,
      rgba(178, 110, 235, 0.55) 0%,
      rgba(139, 111, 168, 0.42) 28%,
      rgba(91, 64, 122, 0.22) 55%,
      transparent 78%);
  filter: blur(36px);
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: dd-anatomy-smoke 8s var(--ease-in-out) infinite;
}
@keyframes dd-anatomy-smoke {
  0%, 100% { opacity: 0.85; transform: translate3d(0, 0, 0) scale(1); }
  50%      { opacity: 1;    transform: translate3d(0, 4px, 0) scale(1.04); }
}
.dd-anatomy-frame-video {
  position: absolute;
  /* fit inside the metal frame's inner cutout, with breathing room */
  top: 19%; left: 16%;
  width: 68%; height: 62%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.dd-anatomy-frame-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.dd-anim {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.dd-anim-image {
  background: #0e0d0a;
  position: relative;
}
.dd-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.dd-anim-image::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(14,13,10,0.85) 100%);
}
.dd-anim::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}
.dd-video-slot {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 24px;
}
.dd-video-slot-inner {
  border: 1.5px dashed rgba(244,239,230,0.20);
  border-radius: var(--r-5);
  padding: 28px 36px;
  text-align: center;
  max-width: 520px;
  background: rgba(255,255,255,0.02);
}
.dd-video-slot-title {
  font-family: var(--font-display); font-size: 28px; line-height: 1.1;
  color: rgba(244,239,230,0.6); margin-top: 10px;
}
.dd-video-slot-sub {
  font-size: 13px; color: rgba(244,239,230,0.4); margin-top: 8px; line-height: 1.5;
  font-family: var(--font-system);
}
.dd-video-slot-sub code {
  font-family: var(--font-mono); font-size: 12px;
  background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px;
  color: var(--neon-mint);
}

.dd-hero-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 24px 64px;
  pointer-events: none;
}
.dd-hero-content > * { pointer-events: auto; }
.dd-hero-ctas {
  display: flex; gap: 12px; margin-top: 28px;
  flex-wrap: wrap; justify-content: center;
}
.dd-hero-ctas .dd-btn { white-space: nowrap; }
.dd-btn { white-space: nowrap; }
.dd-btn-ghost-light {
  background: rgba(255,255,255,0.06);
  color: var(--chalk-white);
  border: 1.5px solid rgba(244,239,230,0.28);
  white-space: nowrap;
}
.dd-btn-ghost-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(244,239,230,0.5);
}
.dd-hero-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--neon-mint); margin-bottom: 18px;
}
.dd-hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(56px, 11vw, 168px); line-height: 0.95;
  color: var(--chalk-white); letter-spacing: -0.005em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.dd-hero-sub {
  font-family: var(--font-prose); font-style: italic;
  font-size: clamp(16px, 1.4vw, 22px); line-height: 1.45;
  color: var(--chalk-warm); margin-top: 24px; max-width: 540px;
}
.dd-hero-scrolltip {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 5; color: rgba(244,239,230,0.5); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: bobScroll 2.4s var(--ease-in-out) infinite;
}
@keyframes bobScroll { 0%,100%{transform:translate(-50%,0);} 50%{transform:translate(-50%,8px);} }


/* (Reserved) Section overlay slide-up — wired back in once the
   hero scrub animation lands. */

/* ───────── Section: Overview ───────── */
.dd-section { padding: 120px 24px; }
.dd-section.dark { background: var(--ink-deep); color: var(--fg-1-dark); }
.dd-section.parchment { background: var(--bg-page); color: var(--fg-1); }
.dd-container { max-width: var(--maxw-content); margin: 0 auto; }

.dd-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--moss-600);
}
.dd-section.dark .dd-eyebrow { color: var(--neon-mint); }

.dd-h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 6vw, 88px); line-height: 1.04; margin-top: 16px; letter-spacing: -0.005em;
}
.dd-h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4.5vw, 60px); line-height: 1.08; margin-top: 14px;
}
.dd-lede {
  font-family: var(--font-prose); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55;
  margin-top: 22px; color: var(--fg-2); max-width: 640px;
}
.dd-section.dark .dd-lede { color: var(--chalk-warm); }

/* ───────── Buttons ───────── */
.dd-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: none;
  font-family: var(--font-display); font-size: 17px; letter-spacing: 0.02em;
  transition: transform var(--dur-fast) var(--ease-bounce), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.dd-btn-primary { background: var(--moss-600); color: #fff; box-shadow: var(--shadow-2); }
.dd-btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); background: var(--moss-700); }
.dd-btn-neon { background: var(--neon-mint); color: var(--ink-deep); box-shadow: var(--glow-mint); }
.dd-btn-neon:hover { transform: translateY(-2px); }
.dd-btn-ghost { background: transparent; color: var(--chalk-white); border: 1.5px solid rgba(255,255,255,0.25); }
.dd-btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.45); }
.dd-btn-ghost.lt { color: var(--fg-1); border-color: var(--border-strong); }
.dd-btn-ghost.lt:hover { background: rgba(0,0,0,0.04); }
.dd-btn:active { transform: scale(0.97); }

/* ───────── Stat strip ───────── */
.dd-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border-dark); border-radius: var(--r-3); overflow: hidden;
}
.dd-stat { background: var(--ink-soft); padding: 22px; }
.dd-stat .v { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1; color: var(--chalk-white); }
.dd-stat .l { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,239,230,0.5); margin-top: 8px; }
.dd-stat .v .u { font-size: 0.45em; color: rgba(244,239,230,0.5); margin-left: 4px; }
@media (max-width: 720px) { .dd-stats { grid-template-columns: repeat(2, 1fr); } }

/* ───────── Gallery ───────── */
.dd-chip {
  display: inline-block; padding: 7px 14px;
  border: 1px solid var(--border-line); border-radius: 999px;
  font-size: 12px; font-weight: 600; background: #fff; color: var(--fg-2);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  font-family: var(--font-system); letter-spacing: 0.02em;
}
.dd-chip:hover { border-color: var(--moss-600); color: var(--moss-600); }
.dd-chip.on { background: var(--moss-600); border-color: var(--moss-600); color: #fff; }

/* Gallery page wrapper — clear / parchment theme */
.dd-gallery-page {
  background-color: var(--bg-page);
  background-image:
    linear-gradient(rgba(20, 30, 25, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 30, 25, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--fg-1);
}

/* Banner */
.dd-gallery-banner {
  --gallery-gap: clamp(24px, 3vh, 36px);
  /* nav sits at top:18 + ~60px height ≈ 78px from viewport top, so:
     padding-top = nav-bottom (78) + gap → visible space above logo = gap
     padding-bottom = gap → visible space below logo (to border line) = gap */
  position: relative;
  padding: calc(78px + var(--gallery-gap)) 24px var(--gallery-gap);
  background: transparent;
  text-align: center;
  overflow: hidden;
}
.dd-gallery-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(20, 30, 25, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 30, 25, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  pointer-events: none;
}
.dd-gallery-banner-inner {
  position: relative;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dd-gallery-banderolle {
  display: block;
  width: clamp(560px, 78vw, 1180px);
  /* crop the asset's empty top/bottom padding so the cards sit closer */
  aspect-ratio: 4 / 1;
  object-fit: cover;
  object-position: 50% 45%;
  margin: 0 auto;
  /* asset has the wordmark biased to the upper-left of its 5000x2500 canvas;
     shift right so the visible "DRIP DRAGONS" sits at the page center. */
  transform: translateX(8.5%);
}
@media (max-width: 720px) {
  .dd-gallery-banderolle { width: 92vw; transform: translateX(8%); }
}

/* Section that holds the toolbar + grid */
.dd-gallery-section {
  background: transparent;
  padding: clamp(20px, 3vh, 36px) 24px 120px;
}

/* Toolbar */
.dd-gallery-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-soft);
}
.dd-gallery-filter h4,
.dd-gallery-search h4 {
  font-family: var(--font-system);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 12px;
}
.dd-gallery-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-gallery-search-input {
  position: relative;
  display: inline-flex; align-items: center;
}
.dd-gallery-search-input svg {
  position: absolute; left: 16px;
  color: var(--fg-3);
  pointer-events: none;
}
.dd-gallery-search-input input {
  width: 240px;
  padding: 12px 18px 12px 42px;
  border-radius: 999px;
  border: 1px solid var(--border-line);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.04em;
  color: var(--fg-1);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.dd-gallery-search-input input::placeholder { color: var(--fg-4); }
.dd-gallery-search-input input:focus {
  border-color: var(--moss-600);
  box-shadow: 0 0 0 4px rgba(81, 102, 91, 0.10);
}
.dd-gallery-count {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display);
  color: var(--fg-1);
  margin-left: auto;
}
.dd-gallery-count span { font-size: clamp(28px, 3.4vw, 40px); }
.dd-gallery-count small {
  font-family: var(--font-system);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-3);
}

/* Grid */
.dd-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) { .dd-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .dd-gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.dd-gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  font-family: var(--font-prose); font-style: italic;
  color: var(--fg-3);
}
.dd-gallery-empty code {
  font-family: var(--font-mono);
  background: var(--sand-100);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--fg-1);
}

/* Card */
.dd-gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-4);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-bounce),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  cursor: pointer;
}
.dd-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}
.dd-gallery-card-thumb {
  position: relative;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.55) 0%, transparent 65%),
    linear-gradient(180deg, var(--sand-100) 0%, var(--sand-200) 100%);
}
.dd-gallery-card-thumb::after {
  content: '';
  position: absolute; inset: 14px;
  border: 1px dashed rgba(20, 30, 25, 0.16);
  border-radius: var(--r-3);
  pointer-events: none;
}
.dd-gallery-card-aura {
  position: absolute;
  inset: 20% 15%;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.dd-gallery-card:hover .dd-gallery-card-aura {
  opacity: 0.85;
  transform: scale(1.05);
}
.dd-gallery-card-mark {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink-deep);
  text-shadow: 0 2px 14px rgba(20, 30, 25, 0.10);
}
.dd-gallery-card-status {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1;
  font-family: var(--font-system);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--fg-2);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(4px);
}
.dd-gallery-card-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 16px 16px;
  gap: 12px;
  border-top: 1px solid var(--border-soft);
}
.dd-gallery-card-id {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  color: var(--fg-1);
  letter-spacing: 0.02em;
}
.dd-gallery-card-strain {
  font-family: var(--font-system);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
}

/* Real dragon thumbnail (from IPFS) fills the square */
.dd-gallery-card { display: block; color: inherit; text-decoration: none; }
.dd-gallery-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
button.dd-chip { cursor: pointer; font: inherit; }

/* Signed-out / no-wallet message in place of the grid */
.dd-gallery-gate {
  max-width: 520px;
  margin: 24px auto 40px;
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-1);
}
.dd-gallery-gate h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--fg-1);
  margin: 0 0 10px;
}
.dd-gallery-gate p {
  font-family: var(--font-prose);
  color: var(--fg-3);
  line-height: 1.55;
  margin: 0 0 22px;
}
.dd-gallery-gate p:last-child { margin-bottom: 0; }

/* Per-accent aura colors */
.dd-gallery-card[data-accent="violet"] .dd-gallery-card-aura {
  background: radial-gradient(circle, rgba(139, 111, 168, 0.65) 0%, transparent 70%);
}
.dd-gallery-card[data-accent="violet"]:hover {
  border-color: rgba(139, 111, 168, 0.45);
}
.dd-gallery-card[data-accent="teal"] .dd-gallery-card-aura {
  background: radial-gradient(circle, rgba(95, 184, 196, 0.55) 0%, transparent 70%);
}
.dd-gallery-card[data-accent="teal"]:hover {
  border-color: rgba(95, 184, 196, 0.45);
}
.dd-gallery-card[data-accent="mint"] .dd-gallery-card-aura {
  background: radial-gradient(circle, rgba(125, 200, 154, 0.55) 0%, transparent 70%);
}
.dd-gallery-card[data-accent="mint"]:hover {
  border-color: rgba(125, 200, 154, 0.45);
}
.dd-gallery-card[data-accent="amber"] .dd-gallery-card-aura {
  background: radial-gradient(circle, rgba(217, 156, 102, 0.55) 0%, transparent 70%);
}
.dd-gallery-card[data-accent="amber"]:hover {
  border-color: rgba(217, 156, 102, 0.45);
}

/* ───────── Roadmap ───────── */
.dd-roadmap { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
.dd-milestone {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start;
  border-left: 2px solid var(--border-dark); padding-left: 24px; margin-left: 12px;
  position: relative;
}
.dd-milestone::before {
  content: ''; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink-soft); border: 2px solid var(--chalk-cool);
}
.dd-milestone.done::before { background: var(--neon-mint); border-color: var(--neon-mint); box-shadow: var(--glow-mint); }
.dd-milestone .qtr { font-family: var(--font-display); color: var(--neon-mint); font-size: 18px; }
.dd-milestone .ttl { font-family: var(--font-display); font-size: 28px; color: var(--chalk-white); line-height: 1.1; }
.dd-milestone .desc { color: var(--chalk-warm); margin-top: 6px; font-family: var(--font-prose); font-style: italic; }

/* ───────── Perks ───────── */
.dd-perks-deck-wrap {
  margin: 56px auto 0;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.dd-perks-deck {
  position: relative;
  width: min(440px, 92vw);
  height: 380px;
  user-select: none;
  touch-action: pan-y;
}
.dd-perk-card {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 30px 26px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 24px 50px rgba(15, 25, 20, 0.18),
    0 6px 14px rgba(15, 25, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  transform-origin: 50% 100%;
  will-change: transform;
  backface-visibility: hidden;
}
.dd-perk-card.is-front { cursor: grab; }
.dd-perk-card.is-front:active { cursor: grabbing; }
.dd-perk-card.is-flying {
  opacity: 0;
  transition: transform 0.36s cubic-bezier(0.4, 0.0, 1, 1), opacity 0.36s ease-out !important;
}
.dd-perk-card-ico {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(120, 99, 128, 0.12);
  color: var(--scale-violet, #786380);
  margin-bottom: 18px;
}
.dd-perk-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  color: var(--fg-1);
  margin-bottom: 12px;
}
.dd-perk-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  flex: 1;
}
.dd-perk-card-meta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(60, 60, 60, 0.55);
}
.dd-perk-card-meta { justify-content: flex-end; }
.dd-perk-card-hint { font-style: italic; }
.dd-perk-card-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.dd-perk-card-body h3,
.dd-perk-card-body p {
  flex: none;
  margin: 0;
}
.dd-perk-card-cover-title {
  text-align: center;
  text-transform: uppercase;
  font-size: 28px;
  letter-spacing: 0.04em;
  margin-bottom: 14px !important;
}
.dd-perk-card-cover-desc {
  text-align: center;
  font-size: 16px;
  color: rgba(60, 60, 60, 0.6);
}
.dd-perk-card-more-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  color: rgba(60, 60, 60, 0.55);
  letter-spacing: 0.02em;
}
.dd-perks-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 110px;
}
.dd-perks-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(60, 60, 60, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}
.dd-perks-dot.is-active {
  background: var(--scale-violet, #786380);
  transform: scale(1.25);
}
.dd-perk {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--r-4);
  padding: 28px; box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-bounce), box-shadow var(--dur-base) var(--ease-out);
}
.dd-perk:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.dd-perk .ico {
  width: 44px; height: 44px; border-radius: var(--r-3);
  background: var(--moss-100); color: var(--moss-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.dd-perk h3 { font-family: var(--font-display); font-size: 22px; color: var(--fg-1); }
.dd-perk p { font-size: 14px; color: var(--fg-2); margin-top: 6px; line-height: 1.55; }

/* ───────── FAQ ───────── */
/* ───────── Roadmap + FAQ split section ───────── */
.dd-rfaq { position: relative; }
.dd-rfaq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.dd-rfaq { background: var(--parchment, transparent); }
.dd-rfaq-left {
  border-right: 1px solid rgba(60, 60, 60, 0.18);
}
.dd-rfaq-inner {
  padding: 96px 56px;
  max-width: 560px;
}
.dd-rfaq-left .dd-rfaq-inner,
.dd-rfaq-right .dd-rfaq-inner { margin-left: auto; margin-right: auto; }
.dd-rfaq .dd-perks-embed { margin-top: 28px; }
@media (max-width: 880px) {
  .dd-rfaq-grid { grid-template-columns: 1fr; }
  .dd-rfaq-left {
    border-right: none;
    border-bottom: 1px solid rgba(60, 60, 60, 0.18);
  }
  .dd-rfaq-inner { padding: 64px 28px; max-width: none; margin: 0; }
}

.dd-faq { display: flex; flex-direction: column; gap: 18px; margin-top: 36px; position: relative; z-index: 1; }
.dd-faq-item { background: transparent; position: relative; }
.dd-faq-q {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  background: none; border: none; padding: 6px 0; cursor: pointer;
  font-family: inherit;
  position: relative; z-index: 2;
  pointer-events: auto;
}
.dd-faq-q * { pointer-events: none; }
.dd-faq-q-toggle-v { transition: transform var(--dur-base) var(--ease-out); transform-origin: 12px 12px; }
.dd-faq-item.open .dd-faq-q-toggle-v { transform: rotate(90deg); }
.dd-faq-q-pill {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(60, 60, 60, 0.08);
  color: var(--fg-1);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.01em;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.dd-faq-item.open .dd-faq-q-pill {
  background: #6b8a82;
  color: #fff;
}
.dd-faq-q:hover .dd-faq-q-pill,
.dd-faq-item.open .dd-faq-q:hover .dd-faq-q-pill {
  background: rgba(60, 60, 60, 0.18);
  color: var(--fg-1);
}
.dd-faq-q-toggle {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(60, 60, 60, 0.55);
}
.dd-faq-q-toggle svg { width: 18px; height: 18px; }
.dd-faq-item.open .dd-faq-q-toggle { color: #6b8a82; }
.dd-faq-a-wrap {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height var(--dur-base) var(--ease-out),
              margin-top var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.dd-faq-item.open .dd-faq-a-wrap { max-height: 320px; margin-top: 14px; pointer-events: auto; }
.dd-faq-a-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.dd-faq-a-bubble {
  max-width: min(520px, 80%);
  background: var(--scale-violet, #7c5cff);
  color: #fff;
  font-family: var(--font-prose);
  font-size: 16px;
  line-height: 1.55;
  border-radius: 22px 22px 6px 22px;
  padding: 14px 22px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.dd-faq-item.open .dd-faq-a-bubble {
  opacity: 1;
  transform: translateY(0);
}
.dd-faq-a-status {
  font-family: var(--font-prose);
  font-size: 11px;
  color: rgba(60, 60, 60, 0.5);
  letter-spacing: 0.02em;
  padding-right: 4px;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.dd-faq-item.open .dd-faq-a-status { opacity: 1; }
@media (max-width: 640px) {
  .dd-faq-a-bubble { max-width: 92%; font-size: 15px; }
  .dd-faq-q-pill { font-size: 15px; padding: 10px 18px; }
}

/* ───────── Footer ───────── */
.dd-footer { background: var(--ink-deep); color: var(--fg-1-dark); padding: 3px 25px 32px; position: relative; overflow: hidden; }
.dd-footer-brand { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; margin-bottom: 8px; }
.dd-footer-brand-word {
  display: block;
  width: clamp(340px, 74vw, 1300px);
  aspect-ratio: 3.6 / 1;
  object-fit: cover;
  object-position: 50% 45%;
  transform: translateX(4%);
  margin-left: -38px;
  margin-right: -38px;
}
.dd-footer-dragon {
  position: absolute;
  right: 32px;
  top: 52%;
  transform: translateY(-50%);
  height: 360px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}
.dd-footer-grid { position: relative; z-index: 1; }
@media (max-width: 1100px) {
  .dd-footer-dragon { height: 280px; right: 16px; opacity: 0.85; }
}
@media (max-width: 880px) {
  .dd-footer-dragon { display: none; }
  .dd-footer-brand-word { width: clamp(260px, 88vw, 540px); transform: translateX(8%); }
}
.dd-footer-grid {
  max-width: var(--maxw-content); margin: 0 195px 0 190px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px;
}
@media (max-width: 1100px) { .dd-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (max-width: 880px) { .dd-footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.dd-footer h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244,239,230,0.5); margin-bottom: 14px; }
.dd-footer a { display: block; padding: 4px 0; color: rgba(244,239,230,0.78); font-size: 14px; }
.dd-footer a:hover { color: var(--neon-mint); }
.dd-footer-grid > div:nth-child(2) { margin: 0; padding-left: 8px; padding-right: 8px; }
.dd-newsletter { display: flex; gap: 0; margin-top: 12px; align-items: center; }
.dd-newsletter input {
  flex: 1; padding: 12px 30px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-stroke);
  color: #fff; font-family: var(--font-system); font-size: 14px; outline: none;
  margin-left: 55px; margin-right: 55px;
}
.dd-newsletter input:focus { border-color: var(--neon-mint); }
.dd-newsletter button {
  padding: 8px 18px; border-radius: 999px; background: var(--chalk-white); color: var(--ink-deep);
  border: 5px solid transparent; font-family: var(--font-display); font-size: 14px;
  letter-spacing: 0.02em; margin: 5px -4px 5px -45px; text-align: center;
}
.dd-foot-bottom { max-width: var(--maxw-content); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--border-dark); display: flex; justify-content: space-between; font-size: 12px; color: rgba(244,239,230,0.4); }

/* Light footer variant — home / gallery / ip / legal pages */
body[data-page="home"] .dd-footer {
  background: #e2e2e2;
  color: var(--fg-2);
}
body[data-page="gallery"] .dd-footer,
body[data-page="ip"] .dd-footer,
body[data-page="license"] .dd-footer,
body[data-page="terms"] .dd-footer,
body[data-page="privacy"] .dd-footer,
body[data-page="about"] .dd-footer {
  background: var(--sand-50, #f8f7f4);
  color: var(--fg-2);
}
body[data-page="about"] .dd-footer {
  border-top: 2px solid #000000;
}
body[data-page="home"] .dd-footer h4,
body[data-page="gallery"] .dd-footer h4,
body[data-page="ip"] .dd-footer h4,
body[data-page="license"] .dd-footer h4,
body[data-page="terms"] .dd-footer h4,
body[data-page="privacy"] .dd-footer h4,
body[data-page="about"] .dd-footer h4 { color: var(--fg-3); }
body[data-page="home"] .dd-footer a,
body[data-page="gallery"] .dd-footer a,
body[data-page="ip"] .dd-footer a,
body[data-page="license"] .dd-footer a,
body[data-page="terms"] .dd-footer a,
body[data-page="privacy"] .dd-footer a,
body[data-page="about"] .dd-footer a { color: var(--fg-2); }
body[data-page="home"] .dd-footer a:hover,
body[data-page="gallery"] .dd-footer a:hover,
body[data-page="ip"] .dd-footer a:hover,
body[data-page="license"] .dd-footer a:hover,
body[data-page="terms"] .dd-footer a:hover,
body[data-page="privacy"] .dd-footer a:hover,
body[data-page="about"] .dd-footer a:hover { color: var(--moss-600); }
body[data-page="home"] .dd-foot-bottom,
body[data-page="gallery"] .dd-foot-bottom,
body[data-page="ip"] .dd-foot-bottom,
body[data-page="license"] .dd-foot-bottom,
body[data-page="terms"] .dd-foot-bottom,
body[data-page="privacy"] .dd-foot-bottom,
body[data-page="about"] .dd-foot-bottom {
  color: var(--fg-3);
  border-top-color: var(--border-line);
}
body[data-page="home"] .dd-footer-grid > :first-child span,
body[data-page="gallery"] .dd-footer-grid > :first-child span,
body[data-page="ip"] .dd-footer-grid > :first-child span,
body[data-page="license"] .dd-footer-grid > :first-child span,
body[data-page="terms"] .dd-footer-grid > :first-child span,
body[data-page="privacy"] .dd-footer-grid > :first-child span { color: var(--fg-1) !important; }
body[data-page="home"] .dd-footer-grid > :first-child p,
body[data-page="gallery"] .dd-footer-grid > :first-child p,
body[data-page="ip"] .dd-footer-grid > :first-child p,
body[data-page="license"] .dd-footer-grid > :first-child p,
body[data-page="terms"] .dd-footer-grid > :first-child p,
body[data-page="privacy"] .dd-footer-grid > :first-child p { color: var(--fg-2) !important; }
body[data-page="home"] .dd-newsletter input,
body[data-page="gallery"] .dd-newsletter input,
body[data-page="ip"] .dd-newsletter input,
body[data-page="license"] .dd-newsletter input,
body[data-page="terms"] .dd-newsletter input,
body[data-page="privacy"] .dd-newsletter input {
  background: #fff;
  border-color: var(--border-line);
  color: var(--fg-1);
}
body[data-page="home"] .dd-newsletter button,
body[data-page="gallery"] .dd-newsletter button,
body[data-page="ip"] .dd-newsletter button,
body[data-page="license"] .dd-newsletter button,
body[data-page="terms"] .dd-newsletter button,
body[data-page="privacy"] .dd-newsletter button {
  background: var(--ink-deep);
  color: var(--chalk-white);
}

/* ───────── Lore page (5-column floating island) ───────── */
.dd-lore-stage {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ink-deep);
  background-image: url('assets/lore-art-new.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 96px 0 24px;
  box-sizing: border-box;
}
.dd-lore-island {
  position: relative;
  width: 80vw;
  height: 80%;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  background: var(--ink-soft);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}
.dd-lore-column {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}
.dd-lore-column:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.dd-lore-column-inner {
  position: absolute;
  inset: -6%;
  background: #fff;
  transform: translate(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 10px));
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.dd-lore-soon {
  position: absolute;
  inset: 0;
  background: rgba(226, 226, 226, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
}
.dd-lore-soon span {
  font-family: var(--font-body, serif);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-style: normal;
  letter-spacing: 0.06em;
  color: rgba(60, 35, 10, 0.75);
}
.dd-lore-column:hover .dd-lore-column-inner {
  transform: translate(calc(var(--mx, 0) * 14px), calc(var(--my, 0) * 14px)) scale(1.04);
}

/* ───────── IP / page-blank ───────── */
.dd-ip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
@media (max-width: 760px) { .dd-ip-grid { grid-template-columns: 1fr; } }
.dd-ip-card {
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--r-4);
  padding: 32px; box-shadow: var(--shadow-1);
}
.dd-ip-card h3 { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.dd-ip-card p { color: var(--fg-2); margin-top: 10px; line-height: 1.6; }
.dd-ip-card .yes { color: var(--moss-600); font-weight: 700; }
.dd-ip-card .no { color: #b94c4c; font-weight: 700; }

/* ───────── Toast ───────── */
.dd-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink-soft); color: var(--chalk-white); padding: 14px 22px;
  border-radius: 999px; box-shadow: var(--shadow-4); border: 1px solid var(--border-dark);
  z-index: 200; transition: transform var(--dur-base) var(--ease-out);
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.dd-toast.show { transform: translateX(-50%) translateY(0); }
.dd-toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon-mint); box-shadow: 0 0 8px var(--neon-mint); }

/* ───────── Cover / intro page ───────── */
.dd-cover {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(231, 222, 200, 0.32) 0%, transparent 65%),
    linear-gradient(180deg, rgb(248, 244, 232) 0%, rgb(241, 234, 218) 100%);
  /* Fully opaque: the backdrop blur that used to smudge the page behind
     this cover was removed for performance, so any translucency here
     would show the home page's shapes as sharp edges bleeding through. */
  animation: dd-cover-in 0.6s var(--ease-out);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.dd-cover-exiting {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
@keyframes dd-cover-in {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
.dd-cover-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  text-align: center;
  max-width: 100%;
}
.dd-cover-logo {
  display: block;
  width: clamp(520px, 78vw, 980px);
  /* crop empty top/bottom of the asset so the byline sits close to the wordmark */
  aspect-ratio: 3.6 / 1;
  object-fit: cover;
  object-position: 50% 45%;
  /* asset's wordmark is biased to the upper-left — shift right so it reads centered */
  transform: translateX(8.5%);
  filter: drop-shadow(0 6px 18px rgba(40, 30, 12, 0.18));
}
@media (max-width: 720px) {
  .dd-cover-logo { width: 92vw; transform: translateX(8%); }
}
.dd-cover-byline {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: 0.08em;
  color: var(--scale-violet);
  text-shadow: 0 1px 8px rgba(40, 30, 12, 0.25);
  margin-top: -8px;
}

/* ───────── Cover button — bone artwork from anatomy ───────── */
.dd-cover-button {
  position: relative;
  left: clamp(20px, 3.5vw, 56px);
  display: block;
  width: clamp(280px, 36vw, 480px);
  aspect-ratio: 1200 / 800;
  margin: clamp(16px, 2vh, 26px) auto 0;
  padding: 0;
  border: none;
  background: url('assets/cover-button.png') no-repeat center / contain;
  cursor: default;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
  /* Only animate transform (GPU-cheap). Animating the drop-shadow filter
     forced a CPU repaint of the artwork on every frame — that was the lag.
     (No will-change here: promoting this layer draws a faint rectangle
     over the cover's gradient background.) */
  transition: transform 0.32s var(--ease-bounce);
}
.dd-cover-button.is-over {
  transform: scale(1.05) translateY(-3px) rotate(-1.5deg);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.38));
  cursor: pointer;
}
.dd-cover-button.is-over:active {
  transform: scale(0.97);
}

/* Loading screen */
.dd-loader { position: fixed; inset: 0; z-index: 9000; background: var(--ink-chalkboard); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; transition: opacity .6s ease; }
.dd-loader.hidden { opacity: 0; pointer-events: none; }
.dd-loader-bar { width: 220px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; }
.dd-loader-fill { height: 100%; background: linear-gradient(90deg, var(--neon-cyan), var(--neon-mint)); border-radius: 999px; width: 0%; transition: width .2s ease; }
.dd-loader-text { font-family: var(--font-display); font-size: 14px; color: rgba(244,239,230,0.5); letter-spacing: 0.18em; text-transform: uppercase; }
.dd-loader-mark { width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(from 220deg, var(--scale-violet), var(--scale-teal), var(--scale-violet)); border: 2px solid rgba(255,255,255,0.3); animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── About landing — two floating islands ───────── */
.dd-about-landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-height) + 8px);
  padding-bottom: 12px;
}
.dd-about-islands {
  max-width: 99vw;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
}
.dd-about-island {
  position: relative;
  aspect-ratio: 1024 / 720;
  width: 42vw;
  height: auto;
  flex: 0 0 auto;
  border: none;
  padding: 0;
  border-radius: clamp(18px, 2vw, 28px);
  overflow: hidden;
  background: transparent;
  box-shadow:
    0 24px 48px rgba(15, 25, 20, 0.16),
    0 10px 20px rgba(15, 25, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    transform 0.5s var(--ease-bounce),
    box-shadow 0.5s var(--ease-out);
  will-change: transform;
}
/* Spotlight fills its island card instead of being a fixed-size box */
.dd-spotlight-fill {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: unset !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: crosshair;
}
.dd-about-island-right {
  cursor: pointer;
  /* chalkboard DNA art (same as the Wallpaper Lab background) */
  /* the art shown at ~78% over the dark base, so it isn't too bright */
  background:
    linear-gradient(rgba(12, 13, 14, 0.22), rgba(12, 13, 14, 0.22)),
    #0c0d0e url('assets/dna-helix-frame.jpg') center / cover no-repeat;
}
.dd-about-island-left  { cursor: pointer; }
.dd-about-island-left .dd-spotlight-fill { cursor: pointer; }
/* lighter dark veil on the About card so the sketch reads before hovering */
.dd-about-island-left .dd-spotlight-sharp { background: rgba(8, 8, 10, 0.45); }

/* Column = card + caption below; the whole column is the click target */
.dd-about-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  cursor: pointer;
}
.dd-about-caption {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: #a9adb2;               /* silver grey */
  margin: 0;
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.dd-about-col:hover .dd-about-caption {
  color: var(--fg-2);
  transform: translateY(-2px);
}
.dd-about-col:hover .dd-about-island {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 36px 64px rgba(15, 25, 20, 0.20),
    0 14px 28px rgba(15, 25, 20, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.dd-about-island-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dd-about-island-cover {
  position: absolute;
  inset: 0;
  z-index: 4;              /* above the spotlight layers (z 1–3) */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.dd-about-col:hover .dd-about-island-cover { opacity: 1; }
.dd-about-cover-purple { background: rgba(120, 99, 128, 0.85); }   /* #786380 */
.dd-about-cover-green  { background: rgba(98, 130, 106, 0.85); }   /* #62826a */

.dd-about-detail-top { padding: calc(var(--nav-height) + 48px) 24px 0; }
.dd-about-back { padding: 10px 18px; }

@media (max-width: 720px) {
  .dd-about-islands { grid-template-columns: 1fr; }
}

/* ───────── Meet the Artist — editorial feature ───────── */
.dd-artist-feature { padding-bottom: 96px; }
.dd-ed-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.dd-ed-masthead {
  text-align: center;
  max-width: 760px;
  margin: 8px auto clamp(56px, 8vw, 96px);
}
.dd-ed-eyebrow {
  font-family: var(--font-system);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  color: var(--fg-3);
}
.dd-ed-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 7.5vw, 88px);
  line-height: 0.96;
  color: var(--fg-1);
  margin: 16px 0 12px;
}
.dd-ed-sub {
  font-family: var(--font-prose);
  font-style: italic;
  font-size: clamp(16px, 2vw, 21px);
  color: var(--fg-2);
  margin: 0;
}
.dd-ed-rule {
  width: 64px;
  height: 2px;
  background: var(--fg-1);
  opacity: 0.4;
  margin: 28px auto 0;
}

.dd-ed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  margin: 0 auto clamp(56px, 9vw, 120px);
}
.dd-ed-row.rev .dd-ed-media { order: 2; }
.dd-ed-row.rev .dd-ed-body  { order: 1; }
.dd-ed-row.solo { grid-template-columns: 1fr; max-width: 640px; }

/* Polaroid photo */
.dd-ed-media { display: flex; justify-content: center; }
.dd-ed-polaroid {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  padding: 14px 14px 44px;
  border-radius: 4px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.10);
  transform: rotate(var(--rot, -2deg));
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.dd-ed-polaroid:hover { transform: rotate(0deg) scale(1.02); }
.dd-ed-photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-inset);
  border-radius: 2px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.dd-ed-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dd-ed-photo-empty {
  font-family: var(--font-system);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  line-height: 1.7;
  color: var(--fg-4);
  text-align: center;
}
.dd-ed-cap {
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 14px;
  color: var(--fg-3);
  text-align: center;
  margin-top: 12px;
}
.dd-ed-tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 104px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(230, 211, 168, 0.5);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Text body */
.dd-ed-chapter {
  font-family: var(--font-system);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--fg-link);
}
.dd-ed-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.02;
  color: var(--fg-1);
  margin: 8px 0 14px;
}
.dd-ed-hr {
  width: 48px;
  height: 2px;
  background: var(--fg-link);
  opacity: 0.55;
  margin: 0 0 18px;
}
.dd-ed-p {
  font-family: var(--font-prose);
  font-size: 17px;
  line-height: 1.66;
  color: var(--fg-2);
  margin: 0 0 14px;
}

/* Sticky-note fun facts */
.dd-ed-notes { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.dd-ed-note {
  width: 148px;
  min-height: 118px;
  padding: 18px 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
  color: #2b2a20;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.dd-ed-note-0 { background: #f6e7a0; transform: rotate(-3deg); }
.dd-ed-note-1 { background: #cfe6bd; transform: rotate(2deg); }
.dd-ed-note-2 { background: #e6c9d6; transform: rotate(-1.5deg); }

/* Sign-off */
.dd-ed-signbody { position: relative; }
.dd-ed-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 6px 0 22px;
}
.dd-ed-links a {
  display: inline-block;
  font-family: var(--font-system);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg-1);
  text-decoration: none;
  padding: 9px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dd-ed-links a:hover {
  background: var(--fg-1);
  color: var(--bg-card);
  border-color: var(--fg-1);
}
.dd-ed-sig {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--fg-1);
  line-height: 1;
}
.dd-ed-seal {           /* skeleton dragon logo (same art as the footer) */
  position: absolute;
  top: -24px;
  right: 0;
  width: 84px;
  height: auto;
  mix-blend-mode: multiply; /* drops the PNG's white background on the parchment */
  pointer-events: none;
}

@media (max-width: 760px) {
  .dd-ed-row,
  .dd-ed-row.rev { grid-template-columns: 1fr; }
  .dd-ed-row.rev .dd-ed-media { order: 0; }
  .dd-ed-row.rev .dd-ed-body  { order: 0; }
  .dd-ed-polaroid { max-width: 320px; }
}

/* ───────── More page + story timeline — vertical spine, cards alternate sides ───────── */
.dd-more-page {
  min-height: 100vh;
  background: var(--ink-deep);
  padding-top: calc(var(--nav-height) + 96px); /* timeline sits lower, clear of the nav */
}
.dd-timeline-section { padding: 48px 24px 96px; }
.dd-timeline-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--chalk-white); /* sits on the dark home surface */
  text-align: center;
  margin: 0 0 56px;
}
.dd-timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 0;
}
/* central spine */
.dd-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--scale-teal), #e8e4dc, var(--scale-violet));
  border-radius: 999px;
  opacity: 0.55;
}
.dd-timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 48px;
}
.dd-timeline-item:last-child { padding-bottom: 0; }
.dd-timeline-item.left  { left: 0;   text-align: right; }
.dd-timeline-item.right { left: 50%; text-align: left; }
/* node dot on the spine */
.dd-timeline-node {
  position: absolute;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--scale-teal);
  box-shadow: 0 0 0 4px rgba(95, 184, 196, 0.18);
  z-index: 1;
}
.dd-timeline-item.left  .dd-timeline-node { right: -8px; }
.dd-timeline-item.right .dd-timeline-node { left: -8px; }
.dd-timeline-item.tone-purple .dd-timeline-node { border-color: var(--scale-violet); box-shadow: 0 0 0 4px rgba(139, 111, 168, 0.18); }
.dd-timeline-item.tone-white  .dd-timeline-node { border-color: #ece8e0; box-shadow: 0 0 0 4px rgba(236, 232, 224, 0.18); }
.dd-timeline-card {
  display: block;
  width: 100%;
  min-height: 280px; /* blank for now — sized so empty cards still read as cards */
  text-align: left;
  border-radius: 16px;
  padding: 20px 22px;
  transition: transform 0.4s var(--ease-bounce);
}
a.dd-timeline-card { color: inherit; text-decoration: none; cursor: pointer; }
.dd-timeline-card:hover {
  transform: translateY(-4px);
}

/* Spotlight glow skin (adapted from the Tailwind "spotlight-card" GlowCard).
   The JS side (GlowCard in app.jsx) feeds --x/--y (viewport px) and
   --xp/--yp (0–1) on pointermove; everything below is driven by them.
   background-attachment: fixed keeps the radial spot in viewport space so
   the glow follows the cursor across the card. */
.dd-glow {
  --base: 263;                /* neon purple #7a6a94 */
  --spread: 0;                /* fixed brand colours — no hue drift */
  --saturation: 17;
  --lightness: 50;
  --bg-spot-opacity: 0.15;
  --border-spot-opacity: 0.9;
  --border-light-opacity: 0.8;
  --radius: 16;
  --border: 2;
  --backdrop: hsl(260 18% 11% / 0.6);
  --backup-border: hsl(260 12% 24% / 0.8);
  --size: 340; /* cards are large — bigger spot so the glow reads mid-card too */
  --outer: 1;
  --border-size: calc(var(--border) * 1px);
  --spotlight-size: calc(var(--size) * 1px);
  --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));
  position: relative;
  background-image: radial-gradient(
    var(--spotlight-size) var(--spotlight-size) at
    calc(var(--x, 0) * 1px)
    calc(var(--y, 0) * 1px),
    hsl(var(--hue, 210) calc(var(--saturation, 100) * 1%) calc(var(--lightness, 70) * 1%) / var(--bg-spot-opacity, 0.1)),
    transparent
  );
  background-color: var(--backdrop, transparent);
  background-repeat: no-repeat;
  border: var(--border-size) solid var(--backup-border);
  box-shadow: 0 1rem 2rem -1rem black;
  backdrop-filter: blur(5px);
}
/* Neon border ring. The pasted component's mask trick
   (transparent-gradient ∩ border-box) composites to an all-zero mask in
   Chromium/Firefox, so the ring never painted — replaced with the standard
   gradient-border technique: paint the gradient on the pseudo, then mask
   out its content-box so only the ring remains. */
.dd-glow::before,
.dd-glow::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  padding: var(--border-size);
  border-radius: calc(var(--radius) * 1px + var(--border-size));
  background-repeat: no-repeat;
  background-origin: border-box;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.dd-glow::before {
  /* +border-size: the pseudo is inset -2px, so its coordinate space is
     shifted 2px up/left of the card's border box that --x/--y refer to */
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at
    calc((var(--x, 0) + var(--border)) * 1px)
    calc((var(--y, 0) + var(--border)) * 1px),
    hsl(var(--hue, 210) calc(var(--saturation, 100) * 1%) calc(var(--lightness, 50) * 1%) / var(--border-spot-opacity, 1)),
    transparent 100%
  );
  filter: brightness(2);
}
.dd-glow::after {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at
    calc((var(--x, 0) + var(--border)) * 1px)
    calc((var(--y, 0) + var(--border)) * 1px),
    hsl(0 100% 100% / var(--border-light-opacity, 1)),
    transparent 100%
  );
}
/* Brand neon per card tone (set in StoryTimeline's CARD_TONES) */
.dd-timeline-item.tone-green .dd-glow {
  --base: 156;  /* neon green #5a8c78 */
  --saturation: 22;
  --lightness: 45;
  --backup-border: hsl(156 15% 22% / 0.8);
  --backdrop: hsl(160 14% 10% / 0.6);
}
.dd-timeline-item.tone-white .dd-glow {
  --base: 40;   /* chalk white */
  --saturation: 15;
  --lightness: 88;
  --backup-border: hsl(40 8% 34% / 0.8);
  --backdrop: hsl(40 4% 13% / 0.6);
}
.dd-timeline-item.tone-purple .dd-glow {
  --base: 263;  /* neon purple #7a6a94 */
  --saturation: 17;
  --lightness: 50;
  --backup-border: hsl(263 12% 24% / 0.8);
  --backdrop: hsl(260 18% 11% / 0.6);
}
/* inner soft-bloom layer (the nested [data-glow] div) */
.dd-glow > [data-glow] {
  position: absolute;
  inset: 0;
  will-change: filter;
  opacity: var(--outer, 1);
  border-radius: calc(var(--radius) * 1px);
  filter: blur(calc(var(--border-size) * 10));
  background: none;
  pointer-events: none;
  border: none;
}
.dd-timeline-tag {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.dd-timeline-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--fg-1);
  margin: 6px 0 8px;
}
.dd-timeline-preview {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid hsl(263 20% 30% / 0.7);
  margin: 4px 0 12px;
  aspect-ratio: 16 / 10;
}
.dd-timeline-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-bounce);
}
.dd-timeline-card:hover .dd-timeline-preview img { transform: scale(1.04); }
/* cards sit on a dark backdrop — light text */
.dd-glow .dd-timeline-tag   { color: hsl(263 30% 72%); }
.dd-timeline-item.tone-green .dd-glow .dd-timeline-tag { color: hsl(156 28% 62%); }
.dd-timeline-item.tone-white .dd-glow .dd-timeline-tag { color: hsl(40 12% 82%); }
.dd-glow .dd-timeline-title { color: #f1ece4; }
.dd-glow .dd-timeline-body  { color: hsl(40 15% 78%); }
.dd-timeline-body {
  font-family: var(--font-prose);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* mobile: spine hugs the left, all cards on the right */
@media (max-width: 720px) {
  .dd-timeline::before { left: 10px; transform: none; }
  .dd-timeline-item,
  .dd-timeline-item.left,
  .dd-timeline-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 40px 40px;
  }
  .dd-timeline-item.left .dd-timeline-node,
  .dd-timeline-item.right .dd-timeline-node { left: 3px; right: auto; }
}

/* ───────── Account / Wallet Connect page ───────── */
.dd-account-page {
  position: relative;
  min-height: 100vh;
  background: var(--ink-deep, #0f0d11);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height, 72px) + 48px) 20px 80px;
  overflow: hidden;
}

.dd-account-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

.dd-account-card {
  position: relative;
  z-index: 1;
}

.dd-account-card {
  background: rgba(18, 16, 28, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 520px;
}

.dd-account-card-header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}

.dd-account-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(171,159,242,0.14);
  border-radius: 9px;
  color: #ab9ff2;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.dd-account-header-icon--check {
  background: rgba(74,222,128,0.15);
  color: #4ade80;
  font-size: 1rem;
  font-weight: 700;
}

.dd-account-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #f0eef8;
  margin: 0;
  line-height: 1.3;
}

.dd-account-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(240,238,248,0.5);
  line-height: 1.55;
  margin: 0 0 22px;
}

.dd-wallet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.dd-wallet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  background: rgba(10, 8, 18, 0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px;
  color: #f0eef8;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-align: left;
}

.dd-wallet-btn:hover {
  background: rgba(30, 24, 52, 0.75);
  border-color: rgba(171,159,242,0.4);
}

.dd-wallet-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dd-wallet-name {
  flex: 1;
  text-align: center;
}

.dd-account-footnote {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(240,238,248,0.3);
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

/* ── Discord-first account card (steps, chips, notices) ── */
.dd-acc-discord-icon { background: rgba(88, 101, 242, 0.16); color: #8b95f7; }
.dd-acc-discord-btn { background: #5865f2; border-color: #5865f2; }
.dd-acc-discord-btn:hover { background: #4752c4; border-color: #4752c4; }
.dd-acc-user {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(240,238,248,0.5);
  margin-top: 2px;
}
.dd-acc-user b { color: #f0eef8; font-weight: 600; }
.dd-acc-error { color: #f87171; margin-top: 14px; }

.dd-acc-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 16px; }
.dd-acc-step.is-muted { opacity: 0.45; pointer-events: none; }
.dd-acc-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dd-acc-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(171,159,242,0.14);
  color: #ab9ff2;
  flex-shrink: 0;
}
.dd-acc-step-num.is-done { background: rgba(74,222,128,0.18); color: #4ade80; }
.dd-acc-step-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f0eef8;
}
.dd-acc-step-body { padding-left: 34px; }
.dd-acc-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(240,238,248,0.5);
  margin: 0 0 12px;
}
.dd-acc-text-small { font-size: 0.75rem; color: rgba(240,238,248,0.38); }

.dd-acc-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  background: rgba(10, 8, 18, 0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px;
  color: #f0eef8;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.dd-acc-input:focus { border-color: rgba(171,159,242,0.5); }

.dd-acc-copy { display: flex; gap: 8px; margin-bottom: 12px; }
.dd-acc-copy code {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  background: rgba(10, 8, 18, 0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px;
  color: #f0eef8;
  font-weight: 700;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-acc-copy .dd-wallet-btn { width: auto; padding: 11px 16px; }

.dd-acc-link {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ab9ff2;
  text-decoration: none;
  cursor: pointer;
}
.dd-acc-link:hover { text-decoration: underline; }

.dd-acc-primary { border-color: rgba(171,159,242,0.45); background: rgba(171,159,242,0.16); }
.dd-acc-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.dd-acc-summary { text-align: center; margin-top: 18px; }
.dd-acc-role { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
.dd-acc-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 7px;
  border: 1px solid rgba(171,159,242,0.35);
  background: rgba(171,159,242,0.12);
  color: #f0eef8;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}
.dd-acc-role-dot { width: 10px; height: 10px; border-radius: 50%; background: #ab9ff2; }
.dd-acc-role-note { font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 600; color: rgba(240,238,248,0.4); }
.dd-acc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.dd-acc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10, 8, 18, 0.55);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
}
.dd-acc-chip-addr { font-family: ui-monospace, Menlo, monospace; color: #f0eef8; }
.dd-acc-chip-count { color: rgba(240,238,248,0.5); }
.dd-acc-chip button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(240,238,248,0.45);
  font-size: 0.65rem;
  cursor: pointer;
}
.dd-acc-chip button:hover { background: rgba(248,113,113,0.15); color: #f87171; }
.dd-acc-summary .dd-account-footnote { margin-bottom: 14px; }
.dd-acc-summary .dd-acc-link { margin-top: 4px; }
/* Sign out of Discord — quiet outline button at the bottom of the card */
.dd-acc-disconnect {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.dd-acc-disconnect:hover {
  border-color: rgba(248, 113, 113, 0.7);
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
}

.dd-acc-notice {
  text-align: left;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(10, 8, 18, 0.55);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(240,238,248,0.55);
}
.dd-acc-notice b { color: #f0eef8; }
.dd-acc-notice a { color: #ab9ff2; font-weight: 700; }
.dd-acc-notice-small { display: block; margin-top: 8px; font-size: 0.72rem; }
.dd-acc-notice code { color: #f0eef8; word-break: break-word; }


/* ═════════════════════════════════════════════════════════════
   ABOUT THE ARTIST — sketchbook flip-book
   ═════════════════════════════════════════════════════════════ */

/* ── Page scaffold ── */
.dd-artist {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-height) + 24px) 24px 32px;
  overflow: hidden;
}
.dd-artist-topbar { width: 100%; }

.dd-artist-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2200px;
  padding: 24px 0 8px;
}

/* ── The book ── */
.dd-book {
  --page-w: clamp(280px, 33vw, 460px);
  --page-h: clamp(380px, 44vw, 600px);
  position: relative;
  width: calc(var(--page-w) * 2);
  height: var(--page-h);
  transform-style: preserve-3d;
  transform:
    translateX(var(--book-shift, 0%))
    rotateX(calc(6deg + var(--tilt-x, 0deg)))
    rotateY(var(--tilt-y, 0deg));
  transition: transform 0.9s var(--ease-out);
}

.dd-book-base {
  position: absolute;
  top: 0;
  width: var(--page-w);
  height: 100%;
  cursor: pointer;
}
.dd-book-base-left  { left: 0; }
.dd-book-base-right { left: var(--page-w); }

.dd-book-sheet {
  position: absolute;
  top: 0;
  left: var(--page-w);
  width: var(--page-w);
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 1.1s var(--ease-in-out);
  cursor: pointer;
}
.dd-book-sheet.is-flipped { transform: rotateY(-180deg); }

.dd-book-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.dd-book-face-back { transform: rotateY(180deg); }

.dd-book-spine {
  position: absolute;
  left: calc(var(--page-w) - 3px);
  top: 2%;
  width: 6px;
  height: 96%;
  background: linear-gradient(90deg,
    rgba(20, 15, 10, 0) 0%,
    rgba(20, 15, 10, 0.28) 50%,
    rgba(20, 15, 10, 0) 100%);
  pointer-events: none;
  z-index: 40;
}

/* ── A single page face ── */
.dd-bookpage {
  position: relative;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 2.6vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(84, 80, 64, 0.045) 30px 31px),
    var(--sand-100);
  box-shadow:
    inset 0 0 60px rgba(84, 80, 64, 0.12),
    0 18px 38px rgba(15, 25, 20, 0.16);
  overflow: hidden;
}
.dd-bookpage-left {
  border-radius: 10px 2px 2px 10px;
  background:
    linear-gradient(90deg, transparent 92%, rgba(20, 15, 10, 0.10) 100%),
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(84, 80, 64, 0.045) 30px 31px),
    var(--sand-100);
}
.dd-bookpage-right {
  border-radius: 2px 10px 10px 2px;
  background:
    linear-gradient(270deg, transparent 92%, rgba(20, 15, 10, 0.10) 100%),
    radial-gradient(120% 90% at 80% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(84, 80, 64, 0.045) 30px 31px),
    var(--sand-100);
}
.dd-bookpage-blank { background: var(--sand-200); }
.dd-bookpage-end {
  align-items: center;
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 22px;
  color: var(--fg-3);
}

/* faint coffee-ring stain in a corner of every page */
.dd-bookpage-stain {
  position: absolute;
  right: 8%;
  bottom: 6%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 10px solid rgba(150, 147, 128, 0.10);
  filter: blur(1px);
  pointer-events: none;
}

/* ── Cover page ── */
.dd-bookpage-cover {
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(160deg, var(--mauve-700), var(--mauve-900));
  box-shadow:
    inset 0 0 0 2px rgba(244, 239, 230, 0.14),
    inset 0 0 80px rgba(15, 13, 17, 0.55),
    0 18px 38px rgba(15, 25, 20, 0.28);
}
.dd-bookpage-cover .dd-bookpage-stain { display: none; }
.dd-bookcover-inner {
  text-align: center;
  color: var(--chalk-white);
  border: 1px solid rgba(244, 239, 230, 0.25);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 2.4vw, 32px);
  margin: 12px;
}
.dd-bookcover-emblem {
  font-size: 26px;
  color: var(--scale-violet);
  text-shadow: 0 0 18px rgba(139, 111, 168, 0.8);
  margin-bottom: 14px;
}
.dd-bookcover-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.1;
  margin: 0 0 10px;
}
.dd-bookcover-sub {
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 17px;
  color: rgba(244, 239, 230, 0.66);
  margin: 0;
}
.dd-bookcover-open {
  margin: 26px 0 0;
  font-family: var(--font-system);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
  animation: dd-cover-pulse 2.2s ease-in-out infinite;
}
@keyframes dd-cover-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* ── Photo page ── */
.dd-bookphoto { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.dd-bookphoto-frame {
  position: relative;
  width: 88%;
  aspect-ratio: 4 / 5;
  background: #fffefa;
  padding: 10px 10px 14px;
  box-shadow: 0 10px 26px rgba(15, 25, 20, 0.18);
  transform: rotate(-2deg);
  transition: transform var(--dur-base) var(--ease-bounce);
}
.dd-book-base:hover .dd-bookphoto-frame,
.dd-artist-sheet:hover .dd-bookphoto-frame { transform: rotate(0deg) scale(1.02); }
.dd-bookphoto-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dd-bookphoto-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--sand-400);
  background: var(--sand-50);
  color: var(--fg-4);
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
}
.dd-tape {
  position: absolute;
  width: 78px;
  height: 26px;
  background: rgba(230, 211, 168, 0.65);
  box-shadow: 0 1px 3px rgba(15, 25, 20, 0.12);
  z-index: 2;
}
.dd-tape-tl { top: -10px; left: -22px; transform: rotate(-38deg); }
.dd-tape-br { bottom: -10px; right: -22px; transform: rotate(-38deg); }
.dd-bookphoto-caption {
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 16px;
  color: var(--fg-2);
  text-align: center;
}

/* ── Text / chapter page ── */
.dd-booktext { display: flex; flex-direction: column; }
.dd-booktext-eyebrow {
  font-family: var(--font-system);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--moss-600);
  margin-bottom: 8px;
}
.dd-booktext-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.12;
  margin: 0 0 12px;
  color: var(--fg-1);
}
.dd-booktext-rule {
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--scale-violet), transparent);
  margin-bottom: 18px;
}
.dd-booktext-para {
  font-family: var(--font-prose);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: var(--lh-prose);
  color: var(--fg-2);
  margin: 0 0 1em;
}

/* ── Sticky-note page ── */
.dd-booknotes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}
.dd-booknote {
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sand-900);
  padding: 16px 18px 20px;
  box-shadow: 0 8px 18px rgba(15, 25, 20, 0.14);
  width: 82%;
  transition: transform var(--dur-base) var(--ease-bounce);
}
.dd-booknote:hover { transform: scale(1.04) rotate(0deg) !important; }
.dd-booknote-0 { background: #f5e9b8; transform: rotate(-2.5deg); align-self: flex-start; }
.dd-booknote-1 { background: #d9e6d2; transform: rotate(1.8deg);  align-self: flex-end; }
.dd-booknote-2 { background: #e4dcec; transform: rotate(-1.2deg); align-self: flex-start; }

/* ── Signature page ── */
.dd-booksign { display: flex; flex-direction: column; align-items: flex-start; }
.dd-booksign-lead {
  font-family: var(--font-prose);
  font-size: 17px;
  color: var(--fg-2);
  margin: 0 0 16px;
}
.dd-booksign-links { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dd-booksign-links a {
  font-family: var(--font-system);
  font-size: 15px;
  font-weight: 600;
  color: var(--moss-600);
  text-decoration: none;
  border-bottom: 1px dashed var(--moss-400);
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease-out);
}
.dd-booksign-links a:hover { color: var(--mauve-600); border-bottom-color: var(--mauve-400); }
.dd-booksign-sig {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 52px);
  color: var(--fg-1);
  transform: rotate(-4deg);
  margin: 6px 0 0 8px;
}
.dd-booksign-seal {
  align-self: flex-end;
  margin-top: 18px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: rgba(244, 239, 230, 0.9);
  background: radial-gradient(circle at 32% 28%, var(--mauve-500), var(--mauve-800) 70%);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.25),
    inset 0 -4px 8px rgba(15, 13, 17, 0.4),
    0 6px 14px rgba(15, 25, 20, 0.25);
  transform: rotate(8deg);
}

/* ── Navigation under the book ── */
.dd-artist-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding-top: 18px;
}
.dd-artist-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  font-size: 18px;
  color: var(--fg-1);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-bounce), opacity var(--dur-fast) linear;
}
.dd-artist-arrow:hover:not(:disabled) { transform: scale(1.1); }
.dd-artist-arrow:disabled { opacity: 0.3; cursor: default; }
.dd-artist-dots { display: flex; gap: 10px; }
.dd-artist-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sand-400);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-bounce), background var(--dur-fast) linear;
}
.dd-artist-dot.is-on { background: var(--mauve-600); transform: scale(1.35); }
.dd-artist-hint {
  text-align: center;
  font-family: var(--font-prose);
  font-style: italic;
  font-size: 14px;
  color: var(--fg-3);
  margin: 12px 0 0;
}

/* ── Mobile scroll fallback ── */
.dd-artist-mobile { overflow: visible; }
.dd-artist-scroll {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 16px 0 48px;
}
.dd-artist-scroll-head { text-align: center; padding: 8px 0 4px; }
.dd-artist-scroll-head .dd-bookcover-title { color: var(--fg-1); }
.dd-artist-scroll-head .dd-bookcover-sub { color: var(--fg-3); }
.dd-artist-sheet .dd-bookpage {
  height: auto;
  min-height: 300px;
  border-radius: 6px;
}
.dd-artist-sheet { transition: transform var(--dur-base) var(--ease-out); }
.dd-artist-sheet.lean-l { transform: rotate(-0.8deg); }
.dd-artist-sheet.lean-r { transform: rotate(0.8deg); }
.dd-artist-sheet:hover { transform: rotate(0deg); }

/* ═════════ Phones (≤720px) — added 2026-11-16 ═════════ */
/* Mobile navbar: logo bone + menu button; the panel shows the page bones big. */
.dd-mnav { display: none; }
@media (max-width: 720px) {
  .dd-nav { display: none; }
  .dd-mnav { display: block; }
  .dd-mnav-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    pointer-events: none;            /* only the two buttons take taps */
  }
  .dd-mnav-bar > * { pointer-events: auto; }
  .dd-mnav-logo {
    background: none; border: 0; padding: 0;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.32));
  }
  .dd-mnav-logo img { height: 46px; width: auto; }
  .dd-mnav-toggle {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 2px solid #1d1d1f;
    background: #e8e5dc;
    display: grid;
    place-content: center;
    gap: 5px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  }
  .dd-mnav-toggle span {
    display: block;
    width: 20px; height: 2px;
    border-radius: 2px;
    background: #1d1d1f;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .dd-mnav.is-open .dd-mnav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .dd-mnav.is-open .dd-mnav-toggle span:nth-child(2) { opacity: 0; }
  .dd-mnav.is-open .dd-mnav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .dd-mnav-panel {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(14, 14, 16, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
  }
  .dd-mnav.is-open .dd-mnav-panel { opacity: 1; visibility: visible; }
  .dd-mnav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 76px 16px 24px;
    max-height: 100%;
    overflow-y: auto;
  }
  .dd-mnav-item {
    background: none; border: 0; padding: 0;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
    transform: translateY(14px) rotate(-2deg);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease;
    transition-delay: calc(var(--i) * 120ms);
  }
  .dd-mnav.is-open .dd-mnav-item { transform: none; opacity: 1; }
  .dd-mnav-item img { width: auto; height: min(13vh, 104px); }
  .dd-mnav-item.is-current img { filter: drop-shadow(0 0 10px rgba(95, 184, 196, 0.85)); }
  body.dd-mnav-open { overflow: hidden; }

  /* Footer: drop the desktop side margins, keep everything inside the screen. */
  .dd-footer { padding: 3px 16px 28px; }
  .dd-footer-grid { margin: 0; max-width: none; gap: 28px; grid-template-columns: 1fr 1fr; }
  .dd-footer-brand,
  .dd-footer-grid > div:nth-child(2) { grid-column: 1 / -1; }
  .dd-footer-brand { justify-content: center; overflow: hidden; }
  .dd-footer-brand-word { width: 100%; max-width: 420px; margin: 0; transform: none; }
  .dd-footer-grid > div:nth-child(2) { padding: 0; }
  .dd-newsletter { width: 100%; }
  .dd-newsletter input { min-width: 0; padding: 12px 18px; margin: 0; }
  .dd-newsletter button { margin: 5px 0 5px -44px; }

  /* About DDs: perks deck + FAQ must fit inside the screen. */
  .dd-rfaq-inner { padding: 48px 16px; }
  .dd-perks-deck { width: 100%; }

  /* Artist sign-off: dragon logo sits under the signature, not over the text. */
  .dd-ed-seal { position: static; display: block; width: 64px; margin-top: 18px; }

  /* Home: samples GIF and trailer stacked, full width; trailer keeps 16:9
     and its controls stay visible (no hover on touch screens). */
  .dd-home-light-wrap { padding-top: 84px; padding-bottom: 56px; }
  .dd-home-shapes { flex-direction: column; align-items: center; gap: 18px; padding: 0 16px; }
  .dd-home-square { width: min(100%, 420px); height: auto; aspect-ratio: 1 / 1; }
  .dd-home-rect { width: 100%; max-width: none; height: auto; aspect-ratio: 16 / 9; margin-left: 0; flex: none; }
  .dd-video-ctrl { opacity: 1; transform: none; pointer-events: auto; left: 10px; right: 10px; bottom: 10px; gap: 8px; padding: 6px 8px; }
  .dd-video-btn { width: 30px; height: 30px; }

  /* About landing: stack the two cards, full width. */
  .dd-about-islands { flex-direction: column; gap: 28px; padding: 96px 16px 48px; }
  .dd-about-island { width: min(92vw, 520px); }
}

/* Trailer: tapping the picture hides the controls (wins over hover / the phone rule) */
.dd-video-ctrl.is-hidden,
.dd-home-rect:hover .dd-video-ctrl.is-hidden {
  opacity: 0 !important;
  transform: translateY(8px) !important;
  pointer-events: none !important;
}
.dd-home-rect video { cursor: pointer; }
/* Trailer in full screen: plain black frame, whole picture visible */
.dd-home-rect:fullscreen { border: 0; border-radius: 0; background: #000; }
.dd-home-rect:-webkit-full-screen { border: 0; border-radius: 0; background: #000; }
.dd-home-rect:fullscreen video { object-fit: contain; }
.dd-home-rect:-webkit-full-screen video { object-fit: contain; }
.dd-home-rect:fullscreen .dd-film-edges { display: none; }
