body.story-funky-page {
  --ink: #1f1433;
  --line: #2a1a44;
  --surface: #ffffff;
  --lime: #d9f931;
  --pink: #ff9fd9;
  --sky: #89f2ea;
  --lavender: #d8bcff;
  max-width: none;
  margin: 0;
  padding: 104px 0 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 6%, rgba(255, 159, 217, 0.3) 0%, transparent 31%),
    radial-gradient(circle at 92% 14%, rgba(137, 242, 234, 0.28) 0%, transparent 36%),
    linear-gradient(160deg, #fff4fb 0%, #f8f4ff 50%, #f4fff6 100%);
  font-family: "Bricolage Grotesque", "poppins-medium", sans-serif;
  overflow-x: hidden;
}

.story-shell {
  width: min(1180px, calc(100% - 30px));
  margin: 0 auto 58px;
  display: grid;
  gap: 22px;
  position: relative;
  z-index: 1;
  font-family: "Bricolage Grotesque", "poppins-medium", sans-serif;
}

.story-hero {
  position: relative;
  padding: clamp(20px, 3.2vw, 34px);
  border-radius: 30px;
  border: 2px solid var(--line);
  background:
    repeating-linear-gradient(130deg, rgba(217, 249, 49, 0.16) 0, rgba(217, 249, 49, 0.16) 12px, transparent 12px, transparent 24px),
    linear-gradient(145deg, #ffffff 0%, #fffaf0 56%, #effffb 100%);
  box-shadow: 0 10px 0 rgba(42, 26, 68, 0.92);
  overflow: hidden;
  animation: story-rise 560ms cubic-bezier(0.2, 0.74, 0.33, 1);
}

.story-hero::before,
.story-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.story-hero::before {
  width: 180px;
  height: 180px;
  right: -64px;
  top: -84px;
  border: 3px dashed var(--line);
  background: rgba(216, 188, 255, 0.46);
  animation: story-spin 11s linear infinite;
}

.story-hero::after {
  width: 118px;
  height: 118px;
  left: -30px;
  bottom: -38px;
  border: 2px solid var(--line);
  background: rgba(255, 159, 217, 0.36);
}

.story-kicker {
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--lime);
  font-family: "Syne", "poppins-bold", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.story-hero h1 {
  margin: 0;
  max-width: 11ch;
  font-family: "Syne", "poppins-bold", sans-serif;
  font-size: clamp(36px, 6.4vw, 68px);
  line-height: 0.94;
  letter-spacing: -1px;
}

.story-hero p {
  margin: 14px 0 0;
  max-width: 60ch;
  font-size: clamp(14px, 1.9vw, 18px);
  line-height: 1.6;
  color: #3f2f59;
}

.story-meta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.story-meta-chip {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--line);
  background: #fff;
}

.story-meta-chip:nth-child(1) {
  background: #e7ffea;
  transform: rotate(-1deg);
}

.story-meta-chip:nth-child(2) {
  background: #f8f0ff;
  transform: rotate(1.2deg);
}

.story-meta-chip:nth-child(3) {
  background: #fff1fb;
  transform: rotate(-0.7deg);
}

.story-timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 6px 0 0;
}

.story-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  bottom: 14px;
  width: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: repeating-linear-gradient(180deg, #2a1a44 0, #2a1a44 14px, #c7afe9 14px, #c7afe9 25px);
  opacity: 0.4;
}

.story-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: start;
  position: relative;
  animation: story-rise 520ms ease both;
}

.story-item:nth-child(even) .story-card {
  grid-column: 1;
  transform: rotate(0.8deg);
}

.story-item:nth-child(odd) .story-card {
  grid-column: 3;
  transform: rotate(-0.9deg);
}

.story-year {
  grid-column: 2;
  width: 82px;
  height: 56px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--lime);
  box-shadow: 0 5px 0 var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", "poppins-bold", sans-serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  position: sticky;
  top: 122px;
  z-index: 1;
}

.story-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: clamp(16px, 2.2vw, 24px);
  box-shadow: 0 8px 0 rgba(42, 26, 68, 0.92);
  display: grid;
  gap: 10px;
  transition: transform 220ms ease;
}

.story-card:hover {
  transform: translateY(-3px) rotate(0deg);
}

.story-item:nth-child(3n) .story-card {
  background: linear-gradient(140deg, #ffffff 0%, #f4fffb 100%);
}

.story-item:nth-child(3n + 1) .story-card {
  background: linear-gradient(140deg, #ffffff 0%, #fff6fc 100%);
}

.story-item:nth-child(3n + 2) .story-card {
  background: linear-gradient(140deg, #ffffff 0%, #f7f3ff 100%);
}

.story-card h2 {
  margin: 0;
  font-family: "Syne", "poppins-bold", sans-serif;
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.3px;
}

.story-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #46385f;
}

/* === Product chips inside year cards === */
.story-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 6px;
}
.story-product {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.story-product:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--line);
}
.story-product:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--line);
}
.story-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--lavender);
  flex-shrink: 0;
  border: 1.5px solid var(--line);
}
.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-product-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
  min-width: 0;
}
.story-product-name {
  font-family: "Syne", "poppins-bold", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink);
}
.story-product-tag {
  font-family: "Bricolage Grotesque", "poppins-medium", sans-serif;
  font-size: 11px;
  color: #6b5a8a;
  letter-spacing: 0.1px;
}

@keyframes story-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes story-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .story-shell {
    width: calc(100% - 18px);
  }

  .story-timeline::before {
    left: 45px;
    transform: none;
  }

  .story-item {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .story-year {
    grid-column: 1;
    width: 70px;
    height: 50px;
    font-size: 16px;
    position: static;
  }

  .story-item .story-card,
  .story-item:nth-child(odd) .story-card,
  .story-item:nth-child(even) .story-card {
    grid-column: 2;
    transform: none;
  }
}

@media (max-width: 640px) {
  body.story-funky-page {
    padding-top: 94px;
  }

  .story-hero {
    border-radius: 22px;
  }

  .story-card {
    border-radius: 18px;
    padding: 14px;
  }

  .story-card h2 {
    font-size: 23px;
  }

  .story-card p {
    font-size: 14px;
  }
}
