@font-face {
  font-family: SemperInvicta;
  src: url("assets/fonts/SemperInvicta.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Dominican;
  src: url("assets/fonts/DOMINICA.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Anton;
  src: url("assets/fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Condiment;
  src: url("assets/fonts/condiment.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Cinzel;
  src: url("assets/fonts/cinzel.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-title: "SemperInvicta", serif;
  --font-body: "Dominican", serif;
  --font-display: "Anton", sans-serif;
  --font-cinzel: "Cinzel", serif;
  --stone-900: #0e0f0d;
  --stone-800: #1a1c18;
  --stone-700: #2a2d26;
  --stone-600: #3a3d34;
  --moss: #4a5a3a;
  --moss-light: #6b7e56;
  --gold: #c9a84c;
  --gold-bright: #e4c96a;
  --gold-dim: #8b7530;
  --parchment: #d8ccb0;
  --parchment-light: #ede5d0;
  --ink: #2a1f14;
  --blood: #6b2020;
  --glow-slab: 0 1px rgba(201, 168, 76, 0.08), inset 0 1px rgba(255, 255, 255, 0.03);
}

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

html,
body {
  scroll-behavior: smooth;
  color-scheme: light;
  font-family: var(--font-body), serif;
  background-color: var(--stone-900) !important;
  color: var(--parchment) !important;
  -ms-overflow-style: none;
  scrollbar-width: none;
  min-height: 100vh;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

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

a {
  color: inherit;
  text-decoration: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Scroll progress */
.scroll-progress-track {
  position: fixed;
  top: 20vh;
  bottom: 20vh;
  left: 20px;
  width: 4px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 4px;
  z-index: 9999;
  pointer-events: none;
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--gold-bright);
  border-radius: 4px;
  transform-origin: top;
  box-shadow: 0 0 10px rgba(230, 200, 150, 0.8);
  transform: scaleY(0);
}

/* Music control */
.music-controls {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100001;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Intro overlay */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.intro-overlay.is-done {
  opacity: 0;
  pointer-events: none;
}

.intro-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  clip-path: inset(30% 0 30% 0);
  transition: opacity 0.6s ease, clip-path 1.2s ease;
}

.intro-overlay.is-playing video {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

/* Main */
.site-main {
  position: relative;
  overflow-x: clip;
  z-index: 0;
}

.pillar {
  position: absolute;
  top: 550vh;
  bottom: 0;
  width: 350px;
  background-image: url("assets/tiang.webp");
  background-size: 100% auto;
  background-repeat: repeat-y;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 1000px, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 1000px, black 100%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.2;
  filter: grayscale(100%);
  mix-blend-mode: multiply;
}

.pillar--left {
  left: 0;
  background-position: left bottom;
}

.pillar--right {
  right: 0;
  background-position: right bottom;
  transform: scaleX(-1);
}

/* Hero */
#hero {
  position: relative;
  height: 110vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 10vh), transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black calc(100% - 10vh), transparent 100%);
}

.hero-bg {
  position: absolute;
  inset: -15% 0;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-bg-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(14, 15, 13, 0.7) 100%);
}

.hero-inner {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
}

.hero-logo {
  display: flex;
  align-items: flex-end;
  gap: clamp(4px, 1vw, 12px);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.hero-letter {
  position: relative;
  width: clamp(90px, 16vw, 220px);
  height: clamp(110px, 20vw, 280px);
}

.hero-letter img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-i-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%;
  z-index: 2;
  cursor: pointer;
}

.hero-i-dot img {
  object-position: bottom;
}

.hero-i-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 68%;
  z-index: 1;
}

.hero-i-base img {
  object-position: top;
}

.hero-copy {
  margin-top: 20px;
  width: fit-content;
  opacity: 0;
  transition: opacity 1s ease 0.25s;
}

.hero-copy.is-visible {
  opacity: 1;
}

.hero-copy hr {
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
  border: none;
  margin-bottom: 16px;
}

.hero-copy .small-caps-label {
  font-size: clamp(12px, 1.4vw, 16px);
  line-height: 1.8;
  color: var(--parchment);
  letter-spacing: 3px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-character {
  position: absolute;
  bottom: 0;
  right: -12vw;
  width: clamp(420px, 49vw, 770px);
  height: clamp(420px, 49vw, 770px);
  z-index: 9999;
  pointer-events: none;
}

.hero-character-inner {
  width: 100%;
  height: 100%;
  position: relative;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1.2s ease 0.4s, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.hero-character-inner.is-visible {
  opacity: 1;
  transform: scale(1);
}

.hero-character img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  transform: scaleX(-1);
}

/* Cathedral body */
.bg-cathedral {
  position: relative;
}

.bg-cathedral > :not(:first-child) {
  z-index: 1;
  background: transparent;
  position: relative;
}

.cathedral-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.cathedral-bg-img {
  position: absolute;
  top: 0;
  left: -5%;
  right: -5%;
  height: auto;
  transform-origin: center center;
}

.cathedral-bg-img img {
  width: 100%;
  height: auto;
  display: block;
}

.cathedral-bg-dim {
  position: absolute;
  inset: 0;
  background: rgba(14, 15, 13, 0.3);
  z-index: 1;
}

/* About / book */
#about {
  position: relative;
  height: 450vh;
  margin-top: -10vh;
  z-index: 40;
}

.about-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-text {
  position: absolute;
  right: clamp(60px, 10vw, 200px);
  top: 50%;
  max-width: 400px;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.about-text h2 {
  font-size: clamp(32px, 4.5vw, 64px);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.about-text .lead {
  font-family: var(--font-body), serif;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.9;
  color: var(--parchment);
  margin-bottom: 18px;
}

.about-text .sub {
  font-family: var(--font-body), serif;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.9;
  color: var(--parchment);
  opacity: 0.6;
}

.book-wrap {
  width: clamp(260px, 28vw, 380px);
  flex-shrink: 0;
  transform-origin: center center;
  transform: translateX(-200px);
  transition: transform 0.1s linear;
}

.book {
  position: relative;
  width: 100%;
  aspect-ratio: 1856 / 2304;
  perspective: 2500px;
}

.book-page {
  position: absolute;
  inset: 0;
  background: #c8b48e;
  border-radius: 2px;
  box-shadow: inset 0 0 50px rgba(90, 60, 30, 0.5), 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: clamp(16px, 7%, 40px);
  padding-top: clamp(24px, 10%, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  overflow: hidden;
}

.book-page-text {
  font-family: var(--font-body), serif;
  font-size: clamp(8px, 2.8%, 13px);
  color: #3a2818;
  text-align: center;
  line-height: 1.9;
  max-width: 100%;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-page-text p {
  margin-bottom: 3%;
}

.book-page-text .closing {
  font-weight: bold;
  font-style: italic;
  margin-bottom: 4%;
}

.book-stamp {
  font-family: var(--font-title), serif;
  font-size: clamp(24px, 10%, 48px);
  color: #5a1818;
  font-weight: bold;
  letter-spacing: 3px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.book-stamp svg {
  height: 0.85em;
  width: auto;
  display: inline-block;
  fill: currentColor;
  vertical-align: baseline;
  overflow: visible;
  margin-top: 2px;
}

.book-cover {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  z-index: 10;
  transition: transform 0.1s linear;
}

.book-cover-front,
.book-cover-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 2px;
}

.book-cover-front {
  z-index: 1;
}

.book-cover-front img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.book-cover-back {
  transform: rotateY(180deg);
  background: #c8b48e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 50px rgba(90, 60, 30, 0.5);
  padding: 5%;
}

.book-video-frame {
  width: 85%;
  border: 1px solid #8b6830;
  border-radius: 2px;
  padding: 3px;
  background: rgba(90, 60, 30, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 0 10px rgba(90, 60, 30, 0.2);
  margin-bottom: 5%;
}

.book-video-frame video {
  width: 100%;
  display: block;
  border-radius: 1px;
  filter: sepia(0.2) contrast(1.1);
}

.book-cover-back p {
  font-family: var(--font-body), serif;
  font-size: clamp(11px, 3.2%, 15px);
  color: #3a2818;
  text-align: center;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 90%;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Lore */
#creation {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  overflow: hidden;
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.lore-title {
  text-align: right;
  margin-bottom: clamp(60px, 8vw, 120px);
}

.lore-title h2 {
  font-size: clamp(40px, 7vw, 96px);
  text-transform: uppercase;
}

.lore-timeline {
  display: flex;
  flex-direction: column;
  gap: clamp(60px, 10vw, 140px);
  position: relative;
}

.lore-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

.lore-row--rtl {
  direction: rtl;
}

.lore-row--rtl > * {
  direction: ltr;
}

.lore-media .slab {
  overflow: hidden;
  position: relative;
  box-shadow: var(--glow-slab);
  border-color: var(--gold-dim);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.lore-media img {
  width: 100%;
  height: auto;
  display: block;
}

.lore-copy {
  padding: 0 clamp(0px, 2vw, 20px);
}

.lore-num {
  font-family: var(--font-title), serif;
  font-size: clamp(48px, 6vw, 80px);
  color: var(--gold-dim);
  opacity: 0.2;
  line-height: 1;
  display: block;
  margin-bottom: -10px;
}

.lore-copy h3 {
  font-size: clamp(22px, 3vw, 36px);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lore-copy p {
  font-family: var(--font-body), serif;
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.9;
  color: var(--parchment);
  opacity: 0.75;
  max-width: 420px;
  white-space: pre-line;
}

/* Tokenomics */
#features {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0 clamp(24px, 3.6vw, 48px);
  overflow: hidden;
}

.features-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 50px);
  align-items: start;
}

.guardian {
  position: sticky;
  top: 10vh;
  height: 90vh;
  width: auto;
  margin-left: -8vw;
  margin-right: -2vw;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 20%, transparent 70%);
  mask-image: linear-gradient(to bottom, black 0%, black 20%, transparent 70%);
}

.guardian img {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: left top;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.tokenomics-title {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.tokenomics-title h2 {
  font-size: clamp(48px, 8vw, 100px);
  text-transform: uppercase;
  max-width: 500px;
}

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

.token-card {
  padding: clamp(16px, 2vw, 32px);
  border-right: 1px solid rgba(201, 168, 76, 0.08);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.token-card:nth-child(3n) {
  border-right: none;
}

.token-card:nth-child(n + 4) {
  border-bottom: none;
}

.token-card .icon {
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.7;
}

.token-card h3 {
  font-family: var(--font-title), serif;
  font-size: clamp(13px, 1.2vw, 17px);
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.token-card p {
  font-family: var(--font-body), serif;
  font-size: clamp(12px, 1vw, 14px);
  color: var(--parchment);
  opacity: 0.6;
  line-height: 1.7;
}

.token-card a {
  color: var(--gold);
  text-decoration: underline;
}

/* Memes */
#community {
  position: relative;
  padding: clamp(24px, 3.6vw, 48px) 0 40px;
  overflow: hidden;
}

.memes-title {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.memes-title h2 {
  font-size: clamp(40px, 7vw, 90px);
  text-transform: uppercase;
}

.memes-title h2 span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.memes-title svg {
  height: 0.85em;
  width: auto;
  fill: currentColor;
  margin-top: 4px;
}

.carousel-wrap {
  position: relative;
  margin-bottom: clamp(60px, 8vw, 120px);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  margin-top: -24px;
  z-index: 10;
}

.carousel-nav--prev {
  left: -24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-nav--next {
  right: -24px;
}

.meme-carousel-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
}

.meme-carousel-scroll::-webkit-scrollbar {
  display: none;
}

.meme-carousel-scroll.is-dragging {
  cursor: grabbing;
}

.meme-page {
  min-width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  background: rgba(14, 15, 13, 0.6);
  padding: 3px;
}

.meme-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(201, 168, 76, 0.1);
  background: rgba(26, 28, 24, 0.8);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.meme-cell:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
}

.meme-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  pointer-events: none;
}

.meme-cell:hover img {
  transform: scale(1.06);
}

.meme-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.meme-cell:hover .meme-corner {
  opacity: 0.8;
}

.meme-corner--tr {
  top: 4px;
  right: 4px;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  border-right: 1px solid rgba(201, 168, 76, 0.3);
}

.meme-corner--bl {
  bottom: 4px;
  left: 4px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  border-left: 1px solid rgba(201, 168, 76, 0.3);
}

.meme-soon {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-conic-gradient(rgba(201, 168, 76, 0.04) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px;
}

.meme-soon > span {
  font-size: clamp(32px, 4vw, 56px);
  color: rgba(201, 168, 76, 0.2);
  font-family: var(--font-display), serif;
  font-weight: 700;
  line-height: 1;
  transition: all 0.4s ease;
}

.meme-soon-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.4s ease;
}

.meme-cell:hover .meme-soon > span {
  opacity: 0;
  transform: scale(0.8);
}

.meme-cell:hover .meme-soon-label {
  opacity: 1;
}

.meme-soon-label span {
  font-size: clamp(11px, 1.2vw, 16px);
  font-family: var(--font-display), serif;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
}

.meme-soon-label div {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.15);
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-dots button.is-active {
  background: var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.btn-stone {
  color: var(--parchment);
  font-family: var(--font-body), serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  border: 1px solid #c9a84c40;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  position: relative;
}

.btn-stone::before {
  content: "";
  opacity: 0;
  background: linear-gradient(135deg, #c9a84c0f 0%, #0000 60%);
  transition: opacity 0.3s;
  position: absolute;
  inset: 0;
}

.btn-stone::after {
  content: "";
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: inherit;
  background-image: url("assets/grunge.webp");
  background-size: cover;
  position: absolute;
  inset: 0;
}

.btn-stone:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-stone:hover::before {
  opacity: 1;
}

.btn-stone--primary {
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 100%);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

.btn-stone--primary:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: var(--stone-900);
}

.btn-stone img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(0.85) sepia(0.2);
}

.btn-stone--primary img {
  filter: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-socials,
.hero-socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  align-items: center;
}

.hero-socials {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  gap: 20px;
}

.footer-socials {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.footer-socials .btn-stone {
  width: 100%;
  justify-content: center;
}

.ca-box.is-copied,
.ca-box-hexagon.is-copied {
  border-color: var(--gold);
}

/* Shared components from original */
.display-title {
  font-family: var(--font-title), serif;
  color: var(--gold);
  letter-spacing: 3px;
  line-height: 0.95;
}

.small-caps-label {
  font-family: var(--font-body), serif;
  font-variant: small-caps;
  letter-spacing: 4px;
  color: var(--gold-dim);
  text-transform: uppercase;
  font-size: 14px;
}

.slab {
  background: linear-gradient(145deg, #1e211a 0%, #282c24 40%, #1e211a 100%);
  border: 1px solid #c9a84c26;
  border-radius: 2px;
  transition: border-color 0.4s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px #c9a84c14, inset 0 1px #ffffff08;
}

.slab::after {
  content: "";
  pointer-events: none;
  background:
    linear-gradient(135deg, #c9a84c0d 0%, #0000 50%),
    linear-gradient(315deg, #00000026 0%, #0000 50%);
  position: absolute;
  inset: 0;
}

.slab:hover {
  border-color: #c9a84c59;
}

.page-grunge::after,
.card-grunge::after {
  content: "";
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 10;
  background-image: url("assets/grunge.webp");
  background-size: cover;
  position: absolute;
  inset: 0;
}

.ca-box {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: default;
  background: #0e0f0db3;
  border: 1px solid #c9a84c33;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  transition: border-color 0.3s, background 0.3s;
  display: flex;
  margin-bottom: 24px;
}

.ca-box span {
  font-family: monospace;
  font-size: clamp(11px, 1vw, 14px);
  color: var(--parchment);
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ca-box-hexagon {
  clip-path: polygon(15px 0%, calc(100% - 15px) 0%, 100% 50%, calc(100% - 15px) 100%, 15px 100%, 0% 50%);
  cursor: default;
  background: #c9a84c33;
  padding: 1px;
  transition: all 0.3s;
  position: relative;
  width: 100%;
  height: 48px;
}

.ca-box-hexagon-inner {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  clip-path: polygon(14px 0%, calc(100% - 14px) 0%, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0% 50%);
  background: #0e0f0dd9;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 8px 32px;
  transition: background 0.3s;
  display: flex;
  position: relative;
}

.ca-box-hexagon-inner::after {
  content: "";
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("assets/grunge.webp");
  background-size: cover;
  position: absolute;
  inset: 0;
}

.ca-box-hexagon-inner span {
  font-family: monospace;
  font-size: clamp(12px, 1vw, 15px);
  color: var(--parchment);
  opacity: 0.6;
  white-space: nowrap;
  margin-right: 16px;
}

.btn-diamond {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  width: 48px;
  height: 48px;
  color: var(--parchment);
  cursor: pointer;
  background: #0e0f0db3;
  border: 1px solid #c9a84c40;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  position: relative;
  transform: rotate(45deg);
  outline: none;
}

.btn-diamond::before {
  content: "";
  opacity: 0;
  background: linear-gradient(135deg, #c9a84c0f 0%, #0000 60%);
  transition: opacity 0.3s;
  position: absolute;
  inset: 0;
}

.btn-diamond::after {
  content: "";
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("assets/grunge.webp");
  background-size: cover;
  position: absolute;
  inset: 0;
}

.btn-diamond:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: #1a1c18cc;
}

.btn-diamond:hover::before {
  opacity: 1;
}

.btn-diamond-icon {
  justify-content: center;
  align-items: center;
  display: flex;
  transform: rotate(-45deg);
}

.btn-diamond-icon svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.timeline-line {
  background: linear-gradient(to bottom, transparent, var(--gold-dim), transparent);
  width: 1px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
}

.timeline-dot {
  border: 2px solid var(--gold);
  background: var(--stone-900);
  z-index: 5;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  position: absolute;
  left: 50%;
  transform: translate(-50%);
}

.noise-overlay {
  z-index: 50;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: repeating-conic-gradient(#0000000a 0% 25%, #0000 0% 50%);
  background-size: 3px 3px;
  position: fixed;
  inset: 0;
}

/* Reveal helpers */
.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.9);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-80px) scale(0.95);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  filter: blur(10px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid rgba(201, 168, 76, 0.35);
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .guardian {
    display: none;
  }

  .token-grid {
    grid-template-columns: 1fr 1fr;
  }

  .token-card:nth-child(3n) {
    border-right: 1px solid rgba(201, 168, 76, 0.08);
  }

  .token-card:nth-child(2n) {
    border-right: none;
  }

  .meme-page {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
  }

  .about-text {
    right: 24px;
    max-width: 42vw;
  }

  .pillar {
    display: none;
  }
}

@media (max-width: 768px) {
  .timeline-line,
  .timeline-dot {
    display: none;
  }

  .lore-row,
  .lore-row--rtl {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-character {
    width: clamp(260px, 70vw, 420px);
    height: clamp(260px, 70vw, 420px);
    right: -8vw;
  }

  .scroll-progress-track {
    display: none;
  }

  .book-wrap {
    transform: translateX(0) !important;
  }

  .about-text {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    max-width: 100%;
    padding: 0 24px;
    margin-bottom: 32px;
    text-align: center;
    pointer-events: auto;
  }

  .about-sticky {
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
  }

  #about {
    height: auto;
    min-height: 100vh;
  }
}

@media (max-width: 520px) {
  .token-grid {
    grid-template-columns: 1fr;
  }

  .token-card {
    border-right: none !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  }

  .carousel-nav {
    display: none;
  }
}
