/* ==========================================================================
   NFT Project "The Wonders" — Behance Showcase Stylesheet
   Faithfully styled after NFT Project "The Joneses" Behance gallery layout
   ========================================================================== */

:root {
  --bg-page: #ffffff;
  --text-primary: #191919;
  --text-muted: #696969;
  --behance-blue: #0057ff;
  --behance-blue-hover: #003ecb;
  --divider: #ececec;
  --footer-dark: #191919;
  --col-width: 1135px;
  --inset-ratio: 85.8%; /* 974px / 1135px */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-comic: 'Fredoka', 'Arial Rounded MT Bold', 'Comic Sans MS', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Top Project Header Bar (Minimalist Behance Chrome)
   ========================================================================== */
.project-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}

.topbar-inner {
  max-width: var(--col-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.artist-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #8ce3ff, #fff380, #ffb6e1);
  border: 1.5px solid #e4e4e4;
}

.artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.22);
}

.project-meta {
  min-width: 0;
}

.project-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.inline-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--behance-blue);
  font-weight: 600;
  font-size: 13px;
}

.inline-link-btn:hover {
  text-decoration: underline;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
}

.pill-btn:active {
  transform: scale(0.97);
}

.ghost-btn {
  background: #f6f7f9;
  border: 1px solid #e3e5e8;
  color: var(--text-primary);
}

.ghost-btn:hover {
  background: #eceff3;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.ghost-btn[aria-pressed="false"] .pulse-dot {
  background: #9ca3af;
  box-shadow: none;
}

.primary-btn {
  background: var(--behance-blue);
  border: 1px solid var(--behance-blue);
  color: #ffffff;
}

.primary-btn:hover {
  background: var(--behance-blue-hover);
  border-color: var(--behance-blue-hover);
}

.primary-btn[aria-pressed="true"] {
  background: #191919;
  border-color: #191919;
}

.count-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
}

/* ==========================================================================
   Floating Right Action Rail (Behance Desktop Rail)
   ========================================================================== */
.floating-rail {
  position: fixed;
  right: max(18px, calc((100vw - var(--col-width)) / 2 - 86px));
  top: 112px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

@media (max-width: 1310px) {
  .floating-rail {
    display: none;
  }
}

.rail-item {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--text-primary);
}

.rail-avatar,
.rail-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e4e4e4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.rail-item:hover .rail-avatar,
.rail-item:hover .rail-circle {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.rail-avatar {
  background: linear-gradient(135deg, #c6f7e2, #ffd6f0);
}

.rail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.18);
}

.blue-circle {
  background: var(--behance-blue);
  border-color: var(--behance-blue);
  color: #ffffff;
}

.rail-item.is-liked .blue-circle {
  background: #191919;
  border-color: #191919;
}

.rail-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   Main Centered Showcase Column (Exact 1135px Behance Gallery Geometry)
   ========================================================================== */
.showcase-canvas {
  max-width: var(--col-width);
  margin: 18px auto 48px;
  padding: 0;
  background: #ffffff;
}

@media (max-width: 1165px) {
  .showcase-canvas {
    padding: 0 14px;
  }
}

.module {
  width: 100%;
  margin: 0 auto;
}

.full-width {
  width: 100%;
}

/* Inset Centered Square (974px wide on 1135px desktop = 85.8%) */
.inset-square {
  width: var(--inset-ratio);
  margin: 5px auto 0;
}

@media (max-width: 720px) {
  .inset-square {
    width: 100%;
  }
}

/* ==========================================================================
   1. Hero Banner (3:1 Rainbow Gradient + White Town + Comic Logo)
   ========================================================================== */
.hero-banner {
  width: 100%;
  aspect-ratio: 1135 / 380;
  overflow: hidden;
  background: #ffffff;
}

.hero-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   2. Editorial Serif Intro & Outro Copy + Section Captions
   ========================================================================== */
.editorial-text {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-serif);
  color: var(--text-primary);
}

.intro-copy {
  padding: 10px 24px 26px;
}

.intro-copy p {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.62;
  font-weight: 400;
}

.outro-copy {
  padding: 22px 24px 12px;
}

.outro-copy p {
  margin: 0 0 12px;
  font-size: 17.5px;
  line-height: 1.6;
}

.outro-meta {
  font-size: 14.5px !important;
  color: var(--text-muted);
}

.behance-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--behance-blue);
}

.behance-link-btn:hover {
  text-decoration: underline;
}

/* Centered ~38px Serif Captions (Exact Joneses Module Captions) */
.module-caption {
  margin: 0;
  padding: 13px 16px 14px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.35;
  color: var(--text-primary);
}

.module-caption.section-heading {
  padding: 20px 16px 16px;
  font-size: 19px;
}

.module-caption.muted-caption {
  padding: 18px 16px 16px;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   3. Three-Column Animated Character Trio Row (4px Tight Gutter)
   ========================================================================== */
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 5px;
}

.trio-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  user-select: none;
}

.trio-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center 12%;
  transform: scale(1.24) translateY(3%);
  transition: opacity 0.16s ease, transform 0.25s ease;
}

.trio-img.is-tall {
  transform-origin: center 4%;
  transform: scale(1.13) translateY(3%);
}

.trio-img.is-left-wide {
  transform-origin: center 10%;
  transform: scale(1.18) translate(4%, 3%);
}

.trio-img.is-swapping {
  opacity: 0.25;
}

.trio-card:hover .trio-img {
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.08));
}

.card-hover-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  background: rgba(25, 25, 25, 0.84);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.trio-card:hover .card-hover-pill,
.trio-card:focus-visible .card-hover-pill,
.portrait-card:hover .card-hover-pill,
.portrait-card:focus-visible .card-hover-pill {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   4, 5, 6, 8B, 10. Large Inset Illustrated Scenes (974x974 Square Stages)
   ========================================================================== */
.scene-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
}

.scene-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.clickable-char {
  cursor: pointer;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.clickable-char:hover {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

/* Family Portrait Cast Inside Wooden Frame */
.family-cast {
  position: absolute;
  inset: 5.2%;
  z-index: 2;
  pointer-events: none;
}

.family-cast .cast-member {
  position: absolute;
  bottom: -2%;
  pointer-events: auto;
  object-fit: contain;
}

.family-left {
  width: 56%;
  left: -3%;
  z-index: 2;
}

.family-right {
  width: 56%;
  right: -3%;
  z-index: 2;
}

.family-center {
  width: 52%;
  left: 24%;
  bottom: -4% !important;
  z-index: 3;
}

.family-cast .cast-member:hover {
  transform: translateY(-6px) scale(1.02);
}

.wood-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
}

/* Solo Spotlight Scenes (Atelier #08 & Genesis #00) */
.solo-spotlight-img {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  width: 82%;
  height: 82%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
}

.solo-spotlight-img:hover {
  transform: translateX(-50%) scale(1.025);
}

.genesis-img {
  width: 86%;
  height: 86%;
}

/* ==========================================================================
   7. Signature 2x6 Character Portrait Showcase Grid (14px Crisp White Gutters)
   ========================================================================== */
.portrait-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 6px;
}

@media (max-width: 640px) {
  .portrait-grid-2col {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.portrait-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
}

.portrait-card-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
  transform: scale(1.04);
  transition: transform 0.25s ease;
}

.portrait-card-img.is-tall {
  transform: scale(0.97);
}

.portrait-card-img.is-left-wide {
  transform: scale(1.02) translateX(4%);
}

.portrait-card:hover .portrait-card-img {
  transform: scale(1.075);
}

.portrait-card:hover .portrait-card-img.is-tall {
  transform: scale(1.005);
}

.portrait-card:hover .portrait-card-img.is-left-wide {
  transform: scale(1.055) translateX(4%);
}

/* ==========================================================================
   Pastel Patterned Card Backgrounds (Exact Joneses Pattern Vocabulary)
   ========================================================================== */
.pattern-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* 1. Sky Blue + Puffy White Clouds */
.bg-sky-clouds {
  background-color: #b4e8ff;
}
.bg-sky-clouds .pattern-layer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='%23ffffff' opacity='0.88'%3E%3Cpath d='M-10,96 C-10,70 16,54 38,60 C50,32 94,32 106,60 C130,56 146,74 140,96 Z'/%3E%3Cpath d='M250,74 C250,52 274,38 294,44 C306,18 346,18 358,44 C380,40 398,56 392,76 Z'/%3E%3Cpath d='M120,218 C120,196 144,182 164,188 C176,162 216,162 228,188 C250,184 264,200 260,218 Z'/%3E%3Cpath d='M290,310 C290,288 312,276 332,282 C344,258 380,258 392,282 L410,312 L288,312 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

/* 2. Warm Peach + Crisp White 5-Point Stars */
.bg-peach-stars {
  background-color: #fcd6ba;
}
.bg-peach-stars .pattern-layer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='%23ffffff' opacity='0.9'%3E%3Cpolygon points='58,28 63,41 77,41 66,49 70,62 58,54 46,62 50,49 39,41 53,41'/%3E%3Cpolygon points='172,56 176,66 186,66 178,72 181,82 172,76 163,82 166,72 158,66 168,66'/%3E%3Cpolygon points='334,42 339,55 353,55 342,63 346,76 334,68 322,76 326,63 315,55 329,55'/%3E%3Cpolygon points='52,202 56,213 67,213 58,219 61,230 52,223 43,230 46,219 37,213 48,213'/%3E%3Cpolygon points='348,236 353,248 366,248 356,256 359,268 348,260 337,268 340,256 330,248 343,248'/%3E%3Cpolygon points='72,338 77,350 89,350 79,357 83,369 72,362 61,369 65,357 55,350 67,350'/%3E%3Cpolygon points='324,350 328,360 339,360 330,366 333,376 324,370 315,376 318,366 309,360 320,360'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

/* 3. Periwinkle Lavender + Snowflakes & Twinkling Stars */
.bg-lavender-snow {
  background-color: #c5c4f7;
}
.bg-lavender-snow .pattern-layer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' opacity='0.82'%3E%3Cg transform='translate(54,60)'%3E%3Cline x1='0' y1='-18' x2='0' y2='18'/%3E%3Cline x1='-18' y1='0' x2='18' y2='0'/%3E%3Cline x1='-13' y1='-13' x2='13' y2='13'/%3E%3Cline x1='13' y1='-13' x2='-13' y2='13'/%3E%3C/g%3E%3Cg transform='translate(342,90)'%3E%3Cline x1='0' y1='-16' x2='0' y2='16'/%3E%3Cline x1='-16' y1='0' x2='16' y2='0'/%3E%3Cline x1='-11' y1='-11' x2='11' y2='11'/%3E%3Cline x1='11' y1='-11' x2='-11' y2='11'/%3E%3C/g%3E%3Cg transform='translate(58,312)'%3E%3Cline x1='0' y1='-18' x2='0' y2='18'/%3E%3Cline x1='-18' y1='0' x2='18' y2='0'/%3E%3Cline x1='-13' y1='-13' x2='13' y2='13'/%3E%3Cline x1='13' y1='-13' x2='-13' y2='13'/%3E%3C/g%3E%3Cg transform='translate(348,290)'%3E%3Cline x1='0' y1='-15' x2='0' y2='15'/%3E%3Cline x1='-15' y1='0' x2='15' y2='0'/%3E%3Cline x1='-10' y1='-10' x2='10' y2='10'/%3E%3Cline x1='10' y1='-10' x2='-10' y2='10'/%3E%3C/g%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='0.88'%3E%3Cpolygon points='150,36 154,46 164,46 156,52 159,62 150,56 141,62 144,52 136,46 146,46'/%3E%3Cpolygon points='282,42 285,50 293,50 287,55 289,63 282,58 275,63 277,55 271,50 279,50'/%3E%3Ccircle cx='96' cy='168' r='4'/%3E%3Ccircle cx='316' cy='190' r='4.5'/%3E%3Ccircle cx='120' cy='256' r='3.5'/%3E%3Ccircle cx='322' cy='356' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

/* 4. Mint Green + Hand-Drawn White Hearts & Polka Dots (Joneses Row 1 Left) */
.bg-mint-hearts {
  background-color: #c5f7df;
}
.bg-mint-hearts .pattern-layer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='7' stroke-linecap='round' stroke-linejoin='round' opacity='0.86'%3E%3Cpath d='M92,48 C92,28 60,28 60,52 C60,72 92,90 92,102 C92,90 124,72 124,52 C124,28 92,28 92,48 Z'/%3E%3Cpath d='M316,56 C316,36 286,36 286,58 C286,78 316,96 316,106 C316,96 346,78 346,58 C346,36 316,36 316,56 Z'/%3E%3Cpath d='M52,326 C52,308 24,308 24,328 C24,346 52,362 52,372 C52,362 80,346 80,328 C80,308 52,308 52,326 Z'/%3E%3Cpath d='M348,318 C348,298 318,298 318,320 C318,340 348,358 348,370 C348,358 378,340 378,320 C378,298 348,298 348,318 Z'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='0.82'%3E%3Ccircle cx='40' cy='155' r='6'/%3E%3Ccircle cx='356' cy='168' r='6'/%3E%3Ccircle cx='185' cy='40' r='5'/%3E%3Ccircle cx='44' cy='244' r='5'/%3E%3Ccircle cx='366' cy='248' r='5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

/* 5. Butter Yellow + Multicolor Confetti Strips (Joneses Row 1 Right) */
.bg-yellow-confetti {
  background-color: #fff0a6;
}
.bg-yellow-confetti .pattern-layer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg%3E%3Crect x='34' y='36' width='16' height='7' fill='%23ff6b8b' transform='rotate(-25 34 36)'/%3E%3Crect x='110' y='24' width='14' height='6' fill='%2347c975' transform='rotate(18 110 24)'/%3E%3Crect x='275' y='32' width='16' height='7' fill='%2359a8ff' transform='rotate(-15 275 32)'/%3E%3Crect x='348' y='52' width='15' height='7' fill='%23ff9e44' transform='rotate(34 348 52)'/%3E%3Crect x='54' y='118' width='14' height='6' fill='%23a67cff' transform='rotate(28 54 118)'/%3E%3Crect x='338' y='136' width='16' height='7' fill='%23ff5c7c' transform='rotate(-38 338 136)'/%3E%3Crect x='28' y='224' width='16' height='7' fill='%233ec97d' transform='rotate(15 28 224)'/%3E%3Crect x='354' y='228' width='15' height='7' fill='%2356b4ff' transform='rotate(-28 354 228)'/%3E%3Crect x='64' y='318' width='15' height='7' fill='%23ff8844' transform='rotate(-20 64 318)'/%3E%3Crect x='336' y='330' width='16' height='7' fill='%23b07cff' transform='rotate(24 336 330)'/%3E%3Crect x='186' y='36' width='12' height='6' fill='%23ff6b8b' transform='rotate(42 186 36)'/%3E%3Crect x='376' y='182' width='12' height='6' fill='%2347c975' transform='rotate(-12 376 182)'/%3E%3Crect x='20' y='168' width='12' height='6' fill='%2359a8ff' transform='rotate(32 20 168)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

/* 6. Soft Cotton-Candy Pink + Wavy Organic Ribbons (Joneses Row 2 Right) */
.bg-pink-waves {
  background-color: #ffd6ee;
}
.bg-pink-waves .pattern-layer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath d='M-20,90 Q90,20 200,90 T420,90 L420,165 Q310,225 200,165 T-20,165 Z' fill='%23ffffff' opacity='0.48'/%3E%3Cpath d='M-20,255 Q110,195 220,260 T420,250 L420,335 Q300,395 190,330 T-20,340 Z' fill='%23ffffff' opacity='0.42'/%3E%3C/svg%3E");
  background-size: cover;
}

/* 7. Sky Blue + White-Outlined Town Houses (Joneses Row 3) */
.bg-sky-houses {
  background-color: #aee8ff;
}
.bg-sky-houses .pattern-layer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.9'%3E%3Cpath d='M-6,400 L-6,178 L42,126 L90,178 L90,400'/%3E%3Crect x='14' y='198' width='22' height='28'/%3E%3Crect x='50' y='198' width='22' height='28'/%3E%3Crect x='14' y='252' width='22' height='28'/%3E%3Crect x='50' y='252' width='22' height='28'/%3E%3Cpath d='M104,400 L104,154 L152,110 L200,154 L200,400'/%3E%3Crect x='128' y='176' width='44' height='30'/%3E%3Cpath d='M214,400 L214,174 L264,126 L314,174 L314,400'/%3E%3Crect x='236' y='196' width='22' height='28'/%3E%3Crect x='272' y='196' width='22' height='28'/%3E%3Cpath d='M328,400 L328,158 L372,108 L412,158 L412,400'/%3E%3Crect x='348' y='184' width='24' height='32'/%3E%3Crect x='348' y='244' width='24' height='32'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

/* 8. Lavender + Puffy Clouds & White-Outlined Houses (Joneses Row 4 Right) */
.bg-lavender-houses {
  background-color: #c7c5f8;
}
.bg-lavender-houses .pattern-layer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='%23ffffff' opacity='0.92'%3E%3Cpath d='M-10,72 C-10,48 16,36 38,42 C50,18 92,18 104,42 C126,38 140,54 134,74 Z'/%3E%3Cpath d='M295,120 C295,98 318,86 338,92 C350,70 388,70 400,92 L415,122 L292,122 Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='4.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.88'%3E%3Cpath d='M-4,400 L-4,216 L46,168 L96,216 L96,400'/%3E%3Crect x='20' y='236' width='22' height='28'/%3E%3Crect x='54' y='236' width='22' height='28'/%3E%3Cpath d='M110,400 L110,194 L162,148 L214,194 L214,400'/%3E%3Cpath d='M298,400 L298,208 L346,162 L396,208 L396,400'/%3E%3Crect x='322' y='228' width='22' height='28'/%3E%3Crect x='356' y='228' width='22' height='28'/%3E%3Crect x='322' y='282' width='22' height='28'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

/* ==========================================================================
   8. Marketing Section (Tight 4px 2-Col Grids + White/Black-Stroked Headlines)
   ========================================================================== */
.grid-2col-tight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-top: 5px;
}

@media (max-width: 680px) {
  .grid-2col-tight {
    grid-template-columns: 1fr;
  }
}

.marketing-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
}

.mkt-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Iconic White Comic Fill + Heavy Black Sticker Outline (Matches Joneses Marketing!) */
.mkt-headline {
  position: absolute;
  top: 6%;
  left: 5%;
  right: 5%;
  z-index: 5;
  text-align: center;
  font-family: var(--font-comic);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 37px);
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: 0.2px;
  pointer-events: none;
  -webkit-text-stroke: 2.2px #111111;
  paint-order: stroke fill;
  text-shadow:
    -3px -3px 0 #111111,
     3px -3px 0 #111111,
    -3px  3px 0 #111111,
     3px  3px 0 #111111,
     0px -3.5px 0 #111111,
     0px  3.5px 0 #111111,
    -3.5px 0px 0 #111111,
     3.5px 0px 0 #111111,
     2px  5px 0 #111111;
}

.mkt-headline.two-line {
  top: 4.5%;
  font-size: clamp(20px, 3vw, 35px);
}

.mkt-headline.large-headline {
  top: 5%;
  font-size: clamp(26px, 4.4vw, 52px);
  text-shadow:
    -4px -4px 0 #111111,
     4px -4px 0 #111111,
    -4px  4px 0 #111111,
     4px  4px 0 #111111,
     0px -4.5px 0 #111111,
     0px  4.5px 0 #111111,
    -4.5px 0px 0 #111111,
     4.5px 0px 0 #111111,
     3px  6px 0 #111111;
}

/* Marketing 2-Character Side-by-Side Framing */
.mkt-duo {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.mkt-duo img {
  position: absolute;
  bottom: -4%;
  width: 66%;
  height: 76%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: auto;
}

.mkt-duo .duo-left {
  left: -4%;
}

.mkt-duo .duo-right {
  right: -4%;
}

.mkt-duo .duo-tall {
  height: 73%;
}

.mkt-duo img:hover {
  transform: translateY(-6px) scale(1.03);
}

/* Marketing Large Scene: Good Community Neighbors behind White Picket Fence */
.fence-cast {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.fence-char {
  position: absolute;
  bottom: 10%;
  width: 52%;
  height: 62%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: auto;
}

.fence-left {
  left: -2%;
}

.fence-center {
  left: 24%;
  bottom: 11%;
  z-index: 3;
}

.fence-right {
  right: -2%;
}

.fence-char:hover {
  transform: translateY(-8px) scale(1.03);
}

.fence-fg-svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 26.7%;
  z-index: 4;
}

/* Closing Panel: Two Characters Under Pink Umbrella */
.umbrella-back-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.closing-duo {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.closing-duo img {
  position: absolute;
  bottom: -2%;
  width: 56%;
  height: 62%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: auto;
}

.closing-left {
  left: 7%;
}

.closing-right {
  right: 7%;
}

.closing-duo img:hover {
  transform: translateY(-6px) scale(1.025);
}

.umbrella-top-svg {
  position: absolute;
  top: 8%;
  left: 0;
  width: 100%;
  height: 45%;
  z-index: 4;
}

/* ==========================================================================
   12. Behance Dark Creator Footer Band (13-Piece Quick Jump Strip)
   ========================================================================== */
.behance-dark-footer {
  background: var(--footer-dark);
  color: #ffffff;
  padding: 44px 20px 54px;
}

.footer-inner {
  max-width: var(--col-width);
  margin: 0 auto;
}

.footer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-creator {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #8ce3ff, #fff380, #ffb6e1);
  flex-shrink: 0;
}

.footer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.22);
}

.footer-creator h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.footer-creator p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #a6a6a6;
}

.footer-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--behance-blue);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.16s ease, transform 0.12s ease;
}

.footer-like-btn:hover {
  background: var(--behance-blue-hover);
}

.footer-like-btn.is-liked {
  background: #2f2f2f;
  outline: 1px solid #555;
}

.footer-thumb-strip {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 6px;
}

@media (max-width: 960px) {
  .footer-thumb-strip {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (max-width: 520px) {
  .footer-thumb-strip {
    grid-template-columns: repeat(5, 1fr);
  }
}

.footer-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border: none;
  padding: 0;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 0.15s ease, outline-color 0.15s ease;
  outline: 2px solid transparent;
}

.footer-thumb:hover {
  transform: translateY(-3px);
  outline-color: #ffffff;
  z-index: 2;
}

.footer-thumb img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.footer-thumb-num {
  position: absolute;
  right: 4px;
  bottom: 3px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  color: rgba(25, 25, 25, 0.72);
  background: rgba(255, 255, 255, 0.72);
  padding: 0 4px;
  border-radius: 3px;
}

/* ==========================================================================
   High-Resolution Lightbox Modal & Quick 13-Piece Overview Drawer
   ========================================================================== */
.lightbox-backdrop,
.index-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 17, 22, 0.84);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-backdrop[hidden],
.index-backdrop[hidden] {
  display: none;
}

.lightbox-dialog {
  position: relative;
  width: min(920px, 100%);
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

@media (max-width: 760px) {
  .lightbox-dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }
}

.lb-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.lb-stage.is-transparent {
  background-color: #ffffff !important;
  background-image:
    linear-gradient(45deg, #ededed 25%, transparent 25%),
    linear-gradient(-45deg, #ededed 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ededed 75%),
    linear-gradient(-45deg, transparent 75%, #ededed 75%) !important;
  background-size: 24px 24px !important;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0 !important;
}

.lb-stage.is-transparent .pattern-layer {
  display: none;
}

.lb-stage img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.lb-info {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.lb-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lb-id {
  background: #191919;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.lb-file {
  font-size: 12px;
  color: var(--text-muted);
}

.lb-info h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  color: var(--text-primary);
}

.lb-info p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4b5563;
}

.lb-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.trait-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  background: #f3f4f6;
  color: #1f2937;
  border-radius: 6px;
}

.lb-controls {
  padding-top: 10px;
  border-top: 1px solid #ececec;
}

.bg-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.lb-close,
.index-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(25, 25, 25, 0.78);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-close:hover,
.index-close:hover {
  background: #000000;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #191919;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.lb-prev {
  left: 12px;
}

.lb-next {
  right: 12px;
}

/* Quick 13-Piece Overview Modal */
.index-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 10px;
  padding: 26px 26px 30px;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

.index-header {
  padding-right: 44px;
  margin-bottom: 18px;
}

.index-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
}

.index-header p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}

.index-card {
  position: relative;
  border: none;
  padding: 0;
  background: #ffffff;
  text-align: left;
  overflow: hidden;
  border-radius: 0;
  outline: 1px solid #ececec;
  transition: transform 0.15s ease, outline-color 0.15s ease;
}

.index-card:hover {
  transform: translateY(-3px);
  outline-color: var(--behance-blue);
}

.index-card-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.index-card-visual img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.index-card-caption {
  padding: 8px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  background: #ffffff;
}

.index-card-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.index-card-file {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}
