:root {
  --page: 1520px;
  --paper: #f7f5ef;
  --ink: #151512;
  --lime: #bbf700;
  --line: #e4e0d7;
}

html {
  background: var(--paper);
}

body {
  color: var(--ink);
  background: var(--paper);
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--paper);
}

.page-width {
  width: min(calc(100% - 56px), var(--page));
  margin: 0 auto;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0 10px;
  background: rgb(247 245 239 / 86%);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 22px;
  gap: clamp(18px, 2.2vw, 40px);
  border: 1px solid #2d2d2a;
  border-radius: 21px;
  color: #f9f5e9;
  background: #171714;
  box-shadow: 0 12px 30px rgb(30 28 20 / 12%);
}

.brand-link {
  flex: 0 0 205px;
}

.brand-link img {
  width: 190px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 42px);
  margin-left: auto;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.main-nav a {
  color: #f4eedf;
}

.main-nav a:hover {
  color: var(--lime);
}

.header-actions,
.social-icons {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 20px;
}

.social-icons {
  gap: 10px;
}

.social-icons a {
  display: block;
  width: 20px;
  height: 23px;
}

.social-icons img {
  width: 100%;
  max-height: 22px;
  object-fit: contain;
}

/* Interactive hero frame sequence */
.hero {
  padding: 17px 0 0;
  background: var(--paper);
}

.hero-scroll-scene.page-width {
  position: relative;
  width: min(calc(100% - 56px), var(--page));
  max-width: var(--page);
  margin: 0 auto;
  height: auto;
  overflow: visible;
  background: transparent;
}

.keyframe-stage {
  --scene-x: 0px;
  --scene-y: 0px;
  --scene-rotate: 0deg;
  --scene-scale: 1;

  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  background: #0a0a08;
  box-shadow: 0 18px 34px rgb(23 21 14 / 16%);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  transform: translate3d(0, var(--stage-pin-offset, 0px), 0);
  will-change: transform;
}

.sequence-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  transform: translate3d(var(--scene-x), var(--scene-y), 0) rotate(var(--scene-rotate)) scale(var(--scene-scale));
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.sequence-fallback,
.sequence-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.sequence-fallback {
  object-fit: contain;
  transition: opacity 180ms ease;
}

.keyframe-stage.is-ready .sequence-fallback {
  opacity: 0;
}

.sequence-canvas {
  z-index: 1;
}

.keyframe-stage::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid rgb(255 239 192 / 34%);
  border-radius: inherit;
  box-shadow: inset 0 0 58px rgb(0 0 0 / 20%);
  content: "";
  pointer-events: none;
}

.ember-layer {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  opacity: var(--ember-opacity, 0.1);
  pointer-events: none;
}

.ember-layer i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5a2 0 12%, #ff7b18 30%, #eb2709 58%, transparent 72%);
  box-shadow: 0 0 14px rgb(255 93 19 / 60%);
  animation: ember-drift var(--ember-duration) ease-in-out var(--ember-delay) infinite alternate;
}

.ember-layer i:nth-child(1) {
  top: 74%;
  left: 13%;
  --ember-duration: 5.8s;
  --ember-delay: -2.4s;
}

.ember-layer i:nth-child(2) {
  top: 32%;
  left: 72%;
  --ember-duration: 6.6s;
  --ember-delay: -4s;
}

.ember-layer i:nth-child(3) {
  top: 64%;
  left: 85%;
  --ember-duration: 4.9s;
  --ember-delay: -1.2s;
}

.ember-layer i:nth-child(4) {
  top: 20%;
  left: 36%;
  --ember-duration: 6.1s;
  --ember-delay: -3.2s;
}

.ember-layer i:nth-child(5) {
  top: 48%;
  left: 55%;
  --ember-duration: 5.3s;
  --ember-delay: -2.8s;
}

@keyframes ember-drift {
  from {
    opacity: 0.22;
    transform: translate3d(-8px, 12px, 0) scale(0.65);
  }

  to {
    opacity: 0.85;
    transform: translate3d(18px, -24px, 0) scale(1.2);
  }
}

/* Content sections */
.paper-section {
  position: relative;
  padding: 22px 0;
  background: transparent;
}

.manifesto-inner {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 30px;
  min-height: 458px;
  padding: 48px 52px;
  overflow: hidden;
  border-radius: 28px;
  background: #e8d3a2 url("../../assets/design-kit/burnepep-web-slices-v2/webp/07_textures/X01_paper-sample.webp") center / 259px 53px;
  box-shadow: 0 12px 26px rgb(43 35 18 / 9%);
}

.manifesto-copy {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 30px;
  row-gap: 18px;
}

.manifesto-title {
  grid-row: span 2;
  width: 100%;
  align-self: center;
}

.manifesto-statement {
  max-width: 335px;
  padding: 13px 0 2px 20px;
  border-left: 2px solid var(--lime);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
}

.manifesto-kicker {
  margin: 0 0 10px;
  color: #4b4a40;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.manifesto-lead {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.32;
}

.manifesto-lead strong {
  font-weight: 900;
}

.manifesto-body {
  margin: 13px 0 0;
  font-size: 13px;
  line-height: 1.48;
}

.manifesto-tagline {
  grid-column: 2;
  width: min(100%, 235px);
  margin: 0;
}

.manifesto-visual {
  position: relative;
  display: grid;
  min-height: 330px;
  overflow: hidden;
  place-items: center;
  border-radius: 24px;
  background: #11110e;
}

.portrait {
  width: min(79%, 420px);
  transform: rotate(-1.5deg);
}

.manifesto-slogan {
  position: absolute;
  top: 24px;
  right: 18px;
  width: 145px;
}

.manifesto-butterfly {
  position: absolute;
  right: 30px;
  bottom: 21px;
  width: 55px;
}

.token > .page-width,
.community-inner,
.roadmap-inner {
  padding: 46px 50px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 12px 26px rgb(43 35 18 / 6%);
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 28px;
}

.token-title {
  width: min(45%, 400px);
}

.token-tagline {
  width: min(26%, 221px);
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.token-card {
  display: flex;
  flex-direction: column;
  min-height: 382px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fcfbf8;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.token-card:hover {
  box-shadow: 0 15px 25px rgb(28 26 20 / 12%);
  transform: translateY(-6px);
}

.token-art {
  display: grid;
  height: 222px;
  overflow: hidden;
  place-items: center;
  border-radius: 15px;
  background: #efe0ba url("../../assets/design-kit/burnepep-web-slices-v2/webp/07_textures/X01_paper-sample.webp") center / 259px 53px;
}

.token-art-image {
  max-width: 93%;
  max-height: 186px;
  object-fit: contain;
}

.token-card h3 {
  margin: 18px 0 8px;
  font-family: "Arial Black", "Aptos Display", "Segoe UI", sans-serif;
  font-size: clamp(16px, 1.32vw, 21px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.token-card p {
  margin: 0;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.community-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.36fr 0.88fr;
  align-items: stretch;
  gap: 16px;
}

.community-copy {
  padding: 12px 8px 8px;
}

.community-title {
  width: min(100%, 270px);
}

.community-copy p {
  margin: 18px 0 23px;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.community-collage {
  position: relative;
  min-height: 305px;
  overflow: hidden;
  border-radius: 22px;
  background: #151511;
}

.community-collage > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage-sticker {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 105px;
}

.social-panel {
  display: grid;
  align-self: center;
  height: 180px;
  overflow: hidden;
  border-radius: 22px;
  background: #1a1a16;
  box-shadow: 0 10px 20px rgb(20 20 16 / 12%);
}

.social-row {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  padding: 13px 17px;
  border-bottom: 1px solid rgb(245 236 214 / 35%);
  color: #f6efdf;
  background: transparent;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.social-row:last-child {
  border-bottom: 0;
}

.social-row:hover {
  color: var(--lime);
  background: #292923;
}

.social-row img {
  max-width: 22px;
  max-height: 22px;
}

.social-row span {
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
}

.social-row b,
.social-row small {
  display: block;
}

.social-row b {
  font-family: "Arial Black", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.social-row small {
  margin-top: 3px;
  color: #d6cfbd;
  font-size: 10px;
}

.social-row i {
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 25px;
  font-style: normal;
}

/* Culture wall */
.archive-inner {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 42px;
  min-height: 465px;
  padding: 48px 52px;
  overflow: hidden;
  border-radius: 28px;
  color: #f6efdf;
  background: #191916 url("../../assets/design-kit/burnepep-web-slices-v2/webp/07_textures/X02_dark-sample.webp") center / 260px 50px;
  box-shadow: 0 12px 26px rgb(43 35 18 / 9%);
}

.archive-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.archive-kicker {
  margin: 0 0 14px;
  color: var(--lime);
  font: 800 11px/1 Arial, sans-serif;
  letter-spacing: 0.16em;
}

.archive-copy h2 {
  margin: 0;
  color: #fff7e5;
  font-family: "Arial Black", "Aptos Display", "Segoe UI", sans-serif;
  font-size: clamp(36px, 4.1vw, 64px);
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.archive-copy > p:not(.archive-kicker) {
  max-width: 265px;
  margin: 24px 0 28px;
  color: #d9d1bd;
  font: 14px/1.5 "Aptos", "Segoe UI", Arial, sans-serif;
}

.archive-link {
  display: inline-flex;
  gap: 16px;
  padding: 13px 17px;
  border: 1px solid rgb(198 255 0 / 70%);
  border-radius: 999px;
  color: var(--lime);
  font: 800 11px/1 Arial, sans-serif;
  letter-spacing: 0.08em;
}

.archive-link:hover {
  color: #171714;
  background: var(--lime);
}

.archive-posters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
}

.archive-poster {
  position: relative;
  min-height: 345px;
  margin: 0;
  overflow: hidden;
  border: 2px solid #f0dfbc;
  border-radius: 8px;
  background: #e8d3a2;
  box-shadow: 0 16px 24px rgb(0 0 0 / 26%);
}

.archive-poster:nth-child(1) { transform: rotate(-3deg) translateY(8px); }
.archive-poster:nth-child(3) { transform: rotate(3deg) translateY(8px); }

.archive-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-poster figcaption {
  position: absolute;
  right: 9px;
  bottom: 9px;
  left: 9px;
  padding: 7px 8px;
  color: #fff7e5;
  background: rgb(20 20 17 / 84%);
  font: 800 8px/1.2 Arial, sans-serif;
  letter-spacing: 0.07em;
  text-align: center;
}

.roadmap-inner {
  display: grid;
  grid-template-columns: 245px 1fr;
  align-items: center;
  gap: 28px;
}

.roadmap-title {
  width: min(100%, 230px);
}

.roadmap-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
}

.roadmap-card {
  min-height: 208px;
  padding: 20px;
  border-radius: 21px;
  color: #f9f0dd;
  background: #191916;
}

.roadmap-card > span {
  color: #e7dec9;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.roadmap-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 9px;
  color: var(--lime);
  font-family: "Arial Black", "Aptos Display", "Segoe UI", sans-serif;
  font-size: 20px;
  letter-spacing: -0.055em;
}

.roadmap-icon {
  width: 37px;
  height: 42px;
  object-fit: contain;
}

.roadmap-card p {
  margin: 0;
  color: #e6ddca;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.roadmap-connector {
  display: grid;
  min-height: 60px;
  height: 100%;
  place-items: center;
}

.roadmap-arrow {
  position: relative;
  z-index: 2;
  display: block;
  width: 36px;
  max-width: none;
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / 50%));
}

/* Call to action and footer */
.bottom-cta {
  padding: 16px 0 28px;
  background: transparent;
}

.bottom-cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 14px 25px rgb(21 18 10 / 15%);
  line-height: 0;
}

.cta-banner {
  width: 100%;
  height: auto;
}

.cta-hotspot {
  position: absolute;
  top: 70%;
  left: 39%;
  width: 22%;
  height: 24%;
  border-radius: 14px;
}

.cta-hotspot:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
}

.site-footer {
  padding: 0 0 32px;
  background: transparent;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 28px;
  border-radius: 22px;
  color: #eee4ce;
  background: #191916;
}

.footer-brand {
  width: 166px;
}

.site-footer small {
  font-family: Arial, sans-serif;
  font-size: 10px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  padding: 12px 16px;
  border-radius: 14px;
  color: #151512;
  background: var(--lime);
  font-family: Arial, sans-serif;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .page-width {
    width: min(calc(100% - 34px), var(--page));
  }

  .main-nav {
    display: none;
  }

  .keyframe-stage {
    border-radius: 24px;
  }

  .hero-scroll-scene.page-width {
    width: min(calc(100% - 34px), var(--page));
    height: auto;
  }

  .manifesto-inner {
    grid-template-columns: 1fr;
  }

  .manifesto-copy {
    min-height: 280px;
  }

  .community-inner {
    grid-template-columns: 1fr 1fr;
  }

  .community-copy {
    grid-column: span 2;
  }

  .archive-inner {
    grid-template-columns: 0.68fr 1.32fr;
    gap: 28px;
    padding: 38px;
  }

  .archive-poster {
    min-height: 290px;
  }

  .roadmap-inner {
    grid-template-columns: 1fr;
  }

  .roadmap-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .roadmap-connector {
    display: none;
  }
}

@media (max-width: 680px) {
  .page-width {
    width: min(calc(100% - 22px), var(--page));
  }

  .site-header {
    padding-top: 10px;
  }

  .header-inner {
    min-height: 54px;
    padding: 0 14px;
  }

  .brand-link {
    flex-basis: 155px;
  }

  .brand-link img {
    width: 150px;
  }

  .social-icons {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-cta {
    font-size: 11px;
  }

  .hero {
    padding-bottom: 0;
  }

  .hero-scroll-scene.page-width {
    width: min(calc(100% - 22px), var(--page));
    height: auto;
  }

  .keyframe-stage {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }

  .manifesto-inner,
  .token > .page-width,
  .community-inner,
  .roadmap-inner,
  .archive-inner {
    padding: 24px 20px;
    border-radius: 23px;
  }

  .archive-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .archive-copy > p:not(.archive-kicker) {
    max-width: 340px;
    margin: 18px 0 22px;
  }

  .archive-poster {
    min-height: 210px;
  }

  .archive-poster figcaption {
    display: none;
  }

  .manifesto-copy {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .manifesto-title {
    grid-row: auto;
    width: min(100%, 255px);
  }

  .manifesto-statement {
    padding-left: 16px;
  }

  .manifesto-tagline {
    grid-column: auto;
    width: min(100%, 220px);
  }

  .token-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .token-card {
    min-height: 286px;
    padding: 10px;
    border-radius: 16px;
  }

  .token-art {
    height: 142px;
  }

  .token-card h3 {
    margin-top: 12px;
    font-size: 19px;
  }

  .token-card p {
    font-size: 11px;
  }

  .community-inner {
    grid-template-columns: 1fr;
  }

  .community-copy {
    grid-column: auto;
  }

  .community-collage {
    min-height: 240px;
  }

  .roadmap-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-card {
    min-height: 165px;
    padding: 14px;
  }

  .bottom-cta-inner {
    border-radius: 20px;
  }

  .footer-inner {
    gap: 15px;
    padding: 18px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ember-layer i {
    animation: none;
  }
}
