/* Shared responsive polish for every page.  Page-specific files keep the art direction;
   this layer keeps widths, typography, and controls predictable at every viewport. */
:root {
  --site-gutter: clamp(18px, 5vw, 96px);
  --site-max: 1920px;
}

html,
body {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body,
button,
input,
textarea,
select {
  font-family: Poppins, Arial, Helvetica, sans-serif;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

.site-header {
  width: 100%;
  max-width: var(--site-max);
}

.site-header nav {
  width: min(92%, 1294px);
  gap: clamp(18px, 3vw, 58px);
}

.bio-footer,
.events-page .bio-footer,
.nft-page .bio-footer,
.artwork-page .bio-footer {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.artwork-page,
.events-page,
.nft-page {
  min-width: 0 !important;
}

.bio-page > main,
.events-page > main,
.nft-page > main,
.artwork-page > main {
  width: 100% !important;
  max-width: none;
  min-width: 0 !important;
  margin-inline: auto;
}

/* Contact links share the existing social row and wrap on narrow screens. */
.bio-footer nav,
.home-profile-social,
.bio-profile-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bio-footer nav a { flex-shrink: 0; }

.bio-footer nav a.contact-email,
.home-profile-social a.contact-email,
.bio-profile-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #ffffff70;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.contact-email svg,
.bio-profile-contact img {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.bio-footer { grid-template-columns: minmax(130px, 1fr) auto; gap: 32px; }
.bio-profile-contact { margin-top: 28px; }
.bio-profile-contact a:hover,
.bio-profile-contact a:focus-visible { background: #424b22; }

/* About sections fill the screen while biography text stays readable. */
.bio-content { width: min(80%, 1440px); }
.bio-page h1 { font-size: clamp(48px, 6.6vw, 126px); }
.bio-content p { font-size: clamp(15px, 1.3vw, 25px); line-height: 1.65; text-align: left; }

@media (max-width: 1100px) {
  .bio-footer,
  .home-page .bio-footer { display: grid; grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .bio-content { width: 86%; }
  .bio-page h1 { font-size: clamp(48px, 12vw, 76px); }
  .bio-footer nav,
  .home-profile-social { gap: 10px; }
  .bio-footer nav a { width: 44px; height: 44px; }
  .bio-footer nav img { width: 22px; height: 22px; }
  .bio-footer nav a.contact-email,
  .home-profile-social a.contact-email,
  .bio-profile-contact a { padding-inline: 10px; font-size: 12px; gap: 8px; }
}

/* Events list and detail pages */
.events-intro {
  min-height: clamp(520px, 42vw, 650px);
  padding: clamp(150px, 13vw, 205px) var(--site-gutter) clamp(80px, 8vw, 120px);
}

.events-intro h1 {
  max-width: min(900px, 72vw);
  font-size: clamp(58px, 10vw, 190px);
}

.events-intro > div {
  width: min(580px, 100%);
  font-size: clamp(16px, 1.35vw, 20px);
}

.events-intro-eye {
  right: clamp(-120px, -2vw, -22px);
  width: clamp(250px, 29vw, 560px);
}

.events-intro-flower {
  right: clamp(12%, 18vw, 18%);
  width: clamp(88px, 8vw, 150px);
}

.events-list {
  width: min(calc(100% - 2 * var(--site-gutter)), 1480px);
  padding: clamp(70px, 7vw, 110px) 0 clamp(90px, 9vw, 150px);
}

.event-list-card {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
}

.event-list-copy {
  min-width: 0;
  padding: clamp(32px, 4vw, 66px);
}

.event-list-copy h2 {
  font-size: clamp(28px, 2.65vw, 38px);
}

.event-detail-hero {
  height: clamp(520px, 40vw, 760px);
}

.event-detail-heading {
  left: var(--site-gutter);
  width: min(710px, calc(100% - 2 * var(--site-gutter)));
}

.event-detail-heading h1 {
  font-size: clamp(42px, 4.8vw, 68px);
}

.event-detail-heading > div {
  width: min(590px, 100%);
  font-size: clamp(16px, 1.25vw, 18px);
}

.event-story-shell,
.event-detail-pagination {
  width: min(calc(100% - 2 * var(--site-gutter)), 1450px);
}

.event-story-shell {
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 95px);
}

.event-story-intro,
.event-story-section,
.event-gallery {
  width: 100%;
  max-width: none;
}

.event-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* NFT page */
.nft-hero {
  min-height: clamp(720px, 51vw, 980px);
  padding: clamp(135px, 9.6vw, 185px) var(--site-gutter) clamp(90px, 6.3vw, 120px);
}

.roadmap-logo {
  top: clamp(88px, 6.5vw, 125px);
  left: var(--site-gutter);
  width: clamp(190px, 16.2vw, 310px);
}

.nft-hero-copy {
  width: min(690px, 58vw);
  padding-top: clamp(180px, 13vw, 250px);
}

.nft-hero-copy h1 {
  font-size: clamp(58px, 6.7vw, 92px);
}

.nft-hero-copy > p:last-of-type {
  max-width: 660px;
  font-size: clamp(16px, 1.32vw, 19px);
}

.nft-hero-character {
  top: clamp(42px, 3vw, 58px);
  right: clamp(-210px, -11vw, -80px);
  width: clamp(500px, 45vw, 860px);
}

.nft-hero-glow {
  top: clamp(28px, 2vw, 40px);
  right: clamp(-120px, -4vw, -30px);
  width: clamp(440px, 36vw, 680px);
  height: clamp(440px, 36vw, 680px);
}

.nft-hero-orbit {
  right: clamp(-180px, -6vw, -58px);
  width: clamp(520px, 40vw, 760px);
  height: clamp(520px, 40vw, 760px);
}

.universe-section,
.holder-section,
.roadmap-section,
.engine-section,
.chapter-section {
  padding-inline: var(--site-gutter);
}

.section-heading h2,
.engine-heading h2,
.chapter-section h2 {
  font-size: clamp(44px, 5vw, 72px);
}

.universe-grid {
  width: min(100%, 1500px);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.holder-grid {
  width: min(100%, 1440px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.engine-section {
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
}

.chapter-section ol {
  width: min(100%, 1420px);
  flex-wrap: wrap;
}

/* Manual and digital artwork pages */
.manual-artwork-main {
  min-height: 0;
  padding: clamp(130px, 11vw, 209px) var(--site-gutter) clamp(100px, 15vw, 294px);
  background-size: cover;
}

.manual-art-grid {
  width: min(100%, 1302px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 80px) clamp(24px, 5.25vw, 101px);
}

.manual-art-card {
  width: 100%;
  height: auto;
  aspect-ratio: 366 / 525;
}

.manual-art-image {
  height: 70.3%;
}

.manual-art-info {
  min-height: 29.7%;
  padding: clamp(14px, 1.2vw, 23px) clamp(56px, 4.3vw, 82px) clamp(14px, 1.2vw, 23px) clamp(16px, 1.2vw, 23px);
}

.manual-art-info strong {
  font-size: clamp(16px, 1.1vw, 20px);
}

.manual-art-info span {
  font-size: clamp(12px, .78vw, 14px);
}

.digital-artwork-main {
  min-height: calc(100vh - 250px);
  padding: clamp(120px, 9vw, 145px) var(--site-gutter) 100px;
  background-size: cover;
}

.digital-showcase {
  width: min(100%, 1329px);
  height: min(674px, 58vw);
}

.digital-copy {
  padding: clamp(28px, 4vw, 50px) clamp(24px, 5vw, 90px) clamp(28px, 4vw, 50px) 20px;
}

.digital-copy h2 {
  font-size: clamp(26px, 2.5vw, 36px);
}

.digital-copy p {
  font-size: clamp(17px, 1.7vw, 25px);
}

.digital-prev { left: -98px; }
.digital-next { right: -98px; }

.artwork-page dialog h2,
.artwork-page dialog h3,
.artwork-page .detail-price,
.artwork-page .art-detail-copy h2,
.artwork-page .checkout-dialog > h2,
.artwork-page .order-summary h3 {
  font-family: inherit;
}

/* Medium screens: keep content readable without horizontal scrolling. */
@media (max-width: 900px) {
  .events-intro h1 { max-width: 100%; }

  .event-list-card { grid-template-columns: 1fr; }
  .event-list-image { min-height: clamp(260px, 48vw, 410px); }

  .event-story-shell {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .event-story-aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 26px;
  }

  .event-detail-pagination { grid-template-columns: 1fr 60px 1fr; }

  .nft-hero {
    min-height: 760px;
    padding-top: 120px;
  }

  .nft-hero-copy {
    width: min(100%, 630px);
    padding-top: 200px;
  }

  .nft-hero-character {
    right: -130px;
    width: min(62vw, 600px);
  }

  .engine-section { grid-template-columns: 1fr; gap: 52px; }
  .engine-list li { grid-template-columns: minmax(130px, .45fr) minmax(0, 1fr); }

  .manual-art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .digital-showcase { height: auto; min-height: 560px; }
}

@media (max-width: 720px) {
  .site-header,
  .site-header.is-compact,
  .site-header.is-compact:hover,
  .site-header.is-compact:focus-within {
    width: 100%;
  }

  .bio-footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px var(--site-gutter) 38px;
  }

  .bio-footer nav { justify-content: flex-start; }

  .events-intro {
    min-height: 570px;
    padding-top: 120px;
  }

  .events-intro h1 { font-size: clamp(58px, 17vw, 100px); }
  .events-intro-eye { top: 84px; right: -70px; width: 280px; opacity: .8; }
  .events-intro-flower { right: 14%; bottom: 54px; width: 96px; }
  .event-list-copy { padding: 30px 24px 34px; }
  .event-list-copy h2 { font-size: 30px; }

  .event-detail-hero { height: 620px; }
  .event-detail-heading { left: var(--site-gutter); width: calc(100% - 2 * var(--site-gutter)); }
  .event-detail-heading h1 { font-size: clamp(38px, 11vw, 58px); }
  .event-story-intro { font-size: 18px; line-height: 1.65; }
  .event-story-section { grid-template-columns: 1fr; gap: 12px; }
  .event-gallery { grid-template-columns: 1fr; margin-top: 65px; }
  .event-gallery-item.is-featured { grid-column: auto; }
  .event-gallery-item img,
  .event-gallery-item.is-featured img { height: auto; aspect-ratio: 4 / 3; }
  .event-detail-pagination { width: calc(100% - 2 * var(--site-gutter)); margin-bottom: 70px; padding: 30px 0; }
  .event-detail-pagination strong { font-size: 13px; }

  .nft-hero {
    min-height: 700px;
    padding: 110px var(--site-gutter) 70px;
  }

  .roadmap-logo { top: 80px; width: 190px; }
  .nft-hero-copy { padding-top: 190px; }
  .nft-hero-copy h1 { font-size: clamp(52px, 14vw, 72px); }
  .nft-hero-copy > p:last-of-type { font-size: 16px; line-height: 1.6; }
  .hero-actions { flex-wrap: wrap; }
  .nft-hero-character { top: 76px; right: -150px; width: 430px; opacity: .86; }
  .nft-hero-glow { right: -170px; width: 430px; height: 430px; }
  .nft-hero-orbit { right: -170px; width: 500px; height: 500px; }

  .universe-section,
  .holder-section,
  .roadmap-section,
  .engine-section,
  .chapter-section { padding-block: 86px 100px; }
  .section-heading { margin-bottom: 44px; }
  .section-heading h2,
  .engine-heading h2,
  .chapter-section h2 { font-size: clamp(42px, 13vw, 60px); }
  .section-heading > p:last-child,
  .engine-heading > p:last-child { font-size: 16px; line-height: 1.6; }
  .universe-grid,
  .holder-grid { grid-template-columns: 1fr; max-width: 520px; }
  .universe-card,
  .holder-grid article { min-height: 0; padding: 28px 24px; }
  .universe-card h3,
  .holder-grid h3 { margin-top: 44px; }
  .roadmap-list::before { left: 35px; }
  .roadmap-phase { grid-template-columns: 72px minmax(0, 1fr); gap: 20px; }
  .phase-number { width: 66px; height: 66px; font-size: 20px; }
  .phase-copy h3 { font-size: 28px; }
  .phase-copy > div { font-size: 16px; line-height: 1.65; }
  .engine-list li { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .chapter-section ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 42px auto; }
  .chapter-section blockquote { margin-top: 48px; font-size: 21px; }

  .manual-artwork-main { padding-top: 100px; }
  .manual-art-grid { grid-template-columns: 1fr; max-width: 480px; }
  .manual-art-card { aspect-ratio: 366 / 525; }
  .digital-artwork-main { padding-top: 100px; }
  .digital-showcase { display: flex; min-height: 0; flex-direction: column; }
  .digital-stage { min-height: 64vw; padding: 24px 48px; }
  .digital-copy { padding: 18px 24px 30px; text-align: center; }
  .digital-count { margin-top: 16px; }
  .digital-arrow { width: 36px; height: 36px; border-width: 2px; }
  .digital-arrow::before { font-size: 30px; transform: translateY(-2px); }
  .digital-arrow::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
  .digital-prev { left: 8px; }
  .digital-next { right: 8px; }

  .artwork-page dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .art-detail-layout { display: block; min-height: 0; }
  .art-detail-visual { min-height: 48vh; padding: 30px; }
  .art-detail-copy { padding: 38px 26px 44px; }
  .art-detail-copy h2 { font-size: 36px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .checkout-dialog > h2 { padding: 34px 24px 0; font-size: 34px; }
  .purchase-form { padding: 24px; }
  .order-summary { padding: 24px; }
}

@media (max-width: 420px) {
  .site-header { padding-inline: 14px; }
  .brand { font-size: 14px; }
  .menu-button { min-height: 40px; padding: 7px 10px; font-size: 12px; }
  .events-list { width: calc(100% - 28px); }
  .event-detail-pagination { width: calc(100% - 28px); }
  .nft-hero-copy h1 { font-size: 48px; }
  .nft-hero-character { right: -200px; width: 420px; }
  .chapter-section ol { grid-template-columns: 1fr; }
  .manual-artwork-main { padding-inline: 14px; }
}
