/* =====================================================================
   Sgt. Pepe World — Main site (v2, approved design)
   ===================================================================== */
@import url('colors_and_type.css');

/* Reset + base */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bone); color: var(--burgundy-ink); }
body {
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

:root {
  --font-display: 'Work Sans', system-ui, sans-serif;
  --burgundy-deep: #2a1416;
  --orange-lfg: #c25a2c;
  --green-head: #3f5d2c;
  --gold-light: #e1c47e;
}

/* Headline reset to use display font */
h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.8;
  margin: 0;
  font-weight: 900;
}

/* Generic section */
.section {
  position: relative;
  padding: clamp(80px, 11vw, 160px) clamp(20px, 4vw, 64px);
}
.wrap { max-width: 1320px; margin: 0 auto; }
.wrap-md { max-width: 1080px; margin: 0 auto; }
.wrap-tight { max-width: 760px; margin: 0 auto; }

/* Dotbg overlay using real asset */
.dotbg {
  position: relative;
}
.dotbg::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url('../assets/dotbg.png');
  background-repeat: repeat;
  background-size: 320px auto;
  opacity: 0.52;
  mix-blend-mode: multiply;
  z-index: 0;
}
.dotbg.on-dark::before { mix-blend-mode: screen; opacity: 0.18; }
.dotbg > * { position: relative; z-index: 1; }

/* Eyebrow */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-lfg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Buttons — outlined pill (matches approved design) */
.btn {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding: 13px 24px;
  border-radius: 999px;
  border: 3.5px solid var(--burgundy);
  background: transparent;
  color: var(--burgundy);
  box-shadow: 4px 4px 0 0 var(--burgundy);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 0 var(--burgundy); background: var(--burgundy); color: var(--bone); }
.btn.on-dark { border-color: var(--bone); background: transparent; color: var(--bone); box-shadow: 4px 4px 0 0 var(--bone); }
.btn.on-dark:hover { background: var(--bone); color: var(--burgundy); box-shadow: 6px 6px 0 0 var(--bone); }
.btn.on-gold { border-color: var(--burgundy); background: var(--gold); color: var(--burgundy); }
.btn.on-purple { border-color: var(--bone); background: transparent; color: var(--bone); box-shadow: 4px 4px 0 0 var(--bone); }
.btn.on-purple:hover { background: var(--bone); box-shadow: 6px 6px 0 0 var(--bone); color: var(--purple); }

/* ---------------------------------------------------------------- NAV */
.nav {
  position: fixed; top: 16px; left: 24px; right: 24px;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.nav .mark {
  display: flex; align-items: center;
  text-decoration: none;
  transition: transform 200ms;
}
.nav .mark:hover { transform: scale(1.04); }
.nav .mark img {
  height: 58px; width: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}
.nav .links-wrap {
  display: flex; justify-content: center;
}
.nav .links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(243,227,201,0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 2px solid var(--burgundy);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px -10px rgba(33,16,15,0.25);
}
.nav .link {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--burgundy);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: capitalize;
  transition: color 180ms, background 180ms;
  white-space: nowrap;
}
.nav .link:hover { color: var(--orange-lfg); }
.nav .link.active { background: var(--burgundy); color: var(--bone); }
.nav .icons { display: flex; gap: 10px; }
.nav .icon-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--burgundy-deep);
  display: grid; place-items: center;
  color: var(--bone);
  font-size: 18px;
  text-decoration: none;
  transition: transform 200ms, background 200ms;
  border: 2px solid var(--burgundy-deep);
}
.nav .icon-btn svg { width: 20px; height: 20px; fill: var(--bone); }
.nav .icon-btn:hover { transform: scale(1.05); background: var(--orange-lfg); border-color: var(--orange-lfg); }

@media (max-width: 1100px) {
  .nav .link { padding: 8px 12px; font-size: 12px; }
  .nav .mark img { height: 52px; }
}
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .nav { top: 14px; left: 14px; right: 14px; justify-content: flex-end; }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    border: 3px solid var(--burgundy);
    background: var(--bone);
    box-shadow: 4px 4px 0 0 var(--burgundy);
    pointer-events: auto;
    z-index: 102;
    overflow: hidden;
  }
  .menu-toggle img { width: 40px; height: 40px; object-fit: contain; transition: transform 220ms var(--ease-out); }
  .nav.menu-open .menu-toggle img { transform: rotate(90deg) scale(0.92); }
  .nav-shell {
    position: fixed;
    top: 14px;
    right: 14px;
    width: min(370px, calc(100vw - 28px));
    padding: 82px 20px 22px;
    border: 3px solid var(--burgundy);
    border-radius: 16px;
    background: var(--bone);
    box-shadow: 8px 8px 0 0 var(--burgundy);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.96);
    transform-origin: top right;
    transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), visibility 240ms;
  }
  .nav.menu-open .nav-shell { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
  .nav .mark { justify-content: center; }
  .nav .links-wrap, .nav .links { display: flex; }
  .nav .links { flex-direction: column; border-radius: 12px; background: var(--bone); border: 0; box-shadow: none; padding: 0; }
  .nav .mark img { height: 68px; }
  .nav .link { text-align: center; font-size: 17px; padding: 13px; }
  .nav .icon-btn { width: 53px; height: 53px; }
  .nav .icon-btn svg { width: 23px; height: 23px; }
  .nav .icons { justify-content: center; }
}

/* ---------------------------------------------------------------- HERO */
.hero {
  min-height: 100vh;
  display: grid; place-items: center;
  position: relative;
  overflow: visible;
  padding: 140px 24px 100px;
  background: #debd79;
  z-index: 3;
}
.hero-clouds {
  position: absolute; inset: 0 0 -18vh; pointer-events: none; z-index: 8;
  overflow: visible;
}
.hero-cloud {
  position: absolute;
  will-change: transform;
  animation: cloud-drift 8s ease-in-out infinite alternate;
}
.hero-cloud:nth-child(even) { animation-duration: 6s; animation-direction: alternate-reverse; }
.hero-cloud img { width: 100%; height: auto; opacity: 0.92; }
@keyframes cloud-drift { from { translate: -2vw 0; } to { translate: 3vw 0; } }
.hero-inner {
  position: relative; z-index: 6;
  text-align: center;
  max-width: 1280px;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 34px);
}
.hero-title-img { width: 578px; max-width: 82vw; filter: drop-shadow(3px 4px 0 rgba(52,26,29,0.14)); }
.hero-lfg-img { width: 108px; max-width: 30vw; filter: drop-shadow(3px 4px 0 rgba(52,26,29,0.16)); }
.hero-down {
  position: absolute;
  top: calc(50% + min(22vw, 210px)); left: 50%; transform: translateX(-50%);
  z-index: 9;
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 16px solid var(--purple);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* distressed grain over hero */
.hero::after { content: none; }

/* ---------------------------------------------------------------- INTRO (Sgt Pepe pilot reveal) */
.intro {
  background: linear-gradient(180deg, #c89f55 0%, #d6b369 100%);
  position: relative;
  padding: 0;
  overflow: hidden;
  z-index: 1;
}
.intro .pilot-wrap {
  position: relative;
  width: 100%;
  max-height: 110vh;
  overflow: hidden;
}
.intro .pilot-wrap img {
  width: 100%; height: auto;
  display: block;
}
/* Side gradient masks per brief */
.intro .pilot-wrap::before, .intro .pilot-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  width: 22%;
  pointer-events: none; z-index: 3;
}
.intro .pilot-wrap::before { left: 0; background: linear-gradient(90deg, #debd79 0%, rgba(222,189,121,0) 100%); }
.intro .pilot-wrap::after  { right: 0; background: linear-gradient(270deg, #debd79 0%, rgba(222,189,121,0) 100%); }

/* ---------------------------------------------------------------- WORDMARK / VIDEO TRANSITION */
.wordmark {
  position: relative;
  min-height: 100vh;
  background: var(--burgundy-deep);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
  display: grid; place-items: center;
  padding: 100px 24px;
}
.wordmark video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
  opacity: 0.65;
}
.wordmark .overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(33,16,15,0.4) 0%, rgba(33,16,15,0.85) 100%),
    linear-gradient(180deg, rgba(33,16,15,0.4), rgba(33,16,15,0.7));
}
.wordmark-inner {
  position: relative; z-index: 4;
  text-align: center;
  max-width: 1280px;
  display: flex; flex-direction: column; align-items: center;
}
.wordmark-inner .logo {
  max-width: min(820px, 80vw);
  width: 100%;
  filter: drop-shadow(0 12px 36px rgba(0,0,0,0.55));
}
.wordmark-inner .sub {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: 0.08em;
  text-transform: capitalize;
  color: var(--bone);
}
.wordmark-inner .desc {
  margin: 36px auto 0;
  max-width: 60ch;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.61vw, 20px);
  line-height: 1.55;
  color: rgba(243,227,201,0.85);
}

/* ---------------------------------------------------------------- IDEA */
.idea-sec {
  background: var(--bone-warm);
  position: relative;
  padding: clamp(120px, 14vw, 200px) clamp(24px, 4vw, 64px);
  overflow: hidden;
}
.idea-sec.dotbg::before {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.30;
}
.idea-sec .copy {
  max-width: 720px; margin: 0 auto; text-align: center;
  position: relative; z-index: 5;
}
.idea-sec h2 {
  font-size: clamp(44px, 6vw, 60px);
  color: var(--green-head);
  font-weight: 900;
  margin: 14px 0 8px;
  letter-spacing: -0.04em;
  line-height: 0.8;
}
.idea-sec h2 + .rule {
  width: 70%; height: 2px; margin: 0 auto 30px;
  background: var(--burgundy);
}
.idea-sec .copy p {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(17px, 1.61vw, 21px);
  line-height: 1.25;
  color: var(--burgundy-ink);
  margin: 0 auto 22px;
  max-width: 48ch;
}
.idea-sec .copy p .hl {
  background: linear-gradient(transparent 55%, rgba(122,182,74,0.45) 55%);
  padding: 0 3px;
}
.idea-sec .ctas { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.idea-chars {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
}
.idea-char {
  position: absolute;
  min-width: 120px;
  max-width: 200px;
  width: clamp(100px, 12vw, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  transition: transform .35s var(--ease-out);
  will-change: transform;
}
.idea-char img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.idea-char:hover { transform: scale(1.08) rotate(-3deg); }

@keyframes float-a { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes float-b { 0%,100% { translate: 0 0; } 50% { translate: 0 14px; } }
@keyframes float-c { 0%,100% { translate: 0 0; } 50% { translate: 5px -10px; } }
.idea-char.f-a { animation: float-a 5s ease-in-out infinite; }
.idea-char.f-b { animation: float-b 6.5s ease-in-out infinite; }
.idea-char.f-c { animation: float-c 7.2s ease-in-out infinite; }

/* ---------------------------------------------------------------- ORIGINS */
.origins {
  position: relative;
  min-height: auto;
  background: var(--burgundy-deep);
  color: var(--bone);
  padding: clamp(80px, 9vw, 130px) clamp(24px, 4vw, 64px);
  overflow: hidden;
  isolation: isolate;
}
.origins video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0; opacity: 0.65;
}
.origins::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,16,15,0.5) 0%, rgba(33,16,15,0.75) 100%);
  z-index: 1; pointer-events: none;
}
.origins .origins-inner {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(40px, 6vw, 96px);
  max-width: 1340px; margin: 0 auto;
  align-items: center;
}
.origins .arsonic {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 540px;
  margin: 0 auto;
  will-change: transform;
}
.origins .arsonic img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 48px rgba(0,0,0,0.5));
  transition: transform 300ms var(--ease-out);
  animation: arsonic-float 3.8s ease-in-out infinite;
}
@keyframes arsonic-float { 0%,100% { translate: 0 0; rotate: -1deg; } 50% { translate: 0 -26px; rotate: 2deg; } }
.origins .copy h2 {
  color: var(--bone);
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 900;
  margin: 0 0 28px;
}
.origins .copy p {
  color: var(--bone);
  font-size: clamp(17px, 1.61vw, 21px);
  line-height: 1.25;
  max-width: 50ch;
  margin: 0 0 18px;
  font-weight: 400;
}

.origins-works {
  position: relative; z-index: 4;
  margin: clamp(32px, 4vw, 56px) 0 0;
  max-width: 720px;
}
.works-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px 16px;
}
.work {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  cursor: pointer;
  text-decoration: none;
}
.work .circle {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bone);
  box-shadow: 0 8px 28px -8px rgba(0,0,0,0.45);
  overflow: hidden;
  display: grid; place-items: center;
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.work:hover .circle {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 12px 36px -6px rgba(0,0,0,0.45),
    0 0 0 4px rgba(243,227,201,0.18),
    0 0 30px -4px rgba(222,189,121,0.55);
}
.work .circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter .35s var(--ease-out), opacity .35s var(--ease-out);
}
.work:hover .circle img { filter: grayscale(0); }
.work .label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  text-align: center;
  line-height: 1.2;
  max-width: 14ch;
}

/* ---------------------------------------------------------------- TIMELINE summary */
.timeline-sec {
  background: var(--tactical);
  color: var(--bone);
  padding: clamp(100px, 12vw, 160px) clamp(24px, 4vw, 64px);
  position: relative; overflow: hidden;
}
.timeline-sec::before {
  content: ''; position: absolute; inset: 0;
  background: url('../assets/t-bgtimeline.png') center/cover no-repeat;
  opacity: 0.4;
  pointer-events: none;
}
.timeline-sec h2 {
  color: var(--bone);
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.04em;
  line-height: 0.8;
  position: relative;
}
.timeline-title span {
  font-style: italic;
  font-weight: 400;
}
.timeline-head {
  text-align: center; max-width: 920px; margin: 0 auto;
  position: relative; z-index: 2;
}
.timeline-head p {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(17px, 1.61vw, 22px);
  line-height: 1.25;
  color: var(--bone);
  margin: 28px auto 0;
  max-width: 62ch;
}
.timeline-head .cta { margin-top: 36px; }

.timeline-rail {
  position: relative; z-index: 2;
  margin: clamp(40px, 6vw, 80px) auto 0;
  max-width: 1400px;
  display: grid; grid-template-columns: minmax(220px, 1fr) 2.5fr minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
}
.tl-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gold);
  box-shadow: 0 12px 36px -8px rgba(0,0,0,0.45);
}
.tl-circle img { width: 100%; height: 100%; object-fit: cover; }
.tl-middle {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 0 20px;
}
.tl-line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--bone) 0 12px, transparent 12px 24px);
  transform: translateY(-50%);
  background-size: 48px 2px;
  animation: tl-dash 1.4s linear infinite;
}
@keyframes tl-dash { to { background-position-x: 48px; } }
.tl-line::before, .tl-line::after {
  content: ''; position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bone-warm);
  top: 50%; transform: translateY(-50%);
}
.tl-line::before { left: -7px; }
.tl-line::after { right: -7px; }
.tl-side-label {
  position: absolute;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 900;
  font-size: clamp(20px, 2vw, 32px);
  color: var(--bone);
  text-shadow: 3px 3px 0 rgba(33,16,15,0.75);
  white-space: nowrap;
}
.tl-side-label.left { top: 20px; left: -200px; }
.tl-side-label.right { bottom: 20px; right: -160px; }
.tl-thumb {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: relative;
}
.tl-thumb img {
  width: clamp(95px, 11vw, 170px);
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 6px 6px 0 0 rgba(0,0,0,0.25);
  border: 2px solid var(--bone-warm);
}
.tl-thumb .lbl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: 0.02em;
  color: var(--bone);
  text-align: center;
  text-transform: capitalize;
}
.tl-thumb.up { transform: translateY(-126px); animation: tl-float-a 4.8s ease-in-out infinite; }
.tl-thumb.down { transform: translateY(126px); animation: tl-float-b 5.6s ease-in-out infinite; }
.tl-thumb.up .lbl { order: -1; }
@keyframes tl-float-a { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes tl-float-b { 0%,100% { translate: 0 0; } 50% { translate: 0 12px; } }

/* ---------------------------------------------------------------- BENTO / COLLECTIBLES GALLERY (scrubbed) */
.bento-sec {
  background: #485e44;
  position: relative;
  padding: 0;
  overflow: hidden;
}
.bento-pin {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.bento {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 8px;
  padding: 8px;
}
.bento-cell {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--burgundy);
  box-shadow: 0 6px 20px -4px rgba(0,0,0,0.4);
}
.bento-cell img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.bento-cell.c1  { grid-column: 1 / 5;  grid-row: 1 / 5; }
.bento-cell.c2  { grid-column: 5 / 9;  grid-row: 1 / 4; }
.bento-cell.c3  { grid-column: 9 / 13; grid-row: 1 / 5; }
.bento-cell.c4  { grid-column: 1 / 5;  grid-row: 5 / 9; }
.bento-cell.cc  { grid-column: 5 / 9;  grid-row: 4 / 7; z-index: 8; }
.bento-cell.c5  { grid-column: 9 / 13; grid-row: 5 / 9; }
.bento-cell.c6  { grid-column: 5 / 7;  grid-row: 7 / 9; }
.bento-cell.c7  { grid-column: 7 / 9;  grid-row: 7 / 9; }

.bento-cell.cc {
  /* center cell — the zoom target */
  transform-origin: center center;
  will-change: transform;
}
.bento-cell.cc img { image-rendering: auto; transform: translateZ(0); }

/* "The Fund" bridge title — fades in as bento center zooms */
#bento-bridge {
  display: none;
}
#bento-bridge h2 {
  display: none;
}

/* ---------------------------------------------------------------- THE FUND */
.fund {
  background: var(--soft-gray);
  color: var(--burgundy-ink);
  position: relative;
  padding: clamp(100px, 12vw, 160px) clamp(24px, 4vw, 64px);
  overflow: hidden;
}
.fund.dotbg::before,
.collect.dotbg::before,
.people.dotbg::before {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
}
.fund-inner {
  max-width: 980px; margin: 0 auto;
  text-align: center;
  position: relative; z-index: 2;
}
.fund-inner h2 {
  font-size: clamp(44px, 6vw, 60px);
  color: var(--green-head);
  font-weight: 900;
  margin: 0 0 32px;
  letter-spacing: -0.04em;
  line-height: 0.8;
}
.fund-inner p {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(17px, 1.61vw, 22px);
  line-height: 1.25;
  color: var(--burgundy-ink);
  margin: 0 auto 20px;
  max-width: 52ch;
}
.fund-inner .cta { margin-top: 32px; }

/* ---------------------------------------------------------------- COLLECTIBLES (vertical loop) */
.collect {
  position: relative;
  background: var(--burgundy-deep);
  color: var(--burgundy-ink);
  padding: clamp(100px, 12vw, 160px) clamp(24px, 4vw, 64px);
  overflow: hidden;
}
.collect-video,
.collect-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.collect-video { object-fit: cover; z-index: 0; opacity: 0.72; }
.collect-overlay { z-index: 1; background: rgba(228,229,230,0.72); }
.collect-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(250px, 0.75fr) minmax(420px, 660px) minmax(250px, 0.75fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  position: relative; z-index: 2;
}
.collect h2 {
  color: var(--green-head);
  font-size: 50px;
  font-weight: 900;
  margin: 0 0 36px;
  letter-spacing: -0.04em;
  line-height: 0.8;
}
.collect .copy-right p {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(17px, 1.61vw, 21px);
  line-height: 1.25;
  color: var(--burgundy-ink);
  margin: 0 0 14px;
  max-width: 38ch;
}
.collect-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 660px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 12px 12px 0 0 rgba(33,16,15,0.18);
}
.collect-stack .slot {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}
.collect-stack .slot.active { opacity: 1; }
.collect-stack img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------- PEOPLE (bottom carousel) */
.people {
  position: relative;
  background: var(--soft-gray);
  color: var(--burgundy-ink);
  padding: clamp(100px, 12vw, 160px) 0 0;
  overflow: hidden;
  min-height: auto;
}
.people-inner {
  max-width: 980px; margin: 0 auto 70px;
  text-align: center;
  position: relative; z-index: 2;
  padding: 0 clamp(24px, 4vw, 64px);
}
.people-inner h2 {
  color: #8a3b1e;
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 900;
  margin: 0 0 36px;
}
.people-inner p {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(17px, 1.61vw, 22px);
  line-height: 1.25;
  margin: 0 auto 14px;
  max-width: 56ch;
}
.people-inner .cta { margin-top: 36px; }

.carousel {
  margin-top: 32px;
  width: 100%;
  overflow: hidden;
  padding: 0;
  position: relative;
  line-height: 0;
}
.carousel-track {
  display: flex; gap: 0;
  width: max-content;
  animation: scroll-x 38s linear infinite;
  will-change: transform;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.carousel-track .photo {
  flex: 0 0 auto;
  width: clamp(220px, 20vw, 300px);
  aspect-ratio: 4/5;
  overflow: hidden;
}
.carousel-track .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------- HORIZ TYPE */
.horiz {
  background: var(--gold);
  position: relative;
  overflow: hidden;
}
.horiz-pin {
  height: 100vh;
  width: 100vw;
  display: flex; align-items: center;
  overflow: hidden;
}
.horiz-track {
  display: inline-flex; align-items: center; gap: clamp(40px, 5vw, 100px);
  white-space: nowrap;
  padding: 0 5vw;
  font-family: var(--font-body);
  font-weight: 900;
  color: var(--burgundy);
  will-change: transform;
}
.horiz-word {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(120px, 22vw, 360px);
  letter-spacing: -0.035em;
  line-height: 0.85;
  font-style: normal;
}

/* ---------------------------------------------------------------- CHARACTER CARDS */
.char-section {
  position: relative;
  overflow: hidden;
}
.char-card-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: 1280px; margin: 0 auto;
  align-items: center;
  padding: clamp(100px, 12vw, 160px) clamp(24px, 4vw, 64px);
  position: relative;
}
.char-card-block .poster {
  position: relative;
}
.char-card-block .poster img {
  width: 100%; height: auto;
  border-radius: 4px;
  box-shadow: 14px 14px 0 0 rgba(33,16,15,0.25);
  transform: rotate(-2deg);
  animation: card-float 5s ease-in-out infinite;
  opacity: 0;
  animation-name: card-intro, card-float;
  animation-duration: 900ms, 5s;
  animation-timing-function: var(--ease-out), ease-in-out;
  animation-fill-mode: forwards, none;
  animation-iteration-count: 1, infinite;
}
.char-card-block.right .poster img { transform: rotate(2deg); animation-duration: 900ms, 5.7s; }
@keyframes card-intro { from { opacity: 0; scale: 0.96; } to { opacity: 1; scale: 1; } }
@keyframes card-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.char-card-block .text h2 {
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 900;
  margin: 0 0 28px;
  letter-spacing: -0.04em;
  line-height: 0.8;
}
.char-card-block .text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(18px, 1.72vw, 22px);
  line-height: 1.55;
  margin: 0 0 16px;
  max-width: 38ch;
}
.char-card-block .text .cta { margin-top: 32px; }

/* Sgt Pepe section */
.char-sgt {
  background: var(--bone-warm);
  position: relative;
}
.char-sgt::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/dotbg.png') center/cover no-repeat;
  opacity: 0.28;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.char-sgt::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 100px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 30%);
  z-index: 1;
}
.char-sgt .char-card-block { position: relative; z-index: 2; padding-top: clamp(160px, 18vw, 240px); }
.char-sgt .text h2 { color: var(--green-head); }
.char-sgt .text p { color: var(--burgundy-ink); }

/* Pepe X section — comic sans */
.char-pepex {
  background: var(--purple);
  color: var(--bone);
  position: relative;
}
.char-pepex::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/bgpepex.png') center/cover no-repeat;
  opacity: 0.32;
  mix-blend-mode: screen;
  pointer-events: none;
}
.char-pepex::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 110px;
  background: var(--bone-warm);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%);
  z-index: 1;
}
.char-pepex .char-card-block { position: relative; z-index: 2; padding-top: clamp(160px, 18vw, 240px); }
.char-pepex,
.char-pepex .text h2,
.char-pepex .text p,
.char-pepex .btn {
  font-family: "Comic Sans MS", "Comic Sans", cursive !important;
}
.char-pepex .text h2 { color: var(--bone); font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; }
.char-pepex .text p { color: var(--bone); font-weight: 700; }

/* ---------------------------------------------------------------- SQUAD */
.squad {
  background: var(--burgundy-deep);
  color: var(--bone);
  padding: clamp(100px, 12vw, 160px) clamp(24px, 4vw, 64px);
  position: relative;
  overflow: hidden;
}
.squad h2 {
  color: var(--bone);
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 900;
  text-align: center;
  margin: 0 auto 80px;
  letter-spacing: -0.04em;
  line-height: 0.8;
}
.squad-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 30px);
  max-width: 1180px; margin: 0 auto;
}
.squad-card {
  position: relative;
  background: #1a0d0e;
  border-radius: 8px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.5);
  transition: transform .35s var(--ease-out);
  will-change: transform;
}
.squad-card:hover { transform: translateY(-6px) scale(1.025); z-index: 5; }
.squad-card .face { aspect-ratio: 1; background: var(--bone); overflow: hidden; }
.squad-card .face img { width: 100%; height: 100%; object-fit: cover; }
.squad-card .meta {
  padding: 16px 14px 18px;
  background: #1a0d0e;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.squad-card .meta .name {
  font-family: var(--font-body);
  font-weight: 900;
  font-style: normal;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--bone);
  margin-bottom: 6px;
}
.squad-card .meta .desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: rgba(243,227,201,0.65);
  line-height: 1.25;
  margin-bottom: 8px;
}
.squad-card .meta .more {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243,227,201,0.8);
  text-decoration: none;
  margin-top: auto;
}

.squad .cta-wrap { text-align: center; margin-top: clamp(60px, 8vw, 100px); }

@media (max-width: 1100px) {
  .squad-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .squad-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- COLLABS final */
.collabs {
  position: relative;
  min-height: 90vh;
  background: var(--burgundy-deep);
  color: var(--bone);
  padding: clamp(120px, 16vw, 200px) clamp(24px, 4vw, 64px);
  overflow: hidden;
  display: grid; place-items: center;
  isolation: isolate;
}
.collabs video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 0; opacity: 0.7;
}
.collabs .overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(33,16,15,0.45) 0%, rgba(33,16,15,0.85) 100%);
}
.collabs-inner {
  position: relative; z-index: 4;
  text-align: center;
  max-width: min(1120px, 100%);
}
.collabs h2 {
  font-size: clamp(44px, 6vw, 60px);
  color: var(--bone);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.8;
  margin: 0 0 36px;
}
.collabs p {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(18px, 1.84vw, 25px);
  line-height: 1.55;
  color: var(--bone);
  margin: 0 auto 36px;
  max-width: 72ch;
}

/* ---------------------------------------------------------------- FOOTER */
.footer {
  background: var(--tactical);
  padding: clamp(40px, 5vw, 60px) clamp(20px, 4vw, 64px);
  position: relative;
}
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 32px;
  position: relative;
}
.footer .left {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--bone);
}
.footer .left img { height: 56px; width: auto; border-radius: 50%; }
.footer .center { text-align: center; }
.footer .center img { height: 64px; width: auto; margin: 0 auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }
.footer .right { display: flex; gap: 10px; align-items: center; }
.footer .right { justify-content: flex-end; }
.footer .right .icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--burgundy-deep);
  display: grid; place-items: center;
  text-decoration: none;
  border: 2px solid var(--burgundy-deep);
  transition: transform 200ms, background 200ms;
}
.footer .right .icon-btn svg { width: 18px; height: 18px; fill: var(--bone); }
.footer .right .icon-btn:hover { transform: scale(1.06); background: var(--orange-lfg); border-color: var(--orange-lfg); }

@media (max-width: 700px) {
  .footer-inner { display: flex; flex-direction: column; text-align: center; gap: 18px; justify-items: center; }
  .footer .right { order: 1; justify-content: center; }
  .footer .center { order: 2; }
  .footer .left { order: 3; flex-direction: column; }
}

/* ---------------------------------------------------------------- responsive ---- */
@media (max-width: 1000px) {
  .origins .origins-inner { grid-template-columns: 1fr; }
  .origins { min-height: 100vh; padding: clamp(120px, 14vw, 200px) clamp(24px, 4vw, 64px) clamp(80px, 10vw, 140px); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-rail { display: none; }
  .timeline-mobile { display: grid; justify-items: center; gap: 12px; position: relative; z-index: 2; margin-top: 52px; }
  .tm-line {
    width: 3px;
    height: 72px;
    background: repeating-linear-gradient(180deg, var(--bone) 0 12px, transparent 12px 24px);
    background-size: 3px 48px;
    animation: tl-dash-y 1.4s linear infinite;
  }
  @keyframes tl-dash-y { to { background-position-y: 48px; } }
  .tm-node { display: grid; justify-items: center; gap: 10px; text-align: center; }
  .tm-node img { width: min(48vw, 190px); height: auto; filter: drop-shadow(6px 6px 0 rgba(0,0,0,0.28)); }
  .tm-end img {
    width: min(48vw, 190px);
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gold);
  }
  .tm-node span {
    font-family: var(--font-body);
    font-weight: 900;
    color: var(--bone);
    text-shadow: 3px 3px 0 rgba(33,16,15,0.75);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .tl-middle { min-height: 300px; grid-template-columns: 1fr 1fr; gap: 24px; }
  .tl-thumb.up, .tl-thumb.down { transform: none; }
  .tl-line { display: block; top: 50%; }
  .tl-side-label { display: block; font-size: 18px; }
  .tl-side-label.left { top: 0; left: 0; }
  .tl-side-label.right { bottom: 0; right: 0; }
  .bento { grid-template-rows: repeat(10, 1fr); }
  .bento-cell.c1 { grid-column: 1 / 7; grid-row: 1 / 4; }
  .bento-cell.c2 { grid-column: 7 / 13; grid-row: 1 / 4; }
  .bento-cell.cc { grid-column: 1 / 13; grid-row: 4 / 7; }
  .bento-cell.c3 { grid-column: 1 / 7; grid-row: 7 / 9; }
  .bento-cell.c4 { grid-column: 7 / 13; grid-row: 7 / 9; }
  .bento-cell.c5 { grid-column: 1 / 5; grid-row: 9 / 11; }
  .bento-cell.c6 { grid-column: 5 / 9; grid-row: 9 / 11; }
  .bento-cell.c7 { grid-column: 9 / 13; grid-row: 9 / 11; }
  .collect-inner, .char-card-block { grid-template-columns: 1fr; gap: 40px; }
}

.timeline-mobile { display: none; }
@media (max-width: 1000px) {
  .timeline-sec .timeline-mobile { display: grid; }
}

@media (max-width: 700px) {
  .hero-cloud { width: 86% !important; animation-duration: 9s; }
  .hero-title-img { width: 578px; max-width: 82vw; }
  .hero-lfg-img { width: 108px; max-width: 30vw; }
  .idea-sec { padding-bottom: 60px; }
  .idea-chars {
    position: relative;
    inset: auto;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 420px;
    margin: 34px auto 0;
    padding: 0 20px;
  }
  .idea-char {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
  }
  .tl-thumb img { width: min(34vw, 150px); }
  .collabs { padding: 110px 20px; min-height: 80vh; }
  .collabs h2 { overflow-wrap: normal; font-size: 40px; }
  .collabs p { max-width: 100%; font-size: 17px; }
  .collect-inner { grid-template-columns: 1fr; }
  .collect-stack { width: min(100%, 620px); }
  .btn { font-size: 18px; }
}
