/* Each chapter has its own visual subject and composition. */
.chapter-art { margin: 0; pointer-events: none; }
.chapter-art picture, .chapter-art img { display: block; width: 100%; }
.chapter-art img { height: auto; }
.round-art {
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent), linear-gradient(transparent, #000 8%, #000 90%, transparent);
  mask-composite: intersect;
}

/* Selected economy concept: a native coin on a quiet sports court. */
.economy-ledger { position: relative; isolation: isolate; min-height: min(calc(71.15 * var(--vw, 1vw)), 1058px); overflow: hidden; background: #060a16; }
.economy-ledger__background { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.economy-ledger__background img { display: block; width: 100%; height: 100%; object-fit: cover; }
.economy-ledger__inner { position: relative; width: min(1240px, 86.6%); margin-inline: auto; padding-top: clamp(70px, calc(6.3 * var(--vw, 1vw)), 94px); padding-bottom: 100px; }
.economy-ledger__intro h2 { font-size: clamp(48px, calc(5.24 * var(--vw, 1vw)), 75px); line-height: 1.08; letter-spacing: -1.6px; }
.economy-ledger__intro h2 span { color: #d7dcff; background: linear-gradient(110deg, #f3f4ff, #b8c4fa); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.economy-ledger__intro p { font-size: clamp(19px, calc(1.9 * var(--vw, 1vw)), 28px); line-height: 1.4; color: #b0b9d8; margin-top: 25px; }
.economy-ledger__coin { position: absolute; width: 46.3%; margin: 0; left: -.7%; top: min(calc(22.8 * var(--vw, 1vw)), 339px); pointer-events: none; }
.economy-ledger__coin img { display: block; width: 100%; height: auto; }
.economy-ledger__allocation { width: calc(46% + 26px); margin-left: 54%; margin-top: -15px; }
.economy-ledger__shares { margin: 0; padding: 0; list-style: none; }
.economy-ledger__shares li { display: grid; grid-template-columns: 32% 1fr; align-items: center; gap: 24px; min-height: clamp(115px, calc(9.68 * var(--vw, 1vw)), 144px); border-bottom: 1px solid #30436b; }
.economy-ledger__shares li:last-child { border-bottom: 0; }
.economy-ledger__percent { display: block; font-family: var(--heading); font-size: clamp(67px, calc(6.12 * var(--vw, 1vw)), 91px); line-height: 1; letter-spacing: -4px; white-space: nowrap; color: #f8f9ff; }
.economy-ledger__percent > span { font-size: .61em; letter-spacing: -2px; color: #4377ff; }
.economy-ledger__shares li > div { border-left: 1px solid #527ff4; padding: 0 0 0 clamp(20px, calc(2.4 * var(--vw, 1vw)), 36px); }
.economy-ledger__shares h3 { font-family: var(--font); font-size: clamp(18px, calc(1.66 * var(--vw, 1vw)), 25px); font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.economy-ledger__shares p { margin-top: 8px; color: #b0bddd; font-size: clamp(14px, calc(1.2 * var(--vw, 1vw)), 18px); line-height: 1.5; }
.economy-ledger__cta { margin-top: 38px; min-width: 384px; min-height: 80px; justify-content: space-between; gap: 48px; border-radius: 13px; padding: 20px 36px; background: #2858ff; font-size: 22px; border-color: #688dff; box-shadow: inset 0 1px 0 #a7bbff33; }
.economy-ledger__cta svg { width: 25px; height: 25px; }
.economy-ledger__note { font-size: clamp(14px, calc(1.2 * var(--vw, 1vw)), 18px); color: #b0bddd; line-height: 1.5; margin-top: 25px; }
.economy-stemx-wrap { padding-bottom: 112px; }

@media (min-width: 701px) and (max-width: 1100px) {
  .economy-ledger__inner { width: calc(100% - 64px); padding-bottom: 72px; }
  .economy-ledger__allocation { width: 52%; margin-left: 48%; margin-top: 18px; }
  .economy-ledger__shares li { gap: 14px; grid-template-columns: 31% 1fr; }
  .economy-ledger__percent { font-size: clamp(55px, 6.3vw, 69px); }
  .economy-ledger__shares li > div { padding-left: 19px; }
  .economy-ledger__coin { width: 52%; left: -4%; top: 300px; }
  .economy-ledger__cta { min-width: 0; width: 100%; min-height: 66px; font-size: 18px; padding-inline: 24px; }
  .economy-ledger__note { font-size: 14px; }
}
@media (max-width: 700px) {
  .economy-ledger__inner { width: calc(100% - 40px); padding-top: 58px; padding-bottom: 62px; }
  .economy-ledger__intro h2 { font-size: clamp(31px, 8.5vw, 48px); line-height: 1.12; letter-spacing: -.8px; }
  .economy-ledger__intro p { font-size: 17px; line-height: 1.55; margin-top: 21px; }
  .economy-ledger__break { display: none; }
  .economy-ledger__background img { object-position: 28% center; }
  .economy-ledger__background::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #060a16 45%); }
  .economy-ledger__coin { position: relative; width: min(460px, calc(100% + 40px)); top: auto; left: auto; margin: -12px auto -40px; transform: translateX(-5%); }
  .economy-ledger__allocation { width: 100%; margin: 0; position: relative; }
  .economy-ledger__shares li { grid-template-columns: 110px 1fr; gap: 14px; min-height: 121px; }
  .economy-ledger__percent { font-size: 57px; letter-spacing: -2.8px; }
  .economy-ledger__shares li > div { padding-left: 17px; }
  .economy-ledger__shares h3 { font-size: 18px; }
  .economy-ledger__shares p { font-size: 14px; line-height: 1.45; margin-top: 7px; }
  .economy-ledger__cta { width: 100%; min-width: 0; margin-top: 28px; min-height: 65px; font-size: 18px; padding: 18px 25px; gap: 16px; border-radius: 10px; }
  .economy-ledger__note { margin-top: 19px; font-size: 13px; line-height: 1.6; }
  .economy-stemx-wrap { padding-bottom: 64px; }
}

/* Native coins remain separate from generated environments. */
.stemx-art, .migration-art, .stemx-art img, .migration-art img { mask-image: none; -webkit-mask-image: none; }
.stemx-art picture, .migration-art picture { display: block; }
.stemx-art img, .migration-art img { width: 100%; height: auto; }
.section-environment { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.section-environment picture, .section-environment img { display: block; width: 100%; height: 100%; }
.section-environment img { object-fit: cover; }
.section-environment::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg), transparent 24%, transparent 78%, var(--bg)), linear-gradient(90deg, var(--bg) 18%, #080a19e6 36%, #080a1910 71%); }

/* STEMX: circulation and market depth. Illustration left, explanation right. */
.stemx-story { isolation: isolate; min-height: 790px; padding-top: 150px; margin-top: 80px; }
.stemx-story > .section-environment { left: calc(50% - calc(50 * var(--vw, 1vw))); right: calc(50% - calc(50 * var(--vw, 1vw))); }
.stemx-story > .section-environment::after { background: linear-gradient(180deg, var(--bg), transparent 23%, transparent 78%, var(--bg)), linear-gradient(90deg, #080a1900 25%, #080a1933 43%, var(--bg) 69%); }
.stemx-copy { position: relative; width: 46%; margin-left: auto; z-index: 2; }
.stemx-copy h2 { font-size: clamp(36px, calc(3.7 * var(--vw, 1vw)), 52px); }
.stemx-art { width: 760px; top: 20px; left: -105px; right: auto; z-index: 1; }

/* First round: the exchange being assembled, with restrained copper light. */
.round-section { position: relative; isolation: isolate; background: radial-gradient(ellipse at 9% 65%, #4b2d171c, transparent 53%), linear-gradient(135deg, #0d1322, #080a19 75%); }
.round-section::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(#8296bb06 1px, transparent 1px), linear-gradient(90deg, #8296bb06 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000, transparent 65%); }
.round-layout { gap: 70px; grid-template-columns: 1fr 460px; align-items: start; }
.round-moment { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin: 30px 0; }
.round-moment .round-goal { font-size: clamp(48px, calc(4.6 * var(--vw, 1vw)), 66px); margin-top: 0; white-space: nowrap; }
.round-art { width: calc(100% + 30px); margin: 0 -15px; }
.round-art img { width: 100%; height: auto; }
.round-section .calculator { box-shadow: 0 30px 90px #0007, 0 0 60px #536cff0b; }
.participation-steps { margin-top: 40px; }

/* Migration: existing value carried into a new wallet. */
.migration-section { position: relative; isolation: isolate; background: var(--bg); }
.migration-layout { position: relative; min-height: 830px; padding-block: 125px; }
.migration-copy { position: relative; width: 46%; max-width: 535px; z-index: 2; }
.migration-art { width: 650px; right: -25px; top: 2px; z-index: 1; }
.migration-section .section-environment img { object-position: center 62%; }
.migration-calculator { background: linear-gradient(145deg, #16213cdd, #0c1024dd); box-shadow: 0 20px 65px #02061466; backdrop-filter: blur(12px); }

/* Supply: an exact six-part diagram against a quiet technical grid. */
#tokenomics { position: relative; isolation: isolate; }
#tokenomics::before { content: ''; position: absolute; z-index: -1; inset: 0 calc(50% - calc(50 * var(--vw, 1vw))); pointer-events: none; background: radial-gradient(ellipse at 78% 18%, #46578924, transparent 47%), linear-gradient(#8cadd307 1px, transparent 1px), linear-gradient(90deg, #8cadd307 1px, transparent 1px); background-size: auto, 72px 72px, 72px 72px; mask-image: linear-gradient(transparent, #000 14%, #000 78%, transparent); }
.supply-intro { display: grid; grid-template-columns: 1fr 490px; gap: 60px; align-items: center; }
.supply-intro h2 { font-size: clamp(36px, calc(3.65 * var(--vw, 1vw)), 52px); }
.supply-art { margin: -40px -30px -30px; width: calc(100% + 60px); }
#tokenomics .allocation-bar { margin-top: 24px; height: 5px; border-radius: 0; }
.allocation-table { background: linear-gradient(100deg, #10182a88, #0a0e1d44); }
.governance-note { padding: 28px 30px; background: linear-gradient(110deg, #16244677, #12162d22); border-radius: 0 16px 16px 0; }

/* Questions: a tactile book, quieter light and an editorial composition. */
.faq-section { position: relative; isolation: isolate; gap: 95px; padding-top: 85px; }
.faq-section::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 0; background: radial-gradient(ellipse at 19% 47%, #33294537, transparent 58%); }
.faq-art { width: 370px; max-width: 110%; margin: 22px 0 -15px -28px; mask-image: radial-gradient(ellipse, #000 40%, transparent 72%); }
.faq-list { align-self: start; }

/* Finale: a starting line, opening into the next chapter. */
.closing-section { width: 100%; position: relative; isolation: isolate; overflow: hidden; margin: 0; padding: 56px 0 220px; min-height: 650px; text-align: center; border: 0; }
.closing-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.closing-backdrop picture, .closing-backdrop img { display: block; width: 100%; height: 100%; }
.closing-backdrop img { object-fit: cover; object-position: center 70%; }
.closing-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--bg), #080a1970 22%, #080a191a 65%, var(--bg)), radial-gradient(ellipse at 50% 34%, #080a1980, transparent 62%); }
.closing-content h2 { font-size: clamp(37px, calc(4.1 * var(--vw, 1vw)), 58px); }
.closing-content > p { max-width: 760px; margin: 28px auto 0; text-wrap: pretty; }
.closing-content .hero-actions { justify-content: center; align-items: center; }

@media (min-width: 901px) and (max-width: 1279px) {
  .stemx-story { min-height: 740px; padding-top: 100px; }
  .stemx-art { width: calc(59 * var(--vw, 1vw)); left: -65px; top: 55px; }
  .stemx-copy { width: 47%; }
  .round-layout { grid-template-columns: 1fr 425px; gap: 38px; }
  .round-moment { grid-template-columns: 1fr; }
  .round-art { max-width: 390px; margin: -30px -15px -25px auto; }
  .migration-copy { width: 48%; }
  .migration-art { width: calc(57 * var(--vw, 1vw)); top: 35px; right: -28px; }
  .migration-layout { padding-block: 105px; min-height: 810px; }
  .supply-intro { grid-template-columns: 1fr 42%; gap: 40px; }
  .faq-section { gap: 60px; }
}
@media (max-width: 900px) {
  .stemx-story { padding-top: 70px; margin-top: 35px; min-height: 0; }
  .stemx-copy, .migration-copy { width: 100%; max-width: 620px; margin-left: 0; }
  .stemx-art, .migration-art { position: relative; inset: auto; width: min(100%, 660px); margin: 12px auto 0; }
  .section-environment { top: auto; bottom: 0; height: min(105vw, 700px); }
  .section-environment::after, .stemx-story > .section-environment::after { background: linear-gradient(var(--bg), transparent 22%, transparent 79%, var(--bg)); }
  .stemx-story .section-environment img { object-position: 23% center; }
  .migration-section .section-environment img { object-position: 81% center; }
  .migration-art { margin-top: -18px; }
  .migration-layout { min-height: 0; padding-block: 80px 20px; }
  .round-layout { gap: 28px; grid-template-columns: 1fr 1fr; }
  .round-moment { grid-template-columns: 1fr; }
  .round-art { margin: 0 -15px; }
  .supply-intro { grid-template-columns: 1fr 43%; gap: 28px; }
  .supply-intro h2 { font-size: 34px; }
  .supply-art { width: calc(100% + 24px); margin: -10px -12px; }
  .faq-section { gap: 38px; padding-top: 50px; }
  .faq-art { width: 300px; margin-left: -20px; }
  .closing-section { min-height: 620px; padding: 56px 0 200px; }
}
@media (max-width: 650px) {
  .stemx-copy h2, .supply-intro h2 { font-size: 32px; }
  .stemx-story { padding-top: 50px; }
  .stemx-art, .migration-art { width: calc(100% + 40px); margin: 8px -20px 0; }
  .section-environment { height: calc(108vw + 30px); }
  .migration-layout { padding-block: 64px 15px; }
  .migration-art { margin-top: -3px; }
  .round-layout { grid-template-columns: 1fr; gap: 28px; }
  .round-moment { gap: 0; margin: 26px 0 8px; }
  .round-moment .round-goal { font-size: 58px; }
  .round-art { width: calc(100% + 30px); margin: 6px -15px -10px; }
  .supply-intro { grid-template-columns: 1fr; gap: 8px; }
  .supply-art { width: min(100%, 410px); margin: 0 auto -18px; }
  #tokenomics .allocation-bar { margin-top: 16px; }
  .governance-note { padding: 22px 20px; }
  .faq-section { gap: 25px; padding-top: 30px; }
  .faq-heading { position: relative; min-height: 210px; }
  .faq-heading h2, .faq-heading p, .faq-heading .text-link { position: relative; z-index: 1; max-width: 60%; }
  .faq-art { position: absolute; width: clamp(130px, 43vw, 175px); max-width: 50%; right: 0; top: 18px; margin: 0; }
  .closing-section { min-height: 630px; padding: 78px 0 200px; }
  .closing-content h2 { font-size: 34px; }
  .closing-content > p { font-size: 15px; margin-top: 22px; }
  .closing-content .hero-actions { flex-direction: column; gap: 20px; }
  .closing-backdrop img { object-position: 60% bottom; }
}
