.subpage {
  min-height: 100%;
  background:
    radial-gradient(circle at 50% -12%, rgba(52, 118, 166, .2), transparent 34rem),
    radial-gradient(circle at 8% 38%, rgba(25, 99, 139, .12), transparent 32rem),
    #03040b;
}

.subpage .experience {
  position: fixed;
  inset: 0;
  z-index: 0;
  height: 100%;
  min-height: 0;
  pointer-events: none;
}

.subpage .experience .hero-identity,
.subpage .experience .hero-features,
.subpage .experience .hero-promise {
  display: none;
}

.subpage .experience .scene {
  position: fixed;
  inset: 0;
  display: grid;
}

.subpage .experience .portrait-flight {
  position: relative;
  top: auto;
  right: auto;
  visibility: visible !important;
}

.subpage .experience .aura { opacity: .46; }
.subpage .experience .veil { opacity: .58; }
.subpage .back-to-top { display: none; }
.subpage .site-footer { z-index: 2; }

.subpage::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 14% 20%, rgba(221, 225, 255, .38) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 31%, rgba(170, 210, 244, .28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 75%, rgba(221, 225, 255, .22) 0 1px, transparent 1.5px);
  background-size: 260px 280px, 330px 360px, 390px 410px;
  content: "";
  opacity: .44;
  pointer-events: none;
}

.subpage-main {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1120px);
  min-height: 68vh;
  margin: 0 auto;
  padding: 132px 0 88px;
}

.subpage-shell { width: 100%; margin: 0; }
.subpage-shell--article,
.subpage-shell--dictionary {
  width: min(100%, 976px);
  margin: 0 auto;
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; color: rgba(206, 211, 235, .48); font-size: 13px; }
.breadcrumbs a { color: rgba(210, 217, 244, .7); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.page-eyebrow { margin: 0 0 12px; color: #8fc8ed; font-size: 12px; font-weight: 760; letter-spacing: .18em; text-transform: uppercase; }
.page-title { max-width: 760px; margin: 0; color: #f5f3ff; font-family: var(--font-display); font-size: clamp(44px, 5.2vw, 70px); font-weight: 500; letter-spacing: -.035em; line-height: .96; }
.page-title em { color: #9bcdf1; font-weight: 400; }
.page-lead { max-width: 700px; margin: 24px 0 0; color: rgba(235, 236, 250, .82); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.72; }

.document-list { display: grid; gap: 15px; margin-top: 52px; }
.document-card { scroll-margin-top: 112px; overflow: hidden; border: 1px solid rgba(190, 194, 232, .14); border-radius: 22px; background: rgba(9, 11, 28, .68); box-shadow: 0 24px 70px rgba(0, 0, 0, .2); }
.document-card summary { display: flex; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px; color: #f0efff; font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); }
.document-card summary::-webkit-details-marker { display: none; }
.document-card summary::after { color: #91c9f2; content: "⌄"; font-family: var(--font-text); font-size: 18px; transition: transform .2s ease; }
.document-card[open] summary::after { transform: rotate(180deg); }
.document-body { padding: 0 28px 30px; border-top: 1px solid rgba(190, 194, 232, .09); color: rgba(222, 226, 244, .72); font-size: 15px; line-height: 1.75; }
.document-body h3 { margin: 28px 0 8px; color: #f0efff; font-size: 16px; }
.document-body p, .document-body ul { margin: 13px 0; }
.document-body ul { padding-left: 22px; }
.document-body a { color: #9bcdf1; }

.symbol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 52px; }
.symbol-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows:auto 1fr; gap: 7px 18px; align-items: center; min-height: 188px; padding: 24px; border: 1px solid rgba(181, 205, 235, .15); border-radius: 22px; color: inherit; background: linear-gradient(145deg, rgba(10, 25, 45, .76), rgba(7, 10, 25, .82)); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.symbol-card:hover { border-color: rgba(142, 200, 237, .5); box-shadow: 0 24px 60px rgba(7, 45, 75, .26); transform: translateY(-4px); }
.symbol-card__mark { display: grid; grid-row:1 / 3; width: 112px; height: 112px; align-self:center; place-items: center; color: #a9d8f5; font-family: var(--font-display); font-size: 26px; }
.symbol-card h2 { grid-column:2; align-self:end; margin: 0; color: #f1efff; font-family: var(--font-display); font-size: 29px; font-weight: 500; }
.symbol-card p { grid-column:2; align-self:start; margin: 0; color: rgba(215, 220, 241, .58); font-size: 13px; line-height: 1.55; }

.symbol-page-head { display:grid; grid-template-columns:339px minmax(0,1fr); gap:42px; align-items:start; min-height:308px; }
.symbol-page-head__copy { grid-column:2; grid-row:1; min-width:0; }
.article-copy { width:100%; max-width:none; margin-top: 50px; color: rgba(225, 228, 244, .76); font-family: var(--font-display); font-size: 19px; line-height: 1.7; }
.symbol-illustration { position: relative; grid-column:1; grid-row:1; width: 339px; height: 308px; overflow: hidden; background-image: url("assets/dream-symbols-sprite-v1.webp"); background-repeat: no-repeat; background-position: var(--symbol-art-position); background-size: 500% 300%; mix-blend-mode: screen; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse at center, #000 38%, rgba(0,0,0,.94) 55%, rgba(0,0,0,.5) 74%, transparent 96%); mask-image: radial-gradient(ellipse at center, #000 38%, rgba(0,0,0,.94) 55%, rgba(0,0,0,.5) 74%, transparent 96%); }
.article-copy section { margin-top: 45px; scroll-margin-top: 112px; }
.article-copy h2 { margin: 0 0 16px; color: #f4f2ff; font-size: clamp(31px, 4vw, 43px); font-weight: 500; line-height: 1.05; }
.article-copy p { margin: 14px 0; }
.meaning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.meaning-card { padding: 22px; border: 1px solid rgba(190, 194, 232, .13); border-radius: 19px; background: rgba(11, 14, 35, .66); }
.meaning-card h3 { margin: 0 0 8px; color: #eeeaff; font-family: var(--font-text); font-size: 15px; }
.meaning-card p { margin: 0; color: rgba(219, 223, 241, .65); font-family: var(--font-text); font-size: 14px; line-height: 1.65; }
.symbol-cta { margin-top: 52px; padding: 34px; border: 1px solid rgba(142, 200, 237, .24); border-radius: 24px; background: linear-gradient(135deg, rgba(36, 105, 153, .25), rgba(11, 23, 47, .64)); text-align: center; }
.symbol-cta h2 { margin-bottom: 10px; }
.symbol-cta p { max-width: 590px; margin: 0 auto 22px; font-family: var(--font-text); font-size: 15px; }
.subpage-cta { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid rgba(174, 218, 247, .25); border-radius: 13px; color: #fff; background: linear-gradient(135deg, rgba(76, 150, 202, .92), rgba(69, 91, 174, .88)); font-family: var(--font-text); font-size: 12px; font-weight: 760; letter-spacing: .055em; text-decoration: none; text-transform: uppercase; }
.more-symbols { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.more-symbols a { padding: 8px 14px; border: 1px solid rgba(190, 194, 232, .14); border-radius: 999px; color: rgba(226, 229, 246, .7); font-family: var(--font-text); font-size: 13px; text-decoration: none; }
.more-symbols a:hover { border-color: rgba(142, 200, 237, .48); color: #fff; }

@media (max-width: 1040px) {
  .subpage .experience .portrait-flight {
    position: absolute;
    right: -150px;
    width: 590px !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .symbol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .symbol-page-head { grid-template-columns:280px minmax(0,1fr); gap:24px; }
  .symbol-illustration { width:280px; height:255px; }
}

@media (max-width: 640px) {
  .subpage .experience .portrait-flight {
    position: absolute;
    top: 76px;
    right: -190px;
    width: 540px !important;
    max-width: none;
    opacity: 1 !important;
    transform: none !important;
  }

  .subpage-main { width: min(calc(100% - 28px), 1120px); padding-top: 112px; }
  .symbol-grid, .meaning-grid { grid-template-columns: 1fr; }
  .symbol-card { grid-template-columns:96px minmax(0,1fr); }
  .symbol-card__mark { width:96px; height:96px; }
  .symbol-page-head { grid-template-columns:1fr; min-height:0; }
  .symbol-page-head__copy { grid-column:1; grid-row:1; }
  .symbol-illustration { grid-column:1; grid-row:2; width:min(100%,339px); height:auto; aspect-ratio:339 / 308; margin-top:8px; }
  .symbol-card { min-height: 0; }
  .document-card summary, .document-body { padding-right: 20px; padding-left: 20px; }
  .page-title { font-size: clamp(43px, 14vw, 66px); }
}

@media (max-width: 760px),
       (pointer: coarse),
       (hover: none),
       (max-width: 960px) and (orientation: landscape) {
  .subpage .experience .portrait-flight {
    position: absolute;
    top: 76px;
    right: -49vw;
    width: 138vw !important;
    max-width: none;
    opacity: 1 !important;
    transform: none !important;
  }

  .subpage-main {
    width: min(calc(100% - 28px), 1120px);
    padding-top: 128px;
  }

  .breadcrumbs {
    position: absolute;
    top: 22px;
    left: 0;
    max-width: calc(100% - 142px);
    flex-wrap: nowrap;
    gap: 5px;
    margin: 0;
    overflow: hidden;
    font-size: 11px;
    white-space: nowrap;
  }
}

@media (max-width: 960px) and (orientation: landscape),
       (pointer: coarse) and (orientation: landscape) {
  .subpage .experience .portrait-flight {
    top: 64px;
    right: 0;
    width: auto !important;
    height: calc(100% - 64px) !important;
    max-width: none;
    max-height: none;
    transform: translateX(24.5%) !important;
  }

  .subpage-main {
    padding-top: 72px;
  }

  .symbol-page-head {
    grid-template-columns: min(280px, calc(110svh - 101px)) minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
  }

  .symbol-page-head__copy {
    grid-column: 2;
    grid-row: 1;
  }

  .symbol-illustration {
    grid-column: 1;
    grid-row: 1;
    width: min(280px, calc(110svh - 101px));
    height: auto;
    margin-top: 0;
    aspect-ratio: 339 / 308;
  }
}
