
  @font-face {
    font-family: 'Fungis';
    src: url('../assets/fonts/FUNGIS-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: 'BoldenVan';
    src: url('../assets/fonts/BoldenVan.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  :root {
    --bg: #050607;
    --bg2: #0a0d10;
    --bg3: #111417;
    --accent: #8fd8d1;
    --accent2: #a9b5bd;
    --accent3: #d9e2e4;
    --text: #E8ECEE;
    --muted: #8B959B;
    --border: rgba(210,230,232,0.1);
    --card-bg: rgba(10,13,16,0.88);
    --glow: rgba(143,216,209,0.1);
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-label: 'Inter', system-ui, sans-serif;
    --font-chumbi-copy: 'Fungis', 'Inter', system-ui, sans-serif;
    --font-chumbi-title: 'BoldenVan', 'Space Grotesk', system-ui, sans-serif;
    /* --- Design System v2 tokens --- */
    --glass: rgba(16,22,26,0.52);
    --glass-strong: rgba(18,26,31,0.78);
    --glass-border: rgba(143,216,209,0.16);
    --glass-hi: rgba(255,255,255,0.06);
    --accent-grad: linear-gradient(135deg, #9fe6dd 0%, #7fcabf 55%, #5fb3ac 100%);
    --glow-soft: rgba(143,216,209,0.16);
    --glow-strong: rgba(143,216,209,0.30);
    --radius: 18px;
    --radius-lg: 26px;
    --radius-pill: 999px;
    --shadow-card: 0 22px 54px rgba(0,0,0,0.42), 0 0 30px rgba(143,216,209,0.06);
    --shadow-float: 0 24px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    --ease: cubic-bezier(.2,.8,.2,1);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

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

  body {
    background:
      radial-gradient(1200px 560px at 50% -12%, rgba(143,216,209,0.08), transparent 58%),
      linear-gradient(180deg, #07090a 0%, var(--bg) 42%, #030404 100%);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(232,236,238,0.018) 1px, transparent 1px),
      linear-gradient(90deg, rgba(232,236,238,0.014) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.32), rgba(0,0,0,0.08) 46%, transparent 88%);
    pointer-events: none;
    z-index: 0;
  }

  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
      repeating-radial-gradient(circle at 18% 22%, rgba(255,255,255,0.04) 0 1px, transparent 1px 4px),
      linear-gradient(90deg, rgba(255,255,255,0.018), transparent 18%, rgba(255,255,255,0.012) 50%, transparent 78%);
    background-size: 180px 180px, 100% 100%;
    mix-blend-mode: overlay;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
  }

  .atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(1100px 520px at 18% 0%, rgba(143,216,209,0.10), transparent 60%),
      radial-gradient(900px 480px at 86% 12%, rgba(169,181,189,0.07), transparent 62%),
      radial-gradient(1200px 700px at 50% 108%, rgba(143,216,209,0.10), transparent 60%),
      linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.26) 72%, rgba(0,0,0,0.48) 100%);
    animation: auroraDrift 22s ease-in-out infinite alternate;
  }
  @keyframes auroraDrift {
    0% { background-position: 0% 0%, 0% 0%, 0% 0%, 0 0; filter: hue-rotate(0deg); }
    100% { background-position: 4% -3%, -3% 2%, -2% 3%, 0 0; filter: hue-rotate(8deg); }
  }
  .fireflies {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .firefly {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(232,236,238,0.9);
    box-shadow: 0 0 16px rgba(143,216,209,0.85);
    opacity: 0;
    animation: fireflyMove 9s ease-in-out infinite;
  }
  .firefly:nth-child(1) { left: 12%; top: 30%; animation-delay: 0s; }
  .firefly:nth-child(2) { left: 78%; top: 24%; animation-delay: -2s; animation-duration: 11s; }
  .firefly:nth-child(3) { left: 64%; top: 62%; animation-delay: -5s; animation-duration: 10s; }
  .firefly:nth-child(4) { left: 28%; top: 72%; animation-delay: -3s; animation-duration: 12s; }
  .firefly:nth-child(5) { left: 88%; top: 58%; animation-delay: -7s; animation-duration: 13s; }
  @keyframes fireflyMove {
    0%, 100% { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.7); }
    18%, 72% { opacity: 0.55; }
    50% { opacity: 1; transform: translate3d(18px, -18px, 0) scale(1); }
  }

  nav {
    position: fixed;
    top: 18px; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0;
    background: transparent;
  }

  .nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    color: #f4fbfb;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }
  .nav-logo-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(232,236,238,0.92);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  }
  .nav-logo-mark img {
    width: 21px;
    height: 21px;
    object-fit: contain;
  }
  .nav-logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 0.78;
    transform: rotate(-3deg);
  }
  .nav-logo-word {
    display: block;
    color: #f4fbfb;
    font-weight: 800;
    letter-spacing: -0.04em;
    -webkit-text-stroke: 3px #050607;
    paint-order: stroke fill;
    text-shadow:
      0 2px 0 #050607,
      0 4px 10px rgba(0,0,0,0.36);
  }
  .nav-logo-word + .nav-logo-word {
    margin-left: 14px;
    font-size: 0.76em;
    color: #dff8f5;
    transform: rotate(2deg);
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }
  .nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0;
    border-radius: 0;
    color: var(--muted);
    text-decoration: none;
    font-family: var(--font-chumbi-title);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-shadow: 0 4px 14px rgba(0,0,0,0.55);
    transition: color 0.2s, text-shadow 0.2s, transform 0.2s;
  }
  .nav-links a:hover {
    color: var(--accent);
    background: transparent;
    transform: translateY(-1px);
    text-shadow: 0 0 18px rgba(143,216,209,0.35);
  }

  /* Hero */
  .hero {
    position: relative;
    z-index: 1;
    min-height: 82vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 104px 24px 56px;
    overflow: hidden;
    opacity: 0;
    animation: portalReveal 1s ease forwards 0.12s;
  }

  .hero-orbit {
    position: absolute;
    inset: 84px 0 36px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.82;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1), rgba(0,0,0,0.72) 62%, transparent 88%);
  }

  .hero-mark {
    position: absolute;
    left: 50%;
    top: 46%;
    width: clamp(260px, 32vw, 480px);
    aspect-ratio: 1/1;
    transform: translate(-50%, -50%) scale(0.96);
    background: url('../assets/hero-badge-watermark.png') center / contain no-repeat;
    opacity: 0;
    filter:
      brightness(1.8)
      drop-shadow(0 0 18px rgba(232,236,238,0.32))
      drop-shadow(0 0 64px rgba(143,216,209,0.42))
      drop-shadow(0 0 120px rgba(143,216,209,0.18));
    pointer-events: none;
    z-index: -1;
    animation: heroMarkIn 0.9s ease forwards 0.36s, heroMarkFloat 8s ease-in-out infinite 1.3s;
  }
  .hero-signal-gif {
    position: fixed;
    left: var(--signal-x, 58vw);
    top: var(--signal-y, 22vh);
    width: clamp(72px, 8vw, 132px);
    transform: translate(-38%, -46%) rotate(-8deg);
    opacity: 0.62;
    mix-blend-mode: screen;
    filter:
      grayscale(1)
      contrast(1.1)
      brightness(1.28)
      drop-shadow(0 0 22px rgba(232,236,238,0.32))
      drop-shadow(0 0 54px rgba(143,216,209,0.2));
    pointer-events: none;
    z-index: 90;
    mask-image: radial-gradient(ellipse at center, #000 0%, #000 42%, transparent 72%);
    transition: opacity 0.25s ease;
  }
  .hero::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 48%;
    width: clamp(360px, 52vw, 720px);
    aspect-ratio: 1/1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
      radial-gradient(circle, rgba(143,216,209,0.12), rgba(143,216,209,0.04) 34%, transparent 66%);
    filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    z-index: -2;
    animation: portalGlow 1.4s ease forwards 0.2s;
  }
  .floating-pfp {
    position: absolute;
    width: clamp(78px, 9vw, 132px);
    aspect-ratio: 1/1;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(232,236,238,0.14);
    background: rgba(8,10,12,0.58);
    box-shadow:
      0 24px 48px rgba(0,0,0,0.34),
      0 0 34px rgba(232,236,238,0.08),
      0 0 54px rgba(143,216,209,0.08);
    transform: translate3d(0,0,0);
    animation: pfpDrift 13s ease-in-out infinite;
  }
  .floating-pfp img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(1) contrast(1.12) brightness(1.06);
  }
  .floating-pfp::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 50% 38%, rgba(255,255,255,0.05) 0 12%, transparent 38%),
      radial-gradient(circle at 50% 42%, transparent 0 46%, rgba(0,0,0,0.18) 100%);
  }
  .floating-pfp:nth-child(1) { left: 8%; top: 18%; animation-delay: -1s; }
  .floating-pfp:nth-child(2) { right: 10%; top: 16%; animation-delay: -4s; animation-duration: 15s; }
  .floating-pfp:nth-child(3) { left: 16%; bottom: 18%; animation-delay: -7s; animation-duration: 16s; }
  .floating-pfp:nth-child(4) { right: 18%; bottom: 16%; animation-delay: -10s; animation-duration: 14s; }
  .floating-pfp:nth-child(5) { left: 50%; top: 8%; width: clamp(64px, 7vw, 104px); opacity: 0.92; animation-delay: -5s; animation-duration: 17s; }

  @keyframes pfpDrift {
    0%, 100% { transform: translate3d(0,0,0) rotate(-1deg); }
    35% { transform: translate3d(10px,-14px,0) rotate(1deg); }
    70% { transform: translate3d(-8px,10px,0) rotate(-0.5deg); }
  }
  @keyframes heroMarkIn {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.9); }
    to { opacity: 0.42; transform: translate(-50%, -50%) scale(1); }
  }
  @keyframes heroMarkFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -52%) scale(1.02); }
  }
  @keyframes portalReveal {
    from { opacity: 0; transform: translateY(16px) scale(0.985); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  }
  @keyframes portalGlow {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.76); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }

  .hero-eyebrow {
    font-family: var(--font-label);
    font-size: 12px;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
  }

  .hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
    font-size: clamp(46px, 7.6vw, 92px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
  }

  .scrap-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2px, 0.55vw, 8px);
  }
  .scrap-letter {
    position: relative;
    display: inline-grid;
    place-items: center;
    min-width: 0.82em;
    height: 1.02em;
    padding: 0 0.07em 0.04em;
    color: var(--scrap-ink, #0a0d10);
    background: var(--scrap-paper, #e8ecee);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 16px 26px rgba(0,0,0,0.34);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(var(--scrap-rotate, 0deg));
    clip-path: polygon(5% 8%, 92% 0, 100% 88%, 10% 100%, 0 28%);
    text-shadow: 0 1px 0 rgba(255,255,255,0.12);
  }
  .scrap-letter:nth-child(2n) {
    font-family: var(--font-display);
    clip-path: polygon(0 0, 88% 8%, 96% 96%, 8% 88%);
  }
  .scrap-letter:nth-child(3n) {
    font-family: var(--font-body);
    clip-path: polygon(8% 0, 100% 10%, 88% 100%, 0 92%);
  }
  .scrap-letter.dark {
    --scrap-paper: #15191d;
    --scrap-ink: #e8ecee;
  }
  .scrap-letter.soft {
    --scrap-paper: #bfc7c9;
    --scrap-ink: #07090a;
  }
  .scrap-letter.accent {
    --scrap-paper: #8fd8d1;
    --scrap-ink: #071011;
  }
  .scrap-letter.outline {
    --scrap-paper: #0b0e11;
    --scrap-ink: #dfe7e8;
    box-shadow: inset 0 0 0 0.05em rgba(232,236,238,0.55), 0 16px 26px rgba(0,0,0,0.34);
  }

  .hero-sub {
    font-size: 18px;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.65;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
  }



  .hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0 26px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.72s;
  }
  .hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .hero-stat-num {
    font-family: var(--font-chumbi-title);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
    color: var(--accent);
    text-shadow: 0 0 26px rgba(143,216,209,0.28);
  }
  .hero-stat-label {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .hero-stat-sep {
    width: 1px;
    height: 38px;
    background: linear-gradient(to bottom, transparent, rgba(143,216,209,0.34), transparent);
  }

  .scroll-hint {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
    opacity: 0; animation: fadeUp 0.8s ease forwards 1.2s;
  }
  .scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease infinite;
  }
  @keyframes scrollPulse {
    0%, 100% { opacity: 0.3; } 50% { opacity: 1; }
  }

  /* Gallery */
  .banner-section {
    position: relative;
    z-index: 1;
    padding: 0 48px 0;
    max-width: 1480px;
    margin: -42px auto -18px;
  }
  .banner-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1120px, calc(100% - 96px));
    height: 68%;
    transform: translate(-50%, -46%);
    background: radial-gradient(ellipse at center, rgba(143,216,209,0.08), rgba(0,0,0,0) 70%);
    filter: blur(28px);
    pointer-events: none;
  }
  .community-banner {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 82%, transparent 100%);
    mask-composite: intersect;
  }
  .community-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(5,6,7,0.18), rgba(5,6,7,0.08) 36%, rgba(5,6,7,0.5)),
      linear-gradient(90deg, rgba(5,6,7,0.62), transparent 16%, transparent 84%, rgba(5,6,7,0.62));
    pointer-events: none;
  }
  .community-banner img {
    display: block;
    width: 100%;
    aspect-ratio: 16/8.2;
    object-fit: cover;
    opacity: 0.9;
    filter: contrast(1.06) brightness(0.9);
  }

  .gallery-section {
    position: relative; z-index: 1;
    padding: 28px 48px 88px;
    max-width: 1400px; margin: 0 auto;
  }

  .archive-actions {
    position: relative;
    z-index: 5;
    text-align: center;
    margin-top: 8px;
    pointer-events: auto;
  }
  .archive-open {
    pointer-events: auto;
  }

  .about-section {
    position: relative; z-index: 1;
    padding: 0 48px 64px;
  }

  .story-section {
    position: relative;
    z-index: 1;
    padding: 0 48px 92px;
    max-width: 1400px;
    margin: 0 auto;
  }
  .story-head {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
  }
  .story-copy {
    font-family: var(--font-chumbi-copy);
    color: var(--muted);
    font-size: clamp(18px, 1.8vw, 23px);
    line-height: 1.58;
    max-width: 720px;
    margin: 0 auto;
    letter-spacing: 0.01em;
  }
  .story-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 18px;
    align-items: stretch;
  }
  .story-grid::after {
    content: '';
    position: absolute;
    inset: 4% 2% -3%;
    background: radial-gradient(ellipse at center, rgba(143,216,209,0.06), transparent 68%);
    filter: blur(32px);
    pointer-events: none;
    z-index: -1;
  }
  .story-grid::before {
    content: '';
    position: absolute;
    left: 24px;
    top: -12px;
    bottom: -12px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(143,216,209,0.32), transparent);
    opacity: 0.7;
  }
  .story-frame {
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    min-height: 320px;
    box-shadow: none;
    mask-image: none;
  }
  .story-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: contrast(1.05) brightness(0.92);
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
    mask-composite: intersect;
  }
  .story-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at center, transparent 36%, rgba(5,6,7,0.18) 66%, rgba(5,6,7,0.78) 100%);
    pointer-events: none;
  }
  .story-frame.small img {
    aspect-ratio: 1/1;
  }
  .story-frame:nth-child(3) {
    grid-column: 1 / -1;
  }
  .story-frame:nth-child(3) img {
    aspect-ratio: 16/7;
  }
  .story-caption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 1;
    font-family: var(--font-chumbi-title);
    font-size: 14px;
    letter-spacing: 0.02em;
    color: rgba(226,232,240,0.72);
    text-transform: uppercase;
  }
  .about-inner {
    max-width: 920px; margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 48px;
    text-align: center;
  }
  .about-copy {
    font-family: var(--font-chumbi-copy);
    color: var(--muted);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.55;
    max-width: 980px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: center;
  }
  .about-copy strong { color: var(--text); font-weight: 700; }
  .about-section .section-tag {
    display: none;
  }
  .about-section .section-title {
    font-family: var(--font-chumbi-title);
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1;
    letter-spacing: 0.01em;
    -webkit-text-stroke: 0;
    text-shadow: 0 10px 28px rgba(0,0,0,0.5);
    transform: none;
    margin-bottom: 24px;
  }

  .section-header {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 28px;
    text-align: center;
  }
  .section-header > div {
    width: min(100%, 720px);
  }

  .section-tag {
    display: inline-block;
    font-family: var(--font-chumbi-title);
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 800;
    transform: rotate(-1deg);
    text-shadow: 0 0 18px rgba(143,216,209,0.18);
  }
  .section-title {
    font-family: var(--font-chumbi-title);
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1;
    color: #f4fbfb;
    -webkit-text-stroke: 0;
    paint-order: stroke fill;
    text-shadow:
      0 1px 0 #050607,
      0 12px 28px rgba(0,0,0,0.42);
    transform: none;
    transform-origin: left center;
  }
  .section-copy {
    font-family: var(--font-chumbi-copy);
    color: var(--muted);
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.58;
    max-width: 620px;
    margin: 16px auto 0;
    text-align: center;
    letter-spacing: 0.01em;
  }



  /* ---- Community Events CTA (blended full-bleed) ---- */
  .events-cta-section {
    width: 100%;
    margin: 56px 0 40px;
    padding: 0;
    display: block;
  }
  .events-cta-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 120px 24px 116px;
    border-radius: 0;
    text-align: center;
    overflow: hidden;
    background:
      linear-gradient(180deg, rgba(7,9,10,0.62) 0%, rgba(7,9,10,0.22) 28%, rgba(7,9,10,0.16) 60%, rgba(3,5,6,0.70) 100%),
      url('../assets/community-cta-bg.jpg') center / cover no-repeat;
    border: none;
    box-shadow: none;
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
            mask-image:
      linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
  }
  .events-cta-card .section-tag,
  .events-cta-card .section-title,
  .events-cta-card .section-copy,
  .events-cta-card .submit-event-btn {
    position: relative;
    z-index: 1;
  }
  .events-cta-card .section-tag { transform: rotate(-1.5deg); }
  .events-cta-card .section-title { margin-top: 6px; }
  .events-cta-card .section-copy { margin: 16px auto 0; }
  .events-cta-card .submit-event-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 16px 34px;
    font-family: var(--font-chumbi-title);
    font-size: 16px;
    letter-spacing: 0.03em;
    color: var(--accent);
    background: transparent;
    border: none;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: none;
    transition: transform .2s var(--ease), color .2s ease, text-shadow .2s ease;
  }
  .events-cta-card .submit-event-btn:hover {
    transform: translateY(-4px);
    color: #bff3ee;
    text-shadow: 0 0 14px rgba(143,216,209,0.6);
  }

  /* ---- Request a PFP section (no box, blends fully into page) ---- */
  .pfp-request-section {
    width: 100%;
    margin: 12px 0 56px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
  }
  .pfp-request-card {
    position: relative;
    width: 100%;
    max-width: 860px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 22px;
    text-align: left;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .pfp-request-text { flex: 1 1 auto; min-width: 0; }
  .pfp-request-card .section-tag { transform: rotate(-1.5deg); font-size: 11px; margin: 0; }
  .pfp-request-card .section-title { margin: 2px 0 0; font-size: clamp(18px, 3.2vw, 22px); }
  .pfp-request-card .section-copy { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
  .request-pfp-btn {
    flex: 0 0 auto;
    display: inline-block;
    margin-top: 0;
    padding: 12px 24px;
    font-family: var(--font-chumbi-title);
    font-size: 14px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    color: #04181a;
    background: var(--accent-grad);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(143,216,209,0.28), inset 0 1px 0 rgba(255,255,255,0.22);
    transition: transform .2s var(--ease), box-shadow .2s ease, filter .2s ease;
  }
  .request-pfp-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.06) saturate(1.05);
    box-shadow: 0 18px 38px rgba(143,216,209,0.45), inset 0 1px 0 rgba(255,255,255,0.28);
  }
  /* smooth fade/slide when section enters viewport (CSS scroll-driven, no JS) */
  @supports (animation-timeline: view()) {
    .pfp-request-card {
      animation: pfpRequestReveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 32%;
    }
    @keyframes pfpRequestReveal {
      from { opacity: 0; transform: translateY(24px) scale(0.99); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }
  }

  /* NFT Grid */
  .nft-grid {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 18px 4px 28px;
    animation: collectionMarquee 120s linear infinite;
    will-change: transform;
    transition: animation-play-state 0.3s ease;
  }
  .nft-grid::-webkit-scrollbar {
    display: none;
  }

  .collection-carousel {
    position: relative;
    overflow: hidden;
  }
  .collection-carousel::before,
  .collection-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 18px;
    width: 90px;
    z-index: 2;
    pointer-events: none;
  }
  .collection-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
  }
  .collection-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg), transparent);
  }
  .carousel-btn {
    display: none;
    position: absolute;
    top: 44%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(232,236,238,0.14);
    border-radius: 50%;
    background: rgba(5,6,7,0.72);
    color: var(--text);
    place-items: center;
    place-items: center;
    cursor: pointer;
    font-family: var(--font-chumbi-title);
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 18px 42px rgba(0,0,0,0.38), 0 0 24px rgba(143,216,209,0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  .carousel-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(143,216,209,0.38);
    color: var(--accent);
  }
  .carousel-btn:disabled {
    opacity: 0.32;
    cursor: default;
    transform: none;
  }
  .carousel-btn.prev { left: -12px; }
  .carousel-btn.next { right: -12px; }

  .nft-card {
    flex: 0 0 clamp(248px, 22vw, 296px);
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background:
      linear-gradient(var(--bg2), var(--bg2)) padding-box,
      linear-gradient(150deg, rgba(143,216,209,0.42), rgba(143,216,209,0.04) 38%, rgba(169,181,189,0.16) 70%, rgba(143,216,209,0.30)) border-box;
    border: 1px solid transparent;
    box-shadow: var(--shadow-card);
    transition: transform 0.32s var(--ease), box-shadow 0.3s ease, filter 0.3s ease;
    transform: translateZ(0);
    isolation: isolate;
  }
  .nft-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 48%, transparent 66%);
    background-size: 220% 220%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
  }
  .nft-card:hover::before { animation: cardShimmer 1.6s ease forwards; opacity: 1; }
  @keyframes cardShimmer {
    from { background-position: 160% 0; }
    to { background-position: -60% 0; }
  }
  @keyframes collectionMarquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-50% - 8px), 0, 0); }
  }
  .collection-carousel:hover .nft-grid,
  .collection-carousel:focus-within .nft-grid {
    animation-play-state: paused;
  }

  /* Prevent text selection on mobile taps */
  .nft-card, .nft-card * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  .nft-card:hover {
    transform: translateY(-12px) scale(1.028);
    box-shadow:
      0 34px 80px rgba(0,0,0,0.54),
      0 0 40px rgba(143,216,209,0.16),
      inset 0 0 0 1px rgba(255,255,255,0.06);
    filter: saturate(1.06);
    z-index: 4;
  }
  .nft-card:active {
    transform: translateY(-5px) scale(0.992);
    box-shadow:
      0 18px 42px rgba(0,0,0,0.42),
      0 0 20px rgba(143,216,209,0.1);
  }
  .nft-card:hover .card-overlay { opacity: 1; }

  /* Scroll-reveal for archive cards */
  .archive-grid .nft-card {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(.2,.8,.2,1);
  }
  .archive-grid .nft-card.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  /* keep hover lift working even after reveal */
  .archive-grid .nft-card.in-view:hover {
    transform: translateY(-10px) scale(1.025);
  }

  .card-img-wrap {
    position: relative; aspect-ratio: 4/5; overflow: hidden;
    background: var(--bg3);
  }
  .card-img-wrap img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.25s ease;
  }
  .nft-card:hover .card-img-wrap img { transform: scale(1.035); filter: brightness(1.08); }

  .nft-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 64px;
  }

  .card-overlay {
    position: absolute; inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(5,6,7,0.72), transparent 58%);
    opacity: 0; transition: opacity 0.3s;
    display: flex; align-items: flex-end; padding: 12px;
  }
  .view-btn {
    font-family: var(--font-label); font-size: 11px;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
    background: rgba(5,6,7,0.76); border: 1px solid rgba(232,236,238,0.18);
    padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(10px);
  }

  .card-rarity {
    position: absolute; top: 12px; right: 12px;
    font-family: var(--font-label); font-size: 10px;
    letter-spacing: 0.04em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 100px; backdrop-filter: blur(10px);
  }
  .card-id {
    position: absolute; top: 12px; left: 12px;
    z-index: 3;
    font-family: var(--font-label); font-size: 10px; color: var(--muted);
    background: rgba(5,6,7,0.68); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(10px);
  }

  .rarity-common { background: rgba(100,116,139,0.8); color: #CBD5E1; border: 1px solid rgba(100,116,139,0.5); }
  .rarity-rare { background: rgba(99,102,241,0.8); color: #C7D2FE; border: 1px solid rgba(99,102,241,0.5); }
  .rarity-epic { background: rgba(168,85,247,0.8); color: #E9D5FF; border: 1px solid rgba(168,85,247,0.5); }
  .rarity-legendary { background: rgba(245,158,11,0.8); color: #FEF3C7; border: 1px solid rgba(245,158,11,0.5); }

  .card-body {
    position: relative;
    overflow: hidden;
    min-height: 92px;
    padding: 14px 14px 15px;
  }
  .card-body::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    background:
      linear-gradient(90deg, rgba(8,10,12,0.76) 0%, rgba(8,10,12,0.42) 48%, rgba(8,10,12,0.18) 100%),
      linear-gradient(to top, rgba(8,10,12,0.42), rgba(8,10,12,0.04)),
      url('../assets/pfp-watermark-logo.png') right -28px center / 150px auto no-repeat,
      url('../assets/card-panel-bg.png') center / cover no-repeat;
    opacity: 0.9;
    filter: brightness(1.04) contrast(1.01);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.35s ease, filter 0.25s ease;
  }
  .card-body::before {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 44px;
    z-index: 1;
    background: linear-gradient(to top, rgba(143,216,209,0.08), transparent);
    pointer-events: none;
  }
  .nft-card:hover .card-body::after {
    opacity: 0.95;
    transform: scale(1.04);
    filter: brightness(1.1) contrast(1.02);
  }
  .card-topline {
    position: relative;
    z-index: 1;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px;
  }
  .card-topline > div:first-child {
    min-width: 0;
  }
  .card-name { font-family: var(--font-chumbi-title); font-weight: 400; font-size: 21px; line-height: 1.05; letter-spacing: 0.01em; }
  .card-handle { font-family: var(--font-chumbi-copy); color: var(--muted); font-size: 15px; line-height: 1.35; margin-top: 3px; }
  .card-role {
    display: inline-flex; align-items: center; gap: 7px;
    color: var(--text); font-size: 12px; font-weight: 700;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(232,236,238,0.06);
    border: 1px solid rgba(232,236,238,0.1);
    white-space: nowrap;
    flex: 0 0 auto;
    max-width: 100%;
  }
  .card-role span {
    display: inline-block;
    white-space: nowrap;
  }
  .card-role .trait-icon { width: 20px; height: 20px; flex-basis: 20px; }
  .card-traits { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
  .trait-pill {
    font-size: 11px; padding: 3px 10px; border-radius: 100px;
    background: rgba(232,236,238,0.055); border: 1px solid rgba(232,236,238,0.1);
    color: var(--muted); letter-spacing: 0;
  }
  .trait-pill.has-icon {
    display: inline-flex; align-items: center; gap: 5px;
  }
  .trait-icon {
    width: 18px; height: 18px; object-fit: contain; flex: 0 0 18px;
  }

  .archive-actions {
    display: flex;
    justify-content: center;
    margin: 26px 0 0;
  }
  .archive-open {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-chumbi-title);
    font-size: 17px;
    letter-spacing: 0.01em;
    padding: 8px 0;
    cursor: pointer;
    box-shadow: none;
    text-shadow: 0 0 18px rgba(143,216,209,0.18);
    transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
  }
  .archive-open:hover {
    transform: translateY(-1px);
    color: var(--text);
    text-shadow: 0 0 24px rgba(143,216,209,0.38);
  }

  .archive-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 250;
    background:
      radial-gradient(900px 460px at 50% 4%, rgba(143,216,209,0.08), transparent 62%),
      rgba(3,5,6,0.72);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    backdrop-filter: blur(20px) saturate(120%);
    overflow-y: auto;
    padding: 88px 32px 46px;
    box-sizing: border-box;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* Pause the background marquee while archive/modal is open to avoid
     GPU/scroll hang on mobile WebViews (Safari/Chrome iOS). */
  body.archive-open-active .nft-grid,
  body.modal-open-active .nft-grid {
    animation-play-state: paused;
  }
  .archive-overlay.open {
    display: block;
  }
  .archive-panel {
    max-width: 1320px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 34px;
    box-shadow: var(--shadow-float);
  }
  .archive-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
  }
  .archive-kicker {
    font-family: var(--font-chumbi-title);
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 8px;
  }
  .archive-title {
    font-family: var(--font-chumbi-title);
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1;
    color: var(--text);
    text-shadow: 0 12px 28px rgba(0,0,0,0.45);
  }
  .archive-count {
    font-family: var(--font-chumbi-copy);
    color: var(--muted);
    font-size: 18px;
    margin-top: 8px;
  }
  .archive-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--text);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 1px 0 var(--glass-hi);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .archive-close:hover {
    transform: rotate(90deg);
    color: var(--accent);
    border-color: rgba(143,216,209,0.4);
  }
  .archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
  }
  .archive-filter {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--glass);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--muted);
    font-family: var(--font-chumbi-title);
    font-size: 14px;
    padding: 9px 15px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .archive-filter:hover { color: var(--text); transform: translateY(-1px); border-color: rgba(143,216,209,0.3); }
  .archive-filter.active {
    color: #04201d;
    border-color: transparent;
    background: var(--accent-grad);
    box-shadow: 0 8px 22px rgba(143,216,209,0.28);
  }
  .archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    /* Ensure content takes full height */
    align-items: start;
    min-height: 0; /* Important for grid in scroll container */
  }
  .archive-grid .nft-card {
    flex-basis: auto;
    /* Ensure cards maintain aspect ratio */
    height: 100%;
  }

  /* Modal */
  .modal-overlay {
    display: flex; position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    z-index: 1000; align-items: center; justify-content: center; padding: 24px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
  }
  .modal-overlay.open { opacity: 1; visibility: visible; }

  .modal {
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    backdrop-filter: blur(20px) saturate(130%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid; grid-template-columns: 1fr 1fr;
    position: relative;
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    box-shadow: var(--shadow-float);
    transition: transform 0.36s var(--ease), opacity 0.32s ease;
  }
  .modal-overlay.open .modal { transform: translateY(0) scale(1); opacity: 1; }

  .modal-img {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) - 1px) 0 0 calc(var(--radius-lg) - 1px);
    background: var(--bg3);
  }
  .modal-img img, .modal-img .nft-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    font-size: 80px;
  }

  .modal-info {
    position: relative;
    overflow: hidden;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--glass-strong);
  }
  .modal-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(8,10,12,0.66), rgba(8,10,12,0.34) 48%, rgba(8,10,12,0.18)),
      linear-gradient(to top, rgba(8,10,12,0.38), rgba(8,10,12,0.04)),
      url('../assets/modal-panel-bg.png') center / cover no-repeat;
    filter: brightness(1.28) contrast(1.08);
    opacity: 0.92;
    pointer-events: none;
    z-index: 0;
  }
  .modal-info::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 56%, rgba(143,216,209,0.08), transparent 34%);
    pointer-events: none;
    z-index: 0;
  }
  .modal-info > * {
    position: relative;
    z-index: 1;
  }

  .modal-close {
    position: absolute; top: 18px; right: 18px;
    background: var(--glass); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: var(--text); width: 38px; height: 38px;
    border-radius: 50%; cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 0 var(--glass-hi);
    transition: all 0.2s ease; z-index: 3;
  }
  .modal-close:hover { color: var(--accent); border-color: rgba(143,216,209,0.5); transform: rotate(90deg); }

  .modal-id { font-family: var(--font-label); font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0; }
  .modal-name { font-size: 30px; font-weight: 700; letter-spacing: 0; line-height: 1.15; }

  .trait-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .trait-box {
    background: rgba(232,236,238,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 14px; padding: 11px 14px;
    box-shadow: inset 0 1px 0 var(--glass-hi);
  }
  .trait-type { font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; font-weight: 700; }
  .trait-val { font-size: 15px; font-weight: 700; line-height: 1.25; }
  .trait-val.has-icon { display: flex; align-items: center; gap: 8px; }
  .trait-val .trait-icon { width: 26px; height: 26px; flex-basis: 26px; }

  .modal-desc {
    font-family: var(--font-chumbi-copy);
    font-size: 19px;
    color: var(--muted);
    line-height: 1.55;
    letter-spacing: 0.01em;
  }

  footer {
    position: relative; z-index: 1;
    text-align: center; padding: 34px 48px;
    border-top: 0;
    color: var(--muted);
    font-family: var(--font-chumbi-copy);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.01em;
  }
  footer span {
    color: var(--accent);
    font-family: var(--font-chumbi-title);
    font-size: 18px;
    letter-spacing: 0.01em;
  }
  .footer-socials {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
  }
  .footer-socials a {
    color: var(--muted);
    font-family: var(--font-chumbi-title);
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
  }
  .footer-socials a:hover {
    color: var(--accent);
    text-shadow: 0 0 18px rgba(143,216,209,0.32);
  }

  .sound-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 180;
    width: 46px;
    height: 46px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: var(--glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--accent);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-float), inset 0 1px 0 var(--glass-hi);
    text-shadow: 0 0 18px rgba(143,216,209,0.28);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .sound-toggle:hover {
    transform: translateY(-2px);
    color: var(--text);
    border-color: rgba(143,216,209,0.5);
    box-shadow: 0 12px 30px rgba(143,216,209,0.4), inset 0 1px 0 var(--glass-hi);
  }
  .sound-toggle::before {
    content: '🔈';
    font-family: system-ui, sans-serif;
    font-size: 24px;
    line-height: 1;
  }
  .sound-toggle.is-playing::before {
    content: '🔊';
  }

  /* ---- Scroll reveal (Design System v2) — safe: never hides content ---- */
  .reveal { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); will-change: opacity, transform; }
  .reveal:not(.in-view) { opacity: 0.001; transform: translateY(18px); }
  .reveal.in-view { opacity: 1; transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) {
    .reveal, .reveal:not(.in-view) { opacity: 1 !important; transform: none !important; transition: none; }
    .nft-card::before, .atmosphere, .hero-mark, .floating-pfp { animation: none !important; }
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ---- Cross-page smooth transition (Design System v2) ---- */
  .page-fade {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #050607 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }
  .page-fade.is-active { opacity: 1; pointer-events: all; }
  body.is-leaving { opacity: 0; transition: opacity 0.2s ease; }
  @media (prefers-reduced-motion: reduce) {
    .page-fade, body.is-leaving { transition: none; }
  }

  @media (max-width: 768px) {
    nav { top: 14px; width: calc(100% - 28px); }
    .nav-links { display: none; }
    .hero { min-height: 76vh; padding: 92px 20px 48px; }
    .hero-mark { width: min(78vw, 320px); }
    .hero-signal-gif { display: none; }
    .hero-title { font-size: clamp(38px, 11vw, 58px); }
    .scrap-line { gap: 3px; }
    .hero-orbit { opacity: 0.68; inset: 78px 0 42px; }
    .floating-pfp { width: 72px; border-radius: 14px; }
    .floating-pfp:nth-child(5) { display: none; }
    .banner-section { padding: 0 16px 0; margin: 8px auto 4px; }
    .banner-section::before { width: calc(100% - 32px); }
    .community-banner {
      border-radius: 0;
      -webkit-mask-image:
        linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 8%, #000 82%, transparent 100%);
      -webkit-mask-composite: source-in;
      mask-image:
        linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 8%, #000 82%, transparent 100%);
      mask-composite: intersect;
    }
    .community-banner img { aspect-ratio: 16/10; }
    .gallery-section { padding: 28px 18px 56px; }
    .story-section { padding: 0 18px 60px; }
    .story-grid { grid-template-columns: 1fr; }
    .story-grid::before { left: 17px; }
    .story-frame:nth-child(3) { grid-column: auto; }
    .story-frame:nth-child(3) img { aspect-ratio: 16/10; }
    .story-copy { font-size: 16px; }
    .about-section { padding: 0 18px 56px; }
    .about-copy { font-size: 16px; line-height: 1.6; }
    .section-title { font-size: clamp(30px, 9vw, 42px); -webkit-text-stroke-width: 0; }
    .section-header { flex-direction: column; align-items: center; gap: 20px; }
    .collection-carousel::before,
    .collection-carousel::after { width: 28px; }
    .nft-grid { padding-inline: 0; animation: none; will-change: auto; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 12px; }
    /* Smaller, rounded, glowing cards on mobile so a few show at once */
    .nft-grid .nft-card {
      pointer-events: none;
      flex: 0 0 148px;
      border-radius: 16px;
      border: 1px solid rgba(143,216,209,0.16);
      box-shadow: 0 10px 26px rgba(0,0,0,0.34), 0 0 18px rgba(143,216,209,0.10);
    }
    .nft-grid .nft-card .card-frame { border-radius: 14px; }
    /* Scale card text down so it fits the smaller mobile cards */
    .nft-grid .nft-card .card-name { font-size: 15px; line-height: 1.1; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .nft-grid .nft-card .card-handle { font-size: 12px; margin-top: 2px; }
    .nft-grid .nft-card .card-role { font-size: 10px; flex-shrink: 0; }
    .nft-grid .nft-card .card-topline { margin-bottom: 6px; gap: 4px; flex-direction: column; align-items: flex-start; }
    /* Slightly tighter body text on mobile */
    .hero-sub { font-size: 15px; line-height: 1.55; margin-bottom: 22px; }
    .section-tag { font-size: 13px; }
    .archive-overlay { padding: 132px 16px 28px; }
    .archive-head { align-items: flex-start; }
    .archive-title { font-size: clamp(34px, 12vw, 48px); }
    .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; min-height: 0; }
    /* Smaller card text inside the archive grid on mobile */
    .archive-grid .nft-card .card-name { font-size: 15px; line-height: 1.1; }
    .archive-grid .nft-card .card-handle { font-size: 12px; margin-top: 2px; }
    .archive-grid .nft-card .card-role { font-size: 10px; }
    .archive-grid .nft-card .card-topline { margin-bottom: 6px; gap: 4px; flex-direction: column; align-items: flex-start; }
    .archive-grid .nft-card .card-name { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .archive-grid .nft-card .card-role { flex-shrink: 0; }
    .modal { grid-template-columns: 1fr; border-radius: 20px; max-height: 92vh; }
    .modal-overlay { padding: 16px; }
    .modal-img { border-radius: 20px 20px 0 0; aspect-ratio: 1/1; }
    .modal-info { padding: 22px 20px 26px; gap: 14px; }
    .modal-id { font-size: 11px; margin-bottom: 4px; }
    .modal-name { font-size: 22px; line-height: 1.2; }
    .modal-desc { font-size: 15px; line-height: 1.55; }
    .trait-grid { gap: 8px; }
    .trait-box { padding: 9px 12px; border-radius: 10px; }
    .trait-val { font-size: 13px; }
    .trait-type { font-size: 9px; }
    .hero-stats { gap: 24px; }
    .pfp-request-card { flex-direction: column; align-items: stretch; gap: 14px; padding: 22px 20px; border-radius: 14px; text-align: center; }
    .pfp-request-icon { margin: 0 auto; }
    .pfp-request-text { text-align: center; }
    .pfp-request-card .section-copy { font-size: 13px; }
    .request-pfp-btn { width: 100%; box-sizing: border-box; padding: 13px 20px; font-size: 14px; }
  }