@font-face {
  font-family: "AS Libre Baskerville";
  src: url("assets/shared/fonts/libre-baskerville/LibreBaskerville-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AS Libre Baskerville";
  src: url("assets/shared/fonts/libre-baskerville/LibreBaskerville-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #2a130d;
  --muted: #604128;
  --parchment: #f6e4b8;
  --parchment-2: #f8eac0;
  --parchment-shadow: #c29346;
  --ruby: #7e130a;
  --ruby-dark: #5a0b07;
  --ruby-shadow: #2a0302;
  --blue: #051b2b;
  --blue-2: #08243a;
  --gold: #d6a33a;
  --gold-2: #ffd970;
  --gold-shadow: #8a5619;
  --green: #12643b;
  --green-2: #40c878;
  --sapphire: #0a6eb9;
  --sky-blue: #42c8ff;
  --violet: #a24bff;
  --rose: #ff4878;
  --line: rgba(93, 58, 22, 0.26);
  --shadow: 0 22px 48px rgba(45, 20, 5, 0.2);
  --max: 1180px;
  --as-header-max: 941px;
  --as-red-button-text: #e7c65f;
  --font-heading: "AS Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "AS Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-ui: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --as-page-frame: url("assets/shared/frames/as-page-frame-9slice.png");
  --as-card-frame: url("assets/shared/frames/as-card-frame-9slice.png");
  --as-core-card-frame: url("assets/shared/frames/as-core-card-frame-9slice.png");
  --as-button-frame: url("assets/shared/frames/as-button-frame-9slice.png");
  --as-parchment-surface: url("assets/shared/textures/parchment-comp-grain-768.png");
  --as-parchment-surface-size: 768px 768px;
  --as-parchment-background:
    radial-gradient(circle at 18% 18%, rgba(255, 248, 218, 0.3), transparent 27rem),
    radial-gradient(circle at 77% 44%, rgba(176, 121, 45, 0.055), transparent 25rem),
    linear-gradient(rgba(255, 248, 222, 0.26), rgba(255, 248, 222, 0.26)),
    linear-gradient(90deg, rgba(177, 121, 45, 0.08), rgba(255, 248, 222, 0.11) 14%, rgba(255, 248, 222, 0.06) 86%, rgba(159, 104, 36, 0.075)),
    var(--as-parchment-surface) 0 0 / var(--as-parchment-surface-size) repeat,
    var(--parchment);
  --as-red-page-frame-background:
    radial-gradient(circle at 16% 8%, rgba(112, 8, 6, 0.5), transparent 24rem),
    radial-gradient(circle at 82% 28%, rgba(76, 3, 2, 0.58), transparent 28rem),
    linear-gradient(rgba(82, 2, 2, 0.92), rgba(47, 2, 1, 0.97)),
    var(--as-parchment-surface) 0 0 / var(--as-parchment-surface-size) repeat,
    rgb(47, 2, 1);
  --as-parchment-panel-background:
    radial-gradient(circle at 78% 24%, rgba(255, 245, 214, 0.18), transparent 19rem),
    linear-gradient(rgba(255, 242, 204, 0.2), rgba(255, 242, 204, 0.2)),
    var(--as-parchment-surface) 0 0 / var(--as-parchment-surface-size) repeat,
    #f3dfb0;
  --as-parchment-header-background: var(--as-parchment-background);
  --as-ornate-button-frame: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-frame-border.png");
  --as-ornate-button-left: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-frame-left.png");
  --as-ornate-button-right: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-frame-right.png");
  --as-ornate-button-rail: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-frame-rail.png");
  --as-ornate-button-rail-sampled: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-rail-clean.png");
  --as-ornate-button-rail-top: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-frame-rail-top.png");
  --as-ornate-button-rail-bottom: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-frame-rail-bottom.png");
  --as-ornate-button-cap-fill-red-left: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-cap-fill-red-left-clean.png");
  --as-ornate-button-cap-fill-red-right: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-cap-fill-red-right-clean.png");
  --as-ornate-button-cap-fill-blue-left: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-cap-fill-blue-left-clean.png");
  --as-ornate-button-cap-fill-blue-right: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-cap-fill-blue-right-clean.png");
  --as-ornate-button-cap-fill-gold-left: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-cap-fill-gold-left-clean.png");
  --as-ornate-button-cap-fill-gold-right: url("assets/shared/buttons/dynamic-ornate/home-ornate-button-cap-fill-gold-right-clean.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--as-parchment-background);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0.35rem;
  z-index: 20;
  pointer-events: none;
  border: 2px solid rgba(201, 147, 40, 0.82);
  border-radius: 0.35rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 210, 0.65),
    inset 0 0 0 7px rgba(73, 10, 8, 0.18),
    0 0 0 0.7rem rgba(55, 8, 7, 0.08);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  border: 2px solid #d3a13a;
  border-radius: 0.25rem;
  background: #07263a;
  color: #fff8d6;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-100% - 1rem));
  transition:
    opacity 120ms ease-out,
    transform 120ms ease-out;
}

.skip-link:focus {
  outline: 3px solid #fff8d6;
  outline-offset: 2px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
}

p {
  line-height: 1.55;
}

.site-frame {
  width: min(var(--max), calc(100% - 0.75rem));
  margin: 0 auto;
  background: transparent;
}

.site-header .site-frame {
  width: min(var(--as-header-max), calc(100% - 0.75rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(138, 86, 25, 0.28);
  background: var(--as-parchment-header-background);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(42, 19, 13, 0.08);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 10.8rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.35));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.6rem);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font-ui);
}

.site-nav a {
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ruby);
}

.nav-cta,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.72rem 1.1rem;
  border: 2px solid var(--gold);
  border-radius: 0.42rem;
  box-shadow: inset 0 0 0 1px rgba(255, 246, 217, 0.45), 0 4px 0 rgba(53, 22, 4, 0.32);
  color: #fff6d9;
  font-weight: 800;
  text-decoration: none;
}

.nav-cta::before,
.button::before,
.nav-cta::after,
.button::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid var(--gold-2);
  transform: translateY(-50%) rotate(45deg);
  background: rgba(8, 47, 70, 0.9);
}

.nav-cta::before,
.button::before {
  left: 0.28rem;
}

.nav-cta::after,
.button::after {
  right: 0.28rem;
}

.nav-cta,
.button.primary {
  background: linear-gradient(180deg, #a51d17, var(--ruby-dark));
}

.button.secondary {
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
}

.button.gold {
  color: #351404;
  background: linear-gradient(180deg, #fff0a4, var(--gold));
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(19rem, 0.8fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  margin-top: 1.15rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 2px solid rgba(201, 147, 40, 0.62);
  border-radius: 0.5rem;
  background:
    linear-gradient(90deg, rgba(255, 246, 220, 0.9), rgba(255, 246, 220, 0.74)),
    radial-gradient(circle at 78% 32%, rgba(255, 199, 56, 0.22), transparent 14rem);
  box-shadow: var(--shadow), inset 0 0 0 7px rgba(255, 250, 232, 0.5);
  overflow: hidden;
}

.hero::before,
.hero::after,
.section::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  right: -3rem;
  top: 0.65rem;
  width: min(58vw, 39rem);
  height: 14.5rem;
  background: url("assets/shared/ornaments/rainbow-musical-flourish-transparent.png") center / contain no-repeat;
  opacity: 0.46;
  filter: drop-shadow(0 0 12px rgba(255, 246, 217, 0.48));
  transform: rotate(-8deg);
}

.hero::after {
  display: none;
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

.hero > *,
.section > *,
.split > *,
.visual-feature > *,
.vault-card-showcase > *,
.book-card > *,
.vault-card > *,
.memory-step > * {
  min-width: 0;
}

.hero h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  color: var(--ruby);
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  line-height: 0.92;
}

.hero-copy > p:not(.eyebrow):not(.note) {
  max-width: 38rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-style: italic;
}

.hero-art {
  position: relative;
}

.hero-art:not(.mockup-frame)::before {
  content: "";
  position: absolute;
  inset: 5% -8% auto auto;
  width: 86%;
  height: 52%;
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(255, 204, 55, 0.34), rgba(25, 143, 222, 0.28), rgba(221, 45, 83, 0.22));
  filter: blur(4px);
  transform: rotate(-10deg);
}

.hero-art img {
  position: relative;
  width: min(100%, 29rem);
  margin-inline: auto;
  filter: drop-shadow(0 22px 24px rgba(45, 20, 5, 0.28));
}

.parchment-card,
.book-card,
.vault-card,
.memory-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 248, 226, 0.88);
  box-shadow: var(--shadow);
}

.parchment-card::before,
.book-card::before,
.vault-card::before,
.memory-step::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  pointer-events: none;
  border: 1px solid rgba(201, 147, 40, 0.45);
  border-radius: 0.25rem;
}

.section {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.section + .section {
  border-top: 1px solid rgba(93, 58, 22, 0.15);
}

.section h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1;
}

.section-lede {
  max-width: 46rem;
  margin-bottom: 1.5rem;
  font-size: 1.08rem;
}

.books-grid,
.memory-grid,
.six-grid {
  display: grid;
  gap: 1.1rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.six-grid,
.books-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.parchment-card,
.vault-card,
.memory-step {
  padding: 1.35rem;
  background:
    linear-gradient(rgba(255, 248, 226, 0.93), rgba(255, 248, 226, 0.93)),
    radial-gradient(circle at 100% 0, rgba(201, 147, 40, 0.18), transparent 9rem);
}

.parchment-card h3,
.vault-card h3,
.memory-step h3 {
  color: var(--ruby);
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
  padding: 1.8rem 0 2.7rem;
  border-top: 1px solid rgba(93, 58, 22, 0.25);
}

.site-footer::before {
  content: none;
  display: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.45rem;
  z-index: 1;
  width: 5.2rem;
  height: 3.5rem;
  pointer-events: none;
  background: url("assets/shared/ornaments/footer-center-gem-transparent.png") center / contain no-repeat;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 7px rgba(45, 20, 5, 0.24));
}

.page-scroll {
  max-width: 1060px;
  padding-bottom: 1rem;
  border-left: 2px solid rgba(214, 163, 58, 0.65);
  border-right: 2px solid rgba(214, 163, 58, 0.65);
  box-shadow: 0 18px 44px rgba(42, 19, 13, 0.14);
}

.fantasy-header .header-inner {
  min-height: 4.45rem;
  padding-left: 10.4rem;
}

.fantasy-header .brand img {
  position: absolute;
  left: 0.3rem;
  top: 0.2rem;
  z-index: 2;
  width: 8.7rem;
}

.mockup-reference {
  display: none;
}

.as-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(21rem, 0.9fr) minmax(15rem, 0.58fr);
  gap: clamp(0.9rem, 3vw, 1.8rem);
  align-items: start;
  min-height: 20.3rem;
  padding: 4.2rem 1.5rem 0.55rem;
  border-left: 2px solid rgba(201, 147, 40, 0.55);
  border-right: 2px solid rgba(201, 147, 40, 0.55);
  background: var(--as-parchment-panel-background);
  overflow: hidden;
}

.as-hero::before {
  content: "";
  position: absolute;
  right: -6.5rem;
  top: 3.55rem;
  width: min(72vw, 44rem);
  height: 15rem;
  background: url("assets/shared/ornaments/rainbow-musical-flourish-transparent.png") center / contain no-repeat;
  opacity: 0.5;
  filter: drop-shadow(0 0 12px rgba(255, 246, 217, 0.5));
  transform: rotate(-8deg);
}

.as-hero::after {
  display: none;
}

.as-hero .hero-copy {
  position: relative;
  z-index: 1;
}

.as-hero h1 {
  max-width: 10.65ch;
  margin-bottom: 1rem;
  color: var(--ruby);
  font-size: clamp(3.1rem, 6.2vw, 4.45rem);
  line-height: 0.94;
}

.as-hero .hero-copy > p:not(.eyebrow):not(.note) {
  max-width: 31.5rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

.vault-showpiece {
  position: relative;
  z-index: 1;
  align-self: center;
  min-height: 24rem;
  padding: 1.25rem;
  border: 3px solid var(--gold);
  border-radius: 0.45rem;
  background:
    linear-gradient(rgba(2, 31, 50, 0.96), rgba(2, 31, 50, 0.96)),
    radial-gradient(circle at 80% 10%, rgba(244, 217, 120, 0.25), transparent 10rem);
  color: #fff6d9;
  box-shadow:
    inset 0 0 0 0.35rem rgba(6, 11, 20, 0.72),
    inset 0 0 0 0.48rem rgba(201, 147, 40, 0.55),
    0 20px 28px rgba(45, 20, 5, 0.34);
}

.sliced-panel {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sliced-panel img {
  width: min(100%, 14.4rem);
  margin-inline: auto;
  filter: drop-shadow(0 20px 20px rgba(45, 20, 5, 0.32));
}

.isla-showpiece {
  align-self: end;
}

.isla-showpiece img {
  width: min(100%, 19.2rem);
  max-height: 27rem;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
  filter:
    drop-shadow(0 22px 22px rgba(45, 20, 5, 0.28))
    drop-shadow(0 0 18px rgba(124, 194, 255, 0.18));
}

.engine-panel img {
  width: min(100%, 28rem);
}

.book-lute-panel img {
  width: min(100%, 24rem);
}

.character-sheet-panel img {
  width: min(100%, 30rem);
}

.seo-row {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.books-feature-strip {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  aspect-ratio: 3212 / 438;
  margin: 0.7rem auto 2.1rem;
  isolation: isolate;
  filter: drop-shadow(0 14px 14px rgba(45, 20, 5, 0.22));
}

.books-feature-strip__frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.books-feature-strip__content {
  position: absolute;
  inset: 18% 5.4% 17% 4.8%;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.books-feature {
  display: grid;
  grid-template-columns: clamp(2.15rem, 7vw, 5.8rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.28rem, 1.35vw, 1rem);
  min-width: 0;
  padding-right: clamp(0.25rem, 1vw, 0.85rem);
}

.books-feature:nth-child(2) {
  padding-left: clamp(0.35rem, 1.9vw, 1.6rem);
}

.books-feature:nth-child(3) {
  padding-left: clamp(0.55rem, 2.2vw, 2rem);
}

.books-feature img {
  width: 100%;
  max-height: clamp(2.4rem, 7.6vw, 6.2rem);
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(15, 3, 0, 0.72));
}

.books-feature h2 {
  margin: 0 0 0.16em;
  color: #ffe990;
  font-size: clamp(0.72rem, 1.52vw, 1.34rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(58, 16, 4, 0.95),
    1px 1px 0 rgba(0, 0, 0, 0.58);
}

.books-feature p {
  max-width: 16rem;
  margin: 0;
  color: #fff0ad;
  font-size: clamp(0.48rem, 0.78vw, 0.72rem);
  font-weight: 700;
  line-height: 1.06;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.82);
}

.books-digital-banner {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  aspect-ratio: 2464 / 612;
  margin: 1.5rem auto 2.4rem;
  isolation: isolate;
  color: #fff2bb;
  filter: drop-shadow(0 16px 16px rgba(45, 20, 5, 0.24));
}

.books-digital-banner__frame,
.books-digital-banner__music,
.books-digital-banner__quill {
  position: absolute;
  pointer-events: none;
}

.books-digital-banner__frame {
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.books-digital-banner__music {
  left: 3.8%;
  top: 13.5%;
  z-index: 1;
  width: 20%;
}

.books-digital-banner__quill {
  right: 4.5%;
  top: 13%;
  z-index: 1;
  width: 20%;
}

.books-digital-banner__copy {
  position: absolute;
  left: 25.5%;
  top: 17%;
  z-index: 2;
  width: 49%;
  text-align: center;
}

.books-digital-banner__copy h2 {
  margin: 0 0 0.35rem;
  color: #ffe68b;
  font-size: clamp(1.05rem, 3.3vw, 2.55rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(44, 15, 4, 0.9),
    1px 2px 0 rgba(0, 0, 0, 0.55);
}

.books-digital-banner__copy p {
  max-width: 42rem;
  margin: 0 auto;
  color: #f8e9ad;
  font-size: clamp(0.55rem, 1.1vw, 0.98rem);
  font-weight: 700;
  line-height: 1.16;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.78);
}

.books-digital-banner__features {
  position: absolute;
  left: 17%;
  right: 12%;
  bottom: 11.5%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6%;
  align-items: center;
}

.books-digital-banner__features article {
  display: grid;
  grid-template-columns: clamp(1.7rem, 4.6vw, 3.35rem) minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
}

.books-digital-banner__features img {
  width: 100%;
  max-height: clamp(1.8rem, 4.8vw, 3.65rem);
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.65));
}

.books-digital-banner__features h3 {
  margin: 0 0 0.08rem;
  color: #ffe68b;
  font-size: clamp(0.55rem, 1.25vw, 0.98rem);
  line-height: 0.95;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72);
}

.books-digital-banner__features p {
  margin: 0;
  color: #f8e9ad;
  font-size: clamp(0.42rem, 0.82vw, 0.72rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72);
}

.books-footer-cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  grid-template-areas:
    "copy form"
    "links links";
  align-items: center;
  gap: 0.8rem 1.6rem;
  width: min(100%, 72rem);
  min-height: clamp(10rem, 20vw, 15rem);
  margin: 1.5rem auto 2.4rem;
  padding: clamp(1.3rem, 3.2vw, 2.4rem) clamp(1.7rem, 5vw, 4.5rem);
  color: #f8e9ad;
  isolation: isolate;
  filter: drop-shadow(0 16px 16px rgba(45, 20, 5, 0.24));
}

.books-footer-cta__frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.books-footer-cta__copy {
  grid-area: copy;
}

.books-footer-cta__copy h2 {
  margin: 0 0 0.35rem;
  color: #ffe68b;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(58, 16, 4, 0.95),
    1px 2px 0 rgba(0, 0, 0, 0.58);
}

.books-footer-cta__copy p {
  max-width: 32rem;
  margin: 0;
  font-size: clamp(0.86rem, 1.55vw, 1.15rem);
  font-weight: 700;
  line-height: 1.22;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.75);
}

.books-footer-cta__portal {
  display: block;
  width: clamp(6.9rem, 10.4vw, 8.55rem);
  filter: drop-shadow(0 9px 8px rgba(18, 4, 0, 0.42));
}

.books-footer-cta__portal img {
  display: block;
  width: 100%;
  height: auto;
}

.books-footer-cta__links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem 0.72rem;
  align-items: center;
  color: #ffd970;
  font: 700 0.72rem var(--font-ui);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.75);
}

.books-footer-cta__links a:not(:last-child)::after {
  content: "+";
  margin-left: 0.68rem;
  color: #fff0ad;
}

.as-hero .button-row {
  flex-wrap: nowrap;
  margin-top: 0.45rem;
}

.as-hero .button {
  min-height: 2.35rem;
  padding: 0.58rem 0.78rem;
  font-size: 0.82rem;
}

.as-hero .note {
  margin-top: 0.45rem;
  line-height: 1.3;
}

.as-hero .sliced-panel {
  transform: translateY(-4.45rem);
  margin-bottom: -4.45rem;
}

.as-section {
  padding: 1.4rem 1.5rem 2rem;
}

.as-section h2 {
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  line-height: 1;
}

.section-lede {
  max-width: 46rem;
}

.ornate-grid {
  display: grid;
  gap: 1rem;
}

.ornate-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.ornate-grid.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scroll-card {
  position: relative;
  min-height: 8.4rem;
  padding: 1rem 1.15rem;
  border: 2px solid rgba(201, 147, 40, 0.58);
  border-radius: 0.35rem;
  background:
    linear-gradient(rgba(255, 247, 222, 0.92), rgba(255, 247, 222, 0.92)),
    radial-gradient(circle at 100% 0, rgba(201, 147, 40, 0.18), transparent 7rem);
  box-shadow: 0 10px 20px rgba(45, 20, 5, 0.1);
}

.scroll-card::before,
.scroll-card::after {
  content: "";
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid var(--gold);
  background: var(--parchment-2);
  transform: rotate(45deg);
}

.scroll-card::before {
  top: -0.35rem;
  left: 50%;
}

.scroll-card::after {
  bottom: -0.35rem;
  left: 50%;
}

.scroll-card h3 {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.2rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-row span {
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(201, 147, 40, 0.5);
  border-radius: 0.2rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.audience-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: clamp(15.5rem, 28vw, 20rem);
  padding: 0;
  overflow: hidden;
}

.audience-card__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.4rem, 3vw, 2.3rem) clamp(1.35rem, 3.2vw, 2.45rem);
}

.audience-card--players .audience-card__copy {
  max-width: 33rem;
  margin-inline: auto;
  text-align: center;
}

.audience-card--gms .audience-card__copy {
  max-width: 100%;
  padding-right: 34%;
}

.audience-card h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: clamp(1.65rem, 3.7vw, 2.6rem);
  line-height: 1;
}

.audience-card p {
  margin: 0;
  font-size: clamp(0.82rem, 1.35vw, 1rem);
  line-height: 1.28;
}

.audience-card .tag-row {
  position: absolute;
  bottom: 15%;
  display: grid;
  gap: 0.55rem;
  justify-content: center;
  margin: 0;
}

.audience-card--players .tag-row {
  left: 22%;
  right: 22%;
  grid-template-columns: repeat(2, minmax(6rem, 8.4rem));
}

.audience-card--gms .tag-row {
  left: 7%;
  right: 35%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: start;
  max-width: none;
}

.audience-card .tag-row span {
  display: block;
  padding: 0.18rem 0.35rem;
  border: 0;
  color: #2a130d;
  text-align: center;
  font-size: clamp(0.5rem, 0.72vw, 0.62rem);
  line-height: 1.05;
}

.standalone-art-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.45rem, 2vw, 1.2rem);
  align-items: center;
  margin: 1rem 0;
  padding: clamp(0.6rem, 2vw, 1rem);
  border: 2px solid rgba(201, 147, 40, 0.68);
  border-radius: 0.45rem;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 217, 120, 0.14), transparent 14rem),
    linear-gradient(145deg, #081727, #120c18 60%, #2a0908);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(244, 217, 120, 0.24),
    0 18px 24px rgba(45, 20, 5, 0.18);
}

.standalone-art-row img {
  width: min(100%, 13rem);
  max-height: 15rem;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: none;
}

.story-art-row img {
  width: min(100%, 12rem);
  max-height: 13rem;
}

.page-memories .story-art-row {
  display: none;
}

.lore-section {
  display: grid;
  gap: 1rem;
}

.token {
  padding-left: 3.15rem;
}

.token::before {
  top: 0.78rem;
  left: 0.7rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold-2), var(--gold) 42%, var(--blue) 45%);
}

.token.physical::before { background: radial-gradient(circle, #ffe27b, #b9861f 42%, #062d45 45%); }
.token.arcane::before { background: radial-gradient(circle, #ff473b, #ae1a15 42%, #062d45 45%); }
.token.divine::before { background: radial-gradient(circle, #f8c648, #9a6b15 42%, #2d1705 45%); }
.token.primordial::before { background: radial-gradient(circle, #35a9e5, #0a5680 42%, #081f2e 45%); }
.token.psionic::before { background: radial-gradient(circle, #34cba2, #0f7055 42%, #081f2e 45%); }
.token.forbidden::before { background: radial-gradient(circle, #b64dcb, #6c157d 42%, #18051d 45%); }

.timeline-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 1.2rem 0 0;
  padding: 1rem;
  border: 3px solid var(--gold);
  border-radius: 0.35rem;
  list-style: none;
  background: linear-gradient(180deg, #8f1711, #4a0807);
  color: #fff6d9;
  box-shadow: inset 0 0 0 0.25rem rgba(0, 0, 0, 0.4);
}

.timeline-strip::before {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 2.5rem;
  height: 0.12rem;
  background: var(--gold-2);
}

.timeline-strip li {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

.timeline-strip b {
  color: var(--gold-2);
}

.timeline-strip span::before {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  margin: 0 auto 0.35rem;
  border: 2px solid var(--gold-2);
  border-radius: 999px;
  background: var(--ruby);
}

.home-footer-cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(0.75rem, 2vw, 1rem);
  align-items: center;
  width: min(100%, 72rem);
  min-height: clamp(10rem, 17vw, 13rem);
  margin: 0.7rem auto 1.6rem;
  padding: clamp(1.15rem, 3vw, 2rem) clamp(2rem, 12vw, 9rem);
  color: #fff6d9;
  text-align: center;
  isolation: isolate;
  filter: drop-shadow(0 14px 14px rgba(45, 20, 5, 0.22));
}

.home-footer-cta__frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.home-footer-cta__copy {
  max-width: 46rem;
}

.home-footer-cta__copy h2 {
  margin-bottom: 0.45rem;
  color: #ffe68b;
  font-size: clamp(2rem, 4.3vw, 3.45rem);
  line-height: 0.95;
  text-shadow:
    0 1px 0 rgba(58, 16, 4, 0.95),
    1px 2px 0 rgba(0, 0, 0, 0.58);
}

.home-footer-cta__copy p:not(.eyebrow) {
  margin: 0;
  max-width: 42rem;
  color: #f8e9ad;
  font-weight: 700;
  line-height: 1.22;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.76);
}

.home-footer-cta .button-row {
  justify-content: center;
}

.art-footer-cta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(0.75rem, 2vw, 1rem);
  align-items: center;
  width: min(100%, 72rem);
  min-height: clamp(9rem, 16vw, 12.5rem);
  margin: 0.7rem auto 1.4rem;
  padding: clamp(1.15rem, 3vw, 1.8rem) clamp(2rem, 12vw, 9rem);
  color: #fff6d9;
  text-align: center;
  isolation: isolate;
  filter: drop-shadow(0 14px 14px rgba(45, 20, 5, 0.22));
}

.art-footer-cta__frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.art-footer-cta__copy {
  min-width: 0;
  max-width: 46rem;
}

.art-footer-cta__copy .eyebrow {
  color: var(--gold-2);
}

.art-footer-cta__copy h2 {
  margin-bottom: 0.42rem;
  color: #ffe68b;
  font-size: clamp(1.65rem, 3.4vw, 2.65rem);
  line-height: 0.98;
  text-shadow:
    0 1px 0 rgba(58, 16, 4, 0.95),
    1px 2px 0 rgba(0, 0, 0, 0.58);
}

.art-footer-cta__copy p:not(.eyebrow) {
  margin: 0;
  color: #f8e9ad;
  font-weight: 700;
  line-height: 1.22;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.76);
}

.art-footer-cta .button-row {
  justify-content: center;
}

.story-process-strip {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  min-height: clamp(9rem, 17vw, 12rem);
  margin: 0.7rem auto 1.2rem;
  padding: clamp(3.7rem, 7.5vw, 5.3rem) clamp(1.6rem, 7vw, 5.3rem) clamp(1rem, 2.6vw, 1.65rem);
  color: #fff1b9;
  isolation: isolate;
  filter: drop-shadow(0 12px 12px rgba(45, 20, 5, 0.22));
}

.story-process-strip__frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.story-process-strip__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.3rem, 1.3vw, 0.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-process-strip__steps li {
  min-width: 0;
  text-align: center;
}

.story-process-strip__steps strong,
.story-process-strip__steps span {
  display: block;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.75);
}

.story-process-strip__steps strong {
  color: #ffd970;
  font-family: var(--font-heading);
  font-size: clamp(0.78rem, 1.45vw, 1.05rem);
  line-height: 1;
}

.story-process-strip__steps span {
  margin-top: 0.22rem;
  font-size: clamp(0.48rem, 0.82vw, 0.67rem);
  font-weight: 700;
  line-height: 1.08;
}

.character-feature-strip {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  min-height: clamp(6.3rem, 11vw, 8.5rem);
  margin: 0.55rem auto 1.6rem;
  padding: clamp(4.05rem, 6.9vw, 5.35rem) clamp(1.9rem, 6vw, 4.7rem) 0.85rem;
  color: #fff1b9;
  isolation: isolate;
  filter: drop-shadow(0 12px 12px rgba(45, 20, 5, 0.2));
}

.character-feature-strip__frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.character-feature-strip__content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.35rem, 1.4vw, 1rem);
}

.character-feature-strip article {
  min-width: 0;
  text-align: center;
}

.character-feature-strip h2 {
  margin: 0 0 0.08rem;
  color: #ffd970;
  font-size: clamp(0.62rem, 1.2vw, 0.92rem);
  line-height: 0.95;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.78);
}

.character-feature-strip p {
  margin: 0;
  font-size: clamp(0.48rem, 0.8vw, 0.64rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.78);
}

.home-feature-strip {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  min-height: clamp(6.8rem, 12vw, 9rem);
  margin: 0.55rem auto 1.7rem;
  padding: clamp(4rem, 7.1vw, 5.4rem) clamp(2rem, 6vw, 4.7rem) 0.9rem;
  color: #fff1b9;
  isolation: isolate;
  filter: drop-shadow(0 12px 12px rgba(45, 20, 5, 0.2));
}

.home-feature-strip__frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.home-feature-strip__content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.35rem, 1.4vw, 1rem);
}

.home-feature-strip article {
  min-width: 0;
  text-align: center;
}

.home-feature-strip h2 {
  margin: 0 0 0.08rem;
  color: #ffd970;
  font-size: clamp(0.62rem, 1.25vw, 0.96rem);
  line-height: 0.95;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.78);
}

.home-feature-strip p {
  margin: 0;
  font-size: clamp(0.48rem, 0.82vw, 0.66rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.78);
}

.skill-chain-panel,
.depth-mode-panel,
.consequence-strip,
.remembered-grid-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  margin: 1.2rem auto 1.7rem;
  overflow: hidden;
}

.skill-chain-panel__frame,
.depth-mode-panel__frame,
.consequence-strip__frame,
.remembered-grid-panel__frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.skill-chain-panel {
  min-height: clamp(14rem, 21vw, 17rem);
  color: #fff6d9;
}

.skill-chain-panel::before {
  content: "";
  position: absolute;
  inset: 19% 7.5% 19%;
  z-index: 1;
  border: 1px solid rgba(244, 217, 120, 0.38);
  background:
    radial-gradient(circle at 18% 20%, rgba(244, 217, 120, 0.14), transparent 12rem),
    linear-gradient(145deg, rgba(4, 18, 31, 0.98), rgba(7, 25, 40, 0.98));
  box-shadow: inset 0 0 1.8rem rgba(0, 0, 0, 0.42);
}

.skill-chain-panel__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(0.7rem, 1.8vw, 1.1rem);
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(2.1rem, 6vw, 5.4rem);
}

.skill-chain-panel__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.45rem, 1.2vw, 0.9rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-chain-panel__steps li {
  position: relative;
  display: grid;
  min-height: 5rem;
  place-items: center;
  padding: 0.82rem 0.5rem;
  border: 1px solid rgba(244, 217, 120, 0.52);
  border-radius: 0.35rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(244, 217, 120, 0.24), transparent 2.5rem),
    rgba(255, 255, 255, 0.05);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.32);
}

.skill-chain-panel__steps li:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -0.66rem;
  top: 50%;
  color: #ffe68b;
  font: 900 1.2rem var(--font-ui);
  transform: translateY(-50%);
}

.skill-chain-panel__steps b,
.skill-chain-panel__steps span {
  display: block;
}

.skill-chain-panel__steps b {
  color: #ffe68b;
  font-size: clamp(0.78rem, 1.45vw, 1.05rem);
}

.skill-chain-panel__steps span {
  color: #f8e9ad;
  font: 800 clamp(0.6rem, 1vw, 0.72rem) var(--font-ui);
}

.skill-chain-panel__step-icon {
  display: none;
}

.depth-mode-panel {
  min-height: clamp(24rem, 42vw, 35rem);
  color: #fff6d9;
}

.depth-mode-panel__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 5vw, 4rem);
  align-items: center;
  min-height: inherit;
  padding: clamp(2.1rem, 6.5vw, 5.2rem) clamp(2rem, 7vw, 6.2rem);
}

.story-ribbon-live {
  width: min(100%, 72rem);
  margin: 0.8rem auto 1.6rem;
  padding: clamp(0.65rem, 1.6vw, 1rem);
  border: 2px solid rgba(244, 217, 120, 0.78);
  border-radius: 0.35rem;
  background:
    linear-gradient(90deg, rgba(80, 8, 7, 0.98), rgba(132, 19, 11, 0.96)),
    url("assets/shared/textures/deep-red-texture-256.webp") repeat;
  box-shadow: var(--shadow), inset 0 0 0 0.22rem rgba(0, 0, 0, 0.32);
}

.story-ribbon-live .seo-row {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.45rem, 1.2vw, 0.8rem);
}

.story-ribbon-live article {
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-left: 1px solid rgba(244, 217, 120, 0.36);
  color: #f8e9ad;
}

.story-ribbon-live article:first-child {
  border-left: 0;
}

.remembered-grid-panel {
  aspect-ratio: 1373 / 652;
  max-width: 54rem;
}

.remembered-grid-panel .six-grid {
  position: absolute;
  inset: 7.2% 4.6% 8%;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 7.4% 3.2%;
}

.remembered-grid-panel .parchment-card {
  min-width: 0;
  padding: clamp(1.35rem, 2.2vw, 1.75rem) 0.7rem 0.6rem 30%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.remembered-grid-panel .parchment-card::before {
  display: none;
}

.remembered-grid-panel h3 {
  margin: 0 0 0.15rem;
  color: #7c140d;
  font-size: clamp(0.7rem, 1.25vw, 0.98rem);
  line-height: 1;
}

.remembered-grid-panel p {
  margin: 0;
  color: #3d1f14;
  font-size: clamp(0.52rem, 0.9vw, 0.7rem);
  font-weight: 700;
  line-height: 1.14;
}

.consequence-strip {
  min-height: clamp(10rem, 18vw, 14rem);
  color: #fff6d9;
}

.consequence-strip h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-top: clamp(1.45rem, 3.2vw, 2.45rem);
  color: #ffe68b;
  text-align: center;
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  line-height: 1;
}

.consequence-strip .flow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18%;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.28rem, 1vw, 0.65rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.consequence-strip .flow li {
  min-width: 0;
  padding: 0.52rem 0.34rem;
  border: 1px solid rgba(244, 217, 120, 0.36);
  border-radius: 0.28rem;
  background: rgba(3, 17, 30, 0.68);
  color: #f8e9ad;
  text-align: center;
  font: 900 clamp(0.54rem, 0.96vw, 0.76rem) var(--font-ui);
  line-height: 1.05;
}

.page-home .as-section {
  padding: 0.85rem 2.45rem 1.05rem;
}

.page-home main.site-frame > .as-section {
  margin-top: clamp(0.55rem, 1.25vw, 1.05rem);
}

.page-home .as-section h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
}

.page-home .section-lede,
.page-home .as-section > p:not(.eyebrow),
.page-home .scroll-card p {
  font-size: 0.78rem;
  line-height: 1.28;
}

.page-home .section-lede {
  margin-bottom: 0.65rem;
}

.page-home .ornate-grid {
  gap: 0.85rem;
}

.page-home .scroll-card {
  min-height: 0;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 7px 12px rgba(45, 20, 5, 0.08);
}

.page-home .ornate-grid.three .scroll-card {
  min-height: 5.4rem;
}

.page-home .scroll-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  line-height: 1.05;
}

.page-home .tag-row {
  gap: 0.3rem;
}

.page-home .tag-row span {
  padding: 0.18rem 0.45rem;
  font-size: 0.66rem;
}

.page-home .token {
  padding-left: 3.6rem;
}

.page-home .token::before {
  width: 1.55rem;
  height: 1.55rem;
  top: 0.72rem;
  left: 0.75rem;
}

.page-memories .hero {
  grid-template-columns: minmax(21rem, 0.82fr) minmax(18rem, 0.72fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  min-height: 20.5rem;
  margin-top: 0;
  padding: 4rem 2.1rem 0.85rem;
  border-left: 2px solid rgba(214, 163, 58, 0.6);
  border-right: 2px solid rgba(214, 163, 58, 0.6);
  border-top: 0;
  border-bottom: 0;
  background:
    linear-gradient(rgba(255, 232, 184, 0.42), rgba(255, 232, 184, 0.42)),
    var(--parchment);
  box-shadow: none;
}

.page-memories .hero::before {
  right: 8%;
  top: 5.5rem;
  width: 34rem;
  height: 8.4rem;
}

.page-memories .hero h1 {
  max-width: 8.5ch;
  margin-bottom: 0.75rem;
  font-size: clamp(3.2rem, 6.5vw, 4.65rem);
  line-height: 0.88;
}

.page-memories .hero-copy > p:not(.eyebrow):not(.note) {
  max-width: 25rem;
  font-size: 0.98rem;
  line-height: 1.3;
}

.page-memories .hero .button-row {
  flex-wrap: nowrap;
  margin-top: 0.45rem;
}

.page-memories .hero .button {
  min-height: 2.35rem;
  padding: 0.58rem 0.8rem;
  font-size: 0.82rem;
}

.page-memories .hero .note {
  margin-top: 0.5rem;
}

.page-memories .engine-panel {
  transform: translateY(-3.9rem);
  margin-bottom: -3.9rem;
}

.page-memories .engine-panel img {
  width: min(100%, 22rem);
}

.page-memories .story-hero-art img {
  width: min(100%, 20rem);
  filter: none;
}

.page-memories .story-art-row {
  margin: 0.75rem 0 1rem;
}

.page-memories .section {
  padding: 0.9rem 2.35rem 1.05rem;
}

.page-memories .section h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-legal {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0.85rem auto 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.book-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.book-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 16rem;
  margin: 0;
  border: 2px solid var(--gold);
  border-radius: 0.4rem;
  background: linear-gradient(145deg, var(--ruby), var(--blue));
  color: var(--gold-2);
  text-align: center;
  box-shadow: inset 0 0 0 7px rgba(9, 15, 22, 0.34);
}

.book-cover.real-cover {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.book-cover.real-cover::before,
.book-cover.real-cover::after {
  display: none;
}

.book-cover.real-cover img {
  width: min(100%, 12.2rem);
  margin-inline: auto;
  border-radius: 0.25rem;
  filter: drop-shadow(0 15px 14px rgba(42, 19, 13, 0.36));
}

.book-cover.real-cover img[src*="assets/products/books"] {
  border-radius: 0;
  filter: none;
}

.books-grid {
  gap: 0.75rem;
}

.book-card {
  padding: 0.72rem;
}

.book-card h3 {
  font-size: 1.05rem;
  line-height: 1.08;
}

.book-card p,
.price-list {
  font-size: 0.86rem;
  line-height: 1.25;
}

.card-actions {
  gap: 0.4rem;
}

.card-actions .button {
  min-height: 2.1rem;
  padding: 0.42rem 0.44rem;
  font-size: 0.72rem;
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(244, 217, 120, 0.72);
  border-radius: 0.25rem;
  box-shadow: inset 0 0 0 0.35rem rgba(0, 0, 0, 0.16);
}

.book-cover::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  bottom: 1.2rem;
  left: 1rem;
  width: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(var(--gold-2), var(--gold), var(--gold-2));
  box-shadow: 0.6rem 0 0 rgba(0, 0, 0, 0.16);
}

.price-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
}

.price-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.price-list dt {
  font-weight: 800;
}

.price-list dd {
  margin: 0;
  color: var(--ruby);
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.vault-card-showcase {
  display: grid;
  grid-template-columns: minmax(15rem, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 4vw, 2.5rem);
  align-items: center;
}

.vault-card-showcase .section-lede {
  margin-bottom: 0;
}

.vault-card-gallery {
  display: grid;
  gap: 0.85rem;
}

.vault-card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.25rem, 1vw, 0.75rem);
  align-items: end;
  min-height: 15.5rem;
  padding: clamp(0.55rem, 1.6vw, 1rem);
  border: 2px solid rgba(201, 147, 40, 0.68);
  border-radius: 0.45rem;
  background:
    radial-gradient(circle at 18% 14%, rgba(86, 150, 168, 0.2), transparent 12rem),
    linear-gradient(145deg, #071322, #150d17 62%, #300e0c);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(244, 217, 120, 0.26),
    0 18px 24px rgba(45, 20, 5, 0.22);
}

.vault-card-row.item-card-row {
  background:
    radial-gradient(circle at 80% 12%, rgba(244, 217, 120, 0.16), transparent 11rem),
    linear-gradient(145deg, #2a0908, #0c1f25 56%, #050914);
}

.vault-card-row img {
  width: min(100%, 10.5rem);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  filter: none;
}

.icon-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.icon-list li {
  padding: 0.8rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 248, 226, 0.7);
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0;
  list-style: none;
}

.flow li {
  padding: 1rem;
  border: 1px solid rgba(244, 217, 120, 0.4);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.preview-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--ruby);
  font-weight: 800;
}

.visual-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.image-panel {
  max-height: 36rem;
  padding: 0.6rem;
  border: 2px solid var(--gold);
  border-radius: 0.45rem;
  background: linear-gradient(145deg, var(--ruby-dark), var(--blue));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  max-height: 34rem;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.25rem;
}

.alpha-art-panel {
  display: grid;
  place-items: center;
  max-height: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 217, 120, 0.15), transparent 13rem),
    linear-gradient(145deg, #071322, #160d17 62%, #300e0c);
  overflow: hidden;
}

.alpha-art-panel img {
  width: min(100%, 21rem);
  height: auto;
  max-height: 30rem;
  object-fit: contain;
  border-radius: 0;
  filter: none;
}

.portrait-panel img {
  width: min(100%, 19rem);
}

.portrait-panel {
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 247, 222, 0.92), rgba(255, 232, 184, 0.5) 55%, rgba(90, 11, 7, 0.2)),
    var(--parchment);
}

@media (max-width: 900px) {
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vault-card-showcase {
    grid-template-columns: 1fr;
  }

  .vault-card-row {
    min-height: 19rem;
  }

  .vault-card-row img {
    width: min(100%, 11.8rem);
  }

  .as-hero .sliced-panel {
    transform: none;
    margin-bottom: 0;
  }

  .skill-chain-panel,
  .depth-mode-panel,
  .consequence-strip,
  .remembered-grid-panel,
  .story-ribbon-live {
    width: min(100%, calc(100vw - 1.8rem));
    min-height: 0;
    aspect-ratio: auto;
    margin: 0.9rem auto 1.3rem;
    padding: 1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(5, 27, 43, 0.96), rgba(5, 27, 43, 0.98)),
      var(--blue);
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.25),
      0 12px 18px rgba(45, 20, 5, 0.2);
  }

  .skill-chain-panel__frame,
  .depth-mode-panel__frame,
  .consequence-strip__frame,
  .remembered-grid-panel__frame {
    display: none;
  }

  .skill-chain-panel::before {
    display: none;
  }

  .skill-chain-panel__inner,
  .depth-mode-panel__content {
    padding: 0;
    grid-template-columns: 1fr;
  }

  .consequence-strip h2 {
    font-size: 1.55rem;
  }

  .skill-chain-panel__steps,
  .consequence-strip .flow,
  .story-ribbon-live .seo-row,
  .remembered-grid-panel .six-grid {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    inset: auto;
  }

  .skill-chain-panel__steps li:not(:last-child)::after {
    content: "";
    right: auto;
    top: auto;
    bottom: -0.55rem;
    left: 50%;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid #ffe68b;
    border-bottom: 2px solid #ffe68b;
    transform: translateX(-50%) rotate(45deg);
  }

  .story-ribbon-live {
    background:
      linear-gradient(rgba(126, 19, 10, 0.94), rgba(74, 8, 5, 0.96)),
      var(--ruby-dark);
  }

  .story-ribbon-live article,
  .story-ribbon-live article:first-child {
    padding: 0 0 0.65rem;
    border-left: 0;
    border-bottom: 1px solid rgba(244, 217, 120, 0.3);
  }

  .story-ribbon-live article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .remembered-grid-panel {
    background:
      radial-gradient(circle at 20% 12%, rgba(244, 217, 120, 0.18), transparent 12rem),
      var(--parchment);
  }

  .remembered-grid-panel .parchment-card {
    padding: 0.85rem;
    border: 1px solid rgba(201, 147, 40, 0.45);
    border-radius: 0.3rem;
    background: rgba(255, 248, 224, 0.84);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  }

  .remembered-grid-panel h3 {
    color: #7c140d;
    font-size: 1rem;
  }

  .remembered-grid-panel p {
    color: #3d1f14;
    font-size: 0.86rem;
    line-height: 1.28;
  }

  .consequence-strip h2 {
    padding-top: 0;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .consequence-strip .flow li {
    font-size: 0.82rem;
  }

  .story-process-strip,
  .character-feature-strip {
    width: min(100%, calc(100vw - 1.8rem));
    min-height: 0;
    padding: 1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(5, 27, 43, 0.96), rgba(5, 27, 43, 0.98)),
      var(--blue);
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.25),
      0 12px 18px rgba(45, 20, 5, 0.2);
  }

  .story-process-strip__frame,
  .character-feature-strip__frame {
    display: none;
  }

  .story-process-strip__steps,
  .character-feature-strip__content {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .story-process-strip__steps li:not(:last-child),
  .character-feature-strip article:not(:last-child) {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(244, 217, 120, 0.3);
  }

  .story-process-strip__steps strong,
  .character-feature-strip h2 {
    font-size: 1rem;
  }

  .story-process-strip__steps span,
  .character-feature-strip p {
    font-size: 0.82rem;
  }

  .home-feature-strip {
    width: min(100%, calc(100vw - 1.8rem));
    min-height: 0;
    padding: 1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(126, 19, 10, 0.94), rgba(74, 8, 5, 0.96)),
      var(--ruby-dark);
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.25),
      0 12px 18px rgba(45, 20, 5, 0.2);
  }

  .home-feature-strip__frame {
    display: none;
  }

  .home-feature-strip__content {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .home-feature-strip article:not(:last-child) {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(244, 217, 120, 0.3);
  }

  .home-feature-strip h2 {
    font-size: 1rem;
  }

  .home-feature-strip p {
    font-size: 0.82rem;
  }

  .audience-card {
    min-height: 0;
    padding: 0.9rem;
    border: 1px solid rgba(201, 147, 40, 0.45);
    border-radius: 0.3rem;
    background: rgba(255, 248, 224, 0.88);
    box-shadow: var(--shadow);
  }

  .audience-card__copy,
  .audience-card--players .audience-card__copy,
  .audience-card--gms .audience-card__copy {
    max-width: 100%;
    padding: 0;
    text-align: left;
  }

  .audience-card h3 {
    font-size: 1.45rem;
  }

  .audience-card p {
    font-size: 0.86rem;
  }

  .audience-card--players .tag-row,
  .audience-card--gms .tag-row {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
  }

  .audience-card .tag-row {
    justify-content: flex-start;
  }

  .audience-card .tag-row span {
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(201, 147, 40, 0.5);
    border-radius: 0.2rem;
    font-size: 0.78rem;
    font-weight: 800;
  }
}

@media (min-width: 901px) {


:root {
    --max: 941px;
  }

  .page-vault {
    --max: 1024px;
  }

  p {
    line-height: 1.34;
  }

  .site-header {
    position: static;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .header-inner,
  .fantasy-header .header-inner {
    min-height: 5.45rem;
    padding: 0.25rem 1.2rem 0 12.35rem;
  }

  .brand img,
  .fantasy-header .brand img {
    position: absolute;
    left: 0.78rem;
    top: 0.45rem;
    z-index: 3;
    width: 10.65rem;
  }

  .site-nav {
    justify-content: flex-end;
    gap: clamp(0.55rem, 1.45vw, 1rem);
    font-size: 0.66rem;
  }

  .nav-cta,
  .button {
    min-height: 1.7rem;
    padding: 0.34rem 0.55rem;
    border-width: 1px;
    border-radius: 0.18rem;
    font-size: 0.66rem;
  }

  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(17rem, 0.72fr);
    gap: 1.45rem;
    min-height: 19.3rem;
    margin-top: 0;
    padding: 5.55rem 2.05rem 1.45rem;
    border-width: 1px;
    box-shadow: 0 9px 18px rgba(45, 20, 5, 0.13), inset 0 0 0 5px rgba(255, 250, 232, 0.38);
  }

  .hero::before {
    right: -2.4rem;
    top: 0.2rem;
    width: min(56vw, 31rem);
    height: 11.5rem;
  }

  .hero h1 {
    margin-bottom: 0.65rem;
    font-size: clamp(3.05rem, 6.1vw, 4.35rem);
    line-height: 0.9;
  }

  .hero-copy > p:not(.eyebrow):not(.note) {
    max-width: 27rem;
    font-size: 0.92rem;
    line-height: 1.22;
  }

  .eyebrow {
    margin-bottom: 0.35rem;
    font-size: clamp(0.78rem, 0.86vw, 0.84rem);
  }

  .note {
    margin-top: 0.55rem;
  }

  .hero-art img {
    width: min(100%, 21rem);
  }

  .book-lute-panel img {
    width: min(100%, 19.5rem);
  }

  .character-sheet-panel img {
    width: min(100%, 24rem);
  }

  .section,
  .as-section {
    padding: 0.95rem 2rem 1.1rem;
  }

  .section h2,
  .as-section h2 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.65rem, 3.2vw, 2.65rem);
    line-height: 0.98;
  }

  .section-lede,
  .section p,
  .as-section > p:not(.eyebrow) {
    font-size: 0.82rem;
  }

  .memory-grid,
  .six-grid,
  .books-grid {
    gap: 0.66rem;
  }

  .parchment-card,
  .vault-card,
  .memory-step {
    padding: 0.82rem 0.9rem;
  }

  .parchment-card h3,
  .vault-card h3,
  .memory-step h3 {
    margin-bottom: 0.25rem;
    font-size: 0.86rem;
  }

  .parchment-card p,
  .vault-card p,
  .memory-step p {
    margin-bottom: 0;
    font-size: 0.72rem;
  }

  .as-hero {
    grid-template-columns: minmax(21rem, 0.92fr) minmax(14rem, 0.58fr);
    min-height: 18rem;
    padding: 3.1rem 1.55rem 0.45rem;
  }

  .as-hero h1 {
    margin-bottom: 0.72rem;
    font-size: clamp(3.35rem, 5.75vw, 4.15rem);
  }

  .as-hero .hero-copy > p:not(.eyebrow):not(.note) {
    max-width: 28.5rem;
    font-size: 0.78rem;
  }

  .as-hero .sliced-panel {
    transform: translateY(-3rem);
    margin-bottom: -3rem;
  }

  .as-hero .button,
  .page-memories .hero .button {
    min-height: 1.82rem;
    padding: 0.36rem 0.56rem;
    font-size: 0.66rem;
  }

  .home-feature-strip {
    min-height: 5.7rem;
    margin: 0.45rem auto 0.9rem;
    padding-top: 3.22rem;
  }

  .home-feature-strip h2,
  .character-feature-strip h2 {
    font-size: 0.72rem;
  }

  .home-feature-strip p,
  .character-feature-strip p {
    font-size: 0.52rem;
  }

  .page-home .as-section {
    padding: 0.7rem 2.1rem 0.82rem;
  }

  .audience-card {
    min-height: 7.3rem;
  }

  .audience-card__copy {
    padding: 0.85rem 1.15rem 0.8rem;
  }

  .skill-chain-panel {
    min-height: 8.6rem;
    margin: 0.65rem auto 0.9rem;
  }

  .skill-chain-panel::before {
    inset: 18% 8% 17%;
  }

  .skill-chain-panel__inner {
    gap: 0.45rem;
    padding: 1.25rem 3.25rem;
  }

  .skill-chain-panel__steps li {
    min-height: 2.6rem;
    padding: 0.34rem;
  }

  .depth-mode-panel {
    min-height: 13.4rem;
    margin: 0.7rem auto 0.95rem;
  }

  .depth-mode-panel__content {
    padding: 1.65rem 2.6rem;
  }

  .home-footer-cta,
  .art-footer-cta {
    min-height: 7.6rem;
    margin: 0.55rem auto 0.95rem;
  }

  .home-footer-cta__copy h2,
  .art-footer-cta__copy h2 {
    font-size: 2rem;
  }

  .books-feature-strip {
    margin: 0.55rem auto 1.1rem;
  }

  .page-books .section {
    padding-top: 0.95rem;
  }

  .book-card {
    gap: 0.44rem;
    padding: 0.52rem;
  }

  .book-cover.real-cover img {
    width: min(100%, 8.9rem);
  }

  .book-card h3 {
    margin-bottom: 0.18rem;
    font-size: 0.8rem;
    line-height: 1.05;
  }

  .book-card p,
  .price-list {
    font-size: 0.64rem;
    line-height: 1.15;
  }

  .price-list {
    margin: 0.15rem 0;
  }

  .card-actions {
    gap: 0.28rem;
  }

  .card-actions .button {
    min-height: 1.42rem;
    padding: 0.26rem 0.34rem;
    font-size: 0.56rem;
  }

  .books-digital-banner {
    margin: 1rem auto 1.1rem;
  }

  .books-footer-cta {
    min-height: 7.8rem;
    margin: 0.65rem auto 1rem;
    padding: 1.15rem 2.2rem 0.85rem;
  }

  .books-footer-cta__copy h2 {
    font-size: 2rem;
  }

  .books-footer-cta__copy p {
    font-size: 0.75rem;
  }

  .page-vault .hero {
    min-height: 20.5rem;
    padding-top: 2.7rem;
  }

  .page-vault .section {
    padding: 0.75rem 2rem 0.88rem;
  }

  .page-vault .section h2 {
    font-size: clamp(1.75rem, 3vw, 2.45rem);
  }

  .page-vault .visual-feature {
    grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1fr);
    gap: 1.4rem;
  }

  .portrait-panel {
    min-height: 12rem;
    padding: 0.45rem;
  }

  .portrait-panel img {
    width: min(100%, 14.5rem);
  }

  .page-vault .split {
    grid-template-columns: minmax(16rem, 0.78fr) minmax(0, 1fr);
    gap: 1.1rem;
  }

  .icon-list {
    gap: 0.35rem;
  }

  .icon-list li {
    padding: 0.44rem 0.62rem;
    font-size: 0.68rem;
  }

  .vault-card-showcase {
    grid-template-columns: minmax(13rem, 0.34fr) minmax(0, 1fr);
    gap: 1rem;
  }

  .vault-card-gallery {
    gap: 0.45rem;
  }

  .vault-card-row {
    min-height: 9.4rem;
    padding: 0.45rem;
  }

  .vault-card-row img {
    width: min(100%, 6.7rem);
  }

  .consequence-strip {
    min-height: 6.6rem;
    margin: 0.5rem auto 0.8rem;
  }

  .consequence-strip h2 {
    padding-top: 0.95rem;
    font-size: 1.25rem;
  }

  .consequence-strip .flow {
    bottom: 14%;
  }

  .consequence-strip .flow li {
    padding: 0.28rem;
    font-size: 0.52rem;
  }

  .character-feature-strip {
    min-height: 5.7rem;
    margin: 0.5rem auto 0.9rem;
    padding-top: 3.35rem;
  }

  .page-memories .hero {
    grid-template-columns: minmax(21rem, 0.72fr) minmax(18rem, 0.82fr);
    min-height: 18rem;
    padding: 3.05rem 2.1rem 0.8rem;
  }

  .page-memories .hero h1 {
    font-size: clamp(3.05rem, 5.6vw, 4.1rem);
  }

  .page-memories .hero-copy > p:not(.eyebrow):not(.note) {
    max-width: 22rem;
    font-size: 0.82rem;
  }

  .page-memories .engine-panel {
    transform: translateY(-2.7rem);
    margin-bottom: -2.7rem;
  }

  .page-memories .story-hero-art img {
    width: min(100%, 23rem);
  }

  .page-memories .story-ribbon-live {
    margin: 0.5rem auto 0.85rem;
    padding: 0.55rem;
  }

  .story-ribbon-live article {
    padding: 0.35rem 0.5rem;
  }

  .page-memories .section {
    padding: 0.72rem 2.05rem 0.86rem;
  }

  .page-memories .story-art-row {
    margin: 0.45rem 0 0.65rem;
  }

  .story-art-row img {
    max-height: 8.4rem;
  }

  .story-process-strip {
    min-height: 6.6rem;
    margin: 0.45rem auto 0.75rem;
    padding-top: 3.05rem;
  }

  .story-process-strip__steps strong {
    font-size: 0.7rem;
  }

  .story-process-strip__steps span {
    font-size: 0.5rem;
  }

  .remembered-grid-panel {
    max-width: 44rem;
  }

  .remembered-grid-panel .six-grid {
    gap: 5.5% 2.6%;
  }

  .remembered-grid-panel .parchment-card {
    padding: 1rem 0.45rem 0.35rem 29%;
  }

  .remembered-grid-panel h3 {
    font-size: 0.68rem;
  }

  .remembered-grid-panel p {
    font-size: 0.48rem;
  }

}

@media (max-width: 640px) {
  body {
    width: 100%;
  }

  .site-frame {
    width: min(100%, calc(100vw - 0.75rem));
    max-width: calc(100vw - 0.75rem);
    overflow: hidden;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0.65rem 0 0.9rem;
  }

  .fantasy-header .header-inner {
    padding-left: 0;
  }

  .fantasy-header .brand img {
    position: static;
    left: auto;
    top: auto;
  }

  .brand img,
  .fantasy-header .brand img {
    width: min(10.8rem, 62vw);
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
  }

  .site-nav a {
    min-width: 0;
    padding: 0.55rem;
    border: 1px solid rgba(93, 58, 22, 0.16);
    border-radius: 0.3rem;
    background: rgba(255, 248, 226, 0.76);
    overflow-wrap: break-word;
  }

  .site-nav .nav-cta {
    grid-column: span 2;
    background: linear-gradient(180deg, #a51d17, var(--ruby-dark));
  }

  .hero,
  .split,
  .visual-feature,
  .vault-card-showcase,
  .six-grid,
  .books-grid,
  .memory-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.4rem;
  }

  .hero,
  .section {
    padding-inline: 0.85rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-copy,
  .hero-art,
  .section > *,
  .book-card,
  .vault-card,
  .memory-step {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    max-width: calc(100vw - 2.6rem);
    font-size: clamp(2.1rem, 11vw, 2.8rem);
    line-height: 0.96;
  }

  .section h2 {
    max-width: calc(100vw - 2.6rem);
    font-size: clamp(1.9rem, 9vw, 2.45rem);
    overflow-wrap: break-word;
  }

  .hero-copy > p:not(.eyebrow):not(.note),
  .hero-copy .eyebrow,
  .section p,
  .icon-list li,
  .vault-card p,
  .book-card p,
  .price-list,
  .price-list div,
  .books-footer-cta__links {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero-art img,
  .sliced-panel img,
  .image-panel img {
    max-width: calc(100vw - 3rem);
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .flow,
  .standalone-art-row {
    grid-template-columns: 1fr;
  }

  .standalone-art-row {
    max-width: calc(100vw - 3rem);
    margin-inline: auto;
  }

  .standalone-art-row img {
    width: min(100%, 11rem);
    max-height: 12rem;
  }

  .vault-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .vault-card-row img {
    width: min(100%, 9.8rem);
  }

  .as-hero,
  .ornate-grid.three,
  .ornate-grid.two,
  .ornate-grid.six,
  .timeline-strip {
    grid-template-columns: 1fr;
  }

  .as-hero {
    min-height: auto;
    padding: 1rem;
    width: min(100%, calc(100vw - 1.8rem));
    max-width: calc(100vw - 1.8rem);
    margin-inline: auto;
  }

  .as-hero::before {
    left: 4rem;
    right: auto;
    top: 10rem;
    width: 22rem;
    height: 9rem;
  }

  .as-hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 12vw, 3rem);
    overflow-wrap: break-word;
  }

  .as-hero .hero-copy > p:not(.eyebrow):not(.note),
  .page-memories .hero-copy > p:not(.eyebrow):not(.note),
  .page-home .section-lede,
  .page-home .as-section > p:not(.eyebrow),
  .page-home .scroll-card p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .page-memories .hero h1,
  .page-home .as-section h2 {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .page-memories .hero h1 {
    font-size: clamp(2.2rem, 11vw, 2.85rem);
  }

  .page-memories .hero {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    min-height: 0;
    padding: 1.35rem 0.85rem 1rem;
  }

  .page-memories .hero .button-row {
    flex-wrap: wrap;
  }

  .page-memories .engine-panel {
    justify-self: center;
    max-width: 100%;
    margin-bottom: 0;
    transform: none;
  }

  .page-memories .story-hero-art img {
    width: min(100%, 15rem);
    max-width: calc(100vw - 3rem);
  }

  .page-home .as-section h2 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .page-home .as-section,
  .page-home .timeline-strip,
  .page-memories .section {
    width: min(100%, calc(100vw - 1.8rem));
    max-width: calc(100vw - 1.8rem);
    margin-left: auto;
    margin-right: auto;
  }

  .page-home .as-section,
  .page-memories .section {
    padding-inline: 1rem;
  }

  .vault-showpiece {
    min-height: 0;
  }

  .timeline-strip::before {
    left: 2.45rem;
    right: auto;
    top: 2rem;
    bottom: 2rem;
    width: 0.12rem;
    height: auto;
  }

  .timeline-strip li {
    grid-template-columns: 5rem 1fr;
    align-items: center;
    text-align: left;
  }

  .timeline-strip span::before {
    display: inline-block;
    margin: 0 0.6rem 0 0;
    vertical-align: middle;
  }

  .books-feature-strip {
    width: min(100%, calc(100vw - 1.8rem));
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    padding: 1rem;
    border: 2px solid rgba(244, 217, 120, 0.8);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(126, 19, 10, 0.94), rgba(74, 8, 5, 0.96)),
      var(--ruby-dark);
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.28),
      0 12px 18px rgba(45, 20, 5, 0.18);
  }

  .books-feature-strip__frame {
    display: none;
  }

  .books-feature-strip__content {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .books-feature,
  .books-feature:nth-child(2),
  .books-feature:nth-child(3) {
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0;
  }

  .books-feature:not(:last-child) {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(244, 217, 120, 0.35);
  }

  .books-feature h2 {
    font-size: 1.25rem;
  }

  .books-feature p {
    font-size: 0.92rem;
    line-height: 1.1;
  }

  .books-digital-banner {
    width: min(100%, calc(100vw - 1.8rem));
    height: auto;
    aspect-ratio: auto;
    padding: 1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(5, 27, 43, 0.96), rgba(5, 27, 43, 0.98)),
      var(--blue);
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.25),
      0 12px 18px rgba(45, 20, 5, 0.2);
  }

  .books-digital-banner__frame,
  .books-digital-banner__music,
  .books-digital-banner__quill {
    display: none;
  }

  .books-digital-banner__copy,
  .books-digital-banner__features {
    position: relative;
    inset: auto;
    width: auto;
    text-align: left;
  }

  .books-digital-banner__copy {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(244, 217, 120, 0.35);
  }

  .books-digital-banner__copy h2 {
    font-size: 1.65rem;
  }

  .books-digital-banner__copy p {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .books-digital-banner__features {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding-top: 0.8rem;
  }

  .books-digital-banner__features article {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .books-digital-banner__features h3 {
    font-size: 1rem;
  }

  .books-digital-banner__features p {
    font-size: 0.82rem;
  }

  .books-footer-cta {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "form"
      "links";
    width: min(100%, calc(100vw - 1.8rem));
    min-height: 0;
    padding: 1.1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(126, 19, 10, 0.94), rgba(74, 8, 5, 0.96)),
      var(--ruby-dark);
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.25),
      0 12px 18px rgba(45, 20, 5, 0.2);
  }

  .books-footer-cta__frame {
    display: none;
  }

  .books-footer-cta__copy h2 {
    font-size: 1.7rem;
  }

  .books-footer-cta__copy p {
    font-size: 0.92rem;
  }

  .books-footer-cta__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    font-size: 0.78rem;
  }

  .books-footer-cta__links a:not(:last-child)::after {
    content: "";
    margin: 0;
  }

  .home-footer-cta {
    grid-template-columns: 1fr;
    width: min(100%, calc(100vw - 1.8rem));
    min-height: 0;
    padding: 1.1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(126, 19, 10, 0.94), rgba(74, 8, 5, 0.96)),
      var(--ruby-dark);
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.25),
      0 12px 18px rgba(45, 20, 5, 0.2);
  }

  .home-footer-cta__frame {
    display: none;
  }

  .home-footer-cta__copy h2 {
    font-size: 1.7rem;
  }

  .home-footer-cta__copy p:not(.eyebrow) {
    font-size: 0.92rem;
  }

  .home-footer-cta .button-row {
    justify-content: stretch;
  }

  .art-footer-cta,
  .story-footer-cta {
    grid-template-columns: 1fr;
    width: min(100%, calc(100vw - 1.8rem));
    min-height: 0;
    padding: 1.1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(126, 19, 10, 0.94), rgba(74, 8, 5, 0.96)),
      var(--ruby-dark);
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.25),
      0 12px 18px rgba(45, 20, 5, 0.2);
  }

  .art-footer-cta__frame {
    display: none;
  }

  .art-footer-cta__copy h2 {
    font-size: 1.55rem;
  }

  .art-footer-cta__copy p:not(.eyebrow) {
    font-size: 0.92rem;
  }

  .art-footer-cta .button-row {
    justify-content: stretch;
  }

  .story-process-strip {
    width: min(100%, calc(100vw - 1.8rem));
    min-height: 0;
    padding: 1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(5, 27, 43, 0.96), rgba(5, 27, 43, 0.98)),
      var(--blue);
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.25),
      0 12px 18px rgba(45, 20, 5, 0.2);
  }

  .story-process-strip__frame {
    display: none;
  }

  .story-process-strip__steps {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .story-process-strip__steps li:not(:last-child) {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(244, 217, 120, 0.3);
  }

  .story-process-strip__steps strong {
    font-size: 1rem;
  }

  .story-process-strip__steps span {
    font-size: 0.82rem;
  }

  .character-feature-strip {
    width: min(100%, calc(100vw - 1.8rem));
    min-height: 0;
    padding: 1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(5, 27, 43, 0.96), rgba(5, 27, 43, 0.98)),
      var(--blue);
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.25),
      0 12px 18px rgba(45, 20, 5, 0.2);
  }

  .character-feature-strip__frame {
    display: none;
  }

  .character-feature-strip__content {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .character-feature-strip article:not(:last-child) {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(244, 217, 120, 0.3);
  }

  .character-feature-strip h2 {
    font-size: 1rem;
  }

  .character-feature-strip p {
    font-size: 0.82rem;
  }

  .home-feature-strip {
    width: min(100%, calc(100vw - 1.8rem));
    min-height: 0;
    padding: 1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(126, 19, 10, 0.94), rgba(74, 8, 5, 0.96)),
      var(--ruby-dark);
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.25),
      0 12px 18px rgba(45, 20, 5, 0.2);
  }

  .home-feature-strip__frame {
    display: none;
  }

  .home-feature-strip__content {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .home-feature-strip article:not(:last-child) {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(244, 217, 120, 0.3);
  }

  .home-feature-strip h2 {
    font-size: 1rem;
  }

  .home-feature-strip p {
    font-size: 0.82rem;
  }

}

@media (max-width: 640px) {
  .skill-chain-panel,
  .depth-mode-panel,
  .consequence-strip,
  .remembered-grid-panel,
  .story-ribbon-live {
    width: min(100%, calc(100vw - 1.8rem));
    min-height: 0;
    aspect-ratio: auto;
    margin: 0.9rem auto 1.3rem;
    padding: 1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(5, 27, 43, 0.96), rgba(5, 27, 43, 0.98)),
      var(--blue);
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.25),
      0 12px 18px rgba(45, 20, 5, 0.2);
  }

  .skill-chain-panel__frame,
  .depth-mode-panel__frame,
  .consequence-strip__frame,
  .remembered-grid-panel__frame {
    display: none;
  }

  .skill-chain-panel::before {
    display: none;
  }

  .skill-chain-panel__inner,
  .depth-mode-panel__content {
    padding: 0;
    grid-template-columns: 1fr;
  }

  .consequence-strip h2 {
    font-size: 1.55rem;
  }

  .skill-chain-panel__steps,
  .consequence-strip .flow,
  .story-ribbon-live .seo-row,
  .remembered-grid-panel .six-grid {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    inset: auto;
  }

  .skill-chain-panel__steps li:not(:last-child)::after {
    content: "";
    right: auto;
    top: auto;
    bottom: -0.55rem;
    left: 50%;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid #ffe68b;
    border-bottom: 2px solid #ffe68b;
    transform: translateX(-50%) rotate(45deg);
  }

  .story-ribbon-live {
    background:
      linear-gradient(rgba(126, 19, 10, 0.94), rgba(74, 8, 5, 0.96)),
      var(--ruby-dark);
  }

  .story-ribbon-live article,
  .story-ribbon-live article:first-child {
    padding: 0 0 0.65rem;
    border-left: 0;
    border-bottom: 1px solid rgba(244, 217, 120, 0.3);
  }

  .story-ribbon-live article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .remembered-grid-panel {
    background:
      radial-gradient(circle at 20% 12%, rgba(244, 217, 120, 0.18), transparent 12rem),
      var(--parchment);
  }

  .remembered-grid-panel .parchment-card {
    padding: 0.85rem;
    border: 1px solid rgba(201, 147, 40, 0.45);
    border-radius: 0.3rem;
    background: rgba(255, 248, 224, 0.84);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  }

  .remembered-grid-panel h3 {
    color: #7c140d;
    font-size: 1rem;
  }

  .remembered-grid-panel p {
    color: #3d1f14;
    font-size: 0.86rem;
    line-height: 1.28;
  }

  .consequence-strip h2 {
    padding-top: 0;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .consequence-strip .flow li {
    font-size: 0.82rem;
  }

  .audience-card {
    min-height: 0;
    padding: 0.9rem;
    border: 1px solid rgba(201, 147, 40, 0.45);
    border-radius: 0.3rem;
    background: rgba(255, 248, 224, 0.88);
    box-shadow: var(--shadow);
  }

  .audience-card__copy,
  .audience-card--players .audience-card__copy,
  .audience-card--gms .audience-card__copy {
    max-width: 100%;
    padding: 0;
    text-align: left;
  }

  .audience-card h3 {
    font-size: 1.45rem;
  }

  .audience-card p {
    font-size: 0.86rem;
  }

  .audience-card .tag-row {
    justify-content: flex-start;
  }

  .audience-card--players .tag-row,
  .audience-card--gms .tag-row {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
  }

  .audience-card .tag-row span {
    padding: 0.25rem 0.55rem;
    border: 1px solid rgba(201, 147, 40, 0.5);
    border-radius: 0.2rem;
    font-size: 0.78rem;
    font-weight: 800;
  }
}

/* Final desktop comp overrides: keep this block last so it wins the cascade. */
@media (min-width: 901px) {
  .page-home .lore-section {
    padding-top: 0.5rem;
    padding-bottom: 0.65rem;
  }

  .page-home .token {
    padding: 0.55rem 0.55rem 0.55rem 2.45rem;
  }

  .page-home .token h3 {
    font-size: 0.9rem;
  }

  .page-home .token p {
    font-size: 0.66rem;
  }

  .skill-chain-panel {
    min-height: 7.4rem;
  }

  .skill-chain-panel__inner {
    padding-top: 1.02rem;
    padding-bottom: 1.02rem;
  }

  .depth-mode-panel {
    min-height: 11.6rem;
  }

  .depth-mode-panel__content {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .page-books .hero {
    min-height: 20.4rem;
    padding-top: 5.6rem;
    padding-bottom: 1rem;
  }

  .page-books .hero h1 {
    font-size: clamp(3rem, 5.4vw, 4rem);
  }

  .page-books .hero-copy > p:not(.eyebrow):not(.note) {
    max-width: 22rem;
    font-size: 0.82rem;
  }

  .page-books .book-lute-panel img {
    width: min(100%, 17.2rem);
  }

  .books-feature-strip {
    margin-bottom: 0.65rem;
  }

  .page-books .section {
    padding-top: 0.65rem;
    padding-bottom: 0.78rem;
  }

  .page-books .section h2 {
    font-size: 2.15rem;
  }

  .books-grid {
    gap: 0.48rem;
  }

  .book-card {
    gap: 0.34rem;
    padding: 0.42rem;
  }

  .book-cover.real-cover img {
    width: min(100%, 7.9rem);
  }

  .book-card h3 {
    font-size: 0.72rem;
  }

  .book-card p,
  .price-list {
    font-size: 0.58rem;
  }

  .card-actions .button {
    min-height: 1.25rem;
    font-size: 0.5rem;
  }

  .books-digital-banner {
    margin-top: 0.72rem;
    margin-bottom: 0.72rem;
  }

  .books-footer-cta {
    min-height: 6.9rem;
    margin-top: 0.45rem;
  }

  .page-vault .hero {
    min-height: 21.8rem;
    padding-top: 5.6rem;
    padding-bottom: 0.9rem;
  }

  .page-vault .character-sheet-panel img {
    width: min(100%, 22rem);
  }

  .character-feature-strip {
    min-height: 4.85rem;
    margin-bottom: 0.6rem;
    padding-top: 2.85rem;
  }

  .page-vault .section {
    padding-top: 0.5rem;
    padding-bottom: 0.62rem;
  }

  .page-vault .visual-feature {
    padding-top: 0.45rem;
    padding-bottom: 0.5rem;
  }

  .portrait-panel {
    min-height: 10rem;
  }

  .portrait-panel img {
    width: min(100%, 12.2rem);
  }

  .vault-card-row {
    min-height: 7.6rem;
  }

  .vault-card-row img {
    width: min(100%, 5.45rem);
  }

  .page-memories .hero {
    min-height: 20.2rem;
    padding-top: 5.6rem;
    padding-bottom: 0.55rem;
  }

  .page-memories .story-hero-art img {
    width: min(100%, 20.4rem);
  }

  .page-memories .engine-panel {
    transform: translateY(-1.95rem);
    margin-bottom: -1.95rem;
  }

  .page-memories .section {
    padding-top: 0.55rem;
    padding-bottom: 0.62rem;
  }

  .story-art-row img {
    max-height: 7.2rem;
  }

  .story-process-strip {
    min-height: 5.75rem;
    padding-top: 2.72rem;
  }

  .art-footer-cta {
    min-height: 6.9rem;
  }
}

/* Desktop comp scale pass. */
@media (min-width: 901px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 901px) {
  .page-home .as-section h2 {
    font-size: 1.55rem;
    line-height: 1.02;
  }

  .page-home .audience-card {
    min-height: 6.15rem;
    overflow: visible;
  }

  .page-home .audience-card__copy,
  .page-home .audience-card--players .audience-card__copy,
  .page-home .audience-card--gms .audience-card__copy {
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0.72rem 1rem 1.55rem;
    text-align: left;
  }

  .page-home .audience-card--gms .audience-card__copy {
    padding-right: 28%;
  }

  .page-home .audience-card h3 {
    margin-bottom: 0.24rem;
    font-size: 1.08rem;
    line-height: 1;
  }

  .page-home .audience-card p {
    max-width: 24rem;
    font-size: 0.58rem;
    line-height: 1.14;
  }

  .page-home .audience-card .tag-row,
  .page-home .audience-card--players .tag-row,
  .page-home .audience-card--gms .tag-row {
    position: absolute;
    left: 8.5%;
    right: 8.5%;
    bottom: 13%;
    display: grid;
    gap: 0.28rem;
    margin: 0;
  }

  .page-home .audience-card--players .tag-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .audience-card--gms .tag-row {
    right: 34%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .audience-card .tag-row span {
    padding: 0.11rem 0.28rem;
    border: 0;
    font-size: 0.48rem;
    line-height: 1;
  }
}

/* Home exact-strip pass: preserve reference artwork proportions for composite panels. */
.home-timeline-exact,
.home-footer-cta__exact {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(45, 20, 5, 0.18));
}

.home-feature-strip__exact {
  display: none;
}

.skill-section,
.depth-section {
  padding-bottom: 0.55rem;
}

.skill-section .section-lede,
.depth-section .section-lede {
  max-width: 44rem;
}

.home-timeline-exact {
  margin-top: 0.5rem;
}

.home-footer-cta__hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  overflow: hidden;
  color: transparent;
  text-indent: -999rem;
  border-radius: 0.25rem;
}

.home-footer-cta__hotspot:focus-visible {
  outline: 2px solid #fff5bd;
  outline-offset: 2px;
}

.home-footer-cta__hotspot--playtest {
  left: 7.4%;
  top: 70.2%;
  width: 18.4%;
  height: 16.5%;
}

.home-footer-cta__hotspot--quickstart {
  left: 28.2%;
  top: 70.2%;
  width: 21.5%;
  height: 16.5%;
}

@media (min-width: 901px) {
  .page-home .home-feature-strip {
    width: min(100%, 47rem);
    min-height: 0;
    margin: 0.45rem auto 0.9rem;
    padding: 0;
  }

  .page-home .home-feature-strip__exact {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(45, 20, 5, 0.18));
  }

  .page-home .home-feature-strip__frame,
  .page-home .home-feature-strip__content {
    display: none;
  }

  .page-home .skill-section {
    padding-top: 0.5rem;
    padding-bottom: 0.45rem;
  }

  .page-home .depth-section {
    padding-top: 0.55rem;
    padding-bottom: 0.5rem;
  }

  .page-home .skill-section h2,
  .page-home .depth-section h2 {
    margin-bottom: 0.24rem;
  }

  .page-home .skill-section .section-lede,
  .page-home .depth-section .section-lede {
    margin-bottom: 0.35rem;
    font-size: 0.65rem;
    line-height: 1.24;
  }

  .page-home .home-timeline-exact {
    width: min(100%, 47rem);
    margin: 0.45rem auto 0;
  }
}

@media (min-width: 641px) {
  .page-home .home-feature-strip {
    width: min(100%, 47rem);
    min-height: 0;
    margin: 0.45rem auto 0.9rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-home .home-feature-strip__exact {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 12px rgba(45, 20, 5, 0.18));
  }

  .page-home .home-feature-strip__frame,
  .page-home .home-feature-strip__content {
    display: none;
  }
}

@media (min-width: 901px) {
  .page-books .hero {
    grid-template-columns: minmax(0, 0.88fr) minmax(22rem, 0.82fr);
    gap: clamp(2rem, 5vw, 4rem);
    min-height: 17.4rem;
    padding-top: 2.35rem;
    padding-bottom: 0.85rem;
  }

  .page-books .hero h1 {
    max-width: 9.6ch;
    font-size: clamp(4.1rem, 6.2vw, 5.45rem);
  }

  .page-books .hero-copy > p:not(.eyebrow):not(.note) {
    max-width: 29rem;
    font-size: 1rem;
    line-height: 1.24;
  }

  .page-books .book-lute-panel img {
    width: min(100%, 27rem);
    transform: translateY(-2.85rem);
  }

  .page-books .books-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .page-books .book-card {
    grid-column: span 2;
    gap: 0.46rem;
    min-height: 22.6rem;
    padding: 0.58rem 0.58rem 0.52rem;
  }

  .page-books .books-grid--single .book-card,
  .page-books .books-grid--center-one .book-card:nth-child(4) {
    grid-column: 3 / span 2;
  }

  .page-books .books-grid--center-seventh .book-card:nth-child(7) {
    grid-column: 3 / span 2;
  }

  .page-books .books-grid--sourcebooks .book-card {
    min-height: 24.6rem;
  }

  .page-books .book-cover.real-cover {
    min-height: 11.4rem;
  }

  .page-books .book-cover.real-cover img {
    width: min(100%, 11.8rem);
  }

  .page-books .book-card h3 {
    font-size: 0.92rem;
    line-height: 1.08;
  }

  .page-books .book-card p,
  .page-books .price-list {
    font-size: 0.68rem;
    line-height: 1.18;
  }

  .page-books .card-actions .button {
    min-height: 1.45rem;
    font-size: 0.68rem;
  }

  .page-books .card-actions {
    display: flex;
    justify-content: center;
    gap: 0.42rem;
  }

  .page-books .books-digital-banner__copy {
    top: 19%;
    left: calc(25% - 80px);
    width: 50%;
  }

  .page-books .books-digital-banner__copy h2 {
    margin-bottom: 0.2rem;
    font-size: clamp(1.15rem, 2.2vw, 1.82rem);
    line-height: 0.98;
    white-space: nowrap;
  }

  .page-books .books-digital-banner__copy p {
    max-width: 34rem;
    font-size: clamp(0.54rem, 0.82vw, 0.72rem);
    line-height: 1.12;
  }

  .page-books .books-digital-banner__features {
    bottom: 11%;
  }

  .page-books .books-digital-banner__features h3 {
    font-size: clamp(0.54rem, 0.9vw, 0.78rem);
  }

  .page-books .books-digital-banner__features p {
    font-size: clamp(0.4rem, 0.68vw, 0.58rem);
  }

  .page-books .books-footer-cta {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.82fr);
    min-height: 9.3rem;
    margin-top: 0.75rem;
    margin-bottom: 1.05rem;
    padding: 1.25rem 3.35rem 1.05rem;
    gap: 0.45rem 1.7rem;
  }

  .page-books .books-footer-cta__copy h2 {
    margin-bottom: 0.22rem;
    font-size: 2.15rem;
  }

  .page-books .books-footer-cta__copy p {
    max-width: 24rem;
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .page-books .books-footer-cta__links {
    justify-content: center;
    align-self: start;
    gap: 0.16rem 0.54rem;
    font-size: 0.62rem;
    line-height: 1.1;
  }

  .page-books .books-footer-cta__links a:not(:last-child)::after {
    margin-left: 0.52rem;
  }
}

@media (max-width: 640px) {
  .page-books .hero {
    gap: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .page-books .book-lute-panel img {
    width: min(100%, 14.4rem);
    margin-top: -0.45rem;
  }

  .page-books .books-feature-strip {
    display: none;
  }

  .page-books .section#books {
    padding-top: 0.85rem;
  }

  .page-books .books-grid {
    gap: 0.58rem;
  }

  .page-books .book-card {
    display: grid;
    grid-template-columns: clamp(5.75rem, 29vw, 7rem) minmax(0, 1fr);
    grid-template-areas:
      "cover title"
      "cover summary"
      "cover prices"
      "cover actions";
    align-items: center;
    column-gap: 0.72rem;
    row-gap: 0.2rem;
    padding: 1rem 0.62rem 0.68rem;
  }

  .page-books .book-cover.real-cover {
    grid-area: cover;
    align-self: center;
  }

  .page-books .book-cover.real-cover img {
    width: min(100%, 6.7rem);
  }

  .page-books .book-card h3 {
    grid-area: title;
    margin: 0;
    font-size: clamp(0.82rem, 4.2vw, 1rem);
    line-height: 1.08;
  }

  .page-books .book-card p {
    grid-area: summary;
    margin: 0;
    font-size: clamp(0.6rem, 3.1vw, 0.76rem);
    line-height: 1.18;
  }

  .page-books .price-list {
    grid-area: prices;
    gap: 0.08rem;
    margin: 0.08rem 0;
    font-size: clamp(0.68rem, 3.4vw, 0.82rem);
    line-height: 1.05;
  }

  .page-books .price-list div {
    gap: 0.45rem;
  }

  .page-books .card-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 0.18rem;
  }

  .page-books .card-actions .button {
    min-height: 1.45rem;
    font-size: 0.68rem;
  }
}

/* Books comp-alignment: keep decorative ownership local to this page. */
body.page-books {
  position: relative;
  isolation: isolate;
  overflow-y: hidden;
  background: var(--as-red-page-frame-background);
}

.page-books .page-frame-fill {
  position: absolute;
  inset: 0.46rem;
  z-index: -1;
  pointer-events: none;
  background: var(--as-parchment-background);
}

.page-books .site-header {
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.page-books .site-footer {
  z-index: 62;
  overflow: visible;
  padding-bottom: calc(2.7rem + 57px);
  border-top: 0;
}

.page-books .site-footer::after {
  top: calc(-1.45rem + 121px);
}

.page-books main.site-frame {
  position: relative;
  background: none;
}

body.page-books::before {
  --as-page-frame-clear-x: clamp(3.45rem, 5.7vw, 4.5rem);
  --as-page-frame-clear-y: clamp(2.75rem, 4.65vw, 3.7rem);
  position: absolute;
  inset: 0.35rem;
  z-index: 60;
  border: 0;
  border-radius: 0;
  background:
    url("assets/shared/ornaments/page-frame-rails/top-rail-from-corner-dark.png") top center / calc(100% - var(--as-page-frame-clear-x) - var(--as-page-frame-clear-x)) 2px no-repeat,
    linear-gradient(90deg, #5c3510, #6b4217 18%, #6b4217 82%, #5c3510) bottom center / calc(100% - var(--as-page-frame-clear-x) - var(--as-page-frame-clear-x)) 2px no-repeat,
    url("assets/shared/ornaments/page-frame-rails/left-rail-from-corner-dark-v2.png") left center / 2px calc(100% - var(--as-page-frame-clear-y) - var(--as-page-frame-clear-y)) no-repeat,
    url("assets/shared/ornaments/page-frame-rails/left-rail-from-corner-dark-v2.png") right center / 2px calc(100% - var(--as-page-frame-clear-y) - var(--as-page-frame-clear-y)) no-repeat;
  box-shadow: none;
}

body.page-books::after {
  content: "";
  position: absolute;
  inset: 0.25rem;
  z-index: 61;
  pointer-events: none;
  background:
    url("assets/shared/ornaments/top-center-gem-transparent.png") center top -0.95rem / clamp(2.5rem, 4.3vw, 3.2rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-top-left-transparent.png") left -0.7rem top -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-top-right-transparent.png") right -0.7rem top -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-bottom-left-transparent.png") left -0.7rem bottom -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-bottom-right-transparent.png") right -0.7rem bottom -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat;
}

.page-books .hero {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.page-books .hero::before {
  display: none;
}

.page-books .hero-art:not(.mockup-frame)::before {
  display: none;
}

.page-books .hero .button-row {
  display: none;
}

.page-books .hero .button {
  display: inline-grid;
  place-items: center;
}

.page-books .hero .button.ornate-red--xl,
.page-books .hero .button.ornate-blue--xl {
  padding-inline: 0.72rem;
  font-size: 10.2px;
}

.page-books .hero h1 span {
  display: block;
}

.page-books .books-hero-instruments-panel img {
  width: min(100%, 33rem);
}

.page-books .books-section-title {
  width: max-content;
  min-width: 16rem;
  max-width: calc(100% - 1rem);
  margin: 0 auto 1rem;
  padding: 0.35rem 2.6rem 0.28rem;
  color: #5a0b07;
  border: 18px solid transparent;
  border-image-source: var(--as-core-card-frame);
  border-image-slice: 30;
  border-image-width: 18px;
  border-image-repeat: stretch;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 250, 218, 0.5), transparent 5rem),
    var(--as-parchment-surface) center / 420px 420px repeat,
    #f2d9a4;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 1.6vw, 1.32rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: none;
}

.page-books .books-catalog {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2.25rem);
}

.page-books .books-catalog-section {
  scroll-margin-top: clamp(5.5rem, 11vw, 8rem);
}

.page-books .books-section-title--long {
  max-width: min(100%, 52rem);
  font-size: clamp(0.84rem, 1.35vw, 1.18rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-books .book-card {
  isolation: isolate;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-books .book-card > * {
  position: relative;
  z-index: 1;
}

.page-books .book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  border: 18px solid transparent;
  border-image-source: var(--as-core-card-frame);
  border-image-slice: 30;
  border-image-width: 18px;
  border-image-repeat: stretch;
  background: transparent;
  pointer-events: none;
}

.page-books .book-card::after {
  content: "";
  position: absolute;
  inset: 7px 8px;
  z-index: 0;
  display: block;
  background:
    radial-gradient(circle at 100% 0, rgba(127, 75, 17, 0.12), transparent 7rem),
    var(--as-parchment-surface) center / 420px 420px repeat,
    #f3dfb0;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  pointer-events: none;
}

.page-books .book-cover.real-cover.book-cover--placeholder {
  width: min(100%, 11.8rem);
  min-height: 11.4rem;
  margin-inline: auto;
  padding: 0.85rem;
  border: 1px solid rgba(128, 84, 21, 0.64);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 229, 121, 0.28), transparent 5.5rem),
    linear-gradient(145deg, rgba(82, 8, 4, 0.96), rgba(12, 36, 56, 0.96));
  color: #ffe7a4;
  box-shadow:
    inset 0 0 0 5px rgba(255, 214, 103, 0.18),
    inset 0 0 0 7px rgba(14, 4, 0, 0.48),
    0 15px 14px rgba(42, 19, 13, 0.3);
}

.page-books .book-cover--placeholder span {
  display: grid;
  place-items: center;
  min-height: 7.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 225, 137, 0.42);
  font-family: var(--font-ui);
  font-size: clamp(0.72rem, 1.15vw, 0.9rem);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.85);
}

.page-books .book-release-badge {
  position: absolute;
  left: 50%;
  bottom: clamp(0.18rem, 0.5vw, 0.34rem);
  z-index: 3;
  display: inline-grid;
  place-items: center;
  max-width: calc(100% - 1rem);
  min-height: 1.18rem;
  padding: 0.15rem 0.44rem 0.12rem;
  border: 1px solid rgba(245, 211, 121, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(12, 33, 53, 0.88), rgba(100, 12, 5, 0.9) 50%, rgba(12, 33, 53, 0.88)),
    rgba(38, 9, 4, 0.92);
  color: #ffe7a4;
  font-family: var(--font-ui);
  font-size: clamp(0.54rem, 0.72vw, 0.66rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  box-shadow:
    inset 0 0 0 1px rgba(20, 6, 2, 0.58),
    0 0.18rem 0.38rem rgba(21, 7, 2, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transform: translateX(-50%) rotate(-1.5deg);
  pointer-events: none;
}

@media (min-width: 901px) {
  .page-books .book-card {
    min-height: 24.8rem;
    padding: 1.32rem 1.26rem 1rem;
  }

  .page-books .book-cover.real-cover {
    min-height: 12.4rem;
  }

  .page-books .book-cover.real-cover img {
    width: min(100%, 12.45rem);
  }

  .page-books .book-card h3 {
    font-size: 1rem;
  }

  .page-books .book-card p,
  .page-books .price-list {
    font-size: 0.72rem;
  }
}

/* Character Vault and Story Engine comp-alignment pass. */
.numbered-heading {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
}

.numbered-heading > span,
.step-badge {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  border: 2px solid #6d330c;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, #ffdd78 0 8%, transparent 10%),
    linear-gradient(180deg, #8b170e, #4e0706);
  color: #ffe68b;
  font: 900 1.18rem/1 var(--font-heading);
  box-shadow:
    0 0 0 2px rgba(228, 171, 55, 0.72),
    0 5px 8px rgba(45, 20, 5, 0.25);
}

.numbered-heading h2,
.numbered-heading .eyebrow {
  margin: 0;
}

.vault-details-panel {
  padding-top: 0.7rem;
}

.vault-details-panel > .numbered-heading {
  margin-bottom: 0.62rem;
}

.page-vault .vault-details-panel .numbered-heading h2 {
  font-size: clamp(1.25rem, 2.25vw, 1.85rem);
  line-height: 1.02;
}

.vault-details-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(0.85rem, 2vw, 1.35rem);
  align-items: stretch;
}

.vault-detail-list {
  display: grid;
  align-content: start;
  gap: 0.42rem;
}

.vault-detail-list .vault-card {
  min-height: 0;
  padding: 0.62rem 0.8rem;
  border-color: rgba(201, 147, 40, 0.58);
  background: rgba(255, 248, 224, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 5px 10px rgba(77, 34, 11, 0.08);
}

.vault-detail-list .vault-card h3 {
  margin-bottom: 0.12rem;
  font-size: clamp(0.82rem, 1.2vw, 1rem);
}

.vault-detail-list .vault-card p {
  margin: 0;
  font-size: clamp(0.62rem, 0.86vw, 0.76rem);
  line-height: 1.16;
}

.vault-sample-figure {
  display: grid;
  align-content: start;
  min-width: 0;
  margin: 0;
}

.vault-sample-figure .numbered-heading {
  margin-bottom: 0.45rem;
}

.vault-sample-figure h2 {
  font-size: clamp(1.28rem, 2.28vw, 1.9rem);
}

.vault-sample-figure img {
  display: block;
  width: min(100%, 29rem);
  margin-inline: auto;
  border-radius: 0.18rem;
  filter: drop-shadow(0 10px 12px rgba(45, 20, 5, 0.16));
}

.page-vault .visual-feature {
  display: none;
}

.vault-combo-section {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  padding-top: 0.7rem;
}

.vault-combo-section > div > p {
  margin-top: 0.42rem;
}

.vault-combo-section .icon-list {
  gap: 0.35rem;
}

.vault-combo-section .icon-list li {
  border-left-width: 4px;
  background: rgba(255, 248, 224, 0.76);
}

.page-vault .vault-card-showcase {
  grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 0.58fr);
  align-items: center;
  padding-top: 0.72rem;
}

.page-vault .vault-card-showcase .section-lede {
  margin-top: 0.42rem;
}

.page-vault .vault-card-gallery {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.page-vault .vault-card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  place-items: center;
  min-height: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(201, 147, 40, 0.5);
  border-radius: 0.32rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 246, 190, 0.42), transparent 10rem),
    rgba(255, 248, 224, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 8px 12px rgba(45, 20, 5, 0.1);
}

.page-vault .vault-card-row img {
  width: min(100%, 6.35rem);
  filter: drop-shadow(0 6px 7px rgba(45, 20, 5, 0.2));
}

.strip-heading {
  width: min(100%, 72rem);
  margin: 0.35rem auto 0.25rem;
  color: var(--ink);
  text-align: center;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1;
}

.page-memories #how h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
  text-align: center;
}

.page-memories #how h2::before,
.page-memories #how h2::after {
  content: "";
  flex: 1 1 14rem;
  max-width: 34rem;
  height: clamp(0.86rem, 1.8vw, 1.18rem);
  background:
    url("assets/shared/dividers/decorative-divider-ornament-right.png") right center / auto 100% no-repeat,
    linear-gradient(90deg, transparent, rgba(141, 82, 21, 0.36) 8%, rgba(174, 111, 33, 0.74) calc(100% - 0.45rem), transparent calc(100% - 0.45rem)) left center / 100% 1px no-repeat;
}

.page-memories #how h2::after {
  transform: scaleX(-1);
}

.page-memories .memory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.2rem);
  margin-inline: auto;
  max-width: 53rem;
  position: relative;
}

.page-memories .memory-grid::before,
.page-memories .memory-grid::after {
  content: "";
  position: absolute;
  top: 50%;
  z-index: 4;
  width: clamp(1.7rem, 3.2vw, 2.35rem);
  height: clamp(1rem, 1.8vw, 1.35rem);
  background: linear-gradient(90deg, #8c5410, #e2a43b 42%, #8f500b);
  clip-path: polygon(0 28%, 62% 28%, 62% 0, 100% 50%, 62% 100%, 62% 72%, 0 72%);
  filter:
    drop-shadow(0 2px 1px rgba(84, 37, 7, 0.3))
    drop-shadow(0 0 2px rgba(255, 232, 128, 0.3));
  transform: translateY(-50%);
  pointer-events: none;
}

.page-memories .memory-grid::before {
  left: calc(33.333% - clamp(1.38rem, 2.5vw, 1.9rem));
}

.page-memories .memory-grid::after {
  left: calc(66.666% - clamp(1.38rem, 2.5vw, 1.9rem));
}

.page-memories .memory-grid::before,
.page-memories .memory-grid::after {
  top: 58%;
}

.page-memories .memory-step {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 17.2rem;
  padding: 2.4rem 1rem 0.9rem;
  text-align: center;
  background:
    linear-gradient(rgba(255, 248, 224, 0.78), rgba(255, 237, 188, 0.88)),
    var(--parchment);
}

.page-memories .memory-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 48%;
  right: -1.18rem;
  z-index: 2;
  width: 1.55rem;
  height: 1.55rem;
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 1rem solid rgba(171, 105, 21, 0.82);
}

.page-memories .memory-step .step-badge {
  position: absolute;
  top: -1.05rem;
  left: 50%;
  transform: translateX(-50%);
}

.page-memories .memory-step h3 {
  max-width: 11rem;
  margin: 0 auto 0.45rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.05;
}

.page-memories .memory-step p {
  margin: 0 auto 0.7rem;
  max-width: 13.5rem;
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  line-height: 1.2;
}

.page-memories .memory-step img {
  align-self: end;
  justify-self: center;
  width: min(100%, 9.8rem);
  max-height: 7.8rem;
  object-fit: contain;
  filter: drop-shadow(0 7px 9px rgba(45, 20, 5, 0.18));
}

.page-memories .memory-step--seed > img {
  width: min(168%, 16.9rem);
  max-height: 13.85rem;
  margin-top: auto;
  margin-bottom: -0.2rem;
  transform: translateY(-0.1rem);
}

.memory-step__chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.42rem;
  width: min(90%, 12.95rem);
  margin: auto auto 0;
  padding: 0;
  list-style: none;
  transform: translateY(0.12rem);
}

.memory-step__chips li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 0.22rem;
  border: 2px solid rgba(171, 105, 21, 0.62);
  border-radius: 0.14rem;
  background:
    radial-gradient(circle at 100% 0, rgba(142, 78, 15, 0.12), transparent 2.8rem),
    linear-gradient(180deg, rgba(255, 242, 200, 0.86), rgba(238, 205, 142, 0.72));
  clip-path: polygon(0.28rem 0, calc(100% - 0.28rem) 0, 100% 0.28rem, 100% calc(100% - 0.28rem), calc(100% - 0.28rem) 100%, 0.28rem 100%, 0 calc(100% - 0.28rem), 0 0.28rem);
  color: #3d1f14;
  text-align: center;
  font: 900 clamp(0.45rem, 0.72vw, 0.55rem)/0.92 var(--font-body);
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 226, 0.78),
    0 2px 4px rgba(75, 34, 9, 0.08);
}

.memory-step__chips li::before,
.memory-step__chips li::after {
  display: none;
}

.memory-step__chips img {
  display: block;
  justify-self: center;
  width: clamp(1.38rem, 2.15vw, 1.7rem);
  height: clamp(1.38rem, 2.15vw, 1.7rem);
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(70, 30, 5, 0.24));
}

.page-memories .memory-step__chips img {
  align-self: center;
  justify-self: center;
  width: clamp(1.38rem, 2.15vw, 1.7rem);
  height: clamp(1.38rem, 2.15vw, 1.7rem);
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(70, 30, 5, 0.24));
}

.page-memories .memory-step--chapter .memory-step__desk-pubs-art {
  align-self: end;
  justify-self: center;
  width: 132%;
  max-width: none;
  max-height: none;
  margin: auto -16% -0.9rem;
  object-fit: contain;
  filter:
    drop-shadow(0 9px 9px rgba(45, 20, 5, 0.24))
    drop-shadow(0 0 1px rgba(255, 230, 160, 0.25));
}

@media (max-width: 640px) {
  .page-memories .memory-step__chips {
    transform: translateY(-0.08rem);
  }

  .page-memories .memory-step--chapter .memory-step__desk-pubs-art {
    width: 118%;
    margin: auto -9% -0.55rem;
  }
}

.memory-step__chips span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.remembered-grid-panel .parchment-card {
  position: relative;
  display: grid;
  align-content: center;
  padding-left: 47%;
}

.remembered-card-icon {
  position: absolute;
  left: 1%;
  top: 38%;
  z-index: 2;
  width: 42%;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.remembered-grid-panel h3 {
  font-size: clamp(0.88rem, 1.42vw, 1.12rem);
}

.remembered-grid-panel p {
  max-width: 9.4rem;
  font-size: clamp(0.64rem, 1vw, 0.8rem);
}

.page-memories .remembered-section {
  margin-top: clamp(1.3rem, 2.6vw, 2.1rem);
}

@media (min-width: 901px) {
  .page-memories #how h2,
  .page-memories .strip-heading {
    white-space: nowrap;
  }

  .page-memories #how h2::before,
  .page-memories #how h2::after,
  .page-memories .strip-heading::before,
  .page-memories .strip-heading::after {
    flex: 1 1 0;
    min-width: 7rem;
  }

  .page-memories .remembered-grid-panel {
    overflow: visible;
  }

  .page-memories .remembered-grid-panel__frame {
    bottom: -0.6%;
    height: 100.6%;
  }

  .page-memories .remembered-grid-panel .parchment-card {
    padding: clamp(1.15rem, 1.85vw, 1.48rem) 0.6rem 0.5rem 43%;
  }

  .page-memories .remembered-grid-panel .parchment-card:nth-child(2) {
    padding-left: 44%;
  }

  .page-memories .remembered-grid-panel .parchment-card:nth-child(5) {
    padding-left: 43.5%;
  }

  .page-memories .remembered-card-icon {
    left: 3%;
    top: 39%;
    width: 36%;
  }

  .page-memories .remembered-grid-panel h3 {
    font-size: clamp(0.72rem, 1.12vw, 0.94rem);
    line-height: 0.98;
  }

  .page-memories .remembered-grid-panel p {
    max-width: 8.2rem;
    font-size: clamp(0.54rem, 0.82vw, 0.67rem);
    line-height: 1.08;
  }
}

@media (max-width: 900px) {
  .page-memories .remembered-grid-panel .parchment-card {
    min-height: 5.9rem;
    padding: 0.82rem 0.8rem 0.82rem 6.85rem;
    align-content: center;
  }

  .page-memories .remembered-card-icon {
    left: 0.86rem;
    top: 50%;
    width: 4.9rem;
    max-width: 28%;
    transform: translateY(-50%);
  }
}

.page-memories .story-footer-cta .art-footer-cta__copy {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.page-memories .story-footer-cta .art-footer-cta__copy h2 {
  font-size: clamp(2rem, 3.45vw, 2.85rem);
}

.page-memories .story-footer-cta .art-footer-cta__copy p:not(.eyebrow) {
  max-width: 32rem;
  margin-inline: auto;
}

@media (min-width: 901px) {
  .page-vault .hero {
    min-height: 18.8rem;
  }

  .page-vault .vault-details-panel,
  .page-vault .vault-combo-section,
  .page-vault .vault-card-showcase,
  .page-memories #how,
  .page-memories .section {
    padding-top: 0.7rem;
    padding-bottom: 0.78rem;
  }

  .page-memories #how {
    margin-bottom: 30px;
  }

  .page-memories .keepsake-section {
    margin-top: -9px;
    border-top: 0;
  }

  .page-vault .vault-sample-figure img {
    width: min(100%, 27rem);
  }

  .page-vault .consequence-strip {
    margin-top: 0.45rem;
  }

  .page-memories .story-process-strip {
    margin-top: 0.2rem;
  }
}

@media (max-width: 900px) {
  .page-memories .memory-grid::before,
  .page-memories .memory-grid::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .vault-details-layout,
  .vault-combo-section,
  .page-vault .vault-card-showcase {
    grid-template-columns: 1fr;
  }

  .vault-sample-figure img {
    width: min(100%, 25rem);
  }

  .page-memories .memory-grid {
    grid-template-columns: 1fr;
    max-width: 25rem;
  }

  .page-memories .memory-step {
    min-height: 0;
  }

  .page-memories .memory-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -1.35rem;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  .page-vault .vault-card-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .numbered-heading {
    align-items: flex-start;
  }

  .numbered-heading > span,
  .step-badge {
    width: 1.78rem;
    height: 1.78rem;
    font-size: 1rem;
  }

  .vault-details-panel,
  .vault-combo-section,
  .page-vault .vault-card-showcase {
    width: min(100%, calc(100vw - 1.8rem));
    margin-inline: auto;
  }

  .vault-sample-figure img {
    width: min(100%, 19rem);
  }

  .page-vault .vault-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-vault .vault-card-row img {
    width: min(100%, 5.3rem);
  }

  .strip-heading {
    width: min(100%, calc(100vw - 1.8rem));
    margin-top: 0.55rem;
    text-align: left;
    font-size: 1.55rem;
  }

  .page-memories .memory-grid {
    width: min(100%, calc(100vw - 1.8rem));
  }

  .page-memories .memory-step {
    padding: 2.2rem 0.85rem 0.9rem;
  }

  .page-memories .memory-step img {
    width: min(100%, 8.4rem);
  }
}

/* Character Dossier Sheet pattern: repeatable character-sheet composition with live HTML content. */
.character-vault-main {
  width: min(var(--as-header-max), calc(100% - 0.75rem));
  padding: clamp(0.35rem, 1vw, 0.9rem) 0 clamp(1rem, 2vw, 1.8rem);
}

.vault-dossier-sheet {
  --vault-sheet-bg: #041522;
  --vault-sheet-bg-2: #071f32;
  --vault-gold: #e2bd60;
  --vault-gold-soft: #f5dd91;
  --vault-line: rgba(224, 177, 75, 0.55);
  --vault-blue-line: rgba(91, 160, 196, 0.22);
  --vault-shadow: rgba(0, 0, 0, 0.36);
  position: relative;
  display: grid;
  gap: clamp(0.75rem, 1.45vw, 1.25rem);
  padding: clamp(0.68rem, 1.65vw, 1.35rem);
  color: #f5df9b;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1.6px) 0 0 / 26px 26px,
    radial-gradient(circle at 16% 6%, rgba(51, 120, 162, 0.24), transparent 20rem),
    radial-gradient(circle at 84% 16%, rgba(113, 40, 137, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(2, 10, 18, 0.2), rgba(0, 0, 0, 0.28)),
    var(--vault-sheet-bg);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}

.vault-dossier-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 18px solid transparent;
  border-image-source: var(--as-card-frame);
  border-image-slice: 30;
  border-image-width: 18px;
  border-image-repeat: stretch;
  pointer-events: none;
}

.vault-dossier-sheet::after {
  content: "";
  position: absolute;
  inset: 0.45rem;
  z-index: 0;
  border: 1px solid rgba(231, 190, 91, 0.28);
  pointer-events: none;
}

.vault-dossier-sheet > * {
  position: relative;
  z-index: 1;
}

.vault-sheet-switcher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  width: min(100%, 31rem);
  margin: 0 auto;
  color: var(--vault-gold-soft);
  text-align: center;
}

.vault-sheet-switcher p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 1.7vw, 1.18rem);
  font-variant: small-caps;
  letter-spacing: 0.08em;
}

.vault-sheet-arrow {
  display: grid;
  place-items: center;
  width: clamp(2.25rem, 4.2vw, 3rem);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid rgba(232, 188, 85, 0.68);
  border-radius: 999px;
  background:
    radial-gradient(circle at 40% 28%, rgba(255, 232, 144, 0.3), transparent 35%),
    linear-gradient(180deg, #11324c, #06111d);
  color: #ffe89b;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1;
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 196, 0.17),
    0 6px 12px rgba(0, 0, 0, 0.22);
}

.vault-dossier-hero {
  display: grid;
  grid-template-columns: minmax(12.5rem, 0.82fr) minmax(18rem, 1.1fr) minmax(17rem, 0.95fr);
  gap: clamp(0.72rem, 1.35vw, 1.05rem);
  align-items: stretch;
}

.vault-portrait-panel,
.vault-panel,
.vault-parchment-panel {
  position: relative;
  min-width: 0;
  border: 18px solid transparent;
  border-image-slice: 30;
  border-image-width: 18px;
  border-image-repeat: stretch;
}

.vault-portrait-panel,
.vault-panel {
  border-image-source: var(--as-card-frame);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 20% 10%, rgba(61, 136, 178, 0.2), transparent 10rem),
    linear-gradient(180deg, rgba(4, 20, 33, 0.88), rgba(2, 9, 17, 0.96)),
    var(--vault-sheet-bg-2);
}

.vault-parchment-panel {
  border-image-source: var(--as-core-card-frame);
  color: #2b160d;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 250, 219, 0.45), transparent 9rem),
    linear-gradient(rgba(255, 244, 211, 0.28), rgba(255, 244, 211, 0.28)),
    var(--as-parchment-surface) center / 420px 420px repeat,
    #f0d6a2;
}

.vault-portrait-panel {
  min-height: clamp(20rem, 41vw, 31rem);
  overflow: hidden;
}

.vault-portrait-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 8, 14, 0.26), transparent 28%, transparent 72%, rgba(1, 8, 14, 0.58)),
    linear-gradient(180deg, transparent 70%, rgba(1, 7, 12, 0.72));
  pointer-events: none;
}

.vault-portrait-panel img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 44% center;
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.04);
}

.vault-hero-copy {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  padding: clamp(0.4rem, 1vw, 0.85rem) 0.25rem;
  text-align: center;
}

.vault-hero-copy .eyebrow {
  margin-bottom: 0.28rem;
  color: #90c7e7;
}

.vault-hero-copy h1 {
  margin: 0;
  color: #e2bd60;
  font-size: clamp(3rem, 6.2vw, 5.35rem);
  line-height: 0.88;
  text-shadow:
    0 2px 0 rgba(42, 18, 5, 0.85),
    0 0 18px rgba(214, 163, 58, 0.24);
}

.vault-hero-kicker {
  max-width: 28rem;
  margin: 0.4rem auto 0.6rem;
  color: #f3d884;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.46rem);
  font-variant: small-caps;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.vault-quote {
  max-width: 26rem;
  margin: 0 auto 0.9rem;
  color: #f6d987;
  font-size: clamp(0.78rem, 1.2vw, 0.96rem);
  font-style: italic;
  line-height: 1.55;
}

.vault-snapshot-panel {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: clamp(0.65rem, 1.25vw, 0.95rem);
}

.vault-panel h2,
.vault-parchment-panel h2,
.vault-dossier-cta h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.08rem, 1.75vw, 1.44rem);
  line-height: 1.05;
  text-align: center;
  font-variant: small-caps;
}

.vault-panel h2 {
  color: var(--vault-gold);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85);
}

.vault-parchment-panel h2 {
  color: #2c160e;
}

.vault-snapshot-panel dl {
  display: grid;
  gap: 0.38rem;
  margin: 0;
}

.vault-snapshot-panel dl > div {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
}

.vault-snapshot-panel dt {
  color: var(--vault-gold);
  font-weight: 700;
}

.vault-snapshot-panel dd {
  margin: 0;
  color: #f8e6ab;
  font-size: clamp(0.74rem, 1vw, 0.9rem);
  line-height: 1.35;
}

.vault-stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.35rem, 0.85vw, 0.7rem);
  padding: clamp(0.55rem, 1.25vw, 0.85rem);
  border: 18px solid transparent;
  border-image-source: var(--as-card-frame);
  border-image-slice: 30;
  border-image-width: 18px;
  border-image-repeat: stretch;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 8px),
    linear-gradient(90deg, rgba(5, 26, 42, 0.88), rgba(7, 34, 54, 0.78), rgba(5, 26, 42, 0.88)),
    #061a2b;
}

.vault-stat-strip article {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.3rem 0.2rem;
  border-left: 1px solid rgba(227, 185, 85, 0.32);
}

.vault-stat-strip article:first-child {
  border-left: 0;
}

.vault-stat-strip span {
  color: var(--vault-gold);
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 1.45vw, 1.08rem);
  font-variant: small-caps;
}

.vault-stat-strip strong {
  color: #ffe7a2;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1;
}

.vault-sheet-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.72rem, 1.25vw, 1rem);
}

.vault-sheet-grid > * {
  padding: clamp(0.72rem, 1.25vw, 1.05rem);
}

.vault-sheet-grid > :nth-child(1) {
  grid-column: span 3;
}

.vault-sheet-grid > :nth-child(2) {
  grid-column: span 5;
}

.vault-sheet-grid > :nth-child(3) {
  grid-column: span 4;
}

.vault-sheet-grid > :nth-child(4) {
  grid-column: span 5;
}

.vault-sheet-grid > :nth-child(5) {
  grid-column: span 4;
}

.vault-sheet-grid > :nth-child(6) {
  grid-column: span 3;
}

.vault-sheet-grid > :nth-child(7),
.vault-sheet-grid > :nth-child(8),
.vault-sheet-grid > :nth-child(9) {
  grid-column: span 4;
}

.vault-parchment-panel p,
.vault-parchment-panel li,
.vault-panel p,
.vault-panel li {
  font-size: clamp(0.74rem, 1vw, 0.9rem);
  line-height: 1.42;
}

.vault-parchment-panel p:last-child,
.vault-panel p:last-child {
  margin-bottom: 0;
}

.vault-panel-note {
  color: inherit;
  font-style: italic;
  text-align: center;
}

.vault-intent-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 0.8rem;
}

.vault-intent-grid h3 {
  margin: 0 0 0.35rem;
  color: #4a240c;
  font-size: clamp(0.76rem, 1vw, 0.92rem);
  text-align: center;
  text-transform: uppercase;
}

.vault-intent-grid ul,
.vault-action-list,
.vault-thread-list,
.vault-skill-list {
  display: grid;
  gap: 0.34rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vault-intent-grid li::before,
.vault-thread-list li::before {
  content: "◆";
  margin-right: 0.34rem;
  color: #8b5619;
  font-size: 0.72em;
}

.vault-action-list li,
.vault-thread-list li,
.vault-skill-list li {
  min-width: 0;
}

.vault-action-list strong,
.vault-thread-list strong,
.vault-skill-list strong {
  display: block;
  color: inherit;
  font-family: var(--font-heading);
}

.vault-panel .vault-thread-list strong,
.vault-panel .vault-skill-list strong {
  color: var(--vault-gold-soft);
}

.vault-item-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.vault-item-grid section {
  display: grid;
  align-content: space-between;
  min-height: 10.2rem;
  padding: 0.62rem;
  border: 1px solid rgba(223, 178, 77, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(92, 157, 197, 0.2), transparent 5rem),
    rgba(3, 13, 22, 0.62);
}

.vault-item-grid h3,
.vault-relationship-list h3 {
  margin: 0 0 0.28rem;
  color: var(--vault-gold-soft);
  font-size: clamp(0.86rem, 1.1vw, 1rem);
  line-height: 1.05;
}

.vault-item-grid p {
  margin: 0;
}

.vault-item-grid span {
  justify-self: center;
  min-width: 5.4rem;
  margin-top: 0.55rem;
  padding: 0.16rem 0.45rem;
  border: 1px solid rgba(227, 185, 85, 0.58);
  border-radius: 999px;
  color: #f3d887;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.vault-relationship-list {
  display: grid;
  gap: 0.45rem;
}

.vault-relationship-list section {
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(224, 177, 75, 0.32);
  background: rgba(242, 219, 162, 0.08);
}

.vault-relationship-list p {
  margin: 0;
}

.vault-spell-list li {
  padding-bottom: 0.28rem;
  border-bottom: 1px solid rgba(224, 177, 75, 0.2);
}

.vault-spell-list li:last-child {
  border-bottom: 0;
}

.vault-dossier-cta {
  display: grid;
  justify-items: center;
  gap: 0.42rem;
  padding: clamp(0.8rem, 1.6vw, 1.15rem);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(227, 185, 85, 0.16), transparent 16rem),
    linear-gradient(90deg, transparent, rgba(214, 163, 58, 0.14), transparent);
}

.vault-dossier-cta h2 {
  margin-bottom: 0;
  color: var(--vault-gold);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
}

.vault-dossier-cta p {
  margin: 0 0 0.25rem;
  color: #f5dd91;
  font-size: clamp(0.88rem, 1.25vw, 1.05rem);
}

@media (max-width: 980px) {
  .vault-dossier-hero {
    grid-template-columns: minmax(13rem, 0.78fr) minmax(0, 1fr);
  }

  .vault-snapshot-panel {
    grid-column: 1 / -1;
  }

  .vault-sheet-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .vault-sheet-grid > :nth-child(n) {
    grid-column: span 3;
    grid-row: auto;
  }

  .vault-sheet-grid > :nth-child(2),
  .vault-sheet-grid > :nth-child(1),
  .vault-sheet-grid > :nth-child(3),
  .vault-sheet-grid > :nth-child(4),
  .vault-sheet-grid > :nth-child(5) {
    grid-column: span 6;
  }

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

@media (max-width: 680px) {
  .character-vault-main {
    width: min(100%, calc(100% - 0.75rem));
    padding-top: 0.1rem;
  }

  .vault-dossier-sheet {
    padding: 0.7rem 0.55rem 0.85rem;
  }

  .vault-dossier-hero,
  .vault-sheet-grid,
  .vault-intent-grid {
    grid-template-columns: 1fr;
  }

  .vault-sheet-grid > :nth-child(n) {
    grid-column: 1;
  }

  .vault-portrait-panel {
    min-height: min(30rem, 86vw);
  }

  .vault-portrait-panel img {
    object-position: 42% center;
  }

  .vault-hero-copy h1 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .vault-snapshot-panel dl > div {
    grid-template-columns: minmax(4.9rem, 0.38fr) minmax(0, 1fr);
  }

  .vault-stat-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-inline: 0.15rem;
  }

  .vault-stat-strip article {
    padding-inline: 0.05rem;
  }

  .vault-stat-strip span {
    font-size: clamp(0.66rem, 3.2vw, 0.88rem);
  }

  .vault-stat-strip strong {
    font-size: clamp(1.08rem, 5.4vw, 1.5rem);
  }

  .vault-item-grid {
    grid-template-columns: 1fr;
  }
}

/* Dynamic Home panels: prefer live text over baked composite images. */
.page-home .home-feature-strip__exact,
.page-home .home-timeline-exact,
.page-home .home-footer-cta__exact,
.page-home .home-footer-cta__hotspot {
  display: none !important;
}

@media (min-width: 641px) {
  .page-home .home-feature-strip {
    width: min(100%, 47rem);
    min-height: clamp(4.65rem, 8.6vw, 6.25rem);
    margin: 0.45rem auto 0.9rem;
    padding: clamp(2.55rem, 4.85vw, 3.55rem) clamp(1.7rem, 4.8vw, 3.8rem) 0.68rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .page-home .home-feature-strip__frame {
    display: block !important;
  }

  .page-home .home-feature-strip__content {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.35rem, 1.15vw, 0.9rem);
  }

  .page-home .home-feature-strip h2 {
    font-size: clamp(0.58rem, 1vw, 0.82rem);
  }

  .page-home .home-feature-strip p {
    font-size: clamp(0.46rem, 0.76vw, 0.6rem);
  }

  .page-home .skill-chain-panel--live {
    width: min(100%, 47rem);
    min-height: clamp(4.8rem, 8.2vw, 6.15rem);
    margin: 0.48rem auto 0.85rem;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .page-home .skill-chain-panel--live::before {
    display: none;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__frame {
    display: block !important;
    z-index: 0;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 0;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__steps {
    position: absolute;
    left: 11.5%;
    right: 9.8%;
    bottom: 18%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.45rem, 1.1vw, 0.85rem);
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__steps li {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__steps li::after {
    display: none;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__steps b {
    color: #ffd970;
    font-size: clamp(0.55rem, 0.95vw, 0.78rem);
    line-height: 1;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__steps span {
    color: #f8e9ad;
    font-size: clamp(0.4rem, 0.7vw, 0.54rem);
    line-height: 1;
  }

  .page-home .depth-mode-panel--live {
    width: min(100%, 47rem);
    min-height: clamp(6.6rem, 11.5vw, 8.5rem);
    margin: 0.5rem auto 0.8rem;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
  }

  .page-home .depth-mode-panel--live .depth-mode-panel__frame {
    display: block !important;
    z-index: 0;
  }

  .page-home .depth-mode-panel--live .depth-mode-panel__content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(7.2rem, 20vw, 11.5rem);
    min-height: 0;
    padding: clamp(0.74rem, 1.55vw, 1.05rem) clamp(1.85rem, 5.2vw, 4.25rem);
  }

  .page-home .depth-mode-panel__list {
    display: grid;
    align-content: center;
    gap: clamp(0.14rem, 0.45vw, 0.28rem);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .page-home .depth-mode-panel__list li {
    min-width: 0;
  }

  .page-home .depth-mode-panel__list strong,
  .page-home .depth-mode-panel__list span {
    display: block;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.78);
  }

  .page-home .depth-mode-panel__list strong {
    color: #ffd970;
    font-family: var(--font-heading);
    font-size: clamp(0.5rem, 0.92vw, 0.72rem);
    line-height: 1;
  }

  .page-home .depth-mode-panel__list span {
    color: #f8e9ad;
    font-size: clamp(0.35rem, 0.62vw, 0.48rem);
    font-weight: 800;
    line-height: 1.08;
  }

  .page-home .timeline-strip--live {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: min(100%, 47rem);
    min-height: clamp(2.7rem, 5.1vw, 3.8rem);
    margin: 0.55rem auto 0.1rem;
    padding: clamp(0.42rem, 1vw, 0.7rem) clamp(0.75rem, 2vw, 1.4rem);
    border: 2px solid rgba(214, 163, 58, 0.82);
    border-radius: 0.24rem;
    background:
      linear-gradient(90deg, rgba(92, 8, 6, 0.98), rgba(129, 18, 10, 0.96)),
      url("assets/shared/textures/deep-red-texture-256.webp") repeat;
    box-shadow:
      inset 0 0 0 1px rgba(255, 239, 150, 0.26),
      0 9px 12px rgba(45, 20, 5, 0.16);
    list-style: none;
  }

  .page-home .timeline-strip--live li {
    position: relative;
    min-width: 0;
    text-align: center;
  }

  .page-home .timeline-strip--live li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0.55rem;
    right: -0.5rem;
    width: 1rem;
    height: 1px;
    background: rgba(255, 217, 112, 0.72);
  }

  .page-home .timeline-strip--live b,
  .page-home .timeline-strip--live span {
    display: block;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72);
  }

  .page-home .timeline-strip--live b {
    color: #ffd970;
    font: 900 clamp(0.52rem, 0.9vw, 0.7rem)/1 var(--font-ui);
  }

  .page-home .timeline-strip--live span {
    margin-top: 0.18rem;
    color: #f8e9ad;
    font-size: clamp(0.38rem, 0.68vw, 0.52rem);
    font-weight: 800;
    line-height: 1.05;
  }

  .page-home .home-footer-cta--live {
    width: min(100%, 50rem);
    min-height: clamp(6.8rem, 12.4vw, 9.2rem);
    margin: 0.75rem auto 0.8rem;
    padding: clamp(1.05rem, 2.2vw, 1.5rem) clamp(5.2rem, 12vw, 8.2rem) clamp(0.95rem, 1.9vw, 1.35rem);
  }

  .page-home .home-footer-cta--live .home-footer-cta__frame {
    display: block !important;
  }

  .page-home .home-footer-cta--live .home-footer-cta__copy {
    display: block;
    max-width: 38rem;
  }

  .page-home .home-footer-cta--live .home-footer-cta__copy h2 {
    margin-bottom: 0.24rem;
    font-size: clamp(1.45rem, 3.05vw, 2.35rem);
  }

  .page-home .home-footer-cta--live .home-footer-cta__copy p:not(.eyebrow) {
    max-width: 34rem;
    margin-inline: auto;
    font-size: clamp(0.58rem, 0.95vw, 0.76rem);
    line-height: 1.18;
  }

  .page-home .home-footer-cta--live .button-row {
    display: flex !important;
    gap: 0.7rem;
    margin-top: 0.08rem;
  }

  .page-home .home-footer-cta--live .button {
    min-height: 1.65rem;
    padding: 0.28rem 0.95rem;
    font-size: 0.62rem;
  }
}

@media (max-width: 640px) {
  .page-home .skill-chain-panel--live,
  .page-home .depth-mode-panel--live {
    padding: 1rem;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__frame,
  .page-home .depth-mode-panel--live .depth-mode-panel__frame {
    display: none;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__inner,
  .page-home .depth-mode-panel--live .depth-mode-panel__content {
    position: static;
    padding: 0;
  }

  .page-home .depth-mode-panel--live .depth-mode-panel__content,
  .page-home .skill-chain-panel--live .skill-chain-panel__steps,
  .page-home .timeline-strip--live {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .page-home .depth-mode-panel__list {
    display: grid;
    gap: 0.68rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .page-home .depth-mode-panel__list li {
    min-width: 0;
  }

  .page-home .depth-mode-panel__list strong,
  .page-home .depth-mode-panel__list span {
    display: block;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.78);
  }

  .page-home .depth-mode-panel__list strong {
    color: #ffe68b;
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.05;
  }

  .page-home .depth-mode-panel__list span {
    margin-top: 0.14rem;
    color: #f8e9ad;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.18;
  }

  .page-home .timeline-strip--live {
    width: min(100%, calc(100vw - 1.8rem));
    margin: 0.8rem auto 0;
    padding: 1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.35rem;
    background:
      linear-gradient(rgba(126, 19, 10, 0.94), rgba(74, 8, 5, 0.96)),
      var(--ruby-dark);
    color: #f8e9ad;
    list-style: none;
  }

  .page-home .timeline-strip--live b,
  .page-home .timeline-strip--live span {
    display: block;
  }

  .page-home .timeline-strip--live b {
    color: #ffe68b;
  }
}

/* Visual correction pass: preserve decomposed panel proportions instead of stretching them flat. */
@media (min-width: 641px) {
  .page-home .home-feature-strip,
  .page-home .skill-chain-panel--live,
  .page-home .depth-mode-panel--live,
  .page-home .home-footer-cta--live,
  .page-home .audience-card,
  .page-books .books-footer-cta {
    min-height: 0;
  }

  .page-home .home-feature-strip {
    aspect-ratio: 1580 / 579;
    padding: 0;
  }

  .page-home .home-feature-strip__frame,
  .page-home .skill-chain-panel--live .skill-chain-panel__frame,
  .page-home .depth-mode-panel--live .depth-mode-panel__frame,
  .page-home .home-footer-cta--live .home-footer-cta__frame,
  .page-books .books-footer-cta__frame {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .page-home .home-feature-strip__content {
    position: absolute;
    inset: 55% 7.2% 15% 7.2%;
    align-items: start;
  }

  .page-home .home-feature-strip h2 {
    font-size: clamp(0.78rem, 1.32vw, 1.03rem);
  }

  .page-home .home-feature-strip p {
    font-size: clamp(0.56rem, 0.88vw, 0.72rem);
  }

  .page-home .audience-card {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-home .audience-card--players {
    aspect-ratio: 1589 / 1015;
  }

  .page-home .audience-card--gms {
    aspect-ratio: 1472 / 774;
  }

  .page-home .audience-card__copy,
  .page-home .audience-card--players .audience-card__copy,
  .page-home .audience-card--gms .audience-card__copy {
    position: absolute;
    inset: 8.8% 8.2% 24%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .page-home .audience-card--players .audience-card__copy {
    inset: 10% 10% 24%;
    text-align: center;
  }

  .page-home .audience-card--gms .audience-card__copy {
    right: 27%;
  }

  .page-home .audience-card h3 {
    margin-bottom: 0.42rem;
    font-size: clamp(1.45rem, 2.55vw, 2.2rem);
  }

  .page-home .audience-card p {
    max-width: 28rem;
    margin-inline: auto;
    font-size: clamp(0.78rem, 1.12vw, 0.94rem);
    line-height: 1.22;
  }

  .page-home .audience-card--gms p {
    margin-inline: 0;
  }

  .page-home .audience-card .tag-row,
  .page-home .audience-card--players .tag-row,
  .page-home .audience-card--gms .tag-row {
    position: absolute;
    left: 10.4%;
    right: 10.4%;
    bottom: 0.8%;
    display: grid;
    gap: 0.55rem;
    margin: 0;
  }

  .page-home .audience-card--players .tag-row {
    left: 12%;
    right: 12%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .audience-card--gms .tag-row {
    left: 8.5%;
    right: 24%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .audience-card .tag-row span {
    display: grid;
    min-height: clamp(1.35rem, 2.6vw, 1.9rem);
    align-items: center;
    padding: 0.2rem 0.45rem;
    border: 0;
    font-size: clamp(0.58rem, 0.9vw, 0.72rem);
    line-height: 1.05;
  }

  .page-home .skill-chain-panel--live {
    aspect-ratio: 1611 / 547;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__steps {
    left: 14.8%;
    right: 14.8%;
    bottom: 18.8%;
    gap: clamp(0.7rem, 1.45vw, 1.2rem);
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__steps b {
    font-size: clamp(0.78rem, 1.35vw, 1.08rem);
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__steps span {
    margin-top: 0.1rem;
    font-size: clamp(0.5rem, 0.86vw, 0.68rem);
  }

  .page-home .depth-mode-panel--live {
    aspect-ratio: 1594 / 929;
  }

  .page-home .depth-mode-panel--live .depth-mode-panel__content {
    display: block;
    padding: 0;
  }

  .page-home .depth-mode-panel__list {
    position: absolute;
    top: 63%;
    width: 31%;
    align-content: start;
    gap: clamp(0.2rem, 0.46vw, 0.34rem);
  }

  .page-home .depth-mode-panel__list--left {
    left: 10.5%;
  }

  .page-home .depth-mode-panel__list--right {
    right: 10.5%;
  }

  .page-home .depth-mode-panel__list strong {
    font-size: clamp(0.64rem, 1.05vw, 0.84rem);
  }

  .page-home .depth-mode-panel__list span {
    max-width: 15.5rem;
    font-size: clamp(0.45rem, 0.76vw, 0.6rem);
    line-height: 1.12;
  }

  .page-home .home-footer-cta--live {
    aspect-ratio: 1467 / 651;
    display: grid;
    align-content: center;
    padding: 0 13% 4%;
  }

  .page-home .home-footer-cta--live .home-footer-cta__copy h2 {
    font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  }

  .page-home .home-footer-cta--live .home-footer-cta__copy p:not(.eyebrow) {
    font-size: clamp(0.78rem, 1.18vw, 0.96rem);
  }

  .page-home .home-footer-cta--live .button-row {
    margin-top: 1.1rem;
  }

  .page-home .home-footer-cta--live .button {
    min-height: 2.1rem;
    padding: 0.42rem 1.25rem;
    font-size: 0.76rem;
  }

  .page-books .books-footer-cta {
    aspect-ratio: 1632 / 627;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
    align-content: center;
    padding: 9% 8.5% 7.2%;
  }

  .page-books .books-footer-cta__copy h2 {
    font-size: clamp(2.4rem, 4.5vw, 3.7rem);
  }

  .page-books .books-footer-cta__copy p {
    font-size: clamp(0.88rem, 1.28vw, 1.05rem);
  }

  .page-books .books-footer-cta__links {
    align-self: end;
    justify-content: center;
    font-size: clamp(0.68rem, 0.92vw, 0.78rem);
  }

  .page-vault .character-feature-strip {
    aspect-ratio: 1516 / 400;
    min-height: 0;
    padding: 0;
  }

  .page-vault .character-feature-strip__frame,
  .page-vault .consequence-strip__frame,
  .page-memories .story-process-strip__frame,
  .page-memories .story-footer-cta .art-footer-cta__frame {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .page-vault .character-feature-strip__content {
    position: absolute;
    inset: 62% 7% 13%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .page-vault .character-feature-strip h2 {
    font-size: clamp(0.72rem, 1.12vw, 0.92rem);
  }

  .page-vault .character-feature-strip p {
    font-size: clamp(0.5rem, 0.76vw, 0.62rem);
  }

  .page-vault .consequence-strip {
    aspect-ratio: 1591 / 361;
    min-height: 0;
    padding: 0;
    margin-top: 3rem;
    overflow: visible;
  }

  .page-vault .consequence-strip h2 {
    position: absolute;
    top: -2.45rem;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 0;
    color: var(--ink);
    font-size: clamp(1.4rem, 2.35vw, 2.1rem);
    text-align: center;
    text-shadow: none;
  }

  .page-vault .consequence-strip .flow {
    position: absolute;
    left: 7.5%;
    right: 7.5%;
    bottom: 10.5%;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(0.35rem, 1vw, 0.8rem);
  }

  .page-vault .consequence-strip .flow li {
    display: grid;
    min-height: clamp(1.5rem, 2.7vw, 2.15rem);
    align-items: center;
    padding: 0.28rem;
    font-size: clamp(0.52rem, 0.82vw, 0.68rem);
    line-height: 1.05;
  }

  .page-memories .story-process-strip {
    aspect-ratio: 1494 / 643;
    min-height: 0;
    padding: 0;
  }

  .page-memories .story-process-strip__steps {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 55%;
    z-index: 1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(0.45rem, 1.1vw, 0.85rem);
  }

  .page-memories .story-process-strip__steps strong {
    font-size: clamp(0.72rem, 1.12vw, 0.92rem);
  }

  .page-memories .story-process-strip__steps span {
    font-size: clamp(0.48rem, 0.72vw, 0.6rem);
  }

  .page-memories .story-footer-cta {
    aspect-ratio: 1562 / 767;
    min-height: 0;
    padding: 8.5% 10% 7%;
  }

  .page-memories .story-footer-cta .art-footer-cta__copy {
    width: 58%;
    max-width: 34rem;
    margin-left: 26%;
    margin-right: auto;
  }

  .page-memories .story-footer-cta .art-footer-cta__copy h2 {
    font-size: clamp(2rem, 3.7vw, 2.9rem);
  }

  .page-memories .story-footer-cta .art-footer-cta__copy p:not(.eyebrow) {
    font-size: clamp(0.82rem, 1.18vw, 1rem);
  }
}

/* Home annotation pass: targeted fixes from marked browser notes. */
body.page-home::before {
  inset: 0.35rem;
  z-index: 60;
  border: 2px solid rgba(194, 128, 29, 0.92);
  border-radius: 0.28rem;
  background:
    repeating-linear-gradient(90deg, rgba(255, 226, 123, 0.82) 0 1px, transparent 1px 11px) top left / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(122, 70, 16, 0.55) 0 1px, transparent 1px 11px) bottom left / 100% 2px no-repeat,
    repeating-linear-gradient(180deg, rgba(255, 226, 123, 0.82) 0 1px, transparent 1px 11px) top left / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(122, 70, 16, 0.55) 0 1px, transparent 1px 11px) top right / 2px 100% no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 210, 0.72),
    0 0 0 0.45rem rgba(55, 8, 7, 0.055);
}

body.page-home::after {
  content: "";
  position: absolute;
  inset: 0.25rem;
  z-index: 61;
  pointer-events: none;
  background:
    url("assets/shared/ornaments/page-corner-top-left-transparent.png") left -0.7rem top -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-top-right-transparent.png") right -0.7rem top -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat;
}

.page-home .site-header {
  z-index: 50;
  overflow: visible;
}

.page-home .site-header::before {
  display: none;
}

.page-home .site-header .header-inner {
  z-index: 1;
}

.page-home main.site-frame {
  position: relative;
  background: none;
}

.page-home main.site-frame::after {
  display: none;
}

.page-home .site-footer::before {
  display: none;
}

.page-home .site-footer {
  overflow: hidden;
}

.page-home .site-footer .footer-inner {
  position: relative;
  z-index: 1;
}

.page-home .site-footer::after {
  display: none;
}

.page-home .as-hero::before {
  content: none;
  display: none;
  background-image: url("assets/shared/ornaments/rainbow-musical-flourish-sweep-rgba-clean.png");
  right: -5.8rem;
  top: 2rem;
  width: min(70vw, 43rem);
  height: 17rem;
  background-size: auto 24rem;
  background-position: center 46%;
  opacity: 1;
  filter:
    saturate(1.45)
    contrast(1.12)
    brightness(1.12)
    drop-shadow(0 0 10px rgba(255, 236, 151, 0.46))
    drop-shadow(0 0 18px rgba(236, 55, 146, 0.12));
}

.page-home .vault-showpiece {
  overflow: visible;
  isolation: isolate;
}

.page-home .vault-showpiece img {
  position: relative;
  z-index: 1;
}

.page-home .as-hero .hero-copy {
  z-index: 3;
}

.page-home .isla-showpiece--full-flourish img {
  -webkit-mask-image: none;
  mask-image: none;
}

.page-home .nav-cta,
.page-home .as-hero .button,
.page-home .home-footer-cta--live .button {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-home .as-hero .button,
.page-home .home-footer-cta--live .button {
  padding-right: clamp(1.55rem, 2.4vw, 1.85rem);
  padding-left: clamp(1.55rem, 2.4vw, 1.85rem);
}

.page-home .nav-cta::before,
.page-home .as-hero .button::before,
.page-home .home-footer-cta--live .button::before {
  left: 0.42rem;
  right: 0.42rem;
}

.page-home .nav-cta::after,
.page-home .as-hero .button::after,
.page-home .home-footer-cta--live .button::after {
  left: -0.06rem;
  right: -0.06rem;
}

@media (min-width: 761px) {
  .page-home .as-hero {
    padding-top: clamp(6.95rem, 9vw, 7.45rem);
  }

  .page-home .isla-showpiece--full-flourish {
    width: clamp(21rem, 43vw, 32.5rem);
    transform: translate(
      calc(clamp(0.35rem, 1.8vw, 1.2rem) - 150px),
      calc(clamp(-3rem, -4vw, -2.1rem) - 75px)
    );
  }

  .page-home .isla-showpiece--full-flourish img {
    width: 100%;
    max-height: clamp(27rem, 43vw, 36rem);
  }
}

@media (min-width: 641px) {
  .page-home .home-feature-strip__content {
    inset: 56.2% 8.35% 16.5% 8.35%;
    align-items: center;
  }

  .page-home .home-feature-strip article {
    display: grid;
    min-height: 100%;
    align-content: center;
    justify-items: center;
  }

  .page-home .home-feature-strip h2 {
    line-height: 0.98;
  }

  .page-home .home-feature-strip p {
    line-height: 1.02;
  }

  .page-home .audience-section .ornate-grid.two {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.8vw, 1.35rem);
    align-items: stretch;
  }

  .page-home .audience-section .audience-card,
  .page-home .audience-section .audience-card--players,
  .page-home .audience-section .audience-card--gms {
    position: relative;
    display: flex;
    min-height: clamp(11rem, 18vw, 13.8rem);
    aspect-ratio: auto;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1rem, 1.9vw, 1.45rem);
    border: 2px solid rgba(198, 143, 43, 0.82);
    border-radius: 0.28rem;
    background:
      linear-gradient(135deg, rgba(255, 248, 220, 0.96), rgba(244, 222, 173, 0.94)),
      radial-gradient(circle at 100% 0, rgba(201, 147, 40, 0.24), transparent 8rem);
    box-shadow:
      inset 0 0 0 1px rgba(255, 249, 214, 0.82),
      inset 0 0 22px rgba(154, 99, 24, 0.12),
      0 10px 18px rgba(45, 20, 5, 0.12);
    overflow: visible;
  }

  .page-home .audience-section .audience-card::before,
  .page-home .audience-section .audience-card::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 0.72rem;
    height: 0.72rem;
    border: 1px solid #d6a33a;
    background: #ffe8b8;
    transform: translateX(-50%) rotate(45deg);
  }

  .page-home .audience-section .audience-card::before {
    top: -0.42rem;
  }

  .page-home .audience-section .audience-card::after {
    bottom: -0.42rem;
  }

  .page-home .audience-section .audience-card__copy,
  .page-home .audience-section .audience-card--players .audience-card__copy,
  .page-home .audience-section .audience-card--gms .audience-card__copy {
    position: static;
    inset: auto;
    display: flex;
    min-height: 100%;
    max-width: none;
    flex-direction: column;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .page-home .audience-section .audience-card h3 {
    margin-bottom: 0.38rem;
    color: #2d0c05;
    font-size: clamp(1.45rem, 2.35vw, 2rem);
    line-height: 1.02;
  }

  .page-home .audience-section .audience-card p,
  .page-home .audience-section .audience-card--gms p {
    max-width: none;
    margin: 0;
    color: #160906;
    font-size: clamp(0.82rem, 1.22vw, 0.98rem);
    line-height: 1.22;
  }

  .page-home .audience-section .audience-card .tag-row,
  .page-home .audience-section .audience-card--players .tag-row,
  .page-home .audience-section .audience-card--gms .tag-row {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.9rem;
  }

  .page-home .audience-section .audience-card .tag-row span {
    display: inline-grid;
    min-height: 1.7rem;
    align-items: center;
    padding: 0.26rem 0.72rem;
    border: 1px solid rgba(184, 127, 33, 0.72);
    border-radius: 0.18rem;
    background: rgba(255, 245, 204, 0.74);
    color: #3a1808;
    font-size: clamp(0.68rem, 0.9vw, 0.78rem);
    line-height: 1.05;
    box-shadow: inset 0 0 0 1px rgba(255, 250, 224, 0.6);
  }

  .page-home .lore-section .ornate-grid.six {
    gap: clamp(0.72rem, 1.4vw, 1rem);
  }

  .page-home .lore-section .scroll-card.token {
    min-height: clamp(5.8rem, 8.5vw, 6.9rem);
    padding: 0.85rem 1rem 0.85rem 3.25rem;
    border: 2px solid rgba(198, 143, 43, 0.84);
    border-radius: 0.28rem;
    background:
      linear-gradient(135deg, rgba(255, 248, 220, 0.95), rgba(246, 226, 182, 0.9)),
      radial-gradient(circle at 95% 15%, rgba(214, 163, 58, 0.18), transparent 6rem);
    box-shadow:
      inset 0 0 0 1px rgba(255, 249, 214, 0.8),
      0 8px 15px rgba(45, 20, 5, 0.1);
  }

  .page-home .lore-section .scroll-card.token::before {
    top: 0.92rem;
    left: 0.88rem;
    width: 1.55rem;
    height: 1.55rem;
    border: 3px solid #071e2d;
    box-shadow: 0 0 0 1px rgba(214, 163, 58, 0.9), 0 4px 6px rgba(45, 20, 5, 0.24);
  }

  .page-home .lore-section .scroll-card.token::after {
    bottom: -0.42rem;
    left: 50%;
    width: 0.72rem;
    height: 0.72rem;
    border-color: #d6a33a;
    background: #ffe8b8;
  }

  .page-home .lore-section .scroll-card.token h3 {
    margin-bottom: 0.22rem;
    font-size: clamp(1.05rem, 1.75vw, 1.38rem);
    line-height: 1.02;
  }

  .page-home .lore-section .scroll-card.token p {
    margin: 0;
    font-size: clamp(0.72rem, 1.04vw, 0.86rem);
    line-height: 1.18;
  }

  .page-home .depth-mode-panel--live {
    aspect-ratio: 1594 / 760;
    overflow: hidden;
    border: 2px solid rgba(214, 163, 58, 0.8);
    border-radius: 0.28rem;
    background: #051b2b;
    box-shadow:
      inset 0 0 0 1px rgba(255, 232, 139, 0.38),
      0 12px 22px rgba(45, 20, 5, 0.15);
  }

  .page-home .depth-mode-panel--live .depth-mode-panel__frame {
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    transform-origin: center;
  }

  .page-home .depth-mode-panel__list {
    top: 57.5%;
    width: 32%;
    gap: clamp(0.16rem, 0.38vw, 0.28rem);
  }

  .page-home .depth-mode-panel__list--left {
    left: 10.3%;
  }

  .page-home .depth-mode-panel__list--right {
    right: 10.3%;
  }

  .page-home .depth-mode-panel__list strong {
    font-size: clamp(0.58rem, 0.92vw, 0.76rem);
  }

  .page-home .depth-mode-panel__list span {
    font-size: clamp(0.41rem, 0.66vw, 0.54rem);
  }

  .page-home .timeline-strip--live {
    position: relative;
    min-height: clamp(4.3rem, 6.4vw, 5.25rem);
    padding: clamp(0.62rem, 1.1vw, 0.85rem) clamp(1.2rem, 2.6vw, 2rem);
    overflow: hidden;
    border: 2px solid rgba(244, 217, 120, 0.86);
    box-shadow:
      inset 0 0 0 1px rgba(255, 247, 198, 0.22),
      inset 0 0 22px rgba(36, 2, 2, 0.2),
      0 9px 15px rgba(45, 20, 5, 0.15);
  }

  .page-home .timeline-strip--live::before {
    content: "";
    position: absolute;
    right: 4.6%;
    left: 4.6%;
    top: 55%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #eed173 4%, #eed173 94%, transparent);
    transform: translateY(-50%);
  }

  .page-home .timeline-strip--live::after {
    content: "";
    position: absolute;
    right: 4.25%;
    top: 55%;
    width: 0;
    height: 0;
    border-top: 0.34rem solid transparent;
    border-bottom: 0.34rem solid transparent;
    border-left: 0.58rem solid #eed173;
    transform: translateY(-50%);
  }

  .page-home .timeline-strip--live li {
    display: flex;
    min-height: clamp(3rem, 4.8vw, 3.7rem);
    flex-direction: column;
    justify-content: space-between;
    padding: 0 0.22rem;
  }

  .page-home .timeline-strip--live li::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 55%;
    z-index: 2;
    width: clamp(0.92rem, 1.45vw, 1.15rem);
    height: clamp(0.92rem, 1.45vw, 1.15rem);
    border: 3px solid #dfc06b;
    border-radius: 999px;
    background: #6a2031;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 0 2px rgba(71, 17, 30, 0.9), 0 0 0 1px rgba(255, 248, 194, 0.35);
  }

  .page-home .timeline-strip--live li:not(:last-child)::after,
  .page-home .timeline-strip--live span::before {
    display: none;
  }

  .page-home .timeline-strip--live b {
    min-height: 1.1rem;
  }

  .page-home .timeline-strip--live span {
    min-height: 1.15rem;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .page-home .site-header::before {
    background:
      url("assets/shared/ornaments/page-corner-top-left-transparent.png") left -1.2rem top -1.2rem / 4.1rem auto no-repeat,
      url("assets/shared/ornaments/page-corner-top-right-transparent.png") right -1.2rem top -1.2rem / 4.1rem auto no-repeat;
  }

  .page-home .as-hero .button,
  .page-home .home-footer-cta--live .button {
    padding-right: 1.45rem;
    padding-left: 1.45rem;
  }

  .page-home .audience-section .audience-card {
    display: block;
    min-height: 0;
  }

  .page-home .audience-section .audience-card__copy {
    position: static;
    inset: auto;
    display: block;
    min-height: 0;
  }

  .page-home .audience-section .audience-card .tag-row {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
  }

  .page-home .audience-section .audience-card .tag-row span {
    display: inline-grid;
    min-height: 1.6rem;
    align-items: center;
    padding: 0.23rem 0.58rem;
    border: 1px solid rgba(184, 127, 33, 0.72);
    border-radius: 0.18rem;
    background: rgba(255, 245, 204, 0.74);
  }
}

/* Decorative border system pass: comp-matched frames for page, buttons, and live cards. */
body.page-home {
  position: relative;
  isolation: isolate;
  background: var(--as-red-page-frame-background);
}

.page-home .page-frame-fill {
  position: absolute;
  inset: 0.46rem;
  z-index: -1;
  pointer-events: none;
  background: var(--as-parchment-background);
}

.page-home .page-scroll,
.page-home .as-hero {
  border-right: 0;
  border-left: 0;
}

body.page-home::before {
  position: absolute;
  inset: 0.35rem;
  z-index: 60;
  border: 2px solid rgba(194, 128, 29, 0.92);
  border-radius: 0.24rem;
  background:
    repeating-linear-gradient(90deg, rgba(255, 226, 123, 0.82) 0 1px, transparent 1px 11px) top left / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(122, 70, 16, 0.55) 0 1px, transparent 1px 11px) bottom left / 100% 2px no-repeat,
    repeating-linear-gradient(180deg, rgba(255, 226, 123, 0.82) 0 1px, transparent 1px 11px) top left / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, rgba(122, 70, 16, 0.55) 0 1px, transparent 1px 11px) top right / 2px 100% no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 210, 0.72),
    inset 0 0 0 7px rgba(196, 136, 38, 0.08),
    0 0 0 0.36rem rgba(55, 8, 7, 0.045);
}

.page-home .nav-cta,
.page-home .as-hero .button,
.page-home .home-footer-cta--live .button,
.page-books .nav-cta,
.page-books .button,
.page-vault .nav-cta,
.page-vault .button,
.page-memories .nav-cta,
.page-memories .button {
  --as-button-fill: linear-gradient(#8c1009, #8c1009);
  --as-button-cap-fill-left: var(--as-ornate-button-cap-fill-red-left);
  --as-button-cap-fill-right: var(--as-ornate-button-cap-fill-red-right);
  --as-button-cap-width: 2.12rem;
  --as-button-rail-inset: 0.42rem;
  --as-button-fill-height: 100%;
  min-height: 2.1rem;
  border: 0;
  border-image: none;
  border-radius: 0;
  outline: 0;
  isolation: isolate;
  overflow: visible;
  background-clip: border-box;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 1px 1px rgba(34, 9, 2, 0.72);
}

.page-home .as-hero .button,
.page-home .home-footer-cta--live .button {
  padding-right: clamp(1.28rem, 2vw, 1.46rem);
  padding-left: clamp(1.28rem, 2vw, 1.46rem);
}

.page-home .nav-cta::before,
.page-home .as-hero .button::before,
.page-home .nav-cta::after,
.page-home .as-hero .button::after,
.page-home .home-footer-cta--live .button::before,
.page-home .home-footer-cta--live .button::after,
.page-books .nav-cta::before,
.page-books .nav-cta::after,
.page-books .button::before,
.page-books .button::after,
.page-vault .nav-cta::before,
.page-vault .nav-cta::after,
.page-vault .button::before,
.page-vault .button::after,
.page-memories .nav-cta::before,
.page-memories .nav-cta::after,
.page-memories .button::before,
.page-memories .button::after {
  display: block;
  top: 50%;
  height: calc(100% + 0.1rem);
  border: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 0;
}

.page-home .nav-cta::before,
.page-home .as-hero .button::before,
.page-home .home-footer-cta--live .button::before,
.page-books .nav-cta::before,
.page-books .button::before,
.page-vault .nav-cta::before,
.page-vault .button::before,
.page-memories .nav-cta::before,
.page-memories .button::before {
  z-index: -1;
  right: var(--as-button-rail-inset);
  left: var(--as-button-rail-inset);
  width: auto;
  background-image:
    var(--as-ornate-button-rail-sampled),
    var(--as-button-fill);
  background-size:
    auto 100%,
    100% var(--as-button-fill-height);
  background-repeat:
    repeat-x,
    no-repeat;
  background-position:
    center,
    center;
  clip-path: polygon(0.42rem 0, calc(100% - 0.42rem) 0, 100% 50%, calc(100% - 0.42rem) 100%, 0.42rem 100%, 0 50%);
}

.page-home .nav-cta::after,
.page-home .as-hero .button::after,
.page-home .home-footer-cta--live .button::after,
.page-books .nav-cta::after,
.page-books .button::after,
.page-vault .nav-cta::after,
.page-vault .button::after,
.page-memories .nav-cta::after,
.page-memories .button::after {
  z-index: -1;
  left: -0.06rem;
  right: -0.06rem;
  width: auto;
  background:
    var(--as-ornate-button-left) left center / auto 100% no-repeat,
    var(--as-ornate-button-right) right center / auto 100% no-repeat;
}

.page-home .nav-cta,
.page-home .button.primary,
.page-home .home-footer-cta--live .button.primary,
.page-books .nav-cta,
.page-books .button.primary,
.page-vault .nav-cta,
.page-vault .button.primary,
.page-memories .nav-cta,
.page-memories .button.primary {
  --as-button-fill: linear-gradient(#8c1009, #8c1009);
  color: var(--as-red-button-text);
}

.page-home .button.secondary,
.page-books .button.secondary,
.page-vault .button.secondary,
.page-memories .button.secondary {
  --as-button-fill: linear-gradient(#05243a, #05243a);
  --as-button-cap-fill-left: var(--as-ornate-button-cap-fill-blue-left);
  --as-button-cap-fill-right: var(--as-ornate-button-cap-fill-blue-right);
}

.page-books .button.gold,
.page-vault .button.gold,
.page-memories .button.gold {
  --as-button-fill: linear-gradient(#f2cf62, #f2cf62);
  --as-button-cap-fill-left: var(--as-ornate-button-cap-fill-gold-left);
  --as-button-cap-fill-right: var(--as-ornate-button-cap-fill-gold-right);
  color: #351404;
}

.page-home .nav-cta,
.page-home .as-hero .button,
.page-home .home-footer-cta--live .button {
  --as-button-fill-height: 100%;
}

.page-home .nav-cta,
.page-books .nav-cta,
.page-vault .nav-cta,
.page-memories .nav-cta {
  min-width: 5.75rem;
  padding-right: 1.34rem;
  padding-left: 1.34rem;
  font-family: var(--font-body);
  color: var(--as-red-button-text);
}

@media (max-width: 760px) {
  .page-home .site-nav .nav-cta,
  .page-books .site-nav .nav-cta,
  .page-vault .site-nav .nav-cta,
  .page-memories .site-nav .nav-cta {
    --as-button-fill-height: calc(100% - 0.44rem);
  }

  .page-home .site-nav .nav-cta::before,
  .page-home .site-nav .nav-cta::after,
  .page-books .site-nav .nav-cta::before,
  .page-books .site-nav .nav-cta::after,
  .page-vault .site-nav .nav-cta::before,
  .page-vault .site-nav .nav-cta::after,
  .page-memories .site-nav .nav-cta::before,
  .page-memories .site-nav .nav-cta::after {
    height: 96%;
  }
}

.page-home .audience-section .audience-card,
.page-home .ornate-grid.three .scroll-card,
.page-home .lore-section .scroll-card.token,
.page-home .timeline-strip--live {
  border: 2px solid rgba(198, 143, 43, 0.86);
  border-image: none;
  border-radius: 0.2rem;
  background-clip: padding-box;
}

.page-home .audience-section .audience-card {
  padding: clamp(0.95rem, 1.8vw, 1.36rem);
  box-shadow:
    inset 0 0 0 1px rgba(255, 249, 214, 0.82),
    inset 0 0 0 6px rgba(255, 238, 184, 0.12),
    0 8px 15px rgba(45, 20, 5, 0.1);
}

.page-home .ornate-grid.three .scroll-card,
.page-home .lore-section .scroll-card.token {
  box-shadow:
    inset 0 0 0 1px rgba(255, 249, 214, 0.84),
    inset 0 0 0 6px rgba(255, 238, 184, 0.14),
    0 8px 15px rgba(45, 20, 5, 0.1);
}

.page-home .ornate-grid.three .scroll-card::before,
.page-home .ornate-grid.three .scroll-card::after,
.page-home .lore-section .scroll-card.token::after {
  border-color: #d6a33a;
  background: #ffe8b8;
  box-shadow: 0 0 0 1px rgba(255, 249, 214, 0.72);
  transform: translateX(-50%) rotate(45deg);
}

.page-home .timeline-strip--live {
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 198, 0.28),
    inset 0 0 20px rgba(36, 2, 2, 0.18),
    0 9px 15px rgba(45, 20, 5, 0.13);
}

@media (min-width: 641px) {
  .page-home .home-feature-strip__content {
    inset: 56.2% 7.4% 16.5% 7.4%;
  }

  .page-home .home-feature-strip article:nth-child(1) {
    transform: translateX(-1.7rem);
  }

  .page-home .home-feature-strip article:nth-child(2) {
    transform: translateX(-0.7rem);
  }

  .page-home .home-feature-strip article:nth-child(3) {
    transform: translateX(0.25rem);
  }

  .page-home .home-feature-strip article:nth-child(4) {
    transform: translateX(0.85rem);
  }
}

@media (max-width: 640px) {
  body.page-home::before {
    inset: 0.24rem;
    border-width: 2px;
    box-shadow:
      inset 0 0 0 1px rgba(255, 247, 210, 0.64),
      inset 0 0 0 4px rgba(196, 136, 38, 0.07);
  }

  .page-home .as-hero::before {
    display: none;
  }

  .page-home .vault-showpiece::before {
    content: none;
    display: none;
  }

  .page-home .as-hero .button,
  .page-home .home-footer-cta--live .button {
    padding-right: 1.55rem;
    padding-left: 1.55rem;
  }

  .page-home .audience-section .audience-card,
  .page-home .ornate-grid.three .scroll-card,
  .page-home .lore-section .scroll-card.token,
  .page-home .timeline-strip--live {
    border-width: 2px;
  }
}

/* Home feature ribbon: Books-style plaque with live, SEO-friendly text. */
@media (min-width: 641px) {
  .page-home .home-feature-strip {
    width: min(100%, 63.5rem);
    aspect-ratio: 4236 / 438;
    min-height: 0;
    margin: 0.5rem auto 1.15rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    filter: drop-shadow(0 10px 10px rgba(45, 20, 5, 0.2));
  }

  .page-home .home-feature-strip__exact {
    display: none !important;
  }

  .page-home .home-feature-strip__frame {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

  .page-home .home-feature-strip__content {
    position: absolute;
    inset: 18% 5.2% 16% 5.3%;
    z-index: 1;
    display: grid !important;
    width: auto;
    height: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.08fr);
    gap: 0;
    align-items: center;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .page-home .home-feature-strip article {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(0.28rem, 0.9vw, 0.7rem);
    text-align: left;
    transform: none !important;
  }

  .page-home .home-feature-strip article:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16%;
    right: 0;
    bottom: 16%;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, #ffd970 15%, #9a5a12 50%, #ffeaa0 85%, transparent);
    box-shadow: 0 0 4px rgba(18, 5, 0, 0.85);
  }

  .page-home .home-feature {
    grid-template-columns: clamp(1.7rem, 3.5vw, 3.15rem) minmax(0, max-content);
    gap: clamp(0.26rem, 0.75vw, 0.56rem);
  }

  .page-home .home-feature > div {
    min-width: clamp(4.8rem, 7vw, 5.8rem);
  }

  .page-home .home-feature img {
    width: 100%;
    max-height: clamp(1.85rem, 3.8vw, 3.25rem);
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgba(15, 3, 0, 0.72));
  }

  .page-home .home-feature-strip h2 {
    margin: 0 0 0.04rem;
    color: #ffe88e;
    font-size: clamp(0.72rem, 1.18vw, 0.94rem);
    line-height: 0.98;
    text-align: left;
    text-shadow: 0 2px 1px rgba(15, 3, 0, 0.86);
  }

  .page-home .home-feature-strip p {
    margin: 0.1rem 0 0;
    color: #fff3be;
    font-size: clamp(0.5rem, 0.76vw, 0.63rem);
    font-weight: 800;
    line-height: 1.05;
    text-align: left;
    text-shadow: 0 2px 1px rgba(15, 3, 0, 0.86);
  }

  .page-home .home-feature-strip__summary {
    padding-right: clamp(0.72rem, 1.6vw, 1.15rem);
    padding-left: clamp(0.6rem, 1.25vw, 0.95rem);
  }

  .page-home .home-feature-strip__summary p {
    max-width: 12.8rem;
    color: #fff0b2;
  }
}

@media (max-width: 640px) {
  .page-home .home-feature-strip {
    width: min(100%, calc(100vw - 1.75rem));
    min-height: 0;
    aspect-ratio: auto;
    margin: 0.82rem auto 1.15rem;
    padding: 0.95rem 0.9rem;
    border: 2px solid rgba(129, 71, 14, 0.88);
    border-radius: 0.32rem;
    background:
      linear-gradient(180deg, rgba(127, 6, 4, 0.94), rgba(88, 8, 19, 0.96)),
      url("assets/shared/textures/deep-red-texture.png");
    box-shadow:
      inset 0 0 0 1px rgba(255, 232, 142, 0.36),
      inset 0 0 26px rgba(34, 0, 0, 0.32),
      0 9px 14px rgba(45, 20, 5, 0.17);
    overflow: visible;
    filter: drop-shadow(0 9px 10px rgba(45, 20, 5, 0.18));
  }

  .page-home .home-feature-strip__exact,
  .page-home .home-feature-strip__frame {
    display: none !important;
  }

  .page-home .home-feature-strip__content {
    position: relative;
    inset: auto;
    z-index: 1;
    display: grid !important;
    width: 100%;
    height: auto;
    grid-template-columns: 1fr;
    gap: 0.48rem;
    align-items: stretch;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .page-home .home-feature-strip article {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: clamp(4.15rem, 15vw, 5.2rem);
    grid-template-columns: clamp(3rem, 14vw, 4.3rem) minmax(0, 1fr);
    gap: clamp(0.58rem, 3.3vw, 0.82rem);
    align-items: center;
    justify-content: initial;
    padding: 0.42rem 0.55rem;
    text-align: left;
    transform: none !important;
  }

  .page-home .home-feature-strip article:not(:last-child)::after {
    content: "";
    position: absolute;
    top: auto;
    right: 0.35rem;
    bottom: -0.24rem;
    left: calc(clamp(3rem, 14vw, 4.3rem) + 1.1rem);
    width: auto;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #ffe68b 15%, #8f510d 50%, #ffe68b 85%, transparent);
    box-shadow: 0 0 4px rgba(18, 5, 0, 0.72);
  }

  .page-home .home-feature img {
    justify-self: center;
    align-self: center;
    width: clamp(2.65rem, 12.5vw, 4rem);
    max-height: clamp(2.65rem, 12.5vw, 4rem);
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgba(15, 3, 0, 0.72));
  }

  .page-home .home-feature-strip h2 {
    margin: 0 0 0.04rem;
    color: #ffe88e;
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
    line-height: 0.98;
    text-align: left;
    text-shadow: 0 2px 1px rgba(15, 3, 0, 0.86);
  }

  .page-home .home-feature-strip p {
    margin: 0.14rem 0 0;
    color: #fff3be;
    font-size: clamp(0.78rem, 3.6vw, 0.98rem);
    font-weight: 800;
    line-height: 1.06;
    text-align: left;
    text-shadow: 0 2px 1px rgba(15, 3, 0, 0.86);
  }

  .page-home .home-feature-strip article.home-feature-strip__summary {
    display: block;
    min-height: 0;
    padding: 0.55rem 0.65rem 0.25rem;
  }

  .page-home .home-feature-strip__summary::after {
    display: none !important;
  }

  .page-home .home-feature-strip__summary p {
    max-width: none;
    color: #fff0b2;
    font-size: clamp(0.84rem, 3.7vw, 1rem);
    line-height: 1.18;
  }
}

/* Living History timeline: live text over the same ornate red rail system as the feature strip. */
.page-home .history-section .section-lede {
  max-width: 52rem;
}

.page-home .timeline-panel--live {
  position: relative;
  width: min(100%, 63.5rem);
  aspect-ratio: 4236 / 438;
  margin: 0.68rem auto 0.18rem;
  color: #fff3be;
  isolation: isolate;
  overflow: visible;
  filter: drop-shadow(0 10px 10px rgba(45, 20, 5, 0.2));
}

.page-home .timeline-panel__frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.page-home .timeline-strip.timeline-strip--live {
  position: absolute;
  inset: 19% 5.5% 18% 5.5%;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: auto;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  list-style: none;
  overflow: visible;
}

.page-home .timeline-strip.timeline-strip--live::before {
  content: "";
  position: absolute;
  right: 1.6%;
  left: 1.6%;
  top: 51%;
  height: clamp(2px, 0.34vw, 4px);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #e6c45f 3.5%, #f3db86 50%, #e6c45f 96.5%, transparent);
  box-shadow:
    0 1px 0 rgba(65, 21, 3, 0.82),
    0 -1px 0 rgba(255, 241, 157, 0.32);
  transform: translateY(-50%);
}

.page-home .timeline-strip.timeline-strip--live::after {
  content: "";
  position: absolute;
  right: 1%;
  top: 51%;
  width: 0;
  height: 0;
  border-top: clamp(0.22rem, 0.45vw, 0.36rem) solid transparent;
  border-bottom: clamp(0.22rem, 0.45vw, 0.36rem) solid transparent;
  border-left: clamp(0.36rem, 0.72vw, 0.58rem) solid #f3db86;
  filter: drop-shadow(0 1px 0 rgba(65, 21, 3, 0.78));
  transform: translateY(-50%);
}

.page-home .timeline-strip.timeline-strip--live li {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0 clamp(0.12rem, 0.55vw, 0.45rem);
  text-align: center;
}

.page-home .timeline-strip.timeline-strip--live li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 2;
  width: clamp(0.82rem, 1.45vw, 1.12rem);
  height: clamp(0.82rem, 1.45vw, 1.12rem);
  border: clamp(2px, 0.28vw, 3px) solid #f2d978;
  border-radius: 999px;
  background:
    radial-gradient(circle at 42% 35%, #fff0a8 0 18%, #d39b22 34%, #8d4d09 62%, #351108 100%);
  box-shadow:
    inset 0 0 0 clamp(2px, 0.28vw, 3px) rgba(90, 31, 5, 0.82),
    0 0 0 1px rgba(255, 246, 190, 0.48),
    0 2px 3px rgba(29, 3, 0, 0.65);
  transform: translate(-50%, -50%);
}

.page-home .timeline-strip.timeline-strip--live li::after,
.page-home .timeline-strip.timeline-strip--live span::before {
  display: none;
}

.page-home .timeline-strip.timeline-strip--live b,
.page-home .timeline-strip.timeline-strip--live span {
  position: absolute;
  left: 50%;
  z-index: 3;
  display: block;
  width: min(100%, 11.5rem);
  font-family: var(--font-body);
  letter-spacing: 0;
  text-shadow: 0 2px 1px rgba(15, 3, 0, 0.86);
  transform: translateX(-50%);
}

.page-home .timeline-strip.timeline-strip--live b {
  top: 5%;
  color: #ffe88e;
  font-size: clamp(0.62rem, 1.12vw, 0.9rem);
  font-weight: 700;
  line-height: 1.05;
}

.page-home .timeline-strip.timeline-strip--live span {
  top: 76%;
  color: #fff3be;
  font-size: clamp(0.48rem, 0.82vw, 0.66rem);
  font-weight: 700;
  line-height: 1.08;
}

@media (max-width: 640px) {
  .page-home .timeline-panel--live {
    width: min(100%, calc(100vw - 1.75rem));
    aspect-ratio: auto;
    min-height: 12.2rem;
    margin-top: 0.75rem;
    padding: 0.86rem 1rem;
    border: 2px solid rgba(129, 71, 14, 0.88);
    border-radius: 0.32rem;
    background:
      linear-gradient(180deg, rgba(127, 6, 4, 0.94), rgba(88, 8, 19, 0.96)),
      url("assets/shared/textures/deep-red-texture.png");
    box-shadow:
      inset 0 0 0 1px rgba(255, 232, 142, 0.36),
      inset 0 0 26px rgba(34, 0, 0, 0.32),
      0 9px 14px rgba(45, 20, 5, 0.17);
  }

  .page-home .timeline-panel__frame {
    display: none;
  }

  .page-home .timeline-strip.timeline-strip--live {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    gap: 0.74rem;
  }

  .page-home .timeline-strip.timeline-strip--live::before,
  .page-home .timeline-strip.timeline-strip--live::after {
    display: none;
  }

  .page-home .timeline-strip.timeline-strip--live li {
    display: grid;
    grid-template-columns: 6.9rem 1.15rem minmax(0, 1fr);
    grid-template-rows: none;
    gap: 0.45rem;
    align-items: center;
    min-height: 2.1rem;
    text-align: left;
  }

  .page-home .timeline-strip.timeline-strip--live li::before {
    position: static;
    grid-column: 2;
    grid-row: 1;
    transform: none;
  }

  .page-home .timeline-strip.timeline-strip--live b {
    position: static;
    left: auto;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: auto;
    font-size: clamp(0.9rem, 3.8vw, 1.05rem);
    line-height: 1;
    white-space: nowrap;
    transform: none;
  }

  .page-home .timeline-strip.timeline-strip--live span {
    position: static;
    left: auto;
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    width: auto;
    margin-top: 0;
    font-size: clamp(0.76rem, 3.35vw, 0.9rem);
    line-height: 1;
    transform: none;
  }
}

/* Core promise cards: lighter parchment fill and reusable 9-slice gold frame. */
@media (min-width: 761px) {
  .site-nav {
    gap: clamp(0.65rem, 1.15vw, 1.08rem);
    font-size: 1.38rem;
  }
}

.page-home .ornate-grid.three .scroll-card {
  --as-core-card-fill-base: #f1d6a3;
  --as-core-card-fill-shade: rgba(111, 61, 14, 0.1);
  --as-core-card-fill-corner: 8px;
  min-height: 8.8rem;
  padding: calc(20px + 0.68rem) calc(20px + 0.82rem);
  border: 0;
  border-radius: 0;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.page-home .as-hero {
  background: transparent;
}

@media (max-width: 640px) {
  .page-home .site-header {
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }
}

.page-home .ornate-grid.three .scroll-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 18px solid transparent;
  border-image-source: var(--as-core-card-frame);
  border-image-slice: 30;
  border-image-width: 18px;
  border-image-repeat: stretch;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  transform: none;
}

.page-home .ornate-grid.three .scroll-card::after {
  content: "";
  position: absolute;
  inset: 7px 8px;
  z-index: 0;
  display: block;
  box-sizing: border-box;
  width: auto;
  height: auto;
  border: 0;
  background:
    linear-gradient(var(--as-core-card-fill-shade), var(--as-core-card-fill-shade)),
    radial-gradient(circle at 100% 0, rgba(127, 75, 17, 0.13), transparent 7rem),
    var(--as-parchment-surface) center / 420px 420px repeat,
    var(--as-core-card-fill-base);
  clip-path: polygon(
    var(--as-core-card-fill-corner) 0,
    calc(100% - var(--as-core-card-fill-corner)) 0,
    100% var(--as-core-card-fill-corner),
    100% calc(100% - var(--as-core-card-fill-corner)),
    calc(100% - var(--as-core-card-fill-corner)) 100%,
    var(--as-core-card-fill-corner) 100%,
    0 calc(100% - var(--as-core-card-fill-corner)),
    0 var(--as-core-card-fill-corner)
  );
  box-shadow: none;
  pointer-events: none;
  transform: none;
}

.page-home .ornate-grid.three .scroll-card h3,
.page-home .ornate-grid.three .scroll-card p {
  position: relative;
  z-index: 3;
}

.page-home .ornate-grid.three .scroll-card h3 {
  margin-bottom: 0.32rem;
}

.page-home .ornate-grid.three .scroll-card p {
  line-height: 1.28;
}

/* Audience cards: match the Core Promise parchment frame system. */
.page-home .audience-section,
.page-home .skill-section {
  position: relative;
  padding-top: clamp(2.25rem, 4vw, 3.1rem);
}

.page-home .audience-section::before,
.page-home .skill-section::before {
  content: "";
  position: absolute;
  top: clamp(0.68rem, 1.35vw, 0.9rem);
  right: clamp(1.1rem, 4vw, 3.3rem);
  left: clamp(1.1rem, 4vw, 3.3rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 88, 22, 0.54) 8%, rgba(214, 163, 58, 0.86) 50%, rgba(143, 88, 22, 0.54) 92%, transparent);
  box-shadow: 0 1px 0 rgba(255, 248, 214, 0.58);
  pointer-events: none;
}

.page-home .audience-section::after,
.page-home .skill-section::after {
  content: "";
  position: absolute;
  top: clamp(-0.08rem, 0.35vw, 0.08rem);
  left: 50%;
  z-index: 1;
  width: clamp(3.15rem, 7vw, 4.7rem);
  height: clamp(1.25rem, 2.7vw, 1.9rem);
  background: url("assets/shared/ornaments/top-center-gem-transparent.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(45, 20, 5, 0.2));
  pointer-events: none;
  transform: translateX(-50%);
}

.page-home .audience-section .ornate-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: stretch;
}

.page-home .audience-section .audience-card,
.page-home .audience-section .audience-card--players,
.page-home .audience-section .audience-card--gms {
  --as-core-card-fill-base: #f1d6a3;
  --as-core-card-fill-shade: rgba(111, 61, 14, 0.1);
  --as-core-card-fill-corner: 8px;
  position: relative;
  display: block;
  min-height: clamp(13.2rem, 18vw, 15.2rem);
  aspect-ratio: auto;
  padding: calc(20px + 0.78rem) clamp(7.1rem, 12vw, 8.7rem) calc(20px + 0.72rem) calc(20px + 0.95rem);
  border: 0;
  border-radius: 0;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.page-home .audience-section .audience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 18px solid transparent;
  border-image-source: var(--as-core-card-frame);
  border-image-slice: 30;
  border-image-width: 18px;
  border-image-repeat: stretch;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  transform: none;
}

.page-home .audience-section .audience-card::after {
  content: "";
  position: absolute;
  inset: 7px 8px;
  z-index: 0;
  display: block;
  box-sizing: border-box;
  width: auto;
  height: auto;
  border: 0;
  background:
    linear-gradient(var(--as-core-card-fill-shade), var(--as-core-card-fill-shade)),
    radial-gradient(circle at 100% 0, rgba(127, 75, 17, 0.13), transparent 7rem),
    var(--as-parchment-surface) center / 420px 420px repeat,
    var(--as-core-card-fill-base);
  clip-path: polygon(
    var(--as-core-card-fill-corner) 0,
    calc(100% - var(--as-core-card-fill-corner)) 0,
    100% var(--as-core-card-fill-corner),
    100% calc(100% - var(--as-core-card-fill-corner)),
    calc(100% - var(--as-core-card-fill-corner)) 100%,
    var(--as-core-card-fill-corner) 100%,
    0 calc(100% - var(--as-core-card-fill-corner)),
    0 var(--as-core-card-fill-corner)
  );
  box-shadow: none;
  pointer-events: none;
  transform: none;
}

.page-home .audience-section .audience-card__copy,
.page-home .audience-section .audience-card--players .audience-card__copy,
.page-home .audience-section .audience-card--gms .audience-card__copy {
  position: relative;
  inset: auto;
  z-index: 3;
  display: flex;
  min-height: 100%;
  max-width: none;
  flex-direction: column;
  margin: 0;
  padding: 0;
  text-align: left;
}

.page-home .audience-section .audience-card h3 {
  margin: 0 0 0.42rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.04;
}

.page-home .audience-section .audience-card p,
.page-home .audience-section .audience-card--gms p {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.8rem, 1vw, 0.93rem);
  line-height: 1.3;
}

.page-home .audience-section .audience-card--gms p {
  padding-right: clamp(3.4rem, 5.4vw, 4.8rem);
}

.page-home .audience-section .audience-card .tag-row,
.page-home .audience-section .audience-card--players .tag-row,
.page-home .audience-section .audience-card--gms .tag-row {
  position: relative;
  inset: auto;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  justify-content: flex-start;
  margin: auto 0 0;
  padding-top: 0.95rem;
}

.page-home .audience-section .audience-card--gms .tag-row {
  flex-wrap: nowrap;
}

.page-home .audience-section .audience-card .tag-row span {
  display: inline-grid;
  min-height: 1.7rem;
  align-items: center;
  padding: 0.26rem 0.72rem;
  border: 1px solid rgba(184, 127, 33, 0.72);
  border-radius: 0.18rem;
  background: rgba(255, 245, 204, 0.74);
  color: #3a1808;
  font-size: clamp(0.68rem, 0.9vw, 0.78rem);
  line-height: 1.05;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 224, 0.6);
}

.page-home .audience-section .audience-card__icon {
  position: absolute;
  right: calc(20px + 0.82rem);
  bottom: calc(20px + 3rem);
  z-index: 3;
  width: clamp(4.7rem, 7.2vw, 6.25rem);
  max-height: calc(100% - 3.4rem);
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  filter: drop-shadow(0 7px 6px rgba(45, 20, 5, 0.24));
}

.page-home .audience-section .audience-card__icon--gms {
  right: calc(20px + 0.58rem);
  bottom: calc(20px + 3.75rem);
  width: clamp(5.25rem, 8.7vw, 7.45rem);
}

@media (max-width: 640px) {
  .page-home .audience-section,
  .page-home .skill-section {
    padding-top: 2.55rem;
  }

  .page-home .audience-section .ornate-grid.two {
    grid-template-columns: 1fr;
    gap: 1.05rem;
  }

  .page-home .audience-section .audience-card,
  .page-home .audience-section .audience-card--players,
  .page-home .audience-section .audience-card--gms {
    min-height: 15.8rem;
    padding: calc(20px + 0.8rem) calc(20px + 5.6rem) calc(20px + 0.8rem) calc(20px + 0.85rem);
  }

  .page-home .audience-section .audience-card h3 {
    font-size: clamp(1.36rem, 6vw, 1.68rem);
  }

  .page-home .audience-section .audience-card p,
  .page-home .audience-section .audience-card--gms p {
    font-size: clamp(0.8rem, 3.55vw, 0.94rem);
    line-height: 1.26;
  }

  .page-home .audience-section .audience-card--gms p {
    padding-right: 0;
  }

  .page-home .audience-section .audience-card .tag-row,
  .page-home .audience-section .audience-card--players .tag-row,
  .page-home .audience-section .audience-card--gms .tag-row {
    gap: 0.36rem;
    padding-top: 0.75rem;
  }

  .page-home .audience-section .audience-card .tag-row span {
    min-height: 1.48rem;
    padding: 0.2rem 0.54rem;
    font-size: clamp(0.62rem, 3vw, 0.72rem);
  }

  .page-home .audience-section .audience-card__icon {
    right: calc(20px + 0.46rem);
    bottom: calc(20px + 0.82rem);
    width: clamp(4.1rem, 18vw, 5rem);
    max-height: 42%;
  }

  .page-home .audience-section .audience-card__icon--gms {
    width: clamp(4.65rem, 20vw, 5.65rem);
  }
}

/* Lore energy cards: same parchment frame treatment as Core Promise. */
.page-home .lore-section {
  grid-template-columns: minmax(0, 1fr) clamp(12rem, 22vw, 19.5rem);
  align-items: center;
  column-gap: clamp(1.05rem, 3vw, 2.45rem);
  row-gap: clamp(0.9rem, 1.8vw, 1.2rem);
}

.page-home .lore-section > div:first-child,
.page-home .lore-section .ornate-grid.six {
  grid-column: 1;
}

.page-home .lore-section > div:first-child {
  max-width: 45rem;
}

.page-home .lore-section .ornate-grid.six {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.82rem, 1.55vw, 1.08rem);
}

.page-home .lore-section__figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  justify-self: center;
  width: min(100%, clamp(12rem, 23vw, 20rem));
  max-height: clamp(18rem, 43vw, 31.5rem);
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 12px 13px rgba(45, 20, 5, 0.24));
}

.page-home .lore-section .scroll-card.token {
  --as-core-card-fill-base: #f1d6a3;
  --as-core-card-fill-shade: rgba(111, 61, 14, 0.1);
  --as-core-card-fill-corner: 8px;
  display: grid;
  grid-template-columns: clamp(2.75rem, 4.2vw, 3.7rem) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(0.62rem, 1.2vw, 0.88rem);
  min-height: clamp(7.25rem, 9.2vw, 8.25rem);
  padding: calc(20px + 0.62rem) calc(20px + 0.5rem) calc(20px + 0.58rem) calc(20px + 0.65rem);
  border: 0;
  border-radius: 0;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.page-home .lore-section .scroll-card.token::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 18px solid transparent;
  border-image-source: var(--as-core-card-frame);
  border-image-slice: 30;
  border-image-width: 18px;
  border-image-repeat: stretch;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  transform: none;
}

.page-home .lore-section .scroll-card.token::after {
  content: "";
  position: absolute;
  inset: 7px 8px;
  z-index: 0;
  display: block;
  box-sizing: border-box;
  width: auto;
  height: auto;
  border: 0;
  background:
    linear-gradient(var(--as-core-card-fill-shade), var(--as-core-card-fill-shade)),
    radial-gradient(circle at 100% 0, rgba(127, 75, 17, 0.13), transparent 7rem),
    var(--as-parchment-surface) center / 420px 420px repeat,
    var(--as-core-card-fill-base);
  clip-path: polygon(
    var(--as-core-card-fill-corner) 0,
    calc(100% - var(--as-core-card-fill-corner)) 0,
    100% var(--as-core-card-fill-corner),
    100% calc(100% - var(--as-core-card-fill-corner)),
    calc(100% - var(--as-core-card-fill-corner)) 100%,
    var(--as-core-card-fill-corner) 100%,
    0 calc(100% - var(--as-core-card-fill-corner)),
    0 var(--as-core-card-fill-corner)
  );
  box-shadow: none;
  pointer-events: none;
  transform: none;
}

.page-home .lore-section .scroll-card.token h3,
.page-home .lore-section .scroll-card.token p,
.page-home .lore-section .scroll-card.token .lore-card__copy,
.page-home .lore-section .scroll-card.token .lore-card__icon {
  position: relative;
  z-index: 3;
}

.page-home .lore-section .scroll-card.token .lore-card__copy {
  align-self: center;
  min-width: 0;
}

.page-home .lore-section .scroll-card.token h3 {
  margin: 0 0 0.24rem;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.62vw, 1.34rem);
  line-height: 1.02;
}

.page-home .lore-section .scroll-card.token p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.7rem, 0.92vw, 0.84rem);
  line-height: 1.13;
}

.page-home .lore-section .scroll-card.token .lore-card__icon {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-height: calc(100% - 2.1rem);
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 5px 5px rgba(45, 20, 5, 0.22));
  transform: none;
}

@media (max-width: 1040px) {
  .page-home .lore-section {
    grid-template-columns: minmax(0, 1fr) clamp(10.5rem, 21vw, 15rem);
    column-gap: clamp(0.85rem, 2.4vw, 1.5rem);
  }

  .page-home .lore-section .scroll-card.token {
    min-height: clamp(7.2rem, 13.4vw, 8.1rem);
    grid-template-columns: clamp(2.65rem, 5.2vw, 3.45rem) minmax(0, 1fr);
  }

  .page-home .lore-section__figure {
    width: min(100%, clamp(10.5rem, 23vw, 15rem));
    max-height: 25rem;
  }
}

@media (max-width: 760px) {
  .page-home .lore-section {
    grid-template-columns: 1fr;
  }

  .page-home .lore-section__figure {
    grid-column: 1;
    grid-row: auto;
    width: min(72vw, 18rem);
    max-height: 24rem;
    margin-top: -0.15rem;
  }
}

@media (max-width: 640px) {
  .page-home .lore-section .ornate-grid.six {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .page-home .lore-section .scroll-card.token {
    grid-template-columns: clamp(3.15rem, 16vw, 3.85rem) minmax(0, 1fr);
    column-gap: 0.78rem;
    min-height: 8rem;
    padding: calc(20px + 0.64rem) calc(20px + 0.7rem) calc(20px + 0.62rem);
  }

  .page-home .lore-section .scroll-card.token .lore-card__icon {
    width: 100%;
    max-height: 4.1rem;
  }

  .page-home .lore-section__figure {
    width: min(78vw, 16.5rem);
  }
}

/* Depth Mode strip: first live-text reorganization pass. */
.page-home .depth-section {
  padding-top: clamp(0.7rem, 1.6vw, 1rem);
}

.page-home .depth-section .section-lede {
  max-width: 41rem;
}

.page-home .depth-mode-panel--live {
  position: relative;
  width: min(100%, 58.5rem);
  min-height: 0;
  aspect-ratio: 1594 / 350;
  margin: clamp(0.55rem, 1.2vw, 0.9rem) auto 0.75rem;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-home .depth-mode-panel--live .depth-mode-panel__frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  transform: none;
}

.page-home .depth-mode-panel--live .depth-mode-panel__content {
  position: absolute;
  inset: 13% 5.5% 13% 5.8%;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 27.5%) minmax(10rem, 1fr) minmax(0, 31%);
  gap: clamp(0.7rem, 2vw, 1.4rem);
  min-height: 0;
  padding: 0;
  align-items: center;
}

.page-home .depth-mode-panel__list,
.page-home .depth-mode-panel__list--left,
.page-home .depth-mode-panel__list--right {
  position: static;
  display: grid;
  width: auto;
  gap: clamp(0.18rem, 0.42vw, 0.34rem);
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .depth-mode-panel__list--left {
  grid-column: 1;
}

.page-home .depth-mode-panel__list--right {
  grid-column: 3;
}

.page-home .depth-mode-panel__list li {
  display: grid;
  min-width: 0;
  grid-template-columns: clamp(1.6rem, 3.2vw, 2.25rem) minmax(0, 1fr);
  gap: clamp(0.34rem, 0.75vw, 0.54rem);
  align-items: center;
}

.page-home .depth-mode-panel__item-icon {
  width: 100%;
  max-height: clamp(1.65rem, 3.3vw, 2.25rem);
  object-fit: contain;
  filter:
    saturate(0.92)
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.55));
}

.page-home .depth-mode-panel__list strong,
.page-home .depth-mode-panel__list span {
  display: block;
  text-align: left;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.82);
}

.page-home .depth-mode-panel__list strong {
  color: #ffd970;
  font-family: var(--font-heading);
  font-size: clamp(0.72rem, 1.15vw, 0.92rem);
  line-height: 1.02;
}

.page-home .depth-mode-panel__list span {
  max-width: none;
  margin-top: 0.05rem;
  color: #f8e9ad;
  font-size: clamp(0.5rem, 0.77vw, 0.64rem);
  font-weight: 800;
  line-height: 1.1;
}

@media (max-width: 760px) {
  .page-home .depth-mode-panel--live {
    width: min(100%, calc(100vw - 1.5rem));
    aspect-ratio: auto;
    min-height: 0;
    padding: 1rem;
    border: 2px solid rgba(244, 217, 120, 0.78);
    border-radius: 0.34rem;
    background:
      radial-gradient(circle at 100% 0, rgba(255, 217, 112, 0.1), transparent 12rem),
      linear-gradient(180deg, #06223b, #031421);
    box-shadow:
      inset 0 0 0 1px rgba(255, 247, 198, 0.22),
      0 9px 15px rgba(45, 20, 5, 0.14);
  }

  .page-home .depth-mode-panel--live .depth-mode-panel__frame {
    display: none !important;
  }

  .page-home .depth-mode-panel--live .depth-mode-panel__content {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .page-home .depth-mode-panel__list {
    position: static;
    width: 100%;
    gap: 0.65rem;
  }

  .page-home .depth-mode-panel__list--left,
  .page-home .depth-mode-panel__list--right {
    grid-column: 1;
  }

  .page-home .depth-mode-panel__list li {
    grid-template-columns: 2.65rem minmax(0, 1fr);
    gap: 0.68rem;
  }

  .page-home .depth-mode-panel__item-icon {
    max-height: 2.65rem;
  }

  .page-home .depth-mode-panel__list strong {
    font-size: 1rem;
  }

  .page-home .depth-mode-panel__list span {
    font-size: 0.82rem;
    line-height: 1.18;
  }
}

/* Depth Mode rebuilt plaque: live text over decomposed ornate frame pieces. */
.page-home .depth-mode-panel--live {
  --depth-frame-corner-w: clamp(5.25rem, 10.4vw, 7.45rem);
  --depth-frame-corner-h: clamp(4.55rem, 9.1vw, 6.45rem);
  --depth-frame-rail-x: clamp(0.74rem, 1.48vw, 1.05rem);
  --depth-frame-rail-y: clamp(0.72rem, 1.45vw, 1.04rem);
  --depth-frame-join-overlap: clamp(16px, 1.7vw, 21px);
  position: relative;
  width: min(100%, 58.5rem);
  aspect-ratio: 1594 / 348;
  margin: clamp(0.62rem, 1.2vw, 0.9rem) auto 0.75rem;
  overflow: visible;
  border: 0;
  border-radius: 0.22rem;
  background: transparent;
  box-shadow: none;
}

.page-home .depth-mode-panel--live::before {
  content: "";
  position: absolute;
  top: calc(var(--depth-frame-rail-x) - 1px);
  right: calc(var(--depth-frame-rail-y) - 1px);
  bottom: calc(var(--depth-frame-rail-x) - 1px);
  left: calc(var(--depth-frame-rail-y) - 1px);
  z-index: 0;
  background:
    radial-gradient(circle at 74% 8%, rgba(255, 217, 112, 0.075), transparent 16rem),
    radial-gradient(circle at 6% 92%, rgba(21, 84, 132, 0.32), transparent 12rem),
    linear-gradient(180deg, #082946 0%, #041d33 58%, #031625 100%);
  box-shadow:
    inset 0 0 34px rgba(0, 0, 0, 0.46);
}

.page-home .depth-mode-panel--live .depth-mode-panel__frame {
  display: none !important;
}

.page-home .depth-mode-panel__parts,
.page-home .depth-mode-panel__part {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-home .depth-mode-panel__parts {
  z-index: 1;
}

.page-home .depth-mode-panel__part--top {
  right: calc(var(--depth-frame-corner-w) - var(--depth-frame-join-overlap));
  bottom: auto;
  left: calc(var(--depth-frame-corner-w) - var(--depth-frame-join-overlap));
  height: var(--depth-frame-rail-x);
  background: url("assets/pages/home/panels/depth-mode/live-frame-v12/rail-horizontal.png") left top / auto 100% repeat-x;
}

.page-home .depth-mode-panel__part--bottom {
  top: auto;
  right: calc(var(--depth-frame-corner-w) - var(--depth-frame-join-overlap));
  left: calc(var(--depth-frame-corner-w) - var(--depth-frame-join-overlap));
  height: var(--depth-frame-rail-x);
  background: url("assets/pages/home/panels/depth-mode/live-frame-v12/rail-horizontal.png") left bottom / auto 100% repeat-x;
  transform: scaleY(-1);
}

.page-home .depth-mode-panel__part--left {
  top: calc(var(--depth-frame-corner-h) - var(--depth-frame-join-overlap));
  right: auto;
  bottom: calc(var(--depth-frame-corner-h) - var(--depth-frame-join-overlap));
  width: var(--depth-frame-rail-y);
  background: url("assets/pages/home/panels/depth-mode/live-frame-v12/rail-vertical-left.png") left top / 100% auto repeat-y;
}

.page-home .depth-mode-panel__part--right {
  top: calc(var(--depth-frame-corner-h) - var(--depth-frame-join-overlap));
  bottom: calc(var(--depth-frame-corner-h) - var(--depth-frame-join-overlap));
  left: auto;
  width: var(--depth-frame-rail-y);
  background: url("assets/pages/home/panels/depth-mode/live-frame-v12/rail-vertical-right.png") left top / 100% auto repeat-y;
}

.page-home .depth-mode-panel__part--corner-tl,
.page-home .depth-mode-panel__part--corner-tr,
.page-home .depth-mode-panel__part--corner-bl,
.page-home .depth-mode-panel__part--corner-br {
  width: var(--depth-frame-corner-w);
  height: var(--depth-frame-corner-h);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.page-home .depth-mode-panel__part--corner-tl {
  right: auto;
  bottom: auto;
  background-image: url("assets/pages/home/panels/depth-mode/live-frame-v12/corner-top-left.png");
}

.page-home .depth-mode-panel__part--corner-tr {
  bottom: auto;
  left: auto;
  background-image: url("assets/pages/home/panels/depth-mode/live-frame-v12/corner-top-right.png");
}

.page-home .depth-mode-panel__part--corner-bl {
  top: auto;
  right: auto;
  background-image: url("assets/pages/home/panels/depth-mode/live-frame-v12/corner-bottom-left.png");
}

.page-home .depth-mode-panel__part--corner-br {
  top: auto;
  left: auto;
  background-image: url("assets/pages/home/panels/depth-mode/live-frame-v12/corner-bottom-right.png");
}

.page-home .depth-mode-panel__part--divider {
  top: 20%;
  bottom: 20%;
  width: clamp(1.35rem, 3.6vw, 2.8rem);
  background: none;
}

.page-home .depth-mode-panel__part--divider::before {
  content: "";
  position: absolute;
  top: 0.08rem;
  bottom: 0.08rem;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 238, 150, 0.74) 8%, #b87918 50%, rgba(255, 238, 150, 0.74) 92%, transparent);
  box-shadow:
    0 0 0 1px rgba(71, 36, 4, 0.34),
    0 0 5px rgba(255, 219, 91, 0.22);
  transform: translateX(-50%);
}

.page-home .depth-mode-panel__part--divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(1.2rem, 2.3vw, 1.85rem);
  aspect-ratio: 700 / 473;
  background: url("assets/shared/ornaments/top-center-gem-transparent.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45));
  transform: translate(-50%, -50%) rotate(90deg);
}

.page-home .depth-mode-panel__part--divider-left {
  right: auto;
  left: 37.6%;
  transform: translateX(-50%);
}

.page-home .depth-mode-panel__part--divider-right {
  right: auto;
  left: 58.9%;
  transform: translateX(-50%);
}

.page-home .depth-mode-panel--live .depth-mode-panel__content {
  position: absolute;
  inset: 12.5% 7.5% 12.5% 7.4%;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 31%) minmax(8rem, 1fr) minmax(0, 35%);
  gap: clamp(0.85rem, 2.2vw, 1.7rem);
  align-items: center;
  padding: 0;
}

.page-home .depth-mode-panel__list,
.page-home .depth-mode-panel__list--left,
.page-home .depth-mode-panel__list--right {
  position: static;
  display: grid;
  width: auto;
  gap: clamp(0.22rem, 0.54vw, 0.42rem);
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .depth-mode-panel__list--left {
  grid-column: 1;
}

.page-home .depth-mode-panel__list--right {
  grid-column: 3;
}

.page-home .depth-mode-panel__center-icon {
  grid-column: 2;
  align-self: center;
  justify-self: center;
  width: auto;
  height: clamp(6.95rem, 12.8vw, 9.55rem);
  max-width: 92%;
  max-height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 7px 7px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 8px rgba(255, 216, 94, 0.14));
  pointer-events: none;
}

.page-home .depth-mode-panel__list li {
  display: grid;
  min-width: 0;
  grid-template-columns: clamp(1.35rem, 2.7vw, 2.05rem) minmax(0, 1fr);
  gap: clamp(0.32rem, 0.75vw, 0.56rem);
  align-items: center;
}

.page-home .depth-mode-panel__item-icon {
  width: 100%;
  max-height: clamp(1.4rem, 2.8vw, 2.05rem);
  object-fit: contain;
  filter:
    saturate(0.94)
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.58));
}

.page-home .depth-mode-panel__list strong {
  color: #ffd970;
  font-family: var(--font-heading);
  font-size: clamp(0.76rem, 1.22vw, 1rem);
  line-height: 1.02;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.82);
}

.page-home .depth-mode-panel__list span {
  max-width: none;
  margin-top: 0.04rem;
  color: #f8e9ad;
  font-size: clamp(0.52rem, 0.82vw, 0.68rem);
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.82);
}

@media (max-width: 760px) {
  .page-home .depth-mode-panel--live {
    width: min(100%, calc(100vw - 1.5rem));
    aspect-ratio: auto;
    min-height: 0;
    padding: 1rem clamp(7.7rem, 38vw, 9.1rem) 1rem 1rem;
    overflow: hidden;
    border-radius: 0.22rem;
  }

  .page-home .depth-mode-panel__parts {
    display: none;
  }

  .page-home .depth-mode-panel--live .depth-mode-panel__content {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.15rem 0.2rem;
  }

  .page-home .depth-mode-panel__list,
  .page-home .depth-mode-panel__list--left,
  .page-home .depth-mode-panel__list--right {
    grid-column: 1;
    width: 100%;
    gap: 0.5rem;
  }

  .page-home .depth-mode-panel__list--left {
    order: 1;
  }

  .page-home .depth-mode-panel__center-icon {
    position: absolute;
    top: 50%;
    right: calc(-1 * clamp(10.3rem, 47vw, 11.6rem));
    z-index: 1;
    width: clamp(11rem, 48vw, 13.25rem);
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    opacity: 0.96;
    transform: translateY(-50%);
  }

  .page-home .depth-mode-panel__list--right {
    order: 2;
    padding-top: 0;
    border-top: 0;
  }

  .page-home .depth-mode-panel__list li {
    position: relative;
    z-index: 2;
    grid-template-columns: 2.15rem minmax(0, 1fr);
    gap: 0.52rem;
  }

  .page-home .depth-mode-panel__item-icon {
    max-height: 2.15rem;
  }

  .page-home .depth-mode-panel__list strong {
    font-size: 0.9rem;
  }

  .page-home .depth-mode-panel__list span {
    font-size: 0.72rem;
    line-height: 1.12;
  }
}

/* Red decorative button set: live text over precomposed fixed-size frames. */
.page-home .ornate-red,
.page-books .ornate-red,
.page-vault .ornate-red,
.page-memories .ornate-red,
.page-why-as .ornate-red,
.page-story-engine .ornate-red,
.page-book-details .ornate-red,
.page-art-showcase .ornate-red {
  --ornate-red-w: 150px;
  --ornate-red-h: 35px;
  box-sizing: border-box;
  width: var(--ornate-red-w);
  min-width: var(--ornate-red-w);
  height: var(--ornate-red-h);
  min-height: var(--ornate-red-h);
  padding: 0 1.1rem;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
  color: var(--as-red-button-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(34, 9, 2, 0.72);
  white-space: nowrap;
}

.page-home .as-hero .button.ornate-red,
.page-home .home-footer-cta--live .button.ornate-red,
.page-home .site-nav .nav-cta.ornate-red,
.page-books .hero .button.ornate-red,
.page-books .card-actions .button.ornate-red,
.page-vault .hero .button.ornate-red,
.page-memories .hero .button.ornate-red,
.page-why-as .button.ornate-red,
.page-story-engine .button.ornate-red,
.page-book-details .button.ornate-red,
.page-art-showcase .site-nav .nav-cta.ornate-red {
  width: var(--ornate-red-w);
  min-width: var(--ornate-red-w);
  height: var(--ornate-red-h);
  min-height: var(--ornate-red-h);
  padding: 0 1.1rem;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--as-red-button-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.page-home .ornate-red::before,
.page-home .ornate-red::after,
.page-books .ornate-red::before,
.page-books .ornate-red::after,
.page-vault .ornate-red::before,
.page-vault .ornate-red::after,
.page-memories .ornate-red::before,
.page-memories .ornate-red::after,
.page-why-as .ornate-red::before,
.page-why-as .ornate-red::after,
.page-story-engine .ornate-red::before,
.page-story-engine .ornate-red::after,
.page-book-details .ornate-red::before,
.page-book-details .ornate-red::after,
.page-art-showcase .ornate-red::before,
.page-art-showcase .ornate-red::after {
  content: none;
  display: none;
}

.page-home .ornate-red--sm,
.page-books .ornate-red--sm,
.page-vault .ornate-red--sm,
.page-memories .ornate-red--sm,
.page-why-as .ornate-red--sm,
.page-story-engine .ornate-red--sm,
.page-book-details .ornate-red--sm,
.page-art-showcase .ornate-red--sm {
  --ornate-red-w: 116px;
  background-image: url("assets/shared/buttons/precomposed-red/red-sm-116x35@4x.png");
  font-size: 0.82rem;
}

.page-home .ornate-red--md,
.page-books .ornate-red--md,
.page-vault .ornate-red--md,
.page-memories .ornate-red--md,
.page-why-as .ornate-red--md,
.page-story-engine .ornate-red--md,
.page-book-details .ornate-red--md,
.page-art-showcase .ornate-red--md {
  --ornate-red-w: 150px;
  background-image: url("assets/shared/buttons/precomposed-red/red-md-150x35@4x.png");
}

.page-home .home-footer-cta--live .button.ornate-red--md,
.page-home .site-nav .nav-cta.ornate-red--md {
  background-image: url("assets/shared/buttons/precomposed-red/red-md-150x35@4x.png");
}

.page-home .site-nav .nav-cta.ornate-red,
.page-books .site-nav .nav-cta.ornate-red,
.page-vault .site-nav .nav-cta.ornate-red,
.page-memories .site-nav .nav-cta.ornate-red,
.page-why-as .site-nav .nav-cta.ornate-red,
.page-story-engine .site-nav .nav-cta.ornate-red,
.page-book-details .site-nav .nav-cta.ornate-red,
.page-art-showcase .site-nav .nav-cta.ornate-red {
  font-size: 12px;
}

.page-home .ornate-red--lg,
.page-books .ornate-red--lg,
.page-vault .ornate-red--lg,
.page-memories .ornate-red--lg,
.page-why-as .ornate-red--lg,
.page-story-engine .ornate-red--lg,
.page-book-details .ornate-red--lg,
.page-art-showcase .ornate-red--lg {
  --ornate-red-w: 184px;
  background-image: url("assets/shared/buttons/precomposed-red/red-lg-184x35@4x.png");
}

.page-home .as-hero .button.ornate-red--lg,
.page-home .home-footer-cta--live .button.ornate-red--lg {
  background-image: url("assets/shared/buttons/precomposed-red/red-lg-184x35@4x.png");
}

.page-home .ornate-red--xl,
.page-books .ornate-red--xl,
.page-vault .ornate-red--xl,
.page-memories .ornate-red--xl,
.page-why-as .ornate-red--xl,
.page-story-engine .ornate-red--xl,
.page-book-details .ornate-red--xl,
.page-art-showcase .ornate-red--xl {
  --ornate-red-w: 236px;
  background-image: url("assets/shared/buttons/precomposed-red/red-xl-236x35@4x.png");
}

.page-home .ornate-red--xxl,
.page-books .ornate-red--xxl,
.page-vault .ornate-red--xxl,
.page-memories .ornate-red--xxl,
.page-why-as .ornate-red--xxl,
.page-story-engine .ornate-red--xxl,
.page-book-details .ornate-red--xxl,
.page-art-showcase .ornate-red--xxl {
  --ornate-red-w: 276px;
  background-image: url("assets/shared/buttons/precomposed-red/red-xxl-276x35@4x.png");
}

/* Blue and gold decorative button sets use the same fixed-size, live-text model as red. */
.page-home .ornate-blue,
.page-books .ornate-blue,
.page-vault .ornate-blue,
.page-memories .ornate-blue,
.page-why-as .ornate-blue,
.page-story-engine .ornate-blue,
.page-book-details .ornate-blue,
.page-art-showcase .ornate-blue,
.page-books .ornate-gold,
.page-vault .ornate-gold,
.page-memories .ornate-gold,
.page-book-details .ornate-gold,
.page-art-showcase .ornate-gold {
  --ornate-button-w: 150px;
  --ornate-button-h: 35px;
  box-sizing: border-box;
  width: var(--ornate-button-w);
  min-width: var(--ornate-button-w);
  height: var(--ornate-button-h);
  min-height: var(--ornate-button-h);
  padding: 0 1.1rem;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.page-home .as-hero .button.ornate-blue,
.page-home .home-footer-cta--live .button.ornate-blue,
.page-books .hero .button.ornate-blue,
.page-books .card-actions .button.ornate-blue,
.page-vault .hero .button.ornate-blue,
.page-vault .art-footer-cta .button.ornate-blue,
.page-memories .hero .button.ornate-blue,
.page-memories .art-footer-cta .button.ornate-blue,
.page-why-as .button.ornate-blue,
.page-story-engine .button.ornate-blue,
.page-book-details .button.ornate-blue,
.page-art-showcase .button.ornate-blue,
.page-home .as-hero .button.ornate-gold,
.page-home .home-footer-cta--live .button.ornate-gold,
.page-books .hero .button.ornate-gold,
.page-books .card-actions .button.ornate-gold,
.page-vault .hero .button.ornate-gold,
.page-vault .art-footer-cta .button.ornate-gold,
.page-memories .hero .button.ornate-gold,
.page-memories .art-footer-cta .button.ornate-gold,
.page-book-details .button.ornate-gold,
.page-art-showcase .button.ornate-gold {
  width: var(--ornate-button-w);
  min-width: var(--ornate-button-w);
  height: var(--ornate-button-h);
  min-height: var(--ornate-button-h);
  padding: 0 1.1rem;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.page-home .ornate-blue,
.page-books .ornate-blue,
.page-vault .ornate-blue,
.page-memories .ornate-blue,
.page-why-as .ornate-blue,
.page-story-engine .ornate-blue,
.page-book-details .ornate-blue,
.page-art-showcase .ornate-blue {
  color: #fff6d9;
  text-shadow: 0 1px 1px rgba(4, 13, 22, 0.82);
}

.page-books .ornate-gold,
.page-vault .ornate-gold,
.page-memories .ornate-gold,
.page-book-details .ornate-gold,
.page-art-showcase .ornate-gold {
  color: #351404;
  text-shadow: 0 1px 0 rgba(255, 245, 170, 0.52);
}

.page-home .ornate-blue::before,
.page-home .ornate-blue::after,
.page-books .ornate-blue::before,
.page-books .ornate-blue::after,
.page-vault .ornate-blue::before,
.page-vault .ornate-blue::after,
.page-memories .ornate-blue::before,
.page-memories .ornate-blue::after,
.page-why-as .ornate-blue::before,
.page-why-as .ornate-blue::after,
.page-story-engine .ornate-blue::before,
.page-story-engine .ornate-blue::after,
.page-book-details .ornate-blue::before,
.page-book-details .ornate-blue::after,
.page-art-showcase .ornate-blue::before,
.page-art-showcase .ornate-blue::after,
.page-books .ornate-gold::before,
.page-books .ornate-gold::after,
.page-vault .ornate-gold::before,
.page-vault .ornate-gold::after,
.page-memories .ornate-gold::before,
.page-memories .ornate-gold::after,
.page-book-details .ornate-gold::before,
.page-book-details .ornate-gold::after,
.page-art-showcase .ornate-gold::before,
.page-art-showcase .ornate-gold::after {
  content: none;
  display: none;
}

.page-home .ornate-blue--md,
.page-books .ornate-blue--md,
.page-vault .ornate-blue--md,
.page-memories .ornate-blue--md,
.page-why-as .ornate-blue--md,
.page-story-engine .ornate-blue--md,
.page-book-details .ornate-blue--md,
.page-art-showcase .ornate-blue--md {
  --ornate-button-w: 150px;
  background-image: url("assets/shared/buttons/precomposed-blue/blue-md-150x35@4x.png");
}

.page-home .ornate-blue--sm,
.page-books .ornate-blue--sm,
.page-vault .ornate-blue--sm,
.page-memories .ornate-blue--sm,
.page-why-as .ornate-blue--sm,
.page-story-engine .ornate-blue--sm,
.page-book-details .ornate-blue--sm,
.page-art-showcase .ornate-blue--sm {
  --ornate-button-w: 116px;
  background-image: url("assets/shared/buttons/precomposed-blue/blue-sm-116x35@4x.png");
}

.page-home .ornate-blue--lg,
.page-books .ornate-blue--lg,
.page-vault .ornate-blue--lg,
.page-memories .ornate-blue--lg,
.page-why-as .ornate-blue--lg,
.page-story-engine .ornate-blue--lg,
.page-book-details .ornate-blue--lg,
.page-art-showcase .ornate-blue--lg {
  --ornate-button-w: 184px;
  background-image: url("assets/shared/buttons/precomposed-blue/blue-lg-184x35@4x.png");
}

.page-home .ornate-blue--xl,
.page-books .ornate-blue--xl,
.page-vault .ornate-blue--xl,
.page-memories .ornate-blue--xl,
.page-why-as .ornate-blue--xl,
.page-story-engine .ornate-blue--xl,
.page-book-details .ornate-blue--xl,
.page-art-showcase .ornate-blue--xl {
  --ornate-button-w: 236px;
  background-image: url("assets/shared/buttons/precomposed-blue/blue-xl-236x35@4x.png");
}

.page-home .as-hero .button.ornate-blue--xl,
.page-home .home-footer-cta--live .button.ornate-blue--xl {
  background-image: url("assets/shared/buttons/precomposed-blue/blue-xl-236x35@4x.png");
}

.page-home .ornate-blue--xxl,
.page-books .ornate-blue--xxl,
.page-vault .ornate-blue--xxl,
.page-memories .ornate-blue--xxl,
.page-why-as .ornate-blue--xxl,
.page-story-engine .ornate-blue--xxl,
.page-book-details .ornate-blue--xxl {
  --ornate-button-w: 276px;
  background-image: url("assets/shared/buttons/precomposed-blue/blue-xxl-276x35@4x.png");
}

.page-home .home-footer-cta--live .button.ornate-blue--xxl {
  background-image: url("assets/shared/buttons/precomposed-blue/blue-xxl-276x35@4x.png");
}

/* Home final polish: frame jewel, nav scale, lore figure, and final invite layout. */
@media (min-width: 761px) {
  .site-nav {
    font-size: 0.74rem;
  }

  .page-home .lore-section__figure {
    grid-row: 2;
    align-self: center;
    transform: translateY(-0.15rem);
  }

  .page-home .home-footer-cta--live {
    aspect-ratio: 1467 / 565;
    padding: 0 10.8% 2.3%;
  }

  .page-home .home-footer-cta--live .home-footer-cta__copy {
    max-width: 44rem;
  }

  .page-home .home-footer-cta--live .home-footer-cta__copy h2 {
    margin-bottom: 0.2rem;
    font-size: clamp(2rem, 3.45vw, 2.58rem);
    line-height: 0.98;
    white-space: nowrap;
  }

  .page-home .home-footer-cta--live .home-footer-cta__copy p:not(.eyebrow) {
    max-width: 38rem;
    margin-top: 0.5em;
    margin-inline: auto;
    font-size: clamp(0.72rem, 1vw, 0.86rem);
    line-height: 1.16;
  }

  .page-home .home-footer-cta--live .button-row {
    flex-wrap: nowrap;
    gap: 0.72rem;
    margin-top: 0.6rem;
  }
}

@media (min-width: 901px) {
  .site-nav {
    font-size: 1.035rem;
  }
}

.page-home .final-invite-section {
  padding-top: clamp(1rem, 2vw, 1.45rem);
}

.page-home .final-invite-section > .eyebrow {
  color: var(--muted);
}

.page-home .final-invite-section .home-footer-cta--live {
  width: min(100%, 54rem);
  margin-top: 0.18rem;
}

body.page-home::before {
  --as-page-frame-clear-x: clamp(3.45rem, 5.7vw, 4.5rem);
  --as-page-frame-clear-y: clamp(2.75rem, 4.65vw, 3.7rem);
  border: 0;
  border-radius: 0;
  background:
    url("assets/shared/ornaments/page-frame-rails/top-rail-from-corner-dark.png") top center / calc(100% - var(--as-page-frame-clear-x) - var(--as-page-frame-clear-x)) 2px no-repeat,
    linear-gradient(90deg, #5c3510, #6b4217 18%, #6b4217 82%, #5c3510) bottom center / calc(100% - var(--as-page-frame-clear-x) - var(--as-page-frame-clear-x)) 2px no-repeat,
    url("assets/shared/ornaments/page-frame-rails/left-rail-from-corner-dark-v2.png") left center / 2px calc(100% - var(--as-page-frame-clear-y) - var(--as-page-frame-clear-y)) no-repeat,
    url("assets/shared/ornaments/page-frame-rails/left-rail-from-corner-dark-v2.png") right center / 2px calc(100% - var(--as-page-frame-clear-y) - var(--as-page-frame-clear-y)) no-repeat;
  box-shadow: none;
}

body.page-home::after {
  background:
    url("assets/shared/ornaments/top-center-gem-transparent.png") center top -0.95rem / clamp(2.5rem, 4.3vw, 3.2rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-top-left-transparent.png") left -0.7rem top -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-top-right-transparent.png") right -0.7rem top -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-bottom-left-transparent.png") left -0.7rem bottom -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-bottom-right-transparent.png") right -0.7rem bottom -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat;
}

@media (max-width: 760px) {
  .page-home .home-footer-cta--live .home-footer-cta__copy h2 {
    font-size: clamp(1.95rem, 8.5vw, 2.55rem);
    line-height: 0.98;
  }
}

/* World Lore energy icons: restore the intended visual weight after the live-card grid rebuild. */
.page-home .lore-section .scroll-card.token {
  grid-template-columns: clamp(5.5rem, 8.4vw, 7.4rem) minmax(0, 1fr);
  column-gap: clamp(0.55rem, 1vw, 0.9rem);
}

.page-home .lore-section .scroll-card.token .lore-card__icon {
  width: clamp(4.6rem, 7.2vw, 6.5rem);
  max-width: 100%;
  max-height: calc(100% - 0.9rem);
}

@media (max-width: 1040px) {
  .page-home .lore-section .scroll-card.token {
    grid-template-columns: clamp(4.8rem, 9.4vw, 6.9rem) minmax(0, 1fr);
  }

  .page-home .lore-section .scroll-card.token .lore-card__icon {
    width: clamp(4.35rem, 8.8vw, 6.2rem);
  }
}

@media (max-width: 640px) {
  .page-home .lore-section .scroll-card.token {
    grid-template-columns: clamp(5.6rem, 28vw, 7.5rem) minmax(0, 1fr);
  }

  .page-home .lore-section .scroll-card.token .lore-card__icon {
    width: clamp(5rem, 24vw, 6.7rem);
    max-height: 6.7rem;
  }
}

.page-books .ornate-gold--lg,
.page-vault .ornate-gold--lg,
.page-memories .ornate-gold--lg,
.page-book-details .ornate-gold--lg,
.page-art-showcase .ornate-gold--lg {
  --ornate-button-w: 184px;
  background-image: url("assets/shared/buttons/precomposed-gold/gold-lg-184x35@4x.png");
}

/* Shared medallion navigation with responsive live-text plaques. */
.site-nav--icons {
  gap: clamp(0.18rem, 0.48vw, 0.42rem);
}

.site-nav--icons .nav-icon-link {
  position: relative;
  display: inline-block;
  width: clamp(3.35rem, 6.4vw, 5.75rem);
  height: clamp(3rem, 5.75vw, 5.15rem);
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  isolation: isolate;
  filter: drop-shadow(0 3px 3px rgba(45, 20, 5, 0.24));
}

.site-nav--icons .nav-icon-medallion {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 76%;
  aspect-ratio: 1;
  transform: translateX(-50%);
}

.site-nav--icons .nav-icon-medallion img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav--icons .nav-icon-label {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: flex;
  width: 100%;
  height: clamp(1.55rem, 2.3vw, 2.1rem);
  align-items: center;
  justify-content: center;
  padding: 0 0.34rem;
  transform: translateX(-50%);
  background: url("assets/optimized/shared/nav/live/nav-label-plaque@2x.webp") center / 100% 100% no-repeat;
  color: #f4d675;
  font-family: var(--font-heading);
  font-size: clamp(0.72rem, 0.82vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.86;
  text-align: center;
  text-shadow: 0 1px 1px rgba(18, 5, 2, 0.94), 0 0 3px rgba(255, 217, 105, 0.2);
}

.site-nav--icons .nav-icon-label__full,
.site-nav--icons .nav-icon-label__short {
  pointer-events: none;
}

.site-nav--icons .nav-icon-label__short {
  display: none;
  white-space: nowrap;
}

.site-nav--icons .nav-icon-link[aria-current="page"] {
  filter:
    drop-shadow(0 0 4px rgba(255, 218, 94, 0.7))
    drop-shadow(0 3px 3px rgba(45, 20, 5, 0.24));
}

.site-nav--icons .nav-icon-link[aria-current="page"] .nav-icon-label {
  color: #fff0a1;
  filter: brightness(1.12);
}

.site-nav--icons .nav-icon-link:focus-visible {
  outline: 2px solid var(--ruby);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .site-nav--icons .nav-icon-label__full {
    display: none;
  }

  .site-nav--icons .nav-icon-label__short {
    display: inline;
  }
}

@media (max-width: 760px) {
  .site-nav--icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
  }

  .site-nav--icons .nav-icon-link {
    width: min(100%, 4.4rem);
    height: 3.85rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav--icons .nav-icon-label {
    width: 106%;
    height: 1.22rem;
    padding: 0.05rem 0.06rem 0.09rem;
    font-size: 0.72rem;
    line-height: 1;
  }

  .site-nav--icons .nav-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 340px) {
  .site-nav--icons .nav-icon-link[href="create-memories.html"] .nav-icon-label {
    width: 124%;
  }
}

/* Shared tablet header handoff: keep the 901px desktop and 640px mobile layouts untouched. */
@media (min-width: 641px) and (max-width: 900px) {
  .site-header {
    position: static;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .header-inner,
  .fantasy-header .header-inner {
    display: grid;
    grid-template-columns: minmax(9.6rem, 42%) minmax(14rem, 1fr);
    column-gap: 0.45rem;
    align-items: start;
    min-height: auto;
    padding: 0.6rem 0.45rem 0.7rem;
  }

  .brand {
    justify-self: start;
  }

  .brand img,
  .fantasy-header .brand img {
    position: static;
    left: auto;
    top: auto;
    width: min(12rem, 40vw);
  }

  .site-nav--icons {
    display: grid;
    justify-self: end;
    width: min(20rem, 56vw);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.16rem 0.28rem;
    align-items: center;
    justify-items: center;
  }

  .site-nav--icons .nav-icon-link {
    width: min(100%, clamp(3.8rem, 8.4vw, 4.75rem));
    height: clamp(3.35rem, 7.5vw, 4.25rem);
  }

  .site-nav--icons .nav-cta {
    --ornate-red-w: 184px;
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 0.48rem;
    background-image: url("assets/shared/buttons/precomposed-red/red-lg-184x35@4x.png");
    font-size: 13px;
  }
}

/* Homepage mobile polish pass: compact nav matrix, one-row hero buttons, and richer skill plaque rows. */
@media (max-width: 640px) {
  .page-home .header-inner {
    grid-template-columns: minmax(8.4rem, 44%) minmax(10.8rem, 1fr);
    column-gap: 0.35rem;
    align-items: start;
    padding: 0.6rem 0.45rem 0.7rem;
  }

  .page-home .brand {
    justify-self: start;
  }

  .page-home .brand img,
  .page-home .fantasy-header .brand img {
    width: min(10.25rem, 44vw);
  }

  .page-home .site-nav--icons {
    justify-self: end;
    width: min(13.4rem, 52vw);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.12rem 0.18rem;
    align-items: center;
    justify-items: center;
  }

  .page-home .site-nav--icons .nav-icon-link {
    width: min(100%, clamp(3.1rem, 15vw, 4.05rem));
    height: clamp(2.75rem, 13.3vw, 3.55rem);
  }

  .page-home .site-nav--icons .nav-cta {
    --ornate-red-w: 184px;
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 0.48rem;
    background-image: url("assets/shared/buttons/precomposed-red/red-lg-184x35@4x.png");
    font-size: 13px;
  }

  body:not(.page-home) .site-header {
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  body:not(.page-home) .header-inner {
    grid-template-columns: minmax(8.4rem, 44%) minmax(10.8rem, 1fr);
    column-gap: 0.35rem;
    align-items: start;
    padding: 0.6rem 0.45rem 0.7rem;
  }

  body:not(.page-home) .brand {
    justify-self: start;
  }

  body:not(.page-home) .brand img {
    position: static;
    left: auto;
    top: auto;
    width: min(10.25rem, 44vw);
  }

  body:not(.page-home) .site-nav--icons {
    justify-self: end;
    width: min(13.4rem, 52vw);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.12rem 0.18rem;
    align-items: center;
    justify-items: center;
  }

  body:not(.page-home) .site-nav--icons .nav-icon-link {
    width: min(100%, clamp(3.1rem, 15vw, 4.05rem));
    height: clamp(2.75rem, 13.3vw, 3.55rem);
  }

  body:not(.page-home) .site-nav--icons .nav-cta {
    --ornate-red-w: 184px;
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 0.48rem;
    background-image: url("assets/shared/buttons/precomposed-red/red-lg-184x35@4x.png");
    font-size: 13px;
  }

  .page-home .as-hero .button-row {
    display: flex !important;
    width: max-content;
    max-width: calc(100vw - 2rem);
    grid-template-columns: none;
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-start;
  }

  .page-home .as-hero .button.ornate-red--lg {
    --ornate-red-w: 150px;
    background-image: url("assets/shared/buttons/precomposed-red/red-md-150x35@4x.png");
    padding-inline: 0.82rem;
    font-size: 12px;
  }

  .page-home .as-hero .button.ornate-blue--xl {
    --ornate-button-w: 184px;
    background-image: url("assets/shared/buttons/precomposed-blue/blue-lg-184x35@4x.png");
    padding-inline: 0.62rem;
    font-size: 11.25px;
  }

  .page-home .home-footer-cta--live .button-row {
    display: grid !important;
    justify-content: center;
    justify-items: center;
    align-items: center;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__steps {
    gap: 0.72rem;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__steps li {
    grid-template-columns: clamp(3.75rem, 18vw, 4.6rem) minmax(0, 1fr);
    gap: 0.65rem;
    min-height: clamp(4.6rem, 18vw, 5.35rem);
    place-items: center stretch;
    padding: 0.42rem 0.78rem 0.42rem 0.48rem;
    text-align: left;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__step-icon {
    display: block;
    width: 100%;
    max-height: clamp(3.5rem, 16vw, 4.35rem);
    border-radius: 999px;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.58));
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__step-copy {
    min-width: 0;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__steps b {
    font-size: clamp(1.12rem, 5vw, 1.35rem);
    line-height: 1.02;
  }

  .page-home .skill-chain-panel--live .skill-chain-panel__steps span {
    margin-top: 0.14rem;
    font-size: clamp(0.78rem, 3.4vw, 0.94rem);
    line-height: 1.08;
  }

  .page-home .lore-section .scroll-card.token {
    grid-template-columns: clamp(6.5rem, 30vw, 8.15rem) minmax(0, 1fr);
    column-gap: 0.9rem;
    min-height: clamp(9.25rem, 38vw, 10.8rem);
    align-items: center;
  }

  .page-home .lore-section .scroll-card.token .lore-card__copy {
    align-self: center;
  }

  .page-home .lore-section .scroll-card.token h3 {
    margin-bottom: 0.16rem;
    font-size: clamp(1.58rem, 7.1vw, 2rem);
    line-height: 0.98;
  }

  .page-home .lore-section .scroll-card.token p {
    font-size: clamp(0.96rem, 4.3vw, 1.16rem);
    line-height: 1.06;
  }

  .page-home .lore-section .scroll-card.token .lore-card__icon {
    width: clamp(6rem, 27vw, 7.4rem);
    max-height: clamp(6rem, 27vw, 7.4rem);
  }
}

@media (max-width: 370px) {
  .page-home .as-hero .button-row {
    transform: scale(0.9);
    transform-origin: left center;
  }
}

@media (max-width: 640px) {
  .page-home .audience-section .ornate-grid.two {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .page-home .audience-section .audience-card,
  .page-home .audience-section .audience-card--players,
  .page-home .audience-section .audience-card--gms {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .page-home .audience-section .audience-card__copy,
  .page-home .audience-section .audience-card--players .audience-card__copy,
  .page-home .audience-section .audience-card--gms .audience-card__copy {
    max-width: 100%;
    min-width: 0;
  }

  .page-home .audience-section .audience-card .tag-row,
  .page-home .audience-section .audience-card--players .tag-row,
  .page-home .audience-section .audience-card--gms .tag-row {
    max-width: 100%;
  }

  .page-home .audience-section .audience-card--gms .tag-row {
    display: grid !important;
    grid-template-columns: minmax(0, 12rem);
    justify-content: start;
    gap: 0.32rem;
  }
}

@media (min-width: 641px) and (max-width: 760px) {
  .page-home .home-footer-cta--live .button.ornate-red--lg {
    --ornate-red-w: 150px;
    padding-inline: 0.82rem;
    background-image: url("assets/shared/buttons/precomposed-red/red-md-150x35@4x.png");
    font-size: 12px;
  }

  .page-home .home-footer-cta--live .button.ornate-blue--xxl {
    --ornate-button-w: 236px;
    padding-inline: 0.82rem;
    background-image: url("assets/shared/buttons/precomposed-blue/blue-xl-236x35@4x.png");
    font-size: 12px;
  }

  .page-home .home-footer-cta--live .button-row {
    gap: 0.45rem;
  }

  .page-home .audience-card--gms .tag-row {
    display: grid !important;
    right: 53%;
    bottom: -1.8%;
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }

  .page-home .audience-card .tag-row span {
    min-width: 0;
    min-height: 1.08rem;
    padding: 0.12rem 0.28rem;
    font-size: clamp(0.48rem, 1vw, 0.55rem);
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Home desktop micro-lift for the main section headings and their supporting copy. */
@media (min-width: 901px) {
  .page-home .home-feature-strip + .as-section > h2,
  .page-home .audience-section > h2,
  .page-home .skill-section > h2,
  .page-home .lore-section > div:first-child > h2,
  .page-home .depth-section > h2,
  .page-home .history-section > h2 {
    font-size: clamp(1.95rem, 3vw, 2.2rem);
  }

  .page-home .home-feature-strip + .as-section > p.section-lede,
  .page-home .skill-section > p.section-lede,
  .page-home .lore-section > div:first-child > p.section-lede,
  .page-home .depth-section > p.section-lede,
  .page-home .history-section > p.section-lede {
    font-size: 0.82rem;
  }

  .page-home .audience-section .audience-card p {
    font-size: clamp(0.82rem, 1vw, 0.97rem);
  }

  .page-home .home-feature-strip {
    margin-bottom: calc(0.9rem + 16px);
  }

  .page-home .skill-section {
    margin-bottom: 14px;
  }

  .page-home .lore-section {
    margin-bottom: 16px;
  }
}

/* Home tablet audit: smooth the 641-760px handoff without touching mobile or desktop. */
@media (min-width: 641px) and (max-width: 760px) {
  .page-home .as-hero {
    grid-template-columns: minmax(20.5rem, 0.94fr) minmax(12rem, 0.48fr);
    gap: clamp(0.6rem, 2vw, 1.15rem);
    min-height: clamp(27rem, 59vw, 30.5rem);
    padding: clamp(5.35rem, 8.2vw, 6.2rem) clamp(1.15rem, 4vw, 1.7rem) 0.65rem;
  }

  .page-home .as-hero::before {
    top: clamp(7.6rem, 17vw, 9rem);
    right: clamp(-8.5rem, -12vw, -5.8rem);
    width: min(70vw, 34rem);
    height: clamp(10rem, 22vw, 12rem);
    opacity: 0.44;
  }

  .page-home .as-hero .hero-copy {
    z-index: 3;
    max-width: min(100%, 31rem);
  }

  .page-home .as-hero h1 {
    font-size: clamp(3.12rem, 8vw, 3.62rem);
  }

  .page-home .as-hero .hero-copy > p:not(.eyebrow):not(.note) {
    max-width: 30.5rem;
    font-size: 0.82rem;
  }

  .page-home .as-hero .button-row {
    position: relative;
    z-index: 4;
    width: max-content;
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 0.55rem;
  }

  .page-home .isla-showpiece {
    position: absolute;
    top: clamp(3.05rem, 7.5vw, 4.15rem);
    right: clamp(-4.8rem, -8.5vw, -3.4rem);
    z-index: 1;
    width: clamp(18.1rem, 44vw, 21.6rem);
    margin-top: 0;
    pointer-events: none;
    transform: none;
  }

  .page-home .isla-showpiece img {
    width: 100%;
    max-height: 23rem;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0.7) 91%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 84%, rgba(0, 0, 0, 0.7) 91%, transparent 100%);
  }

  .page-home .home-feature-strip {
    width: min(100%, calc(100vw - 1.5rem));
    aspect-ratio: auto;
    margin: 0.65rem auto 1.1rem;
    padding: 0.78rem 0.9rem;
    border: 2px solid rgba(129, 71, 14, 0.88);
    border-radius: 0.32rem;
    background:
      linear-gradient(180deg, rgba(127, 6, 4, 0.94), rgba(88, 8, 19, 0.96)),
      url("assets/shared/textures/deep-red-texture.png");
    box-shadow:
      inset 0 0 0 1px rgba(255, 232, 142, 0.36),
      inset 0 0 26px rgba(34, 0, 0, 0.32),
      0 9px 14px rgba(45, 20, 5, 0.17);
    filter: drop-shadow(0 9px 10px rgba(45, 20, 5, 0.18));
  }

  .page-home .home-feature-strip__exact,
  .page-home .home-feature-strip__frame {
    display: none !important;
  }

  .page-home .home-feature-strip__content {
    position: relative;
    inset: auto;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.46rem 0.55rem;
    align-items: stretch;
  }

  .page-home .home-feature-strip article {
    display: grid;
    min-height: 3.85rem;
    grid-template-columns: clamp(2.45rem, 7.8vw, 3rem) minmax(0, 1fr);
    gap: 0.46rem;
    align-items: center;
    justify-content: initial;
    justify-items: start;
    padding: 0.35rem 0.42rem;
    text-align: left;
  }

  .page-home .home-feature-strip article:not(:last-child)::after {
    display: none;
  }

  .page-home .home-feature-strip article.home-feature-strip__summary {
    display: block;
    grid-column: 1 / -1;
    min-height: 0;
    padding: 0.48rem 0.58rem 0.22rem;
    border-top: 1px solid rgba(255, 226, 134, 0.28);
  }

  .page-home .home-feature-strip__summary::after {
    display: none !important;
  }

  .page-home .home-feature {
    grid-template-columns: clamp(2.45rem, 7.8vw, 3rem) minmax(0, 1fr);
    gap: 0.46rem;
  }

  .page-home .home-feature > div {
    min-width: 0;
  }

  .page-home .home-feature img {
    justify-self: center;
    width: clamp(2.25rem, 7.2vw, 2.85rem);
    max-height: clamp(2.25rem, 7.2vw, 2.85rem);
  }

  .page-home .home-feature-strip h2 {
    font-size: clamp(0.95rem, 2.35vw, 1.1rem);
    line-height: 1;
  }

  .page-home .home-feature-strip p {
    font-size: clamp(0.68rem, 1.7vw, 0.78rem);
    line-height: 1.1;
  }

  .page-home .home-feature-strip__summary p {
    max-width: none;
  }

  .page-home .home-feature-strip + .as-section .ornate-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .home-feature-strip + .as-section .ornate-grid.three .scroll-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .page-home .home-feature-strip + .as-section .scroll-card {
    min-height: 9.2rem;
  }

  .page-home .home-feature-strip + .as-section .scroll-card h3 {
    font-size: clamp(1.18rem, 3vw, 1.45rem);
  }

  .page-home .home-feature-strip + .as-section .scroll-card p {
    font-size: clamp(0.82rem, 2vw, 0.92rem);
  }

  .page-home .audience-section .ornate-grid.two {
    grid-template-columns: minmax(0, min(100%, 38rem));
    justify-content: center;
    gap: 1rem;
  }

  .page-home .audience-section .audience-card,
  .page-home .audience-section .audience-card--players,
  .page-home .audience-section .audience-card--gms {
    min-height: 14.2rem;
    padding: calc(20px + 0.85rem) clamp(6.2rem, 19vw, 8.1rem) calc(20px + 0.8rem) calc(20px + 0.95rem);
  }

  .page-home .audience-section .audience-card h3 {
    font-size: clamp(1.56rem, 4.5vw, 2rem);
  }

  .page-home .audience-section .audience-card p,
  .page-home .audience-section .audience-card--gms p {
    font-size: clamp(0.82rem, 2.2vw, 0.96rem);
  }

  .page-home .audience-section .audience-card--gms p {
    padding-right: 0;
  }

  .page-home .audience-section .audience-card .tag-row,
  .page-home .audience-section .audience-card--players .tag-row,
  .page-home .audience-section .audience-card--gms .tag-row {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-top: auto;
    padding-top: 0.82rem;
  }

  .page-home .audience-section .audience-card .tag-row span {
    min-height: 1.5rem;
    padding: 0.22rem 0.56rem;
    font-size: clamp(0.64rem, 1.7vw, 0.74rem);
    white-space: nowrap;
  }

  .page-home .audience-section .audience-card__icon {
    right: calc(20px + 0.62rem);
    bottom: calc(20px + 1rem);
    width: clamp(4.4rem, 14vw, 5.8rem);
  }

  .page-home .audience-section .audience-card__icon--gms {
    bottom: calc(20px + 1.25rem);
    width: clamp(4.9rem, 15vw, 6.5rem);
  }

  .page-home .home-footer-cta--live {
    width: min(100%, calc(100vw - 2.2rem));
    aspect-ratio: auto;
    min-height: clamp(12.8rem, 31vw, 15.6rem);
    padding: clamp(1.55rem, 4vw, 2.1rem) 10% clamp(1.15rem, 3vw, 1.65rem);
  }

  .page-home .home-footer-cta--live .home-footer-cta__copy h2 {
    max-width: 14ch;
    margin-inline: auto;
    font-size: clamp(2.25rem, 5.2vw, 2.72rem);
    line-height: 0.98;
    white-space: normal;
  }

  .page-home .home-footer-cta--live .home-footer-cta__copy p:not(.eyebrow) {
    max-width: 30rem;
    margin-top: 0.5rem;
  }

  .page-home .home-footer-cta--live .button-row {
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
  }
}

/* Create Memories first-pass homepage alignment: shared page frame and Start Fast-style live ribbon. */
body.page-memories {
  position: relative;
  isolation: isolate;
  background: var(--as-red-page-frame-background);
}

.page-memories .page-frame-fill {
  position: absolute;
  inset: 0.46rem;
  z-index: -1;
  pointer-events: none;
  background: var(--as-parchment-background);
}

body.page-memories::before {
  --as-page-frame-clear-x: clamp(3.45rem, 5.7vw, 4.5rem);
  --as-page-frame-clear-y: clamp(2.75rem, 4.65vw, 3.7rem);
  content: "";
  position: absolute;
  inset: 0.35rem;
  z-index: 60;
  pointer-events: none;
  background:
    url("assets/shared/ornaments/page-frame-rails/top-rail-from-corner-dark.png") top center / calc(100% - var(--as-page-frame-clear-x) - var(--as-page-frame-clear-x)) 2px no-repeat,
    linear-gradient(90deg, #5c3510, #6b4217 18%, #6b4217 82%, #5c3510) bottom center / calc(100% - var(--as-page-frame-clear-x) - var(--as-page-frame-clear-x)) 2px no-repeat,
    url("assets/shared/ornaments/page-frame-rails/left-rail-from-corner-dark-v2.png") left center / 2px calc(100% - var(--as-page-frame-clear-y) - var(--as-page-frame-clear-y)) no-repeat,
    url("assets/shared/ornaments/page-frame-rails/left-rail-from-corner-dark-v2.png") right center / 2px calc(100% - var(--as-page-frame-clear-y) - var(--as-page-frame-clear-y)) no-repeat;
}

body.page-memories::after {
  content: "";
  position: absolute;
  inset: 0.25rem;
  z-index: 61;
  pointer-events: none;
  background:
    url("assets/shared/ornaments/top-center-gem-transparent.png") center bottom -1.02rem / clamp(2.5rem, 4.3vw, 3.2rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-top-left-transparent.png") left -0.7rem top -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-top-right-transparent.png") right -0.7rem top -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-bottom-left-transparent.png") left -0.7rem bottom -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-bottom-right-transparent.png") right -0.7rem bottom -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat;
}

.page-memories .site-header {
  z-index: 50;
  overflow: visible;
}

.page-memories .site-footer::after {
  display: none;
}

.page-memories main.site-frame {
  position: relative;
  background: none;
}

.page-memories .hero {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-memories .hero-copy {
  padding-top: clamp(0.9rem, 2.25vw, 1.65rem);
}

.page-memories .hero h1 {
  max-width: none;
  font-size: clamp(2.09rem, 4.77vw, 3.39rem);
  line-height: 1.06;
}

.page-memories .hero h1 span {
  display: block;
  white-space: nowrap;
}

.page-memories .hero h1 span + span {
  margin-top: 0.08em;
}

.page-memories #how {
  padding-top: clamp(1.25rem, 2.6vw, 1.8rem);
}

.page-memories #how h2 {
  margin-bottom: clamp(1.35rem, 2.8vw, 1.8rem);
}

.page-memories .memory-grid {
  margin-top: clamp(0.45rem, 1.1vw, 0.75rem);
}

@media (min-width: 641px) {
  .page-memories .create-memory-feature-strip {
    width: min(100%, 63.5rem);
    aspect-ratio: 4236 / 438;
    min-height: 0;
    margin: 0.5rem auto 1.15rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    filter: drop-shadow(0 10px 10px rgba(45, 20, 5, 0.2));
  }

  .page-memories .create-memory-feature-strip .home-feature-strip__frame {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

  .page-memories .create-memory-feature-strip .home-feature-strip__content {
    position: absolute;
    inset: 18% 5.2% 16% 5.3%;
    z-index: 1;
    display: grid !important;
    width: auto;
    height: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: center;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .page-memories .create-memory-feature-strip article {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 100%;
    grid-template-columns: clamp(1.7rem, 3.5vw, 3.15rem) minmax(0, 1fr);
    gap: clamp(0.26rem, 0.75vw, 0.56rem);
    align-items: center;
    justify-content: center;
    padding: 0 clamp(0.28rem, 0.9vw, 0.7rem);
    border: 0;
    color: #fff1b9;
    text-align: left;
    transform: none !important;
  }

  .page-memories .create-memory-feature-strip article:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 16%;
    right: 0;
    bottom: 16%;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, #ffd970 15%, #9a5a12 50%, #ffeaa0 85%, transparent);
    box-shadow: 0 0 4px rgba(18, 5, 0, 0.85);
  }

  .page-memories .create-memory-feature-strip img:not(.home-feature-strip__frame) {
    width: 100%;
    max-height: clamp(1.85rem, 3.8vw, 3.25rem);
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgba(15, 3, 0, 0.72));
  }

  .page-memories .create-memory-feature-strip h2 {
    margin: 0 0 0.04rem;
    color: #ffe88e;
    font-size: clamp(0.72rem, 1.18vw, 0.94rem);
    line-height: 0.98;
    text-align: left;
    text-shadow: 0 2px 1px rgba(15, 3, 0, 0.86);
  }

  .page-memories .create-memory-feature-strip p {
    margin: 0.1rem 0 0;
    color: #fff3be;
    font-size: clamp(0.5rem, 0.76vw, 0.63rem);
    font-weight: 800;
    line-height: 1.05;
    text-align: left;
    text-shadow: 0 2px 1px rgba(15, 3, 0, 0.86);
  }
}

@media (max-width: 640px) {
  .page-memories .hero-copy {
    padding-top: 0;
  }

  .page-memories .hero h1 {
    font-size: clamp(1.78rem, 9.09vw, 2.3rem);
  }

  .page-memories .hero h1 span:nth-child(3) {
    transform: scaleX(0.89);
    transform-origin: left center;
  }

  .page-memories .hero .button-row {
    display: flex !important;
    width: max-content;
    max-width: calc(100vw - 2rem);
    grid-template-columns: none;
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: center;
    justify-content: flex-start;
  }

  .page-memories .hero .button.ornate-red--xl {
    --ornate-red-w: 184px;
    width: var(--ornate-red-w);
    min-width: var(--ornate-red-w);
    background-image: url("assets/shared/buttons/precomposed-red/red-lg-184x35@4x.png");
    padding-inline: 0.58rem;
    font-size: 10.75px;
  }

  .page-memories .hero .button.ornate-blue--lg {
    --ornate-button-w: 150px;
    width: var(--ornate-button-w);
    min-width: var(--ornate-button-w);
    background-image: url("assets/shared/buttons/precomposed-blue/blue-md-150x35@4x.png");
    padding-inline: 0.6rem;
    font-size: 11.2px;
  }

  .page-memories .create-memory-feature-strip {
    width: min(100%, calc(100vw - 1.75rem));
    min-height: 0;
    aspect-ratio: auto;
    margin: 0.82rem auto 1.15rem;
    padding: 0.95rem 0.9rem;
    border: 2px solid rgba(129, 71, 14, 0.88);
    border-radius: 0.32rem;
    background:
      linear-gradient(180deg, rgba(127, 6, 4, 0.94), rgba(88, 8, 19, 0.96)),
      url("assets/shared/textures/deep-red-texture.png");
    box-shadow:
      inset 0 0 0 1px rgba(255, 232, 142, 0.36),
      inset 0 0 26px rgba(34, 0, 0, 0.32),
      0 9px 14px rgba(45, 20, 5, 0.17);
    overflow: visible;
    filter: drop-shadow(0 9px 10px rgba(45, 20, 5, 0.18));
  }

  .page-memories .create-memory-feature-strip .home-feature-strip__frame {
    display: none !important;
  }

  .page-memories .create-memory-feature-strip .home-feature-strip__content {
    position: relative;
    inset: auto;
    z-index: 1;
    display: grid !important;
    width: 100%;
    height: auto;
    grid-template-columns: 1fr;
    gap: 0.48rem;
    align-items: stretch;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }

  .page-memories .create-memory-feature-strip article {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: clamp(4.15rem, 15vw, 5.2rem);
    grid-template-columns: clamp(3rem, 14vw, 4.3rem) minmax(0, 1fr);
    gap: clamp(0.58rem, 3.3vw, 0.82rem);
    align-items: center;
    justify-content: initial;
    padding: 0.42rem 0.55rem;
    border: 0;
    color: #fff1b9;
    text-align: left;
    transform: none !important;
  }

  .page-memories .create-memory-feature-strip article:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0.35rem;
    bottom: -0.24rem;
    left: calc(clamp(3rem, 14vw, 4.3rem) + 1.1rem);
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #ffe68b 15%, #8f510d 50%, #ffe68b 85%, transparent);
    box-shadow: 0 0 4px rgba(18, 5, 0, 0.72);
  }

  .page-memories .create-memory-feature-strip img:not(.home-feature-strip__frame) {
    justify-self: center;
    align-self: center;
    width: clamp(2.65rem, 12.5vw, 4rem);
    max-height: clamp(2.65rem, 12.5vw, 4rem);
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgba(15, 3, 0, 0.72));
  }

  .page-memories .create-memory-feature-strip h2 {
    margin: 0 0 0.04rem;
    color: #ffe88e;
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
    line-height: 0.98;
    text-align: left;
    text-shadow: 0 2px 1px rgba(15, 3, 0, 0.86);
  }

  .page-memories .create-memory-feature-strip p {
    margin: 0.14rem 0 0;
    color: #fff3be;
    font-size: clamp(0.78rem, 3.6vw, 0.98rem);
    font-weight: 800;
    line-height: 1.06;
    text-align: left;
    text-shadow: 0 2px 1px rgba(15, 3, 0, 0.86);
  }
}

/* Create Memories story steps: match the Core Promise parchment tile frame and cleaner numbered medallions. */
.page-memories .memory-step {
  --as-core-card-fill-base: #f1d6a3;
  --as-core-card-fill-shade: rgba(111, 61, 14, 0.1);
  --as-core-card-fill-corner: 10px;
  position: relative;
  border: 0;
  border-radius: 0;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.page-memories .memory-step::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  border: 18px solid transparent;
  border-image-source: url("assets/shared/frames/as-core-card-frame-memory-clean.png");
  border-image-slice: 30;
  border-image-width: 18px;
  border-image-repeat: stretch;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.page-memories .memory-step::after,
.page-memories .memory-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: 8px;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  z-index: 0;
  background:
    linear-gradient(var(--as-core-card-fill-shade), var(--as-core-card-fill-shade)),
    radial-gradient(circle at 100% 0, rgba(127, 75, 17, 0.13), transparent 7rem),
    var(--as-parchment-surface) center / 420px 420px repeat,
    var(--as-core-card-fill-base);
  clip-path: none;
  transform: none;
  pointer-events: none;
}

.page-memories .memory-step > * {
  position: relative;
  z-index: 3;
}

.page-memories .memory-step .step-badge {
  z-index: 4;
  width: 2.18rem;
  height: 2.18rem;
  border: 1.5px solid #d7a740;
  background: linear-gradient(180deg, #7f0d09 0%, #5b0705 58%, #350302 100%);
  color: #ffd86a;
  font-size: 1.18rem;
  box-shadow:
    0 0 0 1.5px #7a3a0d,
    0 0 0 2.8px rgba(204, 153, 48, 0.72),
    inset 0 0 0 1px rgba(255, 222, 107, 0.72),
    0 5px 8px rgba(45, 20, 5, 0.25);
}

.page-memories .story-process-strip__icon {
  display: block;
  width: clamp(2.65rem, 4.9vw, 4.3rem);
  max-height: clamp(2.65rem, 4.9vw, 4.3rem);
  margin: 0 auto 0.26rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(15, 3, 0, 0.72));
}

@media (min-width: 641px) {
  .page-memories .story-process-strip__steps li {
    display: grid;
    justify-items: center;
    align-content: start;
  }
}

@media (max-width: 640px) {
  .page-memories .story-process-strip__steps li {
    display: grid;
    grid-template-columns: clamp(3.4rem, 16vw, 4.35rem) minmax(0, 1fr);
    column-gap: 0.68rem;
    align-items: center;
    text-align: left;
  }

  .page-memories .story-process-strip__icon {
    grid-row: 1 / span 2;
    width: clamp(3.15rem, 15vw, 4.1rem);
    max-height: clamp(3.15rem, 15vw, 4.1rem);
    margin: 0;
  }
}

/* Create Memories hero Story Engine placeholder: live Depth Mode frame + flourish. */
.page-memories .hero::before {
  display: none;
}

.page-memories .story-engine-shell {
  --story-engine-frame-x: clamp(1.3rem, 2.6vw, 2.3rem);
  --story-engine-corner-w: clamp(4.1rem, 8.2vw, 5.55rem);
  --story-engine-corner-h: clamp(3.55rem, 7.1vw, 4.82rem);
  --story-engine-rail-x: clamp(0.57rem, 1.14vw, 0.78rem);
  --story-engine-rail-y: clamp(0.57rem, 1.14vw, 0.78rem);
  --story-engine-join-overlap: clamp(12px, 1.35vw, 16px);
  position: relative;
  isolation: isolate;
  width: min(100%, 24.5rem);
  aspect-ratio: 500 / 347;
  margin: 0 auto -3.1rem;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translate(var(--story-engine-frame-x), -3.15rem);
}

.page-memories .story-engine-shell::before {
  content: "";
  position: absolute;
  right: auto;
  bottom: -56%;
  left: calc(-42% - var(--story-engine-frame-x));
  width: 178%;
  height: 150%;
  z-index: 0;
  pointer-events: none;
  background: url("assets/shared/ornaments/rainbow-musical-flourish-sweep-rgba-clean.png") center bottom / contain no-repeat;
  opacity: 0.92;
  filter:
    saturate(1.28)
    brightness(1.08)
    drop-shadow(0 0 13px rgba(255, 218, 92, 0.25));
  transform: rotate(-8deg) scale(1.18);
  transform-origin: left bottom;
}

@media (min-width: 761px) {
  .page-memories .hero-copy {
    position: relative;
    z-index: 3;
  }

  .page-memories .story-engine-shell {
    --story-engine-frame-x: clamp(2.8rem, 5vw, 4.4rem);
    z-index: 1;
  }

  .page-memories .story-engine-shell::before {
    left: calc(-50% - clamp(0.25rem, 0.8vw, 0.65rem));
  }
}

.page-memories .story-engine-shell__surface {
  position: absolute;
  inset: calc(var(--story-engine-rail-x) - 1px) calc(var(--story-engine-rail-y) - 1px);
  z-index: 1;
  border-radius: 0.18rem;
  background:
    radial-gradient(circle at 11% 18%, rgba(255, 226, 132, 0.88) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 42%, rgba(255, 226, 132, 0.48) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 72%, rgba(255, 226, 132, 0.68) 0 1px, transparent 2px),
    radial-gradient(circle at 38% 28%, rgba(255, 226, 132, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 55% 70%, rgba(255, 226, 132, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 61% 16%, rgba(255, 226, 132, 0.78) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 24%, rgba(255, 226, 132, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 38%, rgba(255, 226, 132, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 71% 82%, rgba(255, 226, 132, 0.56) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 74%, rgba(255, 226, 132, 0.54) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 16%, rgba(255, 187, 93, 0.15), transparent 8rem),
    radial-gradient(circle at 8% 92%, rgba(20, 91, 144, 0.28), transparent 9rem),
    linear-gradient(180deg, rgba(7, 38, 64, 0.72), rgba(4, 24, 42, 0.76) 62%, rgba(3, 18, 32, 0.8));
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(230, 188, 74, 0.12);
}

.page-memories .story-engine-shell__surface::before {
  content: "";
  position: absolute;
  inset: -4% -8%;
  border-radius: inherit;
  background:
    linear-gradient(145deg, transparent 0 48%, rgba(255, 210, 104, 0.08) 49%, transparent 51%),
    linear-gradient(18deg, transparent 0 62%, rgba(113, 187, 245, 0.08) 63%, transparent 65%);
  opacity: 0.72;
  mix-blend-mode: screen;
}

.page-memories .story-engine-shell__surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 14% 30%, rgba(255, 236, 154, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 16%, rgba(255, 236, 154, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 82%, rgba(255, 236, 154, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 34%, rgba(255, 236, 154, 0.92) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 18%, rgba(255, 236, 154, 0.78) 0 1px, transparent 2px);
  opacity: 0.46;
  animation: story-engine-stars 2.6s ease-in-out infinite alternate;
}

.page-memories .story-engine-shell__content {
  position: absolute;
  inset: 12% 7.7% 12%;
  z-index: 3;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(0.14rem, 0.45vw, 0.28rem);
  align-items: stretch;
  color: #d0a36d;
  text-align: center;
  text-shadow:
    0 2px 1px rgba(10, 3, 0, 0.94),
    0 0 5px rgba(231, 184, 92, 0.18);
}

.page-memories .story-engine-shell__title {
  margin: 0;
  color: #f2c66a;
  font-family: var(--font-heading);
  font-size: clamp(1.13rem, 2.47vw, 1.78rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-memories .story-engine-shell__title span::first-letter {
  font-size: 1.18em;
  line-height: 0.82;
  letter-spacing: 0.045em;
}

.page-memories .story-engine-shell__title span {
  display: inline-block;
}

@media (min-width: 761px) {
  .page-memories .story-engine-shell__title {
    font-size: clamp(18px, 2.15vw, 22px);
    white-space: nowrap;
  }
}

.page-memories .story-engine-shell__flow {
  display: grid;
  grid-template-columns: 0.95fr 0.43fr 1fr 0.43fr 1.34fr;
  gap: clamp(0.1rem, 0.5vw, 0.24rem);
  align-items: stretch;
  justify-items: center;
  transform: translateY(12%);
}

.page-memories .story-engine-shell__stage {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: clamp(0.08rem, 0.28vw, 0.16rem);
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
}

.page-memories .story-engine-shell__stage-label {
  color: #d0a36d;
  font-family: var(--font-heading);
  font-size: clamp(0.43rem, 0.72vw, 0.58rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-memories .story-engine-shell__stage-label--long {
  width: clamp(5.25rem, 11.5vw, 8.4rem);
  max-width: none;
  font-size: clamp(0.36rem, 0.62vw, 0.5rem);
  line-height: 0.94;
  white-space: normal;
}

.page-memories .story-engine-shell__icon {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 7px 8px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 8px rgba(255, 205, 84, 0.08));
}

.page-memories .story-engine-shell__icon--scroll {
  width: 110%;
  transform: translateY(5%) rotate(-1deg);
}

.page-memories .story-engine-shell__icon--feedback {
  width: 122%;
}

.page-memories .story-engine-shell__icon--book {
  width: 122%;
  transform: translateY(4%);
}

.page-memories .story-engine-shell__arrow {
  display: block;
  width: 136%;
  max-width: 4.7rem;
  object-fit: contain;
  filter:
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 5px rgba(255, 202, 76, 0.28));
  transform: scaleY(2);
}

.page-memories .story-engine-shell__arrow--right {
  width: 118%;
  max-width: 4rem;
  transform: translateX(-7%) scaleY(2);
}

.page-memories .story-engine-shell__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.42rem, 1.3vw, 0.82rem);
  margin: 0;
  color: #f2c66a;
  font-family: var(--font-heading);
  font-size: clamp(0.68rem, 1.3vw, 0.98rem);
  font-weight: 900;
  line-height: 1;
}

.page-memories .story-engine-shell__footer span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: clamp(0.8rem, 1.35vw, 1.1rem);
  height: 0.5rem;
  margin-left: clamp(0.34rem, 0.72vw, 0.58rem);
  background: url("assets/optimized/pages/create-memories/story-engine/story-engine-arrow-gold@2x.webp") center / contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.42));
}

@keyframes story-engine-stars {
  from {
    opacity: 0.28;
    filter: brightness(0.88);
  }

  to {
    opacity: 0.86;
    filter: brightness(1.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-memories .story-engine-shell__surface::after {
    animation: none;
  }
}

.page-memories .story-engine-shell__parts,
.page-memories .story-engine-shell__part {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-memories .story-engine-shell__parts {
  z-index: 4;
}

.page-memories .story-engine-shell__part--top {
  right: calc(var(--story-engine-corner-w) - var(--story-engine-join-overlap));
  bottom: auto;
  left: calc(var(--story-engine-corner-w) - var(--story-engine-join-overlap));
  height: var(--story-engine-rail-x);
  background: url("assets/pages/home/panels/depth-mode/live-frame-v12/rail-horizontal.png") left top / auto 100% repeat-x;
}

.page-memories .story-engine-shell__part--bottom {
  top: auto;
  right: calc(var(--story-engine-corner-w) - var(--story-engine-join-overlap));
  left: calc(var(--story-engine-corner-w) - var(--story-engine-join-overlap));
  height: var(--story-engine-rail-x);
  background: url("assets/pages/home/panels/depth-mode/live-frame-v12/rail-horizontal.png") left bottom / auto 100% repeat-x;
  transform: scaleY(-1);
}

.page-memories .story-engine-shell__part--left {
  top: calc(var(--story-engine-corner-h) - var(--story-engine-join-overlap));
  right: auto;
  bottom: calc(var(--story-engine-corner-h) - var(--story-engine-join-overlap));
  width: var(--story-engine-rail-y);
  background: url("assets/pages/home/panels/depth-mode/live-frame-v12/rail-vertical-left.png") left top / 100% auto repeat-y;
}

.page-memories .story-engine-shell__part--right {
  top: calc(var(--story-engine-corner-h) - var(--story-engine-join-overlap));
  bottom: calc(var(--story-engine-corner-h) - var(--story-engine-join-overlap));
  left: auto;
  width: var(--story-engine-rail-y);
  background: url("assets/pages/home/panels/depth-mode/live-frame-v12/rail-vertical-right.png") left top / 100% auto repeat-y;
}

.page-memories .story-engine-shell__part--corner-tl,
.page-memories .story-engine-shell__part--corner-tr,
.page-memories .story-engine-shell__part--corner-bl,
.page-memories .story-engine-shell__part--corner-br {
  width: var(--story-engine-corner-w);
  height: var(--story-engine-corner-h);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.page-memories .story-engine-shell__part--corner-tl {
  right: auto;
  bottom: auto;
  background-image: url("assets/pages/home/panels/depth-mode/live-frame-v12/corner-top-left.png");
}

.page-memories .story-engine-shell__part--corner-tr {
  bottom: auto;
  left: auto;
  background-image: url("assets/pages/home/panels/depth-mode/live-frame-v12/corner-top-right.png");
}

.page-memories .story-engine-shell__part--corner-bl {
  top: auto;
  right: auto;
  background-image: url("assets/pages/home/panels/depth-mode/live-frame-v12/corner-bottom-left.png");
}

.page-memories .story-engine-shell__part--corner-br {
  top: auto;
  left: auto;
  background-image: url("assets/pages/home/panels/depth-mode/live-frame-v12/corner-bottom-right.png");
}

@media (max-width: 760px) {
  .page-memories .story-engine-shell {
    --story-engine-frame-x: 0rem;
    width: min(100%, 21.25rem);
    margin: 0.7rem auto 0;
    transform: none;
  }

  .page-memories .story-engine-shell::before {
    top: 50%;
    bottom: auto;
    left: 50%;
    width: 333%;
    height: 194%;
    opacity: 0.72;
    background-position: center center;
    background-size: contain;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1.08);
    transform-origin: center center;
  }

  .page-memories .story-engine-shell__content {
    inset: 12% 5.8% 12.5%;
    gap: 0.16rem;
  }

  .page-memories .story-engine-shell__title {
    font-size: clamp(1.09rem, 5.75vw, 1.33rem);
  }

  .page-memories .story-engine-shell__stage-label {
    font-size: clamp(0.44rem, 2.45vw, 0.58rem);
  }

  .page-memories .story-engine-shell__stage-label--long {
    width: clamp(5rem, 24vw, 6.5rem);
    max-width: none;
    font-size: clamp(0.31rem, 1.72vw, 0.42rem);
  }

  .page-memories .story-engine-shell__arrow {
    width: 136%;
  }

  .page-memories .story-engine-shell__arrow--right {
    width: 116%;
    transform: translateX(-8%) scaleY(2);
  }

  .page-memories .story-engine-shell__footer {
    gap: 0.36rem;
    font-size: clamp(0.58rem, 3.25vw, 0.74rem);
  }

  .page-memories .story-engine-shell__footer span:not(:last-child)::after {
    width: 0.64rem;
    height: 0.36rem;
    margin-left: 0.24rem;
  }
}

/* Create Memories tablet audit: align the header handoff and keep hero text clear of the plaque. */
@media (min-width: 641px) and (max-width: 760px) {
  .page-memories .hero {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-height: 0;
    margin-top: 0.25rem;
    padding: 1.45rem 1.1rem 1.1rem;
  }

  .page-memories .hero-copy {
    max-width: 38rem;
    padding-top: 0;
  }

  .page-memories .hero h1 {
    max-width: 12.7ch;
    font-size: clamp(2.35rem, 6.6vw, 3.28rem);
  }

  .page-memories .hero h1 span:nth-child(3) {
    transform: none;
  }

  .page-memories .hero-copy > p:not(.eyebrow):not(.note) {
    max-width: 37rem;
  }

  .page-memories .hero .button-row {
    flex-wrap: nowrap;
  }
}

@media (min-width: 761px) and (max-width: 880px) {
  .page-memories .hero {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    min-height: 0;
    padding-inline: clamp(1.35rem, 3.5vw, 1.9rem);
  }

  .page-memories .hero h1 {
    font-size: clamp(3rem, 6vw, 3.4rem);
  }

  .page-memories .hero h1 span:nth-child(3) {
    transform: none;
  }

  .page-memories .hero-copy > p:not(.eyebrow):not(.note) {
    max-width: 34rem;
  }

  .page-memories .story-engine-shell {
    width: min(100%, 24rem);
    margin: 0 auto -1.1rem;
    transform: translateY(-1.1rem);
  }
}

@media (min-width: 881px) and (max-width: 900px) {
  .page-memories .hero {
    grid-template-columns: minmax(0, 0.78fr) minmax(16rem, 0.68fr);
    gap: clamp(0.9rem, 2.2vw, 1.35rem);
    padding-inline: clamp(1.45rem, 3.5vw, 2.1rem);
  }

  .page-memories .hero h1 {
    font-size: clamp(2.72rem, 4.75vw, 3.42rem);
  }

  .page-memories .hero h1 span:nth-child(3) {
    transform: scaleX(0.9);
    transform-origin: left center;
  }

  .page-memories .hero-copy > p:not(.eyebrow):not(.note) {
    max-width: 23rem;
  }

  .page-memories .story-engine-shell {
    width: min(100%, clamp(18.8rem, 40vw, 22.2rem));
    margin-bottom: -2.35rem;
    transform: translate(clamp(1rem, 2.2vw, 2rem), -2.35rem);
  }
}

/* Why AS page: poster-style layout over supplied decorative card art. */
.page-why-as .nav-icon-link--why-as {
  position: relative;
}

.page-why-as .nav-icon-link--why-as::after {
  content: none;
  display: none;
}

body.page-why-as {
  position: relative;
  isolation: isolate;
  color: #fff1bf;
  background:
    radial-gradient(circle at 18% 11%, rgba(16, 91, 131, 0.33), transparent 25rem),
    radial-gradient(circle at 80% 18%, rgba(168, 20, 78, 0.25), transparent 28rem),
    linear-gradient(180deg, #031626 0%, #03111d 58%, #020b14 100%);
}

.page-why-as .page-frame-fill {
  position: absolute;
  inset: 0.46rem;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 4%, rgba(22, 132, 188, 0.24), transparent 22rem),
    linear-gradient(180deg, rgba(6, 31, 50, 0.94), rgba(3, 13, 24, 0.96));
}

.page-why-as .site-header {
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.page-why-as main.site-frame {
  width: min(var(--max), calc(100% - 0.75rem));
  padding: clamp(0.45rem, 1.2vw, 0.9rem) 0 clamp(2rem, 4vw, 3rem);
  background: none;
}

body.page-why-as::before {
  --as-page-frame-clear-x: clamp(3.45rem, 5.7vw, 4.5rem);
  --as-page-frame-clear-y: clamp(2.75rem, 4.65vw, 3.7rem);
  position: absolute;
  inset: 0.35rem;
  z-index: 60;
  border: 0;
  border-radius: 0;
  background:
    url("assets/shared/ornaments/page-frame-rails/top-rail-from-corner-dark.png") top center / calc(100% - var(--as-page-frame-clear-x) - var(--as-page-frame-clear-x)) 2px no-repeat,
    linear-gradient(90deg, #5c3510, #6b4217 18%, #6b4217 82%, #5c3510) bottom center / calc(100% - var(--as-page-frame-clear-x) - var(--as-page-frame-clear-x)) 2px no-repeat,
    url("assets/shared/ornaments/page-frame-rails/left-rail-from-corner-dark-v2.png") left center / 2px calc(100% - var(--as-page-frame-clear-y) - var(--as-page-frame-clear-y)) no-repeat,
    url("assets/shared/ornaments/page-frame-rails/left-rail-from-corner-dark-v2.png") right center / 2px calc(100% - var(--as-page-frame-clear-y) - var(--as-page-frame-clear-y)) no-repeat;
  box-shadow: none;
}

body.page-why-as::after {
  content: "";
  position: absolute;
  inset: 0.25rem;
  z-index: 61;
  pointer-events: none;
  background:
    url("assets/shared/ornaments/top-center-gem-transparent.png") center top -0.95rem / clamp(2.5rem, 4.3vw, 3.2rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-top-left-transparent.png") left -0.7rem top -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-top-right-transparent.png") right -0.7rem top -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-bottom-left-transparent.png") left -0.7rem bottom -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat,
    url("assets/shared/ornaments/page-corner-bottom-right-transparent.png") right -0.7rem bottom -0.7rem / clamp(4.4rem, 7.5vw, 5.9rem) auto no-repeat;
}

.why-hero,
.why-card {
  position: relative;
  container-type: inline-size;
  overflow: visible;
  filter:
    drop-shadow(0 18px 22px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 9px rgba(255, 209, 92, 0.16));
}

.why-hero > img,
.why-card > img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.why-hero {
  margin: clamp(0.45rem, 1.2vw, 1rem) auto clamp(0.4rem, 1.2vw, 0.8rem);
}

.why-hero__title,
.why-hero__intro,
.why-hero__ribbon,
.why-card__copy {
  position: absolute;
  box-sizing: border-box;
  z-index: 2;
  transform: none;
}

.why-hero__title,
.why-hero__intro,
.why-card__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.why-hero__title {
  top: 21.2%;
  right: 29%;
  bottom: 51.8%;
  left: 29%;
  text-align: center;
}

.why-hero__title h1 {
  margin: 0;
  color: #ffd86e;
  font-size: clamp(2.1rem, 4.4vw, 3.75rem);
  font-size: clamp(2.1rem, 6cqw, 3.75rem);
  line-height: 0.98;
  text-shadow:
    0 2px 0 #5b1707,
    0 4px 5px rgba(0, 0, 0, 0.85),
    0 0 13px rgba(255, 215, 111, 0.5);
}

.why-hero__intro {
  top: 54.5%;
  right: 20.2%;
  bottom: 21.5%;
  left: 20.2%;
  color: #2b1007;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 248, 219, 0.74);
}

.why-hero__intro h2 {
  margin: 0 0 0.45rem;
  color: #84140c;
  font-size: clamp(1.08rem, 2.45vw, 2.05rem);
  font-size: clamp(1.02rem, 3.25cqw, 2.05rem);
  line-height: 1;
}

.why-hero__intro p {
  max-width: 43rem;
  margin: 0 auto;
  font-size: clamp(0.82rem, 1.18vw, 1.08rem);
  font-size: clamp(0.82rem, 1.48cqw, 1.08rem);
  font-weight: 700;
  line-height: 1.1;
}

.why-hero__ribbon {
  top: 82%;
  right: 29%;
  bottom: 7.7%;
  left: 29%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff0a2;
  font-size: clamp(1.15rem, 2.7vw, 2.3rem);
  font-size: clamp(1.08rem, 2.72cqw, 1.72rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 2px 1px #3b0502,
    0 4px 7px rgba(0, 0, 0, 0.82);
}

.why-reasons {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.35rem, 1.25vw, 0.8rem);
}

.why-reasons__lute {
  position: absolute;
  top: 35.7%;
  left: 50%;
  z-index: 1;
  display: none;
  width: clamp(14rem, 28vw, 21rem);
  max-width: none;
  height: auto;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter:
    drop-shadow(0 14px 16px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 10px rgba(255, 210, 82, 0.28));
  user-select: none;
}

.why-card__copy {
  color: #fff0ba;
  padding: 0.1rem 0;
  text-shadow:
    0 2px 1px rgba(8, 1, 0, 0.98),
    0 0 9px rgba(0, 0, 0, 0.75);
}

.why-card__copy h2 {
  margin: 0 0 0.34rem;
  color: #ffe46f;
  font-size: clamp(1.14rem, 2.05vw, 1.68rem);
  font-size: clamp(1.04rem, 5.15cqw, 1.62rem);
  line-height: 1;
}

.why-card__copy p {
  margin: 0;
  font-size: clamp(0.64rem, 0.92vw, 0.8rem);
  font-size: clamp(0.62rem, 2.5cqw, 0.86rem);
  font-weight: 700;
  line-height: 1.13;
}

.why-card--music .why-card__copy {
  top: 22%;
  right: 7%;
  bottom: 46%;
  left: 38%;
}

.why-card--story .why-card__copy {
  top: 24%;
  right: 45%;
  bottom: 50%;
  left: 7%;
}

.why-card--learn .why-card__copy {
  top: 24%;
  right: 7%;
  bottom: 50%;
  left: 41%;
}

.why-card--connection .why-card__copy {
  top: 24%;
  right: 45%;
  bottom: 50%;
  left: 7%;
}

.why-card--world {
  grid-column: 1 / -1;
}

.why-card--world .why-card__copy {
  top: 23%;
  right: 51%;
  bottom: 46%;
  left: 11%;
}

.why-card--world .why-card__copy h2 {
  font-size: clamp(1.22rem, 2.35vw, 1.86rem);
  font-size: clamp(0.92rem, 4.5cqw, 1.62rem);
}

@media (min-width: 901px) {
  .why-reasons__lute {
    display: block;
  }
}

@media (min-width: 761px) {
  .why-card__copy h2 {
    margin-bottom: 0.4rem;
    font-size: clamp(1.24rem, 2.24vw, 1.84rem);
    font-size: clamp(1.05rem, 5.15cqw, 1.62rem);
    line-height: 1;
  }

  .why-card__copy p {
    font-size: clamp(0.72rem, 1.04vw, 0.92rem);
    font-size: clamp(0.68rem, 2.55cqw, 0.86rem);
    line-height: 1.13;
  }

  .why-card--music .why-card__copy {
    top: 14.5%;
    right: 7%;
    bottom: 44.5%;
    left: 50%;
  }

  .why-card--story .why-card__copy {
    top: 17.5%;
    right: 52%;
    bottom: 49%;
    left: 7%;
  }

  .why-card--learn .why-card__copy {
    top: 8.5%;
    right: 7%;
    bottom: 57.5%;
    left: 53%;
  }

  .why-card--connection .why-card__copy {
    top: 18%;
    right: 54%;
    bottom: 48%;
    left: 7%;
  }

  .why-card--connection .why-card__copy h2 {
    font-size: clamp(1rem, 4.55cqw, 1.48rem);
  }

  .why-card--world .why-card__copy {
    top: 8%;
    right: 46%;
    bottom: 48.5%;
    left: 21.5%;
  }

  .why-card--world .why-card__copy h2 {
    font-size: clamp(1.42rem, 2.64vw, 2.21rem);
    font-size: clamp(1rem, 3.65cqw, 1.62rem);
  }

  .why-card--world .why-card__copy p {
    font-size: clamp(0.78rem, 1.17vw, 1.04rem);
    font-size: clamp(0.68rem, 1.5cqw, 0.92rem);
    line-height: 1.13;
  }
}

.why-journey {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  margin: clamp(0.85rem, 2vw, 1.35rem) auto 0;
  padding-bottom: clamp(0.4rem, 1.5vw, 0.9rem);
  text-align: center;
}

.why-journey p {
  width: min(calc(100% - 2rem), 46rem);
  margin: 0;
  color: #ffec94;
  font-size: clamp(1.25rem, 3vw, 2.35rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: break-word;
  text-shadow:
    0 2px 1px #220400,
    0 0 12px rgba(0, 0, 0, 0.85);
}

.page-why-as .site-footer {
  overflow: visible;
  border-top: 0;
  background: transparent;
  padding-bottom: calc(2.7rem + 115px);
}

.page-why-as .site-footer .footer-inner {
  color: #ffe886;
}

.page-why-as .site-legal {
  color: #ffe886;
  opacity: 0.82;
}

.page-why-as .site-footer::after {
  top: calc(-1.45rem + 115px);
}

@media (max-width: 760px) {
  .page-why-as .nav-icon-link--why-as::after {
    content: none;
    display: none;
  }

  .page-why-as main.site-frame {
    width: min(100%, calc(100% - 0.75rem));
    padding-top: 0.25rem;
  }

  .why-hero {
    width: min(100%, 43rem);
    height: clamp(23.5rem, 119vw, 30rem);
    overflow: hidden;
    border-radius: 0;
  }

  .why-hero > img {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    max-width: none;
    height: 100%;
    transform: translateX(-50%);
  }

  .why-hero__title {
    top: 16%;
    right: 14%;
    bottom: 47.8%;
    left: 18%;
  }

  .why-hero__title h1 {
    font-size: clamp(1.45rem, 8.2vw, 2.7rem);
    font-size: clamp(1.32rem, 7.2cqw, 2.12rem);
  }

  .why-hero__intro {
    top: 53.5%;
    right: 9.5%;
    bottom: 20%;
    left: 9.5%;
  }

  .why-hero__intro h2 {
    margin-bottom: 0.22rem;
    font-size: clamp(0.86rem, 4.55vw, 1.28rem);
    font-size: clamp(0.86rem, 4.55cqw, 1.28rem);
  }

  .why-hero__intro p {
    font-size: clamp(0.52rem, 2.62vw, 0.78rem);
    font-size: clamp(0.52rem, 2.62cqw, 0.78rem);
    line-height: 1.08;
  }

  .why-hero__ribbon {
    top: 82.2%;
    right: 10%;
    bottom: 7.6%;
    left: 10%;
    font-size: clamp(0.95rem, 4.4vw, 1.35rem);
    font-size: clamp(0.95rem, 4.4cqw, 1.35rem);
  }

  .why-reasons {
    grid-template-columns: 1fr;
    gap: 0.38rem;
  }

  .why-card__copy h2 {
    margin-bottom: 0.18rem;
    font-size: clamp(0.92rem, 5.5vw, 1.46rem);
    font-size: clamp(0.86rem, 5.35cqw, 1.46rem);
  }

  .why-card__copy p {
    font-size: clamp(0.52rem, 2.55vw, 0.68rem);
    font-size: clamp(0.5rem, 2.55cqw, 0.68rem);
    line-height: 1.09;
  }

  .why-card--music .why-card__copy {
    top: 16%;
    right: 7%;
    bottom: 51%;
    left: 45%;
  }

  .why-card--learn .why-card__copy {
    top: 24%;
    right: 7%;
    bottom: 50%;
    left: 41%;
  }

  .why-card--story .why-card__copy,
  .why-card--connection .why-card__copy {
    top: 24%;
    right: 45%;
    bottom: 50%;
    left: 7%;
  }

  .why-card--world .why-card__copy {
    top: 10%;
    right: 33%;
    bottom: 32%;
    left: 23.5%;
  }

  .why-card--world {
    height: max(14.5rem, calc((100vw - 0.75rem) / 2));
    overflow: hidden;
  }

  .why-card--world > img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    max-width: none;
    height: 100%;
  }

  .why-card--world .why-card__copy h2 {
    font-size: clamp(0.78rem, 4.2vw, 1.08rem);
    font-size: clamp(0.68rem, 3.9cqw, 1.08rem);
  }

  .why-card--world .why-card__copy p {
    font-size: clamp(0.44rem, 2.18vw, 0.58rem);
    font-size: clamp(0.42rem, 2.18cqw, 0.58rem);
    line-height: 1.08;
  }

  .why-journey {
    margin-top: 0.75rem;
  }

  .why-journey p {
    width: min(calc(100% - 2rem), 21rem);
    font-size: clamp(1rem, 5.8vw, 1.55rem);
  }
}

@media (max-width: 430px) {
  .why-card__copy h2 {
    font-size: clamp(0.78rem, 5.2vw, 1.08rem);
  }

  .why-card__copy p {
    font-size: clamp(0.43rem, 2.65vw, 0.59rem);
  }

  .why-card--story .why-card__copy,
  .why-card--connection .why-card__copy {
    right: 48%;
  }

  .why-card--world .why-card__copy {
    right: 30%;
    left: 28%;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .page-why-as .site-header {
    position: static;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .page-why-as .header-inner {
    display: grid;
    grid-template-columns: minmax(9.6rem, 42%) minmax(14rem, 1fr);
    column-gap: 0.45rem;
    align-items: start;
    min-height: auto;
    padding: 0.6rem 0.45rem 0.7rem;
  }

  .page-why-as .brand {
    justify-self: start;
  }

  .page-why-as .brand img {
    position: static;
    left: auto;
    top: auto;
    width: min(12rem, 40vw);
  }

  .page-why-as .site-nav--icons {
    display: grid;
    justify-self: end;
    width: min(16rem, 48vw);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.18rem 0.36rem;
    align-items: center;
    justify-items: center;
  }

  .page-why-as .site-nav--icons .nav-icon-link {
    width: clamp(4.55rem, 10.2vw, 5.45rem);
    height: clamp(4rem, 9vw, 4.85rem);
  }

  .page-why-as .site-nav--icons .nav-cta {
    --ornate-red-w: 184px;
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 0.48rem;
    background-image: url("assets/shared/buttons/precomposed-red/red-lg-184x35@4x.png");
    font-size: 13px;
  }

  .page-why-as .why-hero {
    width: min(100%, 43rem);
    height: auto;
    overflow: visible;
  }

  .page-why-as .why-hero > img {
    position: static;
    width: 100%;
    height: auto;
    transform: none;
  }

  .page-why-as .why-hero__title {
    top: 21.2%;
    right: 29%;
    bottom: 51.8%;
    left: 29%;
  }

  .page-why-as .why-hero__title h1 {
    font-size: clamp(2.1rem, 5.6vw, 2.65rem);
    font-size: clamp(2.1rem, 6cqw, 2.65rem);
  }

  .page-why-as .why-hero__intro {
    top: 54.5%;
    right: 20.2%;
    bottom: 21.5%;
    left: 20.2%;
  }

  .page-why-as .why-hero__intro h2 {
    font-size: clamp(1.02rem, 2.8vw, 1.38rem);
    font-size: clamp(1.02rem, 3.25cqw, 1.38rem);
  }

  .page-why-as .why-hero__intro p {
    font-size: clamp(0.68rem, 1.55vw, 0.82rem);
    font-size: clamp(0.68rem, 1.48cqw, 0.82rem);
    line-height: 1.11;
  }

  .page-why-as .why-hero__ribbon {
    top: 82%;
    right: 27%;
    bottom: 7.7%;
    left: 27%;
    font-size: clamp(1rem, 3.2vw, 1.45rem);
    font-size: clamp(1rem, 2.72cqw, 1.45rem);
  }
}

/* Create Memories: live session-to-record process strip, rebuilt over a cleaned plaque background. */
.page-memories .strip-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
  text-align: center;
}

.page-memories .strip-heading::before,
.page-memories .strip-heading::after {
  content: "";
  flex: 1 1 14rem;
  max-width: 34rem;
  height: clamp(0.86rem, 1.8vw, 1.18rem);
  background:
    url("assets/shared/dividers/decorative-divider-ornament-right.png") right center / auto 100% no-repeat,
    linear-gradient(90deg, transparent, rgba(141, 82, 21, 0.36) 8%, rgba(174, 111, 33, 0.74) calc(100% - 0.45rem), transparent calc(100% - 0.45rem)) left center / 100% 1px no-repeat;
}

.page-memories .strip-heading::after {
  transform: scaleX(-1);
}

.page-memories .story-process-strip {
  aspect-ratio: 1494 / 485;
  min-height: 0;
  padding: 0;
  overflow: visible;
}

.page-memories .story-process-strip__frame {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.page-memories .story-process-strip__steps {
  position: absolute;
  inset: 21% 6.4% 6.2%;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.75vw, 1.35rem);
  align-items: start;
}

.page-memories .story-process-strip__steps li {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: clamp(3.85rem, 7.2vw, 5.75rem) auto 1fr;
  justify-items: center;
  align-content: start;
  text-align: center;
}

.page-memories .story-process-strip__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: clamp(1.52rem, 2.85vw, 2.32rem);
  right: calc(-1 * clamp(1.05rem, 1.95vw, 1.5rem));
  width: clamp(1.75rem, 3.1vw, 2.48rem);
  height: clamp(0.72rem, 1.4vw, 1rem);
  background: linear-gradient(90deg, #9b5a12, #f4bb47 46%, #8b4e0a);
  clip-path: polygon(0 28%, 66% 28%, 66% 0, 100% 50%, 66% 100%, 66% 72%, 0 72%);
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 3px rgba(255, 225, 115, 0.28));
}

.page-memories .story-process-strip__icon {
  align-self: center;
  width: clamp(4.45rem, 8.1vw, 6.25rem);
  max-height: clamp(4.45rem, 8.1vw, 6.25rem);
  margin: 0 auto;
  object-fit: contain;
}

.page-memories .story-process-strip__steps strong {
  margin-top: clamp(0.18rem, 0.35vw, 0.32rem);
  color: #ffd970;
  font-size: clamp(1.08rem, 2vw, 1.58rem);
  line-height: 0.95;
}

.page-memories .story-process-strip__steps span {
  max-width: 9.7rem;
  margin: clamp(0.28rem, 0.6vw, 0.48rem) auto 0;
  color: #f8e9ad;
  font-size: clamp(0.76rem, 1.28vw, 1rem);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
}

@media (max-width: 640px) {
  .page-memories .strip-heading {
    width: min(100%, calc(100vw - 1.8rem));
    margin-top: 0.55rem;
    text-align: center;
    font-size: clamp(1.62rem, 8vw, 2.15rem);
  }

  .page-memories main.site-frame > h2.strip-heading {
    font-size: 1.7rem;
  }

  .page-memories .strip-heading::before,
  .page-memories .strip-heading::after {
    flex-basis: clamp(4.4rem, 18vw, 6.5rem);
    min-width: clamp(4rem, 16vw, 5.8rem);
  }

  .page-memories .story-process-strip {
    width: min(100%, calc(100vw - 1.05rem));
    aspect-ratio: auto;
    min-height: 34rem;
  }

  .page-memories .story-process-strip__steps {
    inset: 8.5% 9% 8.5%;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-content: center;
  }

  .page-memories .story-process-strip__steps li {
    display: grid;
    grid-template-columns: clamp(3.1rem, 15vw, 3.85rem) minmax(4.3rem, 0.62fr) minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 0.6rem;
    align-items: center;
    justify-items: start;
    text-align: left;
  }

  .page-memories .story-process-strip__steps li:not(:last-child)::after {
    display: none;
  }

  .page-memories .story-process-strip__icon {
    width: clamp(2.65rem, 13vw, 3.45rem);
    max-height: clamp(2.65rem, 13vw, 3.45rem);
    margin: 0;
  }

  .page-memories .story-process-strip__steps strong {
    margin: 0;
    align-self: center;
    font-size: clamp(1rem, 4.6vw, 1.32rem);
    text-align: left;
    transform: translateY(0.55rem);
  }

  .page-memories .story-process-strip__steps span {
    max-width: none;
    margin: 0;
    align-self: center;
    font-size: clamp(0.72rem, 3.1vw, 0.9rem);
    line-height: 1.08;
    text-align: left;
    transform: translateY(0.55rem);
  }

  .page-memories .story-process-strip__steps li:not(:nth-child(3)) strong,
  .page-memories .story-process-strip__steps li:not(:nth-child(3)) span {
    transform: translateY(0.83rem);
  }
}

/* Create Memories keepsake plaques: four consistent framed panels using website-owned art. */
.page-memories .keepsake-built-grid {
  display: grid;
  width: min(100%, 55rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.35rem);
  margin: -0.25rem auto 1.7rem;
}

.page-memories .keepsake-built-plaque {
  --art-left: -4%;
  --art-top: 14%;
  --art-width: 52%;
  --art-height: 62%;
  --copy-left: 53%;
  --copy-right: 8%;
  --copy-top: 22%;
  --button-bottom: 6.2%;
  position: relative;
  min-width: 0;
  aspect-ratio: 1672 / 941;
  overflow: visible;
  isolation: isolate;
  filter: drop-shadow(0 12px 12px rgba(45, 20, 5, 0.18));
}

.page-memories .keepsake-built-plaque__frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.page-memories .keepsake-built-plaque__art {
  position: absolute;
  left: var(--art-left);
  top: var(--art-top);
  z-index: 1;
  width: var(--art-width);
  height: var(--art-height);
  object-fit: contain;
  filter: drop-shadow(0 8px 7px rgba(0, 0, 0, 0.42));
}

.page-memories .keepsake-built-plaque--illustrated {
  --art-left: -9%;
  --art-top: 6%;
  --art-width: 61%;
  --art-height: 70%;
  --copy-top: 21%;
}

.page-memories .keepsake-built-plaque--graphic {
  --art-left: -9%;
  --art-top: 6%;
  --art-width: 61%;
  --art-height: 70%;
  --copy-top: 20%;
}

.page-memories .keepsake-built-plaque--scene .keepsake-built-plaque__art {
  left: -16%;
  top: 23%;
  width: 68%;
  height: 51%;
}

.page-memories .keepsake-built-plaque--reference .keepsake-built-plaque__art {
  left: 5%;
  top: 21%;
  width: 46%;
  height: 50%;
}

.page-memories .keepsake-built-plaque__copy {
  position: absolute;
  left: var(--copy-left);
  right: var(--copy-right);
  top: var(--copy-top);
  z-index: 2;
  color: #f8e9ad;
  text-shadow: 0 2px 2px rgba(18, 5, 0, 0.84);
}

.page-memories .keepsake-built-plaque--reference .keepsake-built-plaque__copy {
  top: 21%;
}

.page-memories .keepsake-built-plaque__copy h3 {
  margin: 0 0 0.25rem;
  color: #ffe68b;
  font-size: clamp(0.84rem, 1.24vw, 1.03rem);
  line-height: 1;
}

.page-memories .keepsake-built-plaque__copy p {
  margin: 0;
  font-size: clamp(0.58rem, 0.76vw, 0.68rem);
  font-weight: 700;
  line-height: 1.07;
}

.page-memories .keepsake-built-plaque .preview-link.button {
  position: absolute;
  left: 50%;
  bottom: var(--button-bottom);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 276px;
  min-width: 276px;
  padding-inline: 0.5rem;
  color: #d0a36d;
  font-size: 11px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .page-memories .keepsake-built-grid {
    width: min(100%, calc(100vw - 1.4rem));
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 0.1rem;
  }

  .page-memories .keepsake-built-plaque {
    --art-left: -2%;
    --art-top: 18%;
    --art-width: 49%;
    --art-height: 54%;
    --copy-left: 53%;
    --copy-right: 5%;
    --copy-top: 24%;
    --button-bottom: 7.5%;
  }

  .page-memories .keepsake-built-plaque--illustrated,
  .page-memories .keepsake-built-plaque--graphic {
    --art-left: -7%;
    --art-top: 13%;
    --art-width: 58%;
    --art-height: 59%;
    --copy-left: 50%;
    --copy-top: 24%;
  }

  .page-memories .keepsake-built-plaque__copy h3 {
    font-size: clamp(0.86rem, 4.05vw, 1.16rem);
  }

  .page-memories .keepsake-built-plaque__copy p {
    font-size: clamp(0.58rem, 2.55vw, 0.76rem);
    line-height: 1.04;
  }

  .page-memories .keepsake-built-plaque--scene .keepsake-built-plaque__art {
    left: -9%;
    top: 26%;
    width: 64%;
    height: 47%;
  }

  .page-memories .keepsake-built-plaque--scene .keepsake-built-plaque__copy {
    left: 56%;
  }

  .page-memories .keepsake-built-plaque--reference .keepsake-built-plaque__copy {
    left: 50%;
    top: 22%;
  }

  .page-memories .keepsake-built-plaque--reference .keepsake-built-plaque__art {
    left: 5%;
    top: 22%;
    width: 41%;
    height: 46%;
  }

  .page-memories .keepsake-built-plaque .preview-link.button {
    width: 276px;
    min-width: 276px;
    max-width: calc(100% - 2rem);
    font-size: 11px;
  }
}

@media (max-width: 340px) {
  .page-memories .keepsake-built-plaque .preview-link.button {
    --ornate-button-w: 236px;
    width: var(--ornate-button-w);
    min-width: var(--ornate-button-w);
    max-width: calc(100% - 1.5rem);
    background-image: url("assets/shared/buttons/precomposed-blue/blue-xl-236x35@4x.png");
    font-size: 10px;
  }
}

/* Create Memories final CTA: tighten the handoff from keepsakes without touching the baked art. */
.page-memories .keepsake-section {
  padding-bottom: clamp(1rem, 2vw, 2rem);
}

.page-memories .story-footer-cta {
  margin-top: clamp(0.15rem, 0.8vw, 0.55rem);
}

.page-memories .story-footer-cta .button-row {
  margin-top: clamp(0.15rem, 0.7vw, 0.45rem);
}

.page-memories .story-footer-cta .art-footer-cta__copy p:not(.eyebrow) {
  width: 75%;
  max-width: 24rem;
  margin-inline: auto;
}

/* Books page follow-up polish: keep comp-specific ornament fixes local. */
.page-books .books-digital-banner__button {
  display: none;
}

@media (min-width: 641px) {
  .page-books .books-feature-strip__content {
    inset: 18% 6.1% 17% 5.4%;
    grid-template-columns: 30.4% 34.7% 34.9%;
  }

  .page-books .books-feature:nth-child(1) {
    transform: translateX(calc(-1.55rem + 30px));
  }

  .page-books .books-feature:nth-child(2) {
    transform: translateX(calc(-1.55rem + 34px));
    padding-left: clamp(0.5rem, 1.55vw, 1.45rem);
    padding-right: clamp(1.8rem, 3vw, 2.85rem);
  }

  .page-books .books-feature:nth-child(3) {
    transform: translateX(-6px);
    padding-left: clamp(2.35rem, 4.15vw, 3.9rem);
  }

  .page-books .card-actions {
    flex-wrap: nowrap;
    gap: 0.28rem;
  }

  .page-books .book-card .card-actions .button.ornate-red--sm,
  .page-books .book-card .card-actions .button.ornate-blue--sm {
    padding-inline: 0.44rem;
    font-size: 10.6px;
  }

  .page-books .books-digital-banner__music {
    left: 0.1%;
    top: 4.1%;
    width: 16.2%;
    opacity: 1;
  }

  .page-books .books-digital-banner__quill {
    right: -23%;
    top: -18%;
    width: 40%;
    opacity: 1;
  }

  .page-books .books-digital-banner__rider {
    z-index: 1;
  }

  .page-books .books-digital-banner {
    overflow: hidden;
  }

  .page-books .books-digital-banner__music,
  .page-books .books-digital-banner__quill {
    filter:
      brightness(1.12)
      saturate(1.12)
      drop-shadow(0 12px 12px rgba(0, 0, 0, 0.38));
  }

  .page-books .books-digital-banner__features article:nth-child(1),
  .page-books .books-digital-banner__features article:nth-child(2) {
    transform: translateX(-1.55rem);
  }

  .page-books .books-footer-cta {
    --books-footer-copy-inset: clamp(3.9rem, 6.1vw, 4.95rem);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "copy action"
      "links links";
    align-content: center;
    align-items: center;
    gap: 0.45rem 1.4rem;
    padding: 6.3% 8.7% 5.4%;
  }

  .page-books .books-footer-cta__copy {
    grid-area: auto;
    position: absolute;
    z-index: 1;
    top: var(--books-footer-copy-inset);
    left: var(--books-footer-copy-inset);
    max-width: min(42rem, 62%);
    transform: translate(80px, 20px);
  }

  .page-books .books-footer-cta__copy h2 {
    margin-bottom: 0.52em;
    font-size: clamp(2.45rem, 3.8vw, 3.2rem);
    line-height: 0.98;
    white-space: nowrap;
  }

  .page-books .books-footer-cta__copy p {
    max-width: 37rem;
    font-size: clamp(0.95rem, 1.28vw, 1.1rem);
    line-height: 1.1;
  }

  .page-books .books-footer-cta__action {
    grid-area: auto;
    position: absolute;
    z-index: 1;
    top: 40.5%;
    right: clamp(4.6rem, 8.35%, 6.05rem);
    display: grid;
    transform: translateY(-50%);
  }

  .page-books .books-footer-cta__portal {
    width: clamp(8rem, 11.3vw, 9.4rem);
  }

  .page-books .books-footer-cta__links {
    grid-area: auto;
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 31.2%;
    width: min(43rem, calc(100% - 14rem));
    transform: translateX(-50%);
    justify-content: center;
  }
}

@media (min-width: 901px) {
  .page-books .hero-copy {
    transform: translateY(0.42rem);
  }

  .page-books .books-hero-instruments-panel img {
    width: min(100%, 39rem);
    transform: translateY(-3.65rem);
  }

  .page-books .hero .button-row {
    display: flex;
    margin-top: 1rem;
    gap: 0.7rem;
    flex-wrap: nowrap;
  }

  .page-books .books-digital-banner__quill {
    right: calc(-23% + 60px + max(0px, 627px - 50vw));
    top: calc(-18% + 50px);
    clip-path: inset(-1rem calc(57.5% - 130px) -1rem -1rem);
  }

  .page-books .books-digital-banner {
    overflow: visible;
  }

  .page-books .books-footer-cta {
    --books-footer-copy-inset: clamp(4.2rem, 6.1vw, 5.35rem);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.38rem 1.5rem;
    padding: 6.1% 8.1% 5.1%;
  }

  .page-books .books-footer-cta__copy h2 {
    margin-bottom: 0.52em;
    font-size: clamp(2.45rem, 3.5vw, 3.05rem);
    line-height: 0.98;
    white-space: nowrap;
  }

  .page-books .books-footer-cta__copy p {
    max-width: 39rem;
    font-size: clamp(0.95rem, 1.18vw, 1.06rem);
    line-height: 1.08;
  }

  .page-books .books-footer-cta__action {
    align-self: center;
  }
}

@media (min-width: 901px) and (max-width: 1040px) {
  .page-books .books-digital-banner {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .page-books .books-hero-instruments-panel img {
    width: min(100%, 18.4rem);
    margin-top: -0.45rem;
  }

  .page-books .hero .button-row {
    display: grid;
    justify-items: center;
    gap: 0.32rem;
    margin-top: 0.75rem;
  }

  .page-books .hero .button.ornate-red--xl,
  .page-books .hero .button.ornate-blue--xl {
    width: min(276px, calc(100vw - 3rem));
    min-width: 0;
    font-size: 10.4px;
  }

  .page-books .books-digital-banner {
    min-height: 13.8rem;
    margin: 1rem auto 1.1rem;
    padding: 1.35rem 1.55rem 1.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 12px 13px rgba(45, 20, 5, 0.2));
  }

  .page-books .books-digital-banner__frame {
    display: block !important;
    object-fit: fill;
  }

  .page-books .books-digital-banner__music,
  .page-books .books-digital-banner__quill,
  .page-books .books-digital-banner__features {
    display: none;
  }

  .page-books .books-digital-banner__copy {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 11.1rem;
    align-content: center;
    justify-items: center;
    padding: 0.35rem 0.25rem 0;
    border-bottom: 0;
    text-align: center;
  }

  .page-books .books-digital-banner__copy h2 {
    margin-bottom: 0.42rem;
    font-size: clamp(1.22rem, 6vw, 1.52rem);
    line-height: 0.98;
  }

  .page-books .books-digital-banner__copy p {
    max-width: 19rem;
    font-size: clamp(0.72rem, 3.45vw, 0.86rem);
    line-height: 1.16;
  }

  .page-books .books-digital-banner__button {
    display: inline-grid;
    margin-top: 0.72rem;
  }

  .page-books .books-footer-cta {
    min-height: 12.8rem;
    margin: 1.1rem auto 1.55rem;
    padding: 1.58rem 1.45rem 1.5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 12px 13px rgba(45, 20, 5, 0.2));
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "action"
      "links";
    justify-items: center;
    text-align: center;
  }

  .page-books .books-footer-cta__frame {
    display: block !important;
    object-fit: fill;
  }

  .page-books .books-footer-cta__copy h2 {
    font-size: clamp(1.52rem, 7.5vw, 1.92rem);
  }

  .page-books .books-footer-cta__copy p {
    font-size: clamp(0.72rem, 3.55vw, 0.88rem);
    line-height: 1.16;
  }

  .page-books .books-footer-cta__action {
    grid-area: action;
    display: grid;
    justify-items: center;
    margin-top: 0.12rem;
  }

  .page-books .books-footer-cta__portal {
    width: clamp(5.7rem, 32vw, 7.1rem);
  }

  .page-books .books-footer-cta__links {
    display: none;
  }

  .page-books .books-footer-cta__links a:not(:last-child)::after {
    content: "";
    margin-left: 0;
  }
}

/* Books tablet transition polish: keep the 640px mobile and 901px desktop layouts untouched. */
@media (min-width: 641px) and (max-width: 900px) {
  .page-books .hero h1 {
    max-width: 13.4ch;
    font-size: clamp(3.05rem, 7.1vw, 4.2rem);
  }

  .page-books .hero h1 span {
    white-space: nowrap;
  }

  .page-books .hero-copy > p:not(.eyebrow):not(.note) {
    max-width: 31rem;
    font-size: clamp(1rem, 1.9vw, 1.14rem);
    line-height: 1.28;
  }

  .page-books .hero .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem 0.55rem;
    margin-top: 0.75rem;
  }

  .page-books .hero .button.ornate-red--xl,
  .page-books .hero .button.ornate-blue--xl {
    width: 276px;
    min-width: 0;
    max-width: 100%;
    font-size: 10.4px;
  }
}

@media (min-width: 641px) and (max-width: 760px) {
  .page-books .hero {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.25rem;
    padding: 1.45rem 1.1rem 1.1rem;
  }

  .page-books .hero h1 {
    max-width: 12.4ch;
    font-size: clamp(2.9rem, 8.9vw, 4rem);
  }

  .page-books .hero-copy {
    max-width: 38rem;
  }

  .page-books .hero .button-row {
    justify-content: center;
    max-width: 36rem;
  }

  .page-books .books-hero-instruments-panel img {
    width: min(100%, 22.5rem);
    margin-top: 0.1rem;
  }

  .page-books .books-feature-strip {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .page-books .hero {
    grid-template-columns: minmax(0, 0.96fr) minmax(15.5rem, 0.74fr);
    gap: clamp(1rem, 3.2vw, 2rem);
    padding-inline: clamp(1.45rem, 3.6vw, 2.4rem);
  }

  .page-books .hero .button-row {
    justify-content: flex-start;
  }

  .page-books .books-hero-instruments-panel img {
    width: min(100%, clamp(19rem, 39vw, 23rem));
  }
}

@media (min-width: 641px) and (max-width: 820px) {
  .page-books .books-footer-cta {
    min-height: clamp(15.6rem, 37vw, 19rem);
  }

  .page-books .books-footer-cta__copy {
    top: 22%;
    left: clamp(2.3rem, 7.5vw, 4rem);
    max-width: calc(100% - clamp(12rem, 28vw, 15rem) - clamp(3.1rem, 8vw, 4.4rem));
    transform: none;
  }

  .page-books .books-footer-cta__copy h2 {
    margin-bottom: 0.5em;
    font-size: clamp(2.05rem, 5.4vw, 2.7rem);
  }

  .page-books .books-footer-cta__copy p {
    max-width: 100%;
    font-size: clamp(0.78rem, 2vw, 0.94rem);
    line-height: 1.09;
  }

  .page-books .books-footer-cta__action {
    top: 50%;
    right: clamp(2.2rem, 7vw, 3.8rem);
  }

  .page-books .books-footer-cta__portal {
    width: clamp(6.35rem, 17vw, 8rem);
  }

  .page-books .books-footer-cta__links {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-memories .keepsake-section {
    padding-bottom: 0.8rem;
  }

  .page-memories .story-footer-cta {
    margin-top: 0.3rem;
    padding-block: 1.2rem;
    row-gap: 0.62rem;
  }

  .page-memories .story-footer-cta .button-row {
    display: flex !important;
    width: max-content;
    max-width: 100%;
    grid-template-columns: none;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.35rem;
  }

  .page-memories .story-footer-cta .button.ornate-gold--lg {
    --ornate-button-w: 150px;
    width: var(--ornate-button-w);
    min-width: var(--ornate-button-w);
    background-image: url("assets/shared/buttons/precomposed-gold/gold-md-150x35@4x.png");
    padding-inline: 0.54rem;
    font-size: 10.4px;
  }

  .page-memories .story-footer-cta .button.ornate-blue--xl {
    --ornate-button-w: 184px;
    width: var(--ornate-button-w);
    min-width: var(--ornate-button-w);
    background-image: url("assets/shared/buttons/precomposed-blue/blue-lg-184x35@4x.png");
    padding-inline: 0.54rem;
    font-size: 10.3px;
  }
}

/* Infinite Skills page: pattern v2 trial for page rails, mapped panels, feature formulas, and skill cards. */
body.page-infinite-skills {
  --infinite-red: #681207;
  --infinite-brown: #2a0904;
  --infinite-gold: #d7a947;
  --infinite-gold-soft: #f0d28a;
  --infinite-panel: rgba(255, 244, 209, 0.72);
  --infinite-panel-strong: rgba(255, 235, 177, 0.86);
  --as-page-frame-outer-red: #460805;
  --as-page-frame-dead-zone: clamp(0.62rem, 1.05vw, 0.9rem);
  --as-page-frame-rail-size: clamp(0.24rem, 0.46vw, 0.36rem);
  --as-page-frame-bottom-rail-size: max(1px, calc(var(--as-page-frame-rail-size) - 1px));
  --as-page-frame-rail-half-size: clamp(0.12rem, 0.23vw, 0.18rem);
  --as-page-frame-rail-center: var(--as-page-frame-dead-zone);
  --as-page-frame-rail-inset: calc(var(--as-page-frame-rail-center) - var(--as-page-frame-rail-half-size));
  --as-page-frame-gem-w: clamp(5.2rem, 8vw, 7rem);
  --as-page-frame-gem-h: clamp(3.52rem, 5.4vw, 4.73rem);
  --as-page-frame-gem-half-h: clamp(1.76rem, 2.7vw, 2.365rem);
  --as-page-frame-corner-size: clamp(4.4rem, 7.5vw, 5.9rem);
  --as-page-frame-corner-rail-anchor: clamp(0.6rem, 1vw, 0.81rem);
  --as-page-frame-corner-offset: calc(var(--as-page-frame-rail-center) - var(--as-page-frame-corner-rail-anchor));
  --as-page-frame-corner-drawn-offset: calc(var(--as-page-frame-corner-offset) - 1px);
  --as-page-frame-corner-fill-cut: clamp(3.1rem, 4.8vw, 3.8rem);
  --as-page-frame-corner-fill-inner: clamp(0.72rem, 1.25vw, 1rem);
  --as-page-frame-rail-clear: calc(var(--as-page-frame-corner-size) * 0.84);
  --as-page-frame-header-drop: clamp(0.32rem, 0.55vw, 0.52rem);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 8%, rgba(129, 21, 10, 0.5), transparent 24rem),
    radial-gradient(circle at 82% 28%, rgba(92, 8, 5, 0.58), transparent 28rem),
    linear-gradient(180deg, rgba(104, 18, 7, 0.98), rgba(70, 8, 5, 0.99)),
    var(--as-page-frame-outer-red);
}

.page-infinite-skills .page-frame-fill {
  position: absolute;
  inset: var(--as-page-frame-dead-zone);
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(
    var(--as-page-frame-corner-fill-cut) 0,
    calc(100% - var(--as-page-frame-corner-fill-cut)) 0,
    calc(100% - var(--as-page-frame-corner-fill-cut)) var(--as-page-frame-corner-fill-inner),
    calc(100% - var(--as-page-frame-corner-fill-inner)) var(--as-page-frame-corner-fill-cut),
    100% var(--as-page-frame-corner-fill-cut),
    100% calc(100% - var(--as-page-frame-corner-fill-cut)),
    calc(100% - var(--as-page-frame-corner-fill-inner)) calc(100% - var(--as-page-frame-corner-fill-cut)),
    calc(100% - var(--as-page-frame-corner-fill-cut)) calc(100% - var(--as-page-frame-corner-fill-inner)),
    calc(100% - var(--as-page-frame-corner-fill-cut)) 100%,
    var(--as-page-frame-corner-fill-cut) 100%,
    var(--as-page-frame-corner-fill-cut) calc(100% - var(--as-page-frame-corner-fill-inner)),
    var(--as-page-frame-corner-fill-inner) calc(100% - var(--as-page-frame-corner-fill-cut)),
    0 calc(100% - var(--as-page-frame-corner-fill-cut)),
    0 var(--as-page-frame-corner-fill-cut),
    var(--as-page-frame-corner-fill-inner) var(--as-page-frame-corner-fill-cut),
    var(--as-page-frame-corner-fill-cut) var(--as-page-frame-corner-fill-inner)
  );
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 244, 209, 0.32), transparent 24rem),
    radial-gradient(circle at 82% 22%, rgba(105, 13, 8, 0.08), transparent 30rem),
    var(--as-parchment-background);
}

.page-infinite-skills main.site-frame,
.page-infinite-skills .site-footer {
  position: relative;
  z-index: 1;
  overflow: visible;
  border-top: 0;
}

.page-infinite-skills .site-header {
  position: relative;
  z-index: 80;
}

.page-infinite-skills .header-inner {
  z-index: 80;
  transform: translateY(var(--as-page-frame-header-drop));
}

@media (min-width: 901px) {
  body.page-infinite-skills {
    --as-page-frame-header-drop: clamp(0.62rem, 0.9vw, 0.86rem);
  }

  .page-infinite-skills .brand {
    position: absolute;
    left: 0.78rem;
    top: 0.45rem;
    z-index: 82;
    display: block;
    width: 10.65rem;
    height: 11.65rem;
  }

  .page-infinite-skills .brand img {
    left: 0;
    top: 0;
  }

  .page-infinite-skills .site-nav--icons {
    position: relative;
    z-index: 81;
    margin-left: auto;
  }
}

body.page-infinite-skills::before {
  content: "";
  position: absolute;
  inset: var(--as-page-frame-rail-inset);
  z-index: 60;
  pointer-events: none;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 236, 140, 0.78) 0 calc(18% + 1px), rgba(99, 27, 10, 0.78) calc(19% + 1px) 47%, rgba(211, 151, 43, 0.82) 48% 72%, rgba(255, 232, 126, 0.5) calc(73% + 1px) 100%) top center / calc(100% - var(--as-page-frame-rail-clear) - var(--as-page-frame-rail-clear)) var(--as-page-frame-rail-size) no-repeat,
    linear-gradient(0deg, rgba(255, 236, 140, 0.78) 0 18%, rgba(99, 27, 10, 0.78) 19% 47%, rgba(211, 151, 43, 0.82) 48% 72%, rgba(255, 232, 126, 0.5) 73% 100%) bottom center / calc(100% - var(--as-page-frame-rail-clear) - var(--as-page-frame-rail-clear)) var(--as-page-frame-bottom-rail-size) no-repeat,
    linear-gradient(90deg, rgba(255, 236, 140, 0.78) 0 18%, rgba(99, 27, 10, 0.78) 19% 47%, rgba(211, 151, 43, 0.82) 48% 72%, rgba(255, 232, 126, 0.5) 73% 100%) left center / var(--as-page-frame-rail-size) calc(100% - var(--as-page-frame-rail-clear) - var(--as-page-frame-rail-clear)) no-repeat,
    linear-gradient(270deg, rgba(255, 236, 140, 0.78) 0 18%, rgba(99, 27, 10, 0.78) 19% 47%, rgba(211, 151, 43, 0.82) 48% 72%, rgba(255, 232, 126, 0.5) 73% 100%) right center / var(--as-page-frame-rail-size) calc(100% - var(--as-page-frame-rail-clear) - var(--as-page-frame-rail-clear)) no-repeat;
  box-shadow: 0 0 0 0.2rem rgba(55, 8, 7, 0.08);
}

body.page-infinite-skills::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 61;
  pointer-events: none;
  background:
    url("assets/shared/ornaments/top-center-gem-transparent.png") center top calc(var(--as-page-frame-rail-center) - var(--as-page-frame-gem-half-h)) / var(--as-page-frame-gem-w) var(--as-page-frame-gem-h) no-repeat,
    url("assets/shared/ornaments/footer-center-gem-transparent.png") center bottom calc(var(--as-page-frame-rail-center) - var(--as-page-frame-gem-half-h)) / var(--as-page-frame-gem-w) var(--as-page-frame-gem-h) no-repeat,
    url("assets/shared/ornaments/page-corner-top-left-transparent.png") left var(--as-page-frame-corner-drawn-offset) top var(--as-page-frame-corner-drawn-offset) / var(--as-page-frame-corner-size) auto no-repeat,
    url("assets/shared/ornaments/page-corner-top-right-transparent.png") right var(--as-page-frame-corner-drawn-offset) top var(--as-page-frame-corner-drawn-offset) / var(--as-page-frame-corner-size) auto no-repeat,
    url("assets/shared/ornaments/page-corner-bottom-left-transparent.png") left var(--as-page-frame-corner-drawn-offset) bottom var(--as-page-frame-corner-drawn-offset) / var(--as-page-frame-corner-size) auto no-repeat,
    url("assets/shared/ornaments/page-corner-bottom-right-transparent.png") right var(--as-page-frame-corner-drawn-offset) bottom var(--as-page-frame-corner-drawn-offset) / var(--as-page-frame-corner-size) auto no-repeat;
}

.page-infinite-skills .site-footer::after {
  content: none;
  display: none;
}

.page-infinite-skills main.site-frame {
  position: relative;
  width: min(var(--max), calc(100% - 0.75rem));
  padding: 0.75rem 0.9rem 2.3rem;
  background: none;
  border: 0;
  box-shadow: none;
}

.page-infinite-skills main.site-frame::before,
.page-infinite-skills main.site-frame::after {
  content: none;
  display: none;
}

.page-infinite-skills .ornate-red,
.page-infinite-skills .ornate-blue {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  min-height: 35px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.page-infinite-skills .ornate-red {
  color: var(--as-red-button-text);
  text-shadow: 0 1px 1px rgba(34, 9, 2, 0.72);
}

.page-infinite-skills .ornate-blue {
  color: #fff6d9;
  text-shadow: 0 1px 1px rgba(4, 13, 22, 0.82);
}

.page-infinite-skills .ornate-red::before,
.page-infinite-skills .ornate-red::after,
.page-infinite-skills .ornate-blue::before,
.page-infinite-skills .ornate-blue::after {
  content: none;
  display: none;
}

.page-infinite-skills .ornate-red--md {
  width: 150px;
  min-width: 150px;
  background-image: url("assets/shared/buttons/precomposed-red/red-md-150x35@4x.png");
  font-size: 12px;
}

.page-infinite-skills .ornate-red--xl {
  width: 236px;
  min-width: 236px;
  background-image: url("assets/shared/buttons/precomposed-red/red-xl-236x35@4x.png");
}

.page-infinite-skills .ornate-blue--xl {
  width: 236px;
  min-width: 236px;
  background-image: url("assets/shared/buttons/precomposed-blue/blue-xl-236x35@4x.png");
}

/* Pattern: Framed Art Hero. */
.page-infinite-skills .framed-art-hero {
  --framed-art-hero-art-shift: clamp(3rem, 5.9vw, 75px);
  --framed-art-hero-art-fade: clamp(18rem, 31vw, 24rem);
  --framed-art-hero-corner-w: clamp(2.35rem, 4.15vw, 3.35rem);
  --framed-art-hero-corner-h: clamp(2.06rem, 3.63vw, 2.94rem);
  --framed-art-hero-corner-cover-w: calc(var(--framed-art-hero-corner-w) * 0.62);
  --framed-art-hero-corner-cover-h: calc(var(--framed-art-hero-corner-h) * 0.62);
  --framed-art-hero-rail-x: clamp(0.22rem, 0.42vw, 0.34rem);
  --framed-art-hero-rail-y: clamp(0.22rem, 0.42vw, 0.34rem);
  --framed-art-hero-join-overlap: clamp(0.56rem, 1vw, 0.82rem);
  position: relative;
  display: block;
  min-height: 21.4rem;
  margin: 5.1rem 0 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-infinite-skills .framed-art-hero__frame,
.page-infinite-skills .framed-art-hero__part {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-infinite-skills .framed-art-hero__frame {
  z-index: 5;
  opacity: 0.86;
  filter: drop-shadow(0 0.08rem 0.08rem rgba(48, 15, 3, 0.16));
}

.page-infinite-skills .framed-art-hero__frame::before,
.page-infinite-skills .framed-art-hero__frame::after {
  content: "";
  position: absolute;
  right: 0;
  z-index: 1;
  width: var(--framed-art-hero-corner-cover-w);
  height: var(--framed-art-hero-corner-cover-h);
  pointer-events: none;
  background: rgba(246, 228, 184, 0.98);
}

.page-infinite-skills .framed-art-hero__frame::before {
  top: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.page-infinite-skills .framed-art-hero__frame::after {
  bottom: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.page-infinite-skills .framed-art-hero__part {
  z-index: 2;
}

.page-infinite-skills .framed-art-hero__part--top {
  right: calc(var(--framed-art-hero-corner-w) - var(--framed-art-hero-join-overlap));
  bottom: auto;
  left: calc(var(--framed-art-hero-corner-w) - var(--framed-art-hero-join-overlap));
  height: var(--framed-art-hero-rail-x);
  background: url("assets/pages/home/panels/depth-mode/live-frame-v12/rail-horizontal.png") left top / auto 100% repeat-x;
}

.page-infinite-skills .framed-art-hero__part--bottom {
  top: auto;
  right: calc(var(--framed-art-hero-corner-w) - var(--framed-art-hero-join-overlap));
  left: calc(var(--framed-art-hero-corner-w) - var(--framed-art-hero-join-overlap));
  height: var(--framed-art-hero-rail-x);
  background: url("assets/pages/home/panels/depth-mode/live-frame-v12/rail-horizontal.png") left bottom / auto 100% repeat-x;
  transform: scaleY(-1);
}

.page-infinite-skills .framed-art-hero__part--left {
  top: calc(var(--framed-art-hero-corner-h) - var(--framed-art-hero-join-overlap));
  right: auto;
  bottom: calc(var(--framed-art-hero-corner-h) - var(--framed-art-hero-join-overlap));
  width: var(--framed-art-hero-rail-y);
  background: url("assets/pages/home/panels/depth-mode/live-frame-v12/rail-vertical-left.png") left top / 100% auto repeat-y;
}

.page-infinite-skills .framed-art-hero__part--right {
  top: calc(var(--framed-art-hero-corner-h) - var(--framed-art-hero-join-overlap));
  bottom: calc(var(--framed-art-hero-corner-h) - var(--framed-art-hero-join-overlap));
  left: auto;
  width: var(--framed-art-hero-rail-y);
  background: url("assets/pages/home/panels/depth-mode/live-frame-v12/rail-vertical-right.png") left top / 100% auto repeat-y;
}

.page-infinite-skills .framed-art-hero__part--corner-tl,
.page-infinite-skills .framed-art-hero__part--corner-tr,
.page-infinite-skills .framed-art-hero__part--corner-bl,
.page-infinite-skills .framed-art-hero__part--corner-br {
  width: var(--framed-art-hero-corner-w);
  height: var(--framed-art-hero-corner-h);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.page-infinite-skills .framed-art-hero__part--corner-tl {
  right: auto;
  bottom: auto;
  background-image: url("assets/pages/home/panels/depth-mode/live-frame-v12/corner-top-left.png");
}

.page-infinite-skills .framed-art-hero__part--corner-tr {
  bottom: auto;
  left: auto;
  background-image: url("assets/pages/home/panels/depth-mode/live-frame-v12/corner-top-right.png");
}

.page-infinite-skills .framed-art-hero__part--corner-bl {
  top: auto;
  right: auto;
  background-image: url("assets/pages/home/panels/depth-mode/live-frame-v12/corner-bottom-left.png");
}

.page-infinite-skills .framed-art-hero__part--corner-br {
  top: auto;
  left: auto;
  background-image: url("assets/pages/home/panels/depth-mode/live-frame-v12/corner-bottom-right.png");
}

.page-infinite-skills .infinite-hero__copy {
  position: relative;
  z-index: 3;
  width: min(38rem, 67%);
  max-width: 38rem;
  padding: 1.85rem 0 1.75rem 2rem;
}

.page-infinite-skills .infinite-hero h1 {
  margin: 0 0 0.55rem;
  color: #64130b;
  font-size: 3.85rem;
  line-height: 0.96;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 244, 198, 0.88);
}

.page-infinite-skills .infinite-hero__claim {
  margin: 0 0 0.6rem;
  color: #8a5619;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.1;
}

.page-infinite-skills .infinite-hero p:not(.infinite-hero__claim):not(.note) {
  max-width: 25rem;
  margin-bottom: 1rem;
  color: #24110a;
  font-size: 0.93rem;
  line-height: 1.32;
}

.page-infinite-skills .infinite-hero .button-row {
  gap: 0.8rem;
  margin: 0 0 0.72rem;
}

.page-infinite-skills .infinite-hero .note {
  margin: 0;
  color: rgba(80, 39, 19, 0.92);
  font-size: 1.03rem;
  font-style: italic;
  line-height: 1.25;
}

.page-infinite-skills .skillstorm-art {
  position: absolute;
  inset: 0 calc(-1 * var(--framed-art-hero-art-shift)) 0 calc(16% + var(--framed-art-hero-art-shift));
  margin: 0;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0.08) calc(var(--framed-art-hero-art-fade) * 0.18),
    rgba(0, 0, 0, 0.38) calc(var(--framed-art-hero-art-fade) * 0.42),
    rgba(0, 0, 0, 0.76) calc(var(--framed-art-hero-art-fade) * 0.68),
    #000 var(--framed-art-hero-art-fade)
  );
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0.08) calc(var(--framed-art-hero-art-fade) * 0.18),
    rgba(0, 0, 0, 0.38) calc(var(--framed-art-hero-art-fade) * 0.42),
    rgba(0, 0, 0, 0.76) calc(var(--framed-art-hero-art-fade) * 0.68),
    #000 var(--framed-art-hero-art-fade)
  );
}

.page-infinite-skills .skillstorm-art::before {
  content: none;
  display: none;
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 43%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 244, 209, 0.98), rgba(255, 244, 209, 0.86) 32%, rgba(255, 244, 209, 0));
}

.page-infinite-skills .skillstorm-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.page-infinite-skills .infinite-feature-strip {
  position: relative;
  margin: 0.72rem 0 0.45rem;
  padding: 0.72rem 2.55rem;
  color: #f8df90;
  isolation: isolate;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page-infinite-skills .infinite-feature-strip::before {
  content: "";
  position: absolute;
  inset: -0.22rem -0.52rem;
  z-index: 3;
  background:
    url("assets/pages/infinite-skills/frames/feature-strip-endcap-left.png") left center / auto calc(100% + 0.26rem) no-repeat,
    url("assets/pages/infinite-skills/frames/feature-strip-endcap-right.png") right center / auto calc(100% + 0.26rem) no-repeat,
    linear-gradient(90deg, transparent, rgba(74, 41, 5, 0.7) 2%, rgba(145, 97, 26, 0.82) 6%, rgba(210, 158, 48, 0.86) 11%, rgba(255, 219, 88, 0.9) 17%, rgba(122, 69, 18, 0.86) 50%, rgba(255, 219, 88, 0.9) 83%, rgba(210, 158, 48, 0.86) 89%, rgba(145, 97, 26, 0.82) 94%, rgba(74, 41, 5, 0.7) 98%, transparent) center top 0.3rem / calc(100% - 5.65rem) 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(56, 28, 3, 0.72) 2%, rgba(100, 61, 14, 0.7) 7%, rgba(194, 139, 39, 0.66) 12%, rgba(246, 188, 54, 0.66) 17%, rgba(69, 28, 3, 0.66) 50%, rgba(246, 188, 54, 0.66) 83%, rgba(194, 139, 39, 0.66) 88%, rgba(100, 61, 14, 0.7) 93%, rgba(56, 28, 3, 0.72) 98%, transparent) center top 0.48rem / calc(100% - 5.65rem) 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(74, 41, 5, 0.72) 2%, rgba(145, 97, 26, 0.82) 6%, rgba(210, 158, 48, 0.82) 11%, rgba(255, 219, 88, 0.86) 17%, rgba(122, 69, 18, 0.82) 50%, rgba(255, 219, 88, 0.86) 83%, rgba(210, 158, 48, 0.82) 89%, rgba(145, 97, 26, 0.82) 94%, rgba(74, 41, 5, 0.72) 98%, transparent) center bottom 0.3rem / calc(100% - 5.65rem) 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(56, 28, 3, 0.72) 2%, rgba(100, 61, 14, 0.68) 7%, rgba(194, 139, 39, 0.6) 12%, rgba(246, 188, 54, 0.62) 17%, rgba(69, 28, 3, 0.66) 50%, rgba(246, 188, 54, 0.62) 83%, rgba(194, 139, 39, 0.6) 88%, rgba(100, 61, 14, 0.68) 93%, rgba(56, 28, 3, 0.72) 98%, transparent) center bottom 0.48rem / calc(100% - 5.65rem) 1px no-repeat;
  pointer-events: none;
}

.page-infinite-skills .infinite-feature-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 2, 1, 0.92), rgba(72, 14, 6, 0.98) 18%, rgba(37, 6, 3, 0.98) 84%, rgba(17, 2, 1, 0.94)),
    #2a0703;
  clip-path: polygon(1.55rem 0, calc(100% - 1.55rem) 0, 100% 50%, calc(100% - 1.55rem) 100%, 1.55rem 100%, 0 50%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 219, 100, 0.22),
    inset 0 0 1.6rem rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 221, 103, 0.18),
    inset 0 -1px 0 rgba(255, 221, 103, 0.16),
    0 0.55rem 1.1rem rgba(44, 9, 3, 0.22);
}

.page-infinite-skills .infinite-feature-strip__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.page-infinite-skills .infinite-feature-strip article {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  align-items: center;
  min-height: 4.35rem;
  gap: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-right: 1px solid rgba(214, 163, 58, 0.52);
  box-shadow: inset -1px 0 0 rgba(62, 11, 5, 0.82);
}

.page-infinite-skills .infinite-feature-strip article:last-child {
  border-right: 0;
  box-shadow: none;
}

.page-infinite-skills .infinite-feature-strip img {
  width: 3.1rem;
  height: 2.7rem;
  object-fit: contain;
  border-radius: 0.25rem;
  filter: drop-shadow(0 0 0.5rem rgba(255, 207, 83, 0.45));
}

.page-infinite-skills .infinite-feature-strip h2 {
  margin: 0 0 0.12rem;
  color: #ffd86c;
  font-size: 0.82rem;
  line-height: 1.12;
}

.page-infinite-skills .infinite-feature-strip p {
  margin: 0;
  color: #f8e7b3;
  font-size: 0.69rem;
  line-height: 1.16;
}

.page-infinite-skills .as-section {
  margin: clamp(0.85rem, 1.65vw, 1.35rem) 0 0;
  padding: 0;
}

.page-infinite-skills .ornamented-heading {
  position: relative;
  margin: 0.45rem auto 0.55rem;
  max-width: 61rem;
  text-align: center;
}

.page-infinite-skills .ornamented-heading h2 {
  margin: 0;
  color: #6a160d;
  font-size: 2rem;
  line-height: 1.08;
}

.page-infinite-skills .ornamented-heading h2::before,
.page-infinite-skills .ornamented-heading h2::after {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1.25rem;
  background: url("assets/shared/ornaments/gold-musical-notes-transparent.png") center / contain no-repeat;
  vertical-align: -0.08em;
}

.page-infinite-skills .ornamented-heading h2::before {
  margin-right: 0.4rem;
}

.page-infinite-skills .ornamented-heading h2::after {
  margin-left: 0.4rem;
}

.page-infinite-skills .ornamented-heading p {
  margin: 0.08rem auto 0;
  max-width: 53rem;
  color: rgba(72, 44, 22, 0.82);
  font-size: 0.9rem;
  line-height: 1.26;
}

.page-infinite-skills .ornamented-heading--compact {
  margin-top: 0.62rem;
  margin-bottom: 0.32rem;
}

.page-infinite-skills .skill-explainer-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 1.05rem;
}

.page-infinite-skills .mapped-panel {
  position: relative;
  min-height: 12.6rem;
  isolation: isolate;
  overflow: visible;
  background:
    linear-gradient(rgba(255, 247, 221, 0.76), rgba(255, 239, 190, 0.72)),
    var(--as-parchment-surface) center / 520px 520px repeat,
    #f3dfb0;
  border: 0;
  border-radius: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 227, 0.82),
    inset 0 0 1.2rem rgba(141, 86, 23, 0.14);
}

.page-infinite-skills .mapped-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  border: 0;
  background:
    linear-gradient(90deg, transparent, rgba(119, 72, 22, 0.56) 8%, rgba(246, 219, 135, 0.7) 50%, rgba(119, 72, 22, 0.56) 92%, transparent) center top 0.34rem / calc(100% - 2.65rem) 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(119, 72, 22, 0.52) 8%, rgba(246, 219, 135, 0.62) 50%, rgba(119, 72, 22, 0.52) 92%, transparent) center bottom 0.34rem / calc(100% - 2.65rem) 2px no-repeat,
    linear-gradient(180deg, transparent, rgba(119, 72, 22, 0.46) 10%, rgba(246, 219, 135, 0.56) 50%, rgba(119, 72, 22, 0.46) 90%, transparent) left 0.34rem center / 2px calc(100% - 2.65rem) no-repeat,
    linear-gradient(180deg, transparent, rgba(119, 72, 22, 0.46) 10%, rgba(246, 219, 135, 0.56) 50%, rgba(119, 72, 22, 0.46) 90%, transparent) right 0.34rem center / 2px calc(100% - 2.65rem) no-repeat,
    url("assets/pages/infinite-skills/frames/mapped-panel-frame.png") center / 100% 100% no-repeat;
  filter: saturate(1.08) contrast(1.08);
  pointer-events: none;
}

.page-infinite-skills .mapped-panel::after {
  content: "";
  position: absolute;
  top: var(--mapped-panel-art-top, auto);
  right: var(--mapped-panel-art-right, 0.8rem);
  bottom: var(--mapped-panel-art-bottom, 0.55rem);
  left: var(--mapped-panel-art-left, auto);
  z-index: 1;
  width: var(--mapped-panel-art-width, 5.5rem);
  height: var(--mapped-panel-art-height, 4.8rem);
  border: 0;
  opacity: var(--mapped-panel-art-opacity, 0.28);
  background-image: var(--mapped-panel-art-image, url("assets/shared/ornaments/rainbow-musical-flourish-transparent.png"));
  background-position: var(--mapped-panel-art-position, center);
  background-size: contain;
  background-repeat: no-repeat;
}

.page-infinite-skills .mapped-panel__slot {
  position: absolute;
  z-index: 3;
}

.page-infinite-skills .mapped-panel__slot--title {
  top: var(--mapped-panel-title-top, 0.95rem);
  right: var(--mapped-panel-title-right, 1.55rem);
  left: var(--mapped-panel-title-left, 1.75rem);
  width: var(--mapped-panel-title-width, auto);
  height: var(--mapped-panel-title-height, auto);
}

.page-infinite-skills .mapped-panel__slot--body {
  top: var(--mapped-panel-body-top, 3.35rem);
  right: var(--mapped-panel-body-right, 1.55rem);
  bottom: var(--mapped-panel-body-bottom, 1.18rem);
  left: var(--mapped-panel-body-left, 1.78rem);
  width: var(--mapped-panel-body-width, auto);
  height: var(--mapped-panel-body-height, auto);
}

.page-infinite-skills .skill-explainer-card--anything {
  --mapped-panel-title-top: 7.5%;
  --mapped-panel-title-left: 7.2%;
  --mapped-panel-title-right: auto;
  --mapped-panel-title-width: 86%;
  --mapped-panel-body-top: 26.5%;
  --mapped-panel-body-left: 7.4%;
  --mapped-panel-body-right: auto;
  --mapped-panel-body-bottom: auto;
  --mapped-panel-body-width: 74%;
  --mapped-panel-body-height: 62%;
  --mapped-panel-art-image: url("assets/pages/infinite-skills/art/anything-writing-flourish.png");
  --mapped-panel-art-top: 30%;
  --mapped-panel-art-right: auto;
  --mapped-panel-art-bottom: auto;
  --mapped-panel-art-left: 43%;
  --mapped-panel-art-width: 52%;
  --mapped-panel-art-height: 62%;
  --mapped-panel-art-opacity: 0.43;
  --mapped-panel-art-position: center;
}

.page-infinite-skills .skill-explainer-card h3 {
  margin: 0;
  color: #3f1a0d;
  font-size: 1.05rem;
  line-height: 1.14;
}

.page-infinite-skills .skill-explainer-card p {
  margin: 0 0 0.25rem;
  color: #2c160d;
  font-size: 0.77rem;
  line-height: 1.22;
}

.page-infinite-skills .skill-explainer-card ul {
  margin: 0;
  padding-left: 1rem;
  color: #2c160d;
  font-size: 0.74rem;
  line-height: 1.35;
}

.page-infinite-skills .skill-explainer-card--anything .mapped-panel__slot--body ul {
  columns: 2;
  column-gap: 0.85rem;
}

.page-infinite-skills .skill-explainer-card--chains {
  --mapped-panel-title-left: 6.4%;
  --mapped-panel-title-width: 88%;
  --mapped-panel-body-top: 31%;
  --mapped-panel-body-left: 5.8%;
  --mapped-panel-body-right: 5.8%;
}

.page-infinite-skills .skill-explainer-card--chains .mapped-panel__slot--body > p {
  margin-bottom: 0.16rem;
  font-size: 0.68rem;
  line-height: 1.12;
}

.page-infinite-skills .skill-explainer-card--reasonable {
  --mapped-panel-title-top: 7.5%;
  --mapped-panel-title-left: 6.8%;
  --mapped-panel-title-right: auto;
  --mapped-panel-title-width: 87%;
  --mapped-panel-body-top: 25%;
  --mapped-panel-body-left: 6.8%;
  --mapped-panel-body-right: auto;
  --mapped-panel-body-bottom: auto;
  --mapped-panel-body-width: 58%;
  --mapped-panel-body-height: 65%;
  --mapped-panel-art-image: url("assets/pages/infinite-skills/art/reasonable-scales-shadow.png");
  --mapped-panel-art-top: 35%;
  --mapped-panel-art-right: 2.2%;
  --mapped-panel-art-bottom: auto;
  --mapped-panel-art-left: auto;
  --mapped-panel-art-width: 40%;
  --mapped-panel-art-height: 54%;
  --mapped-panel-art-opacity: 0.7;
  --mapped-panel-art-position: center bottom;
}

.page-infinite-skills .skill-explainer-card--reasonable .mapped-panel__slot--body > p:first-child {
  font-size: 0.72rem;
  line-height: 1.14;
}

.page-infinite-skills .skill-explainer-card--reasonable .reason-checklist {
  font-size: 0.68rem;
  line-height: 1.18;
}

.page-infinite-skills .skill-explainer-card--reasonable .reason-checklist li {
  margin-bottom: 0.12rem;
}

.page-infinite-skills .skill-explainer-card--reasonable .panel-note {
  margin-top: 0.18rem;
  font-size: 0.67rem;
  line-height: 1.08;
}

.page-infinite-skills .skill-formula-list {
  display: grid;
  gap: 0.16rem;
  padding: 0;
  list-style: none;
}

.page-infinite-skills .skill-formula-list li {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto minmax(3.05rem, 1.08fr);
  align-items: center;
  gap: 0.08rem;
  padding: 0.1rem 0.16rem;
  background: rgba(255, 250, 232, 0.68);
  border: 1px solid rgba(135, 94, 40, 0.2);
  border-radius: 0.28rem;
  color: #2d190e;
  font-size: 0.52rem;
  line-height: 1.08;
}

.page-infinite-skills .skill-formula-token {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.06rem;
}

.page-infinite-skills .skill-formula-token img {
  flex: 0 0 auto;
  width: 0.86rem;
  height: 0.86rem;
  object-fit: contain;
  filter: drop-shadow(0 0.08rem 0.08rem rgba(67, 35, 9, 0.24));
}

.page-infinite-skills .skill-formula-token span {
  min-width: 0;
}

.page-infinite-skills .skill-formula-list b {
  color: #855719;
  font-size: 0.68rem;
}

.page-infinite-skills .skill-formula-list strong {
  color: #681207;
  font-size: 0.55rem;
  line-height: 1.02;
  text-align: center;
}

.page-infinite-skills .reason-checklist {
  list-style: none;
  padding-left: 0;
}

.page-infinite-skills .reason-checklist li {
  position: relative;
  margin-bottom: 0.28rem;
  min-height: 1.05rem;
  padding-left: 1.46rem;
}

.page-infinite-skills .reason-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.26rem;
  height: 1.08rem;
  background-image: var(--reason-icon);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1.36rem auto;
  opacity: 0.9;
  transform: translateY(-50%);
}

.page-infinite-skills .reason-checklist li:nth-child(1) {
  --reason-icon: url("assets/pages/infinite-skills/icons/reasonable/reason-book.png");
}

.page-infinite-skills .reason-checklist li:nth-child(2) {
  --reason-icon: url("assets/pages/infinite-skills/icons/reasonable/reason-question.png");
}

.page-infinite-skills .reason-checklist li:nth-child(2)::before {
  background-size: auto 1.18rem;
}

.page-infinite-skills .reason-checklist li:nth-child(3) {
  --reason-icon: url("assets/pages/infinite-skills/icons/reasonable/reason-table.png");
}

.page-infinite-skills .skill-explainer-card .panel-note {
  margin-top: 0.45rem;
  color: rgba(73, 41, 19, 0.86);
  font-style: italic;
}

.page-infinite-skills .skill-taxonomy-strip {
  position: relative;
  isolation: isolate;
  margin: 0.08rem 0 0.1rem;
  padding: 1.05rem 1.2rem 0.7rem;
  border: 0;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255, 246, 216, 0.54), transparent 62%),
    linear-gradient(90deg, rgba(140, 82, 27, 0.14), rgba(255, 246, 214, 0.4) 16%, rgba(255, 246, 214, 0.34) 84%, rgba(140, 82, 27, 0.14)),
    var(--as-parchment-surface) center / 640px 640px repeat,
    #f0d8a5;
  box-shadow:
    inset 0 0 0 1px rgba(255, 252, 231, 0.78),
    inset 0 0 1.15rem rgba(120, 74, 20, 0.16),
    0 0.38rem 0.8rem rgba(61, 28, 7, 0.12);
}

.page-infinite-skills .skill-taxonomy-strip::before {
  content: "";
  position: absolute;
  inset: -0.18rem -0.12rem;
  z-index: 3;
  border: 15px solid transparent;
  border-image: var(--as-card-frame) 28 stretch;
  filter: sepia(0.28) saturate(0.72) brightness(0.86) contrast(1.08) drop-shadow(0 1px 1px rgba(62, 31, 9, 0.32));
  pointer-events: none;
}

.page-infinite-skills .skill-taxonomy-strip::after {
  content: "";
  position: absolute;
  inset: 0.42rem 0.48rem;
  z-index: 1;
  background:
    linear-gradient(90deg, transparent, rgba(86, 52, 18, 0.72) 6%, rgba(183, 130, 45, 0.74) 17%, rgba(103, 60, 19, 0.7) 50%, rgba(183, 130, 45, 0.74) 83%, rgba(86, 52, 18, 0.72) 94%, transparent) center top / calc(100% - 1.2rem) 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(86, 52, 18, 0.68) 6%, rgba(183, 130, 45, 0.68) 17%, rgba(103, 60, 19, 0.66) 50%, rgba(183, 130, 45, 0.68) 83%, rgba(86, 52, 18, 0.68) 94%, transparent) center bottom / calc(100% - 1.2rem) 1px no-repeat,
    linear-gradient(180deg, transparent, rgba(86, 52, 18, 0.42) 12%, rgba(183, 130, 45, 0.34) 50%, rgba(86, 52, 18, 0.42) 88%, transparent) left center / 1px calc(100% - 1rem) no-repeat,
    linear-gradient(180deg, transparent, rgba(86, 52, 18, 0.42) 12%, rgba(183, 130, 45, 0.34) 50%, rgba(86, 52, 18, 0.42) 88%, transparent) right center / 1px calc(100% - 1rem) no-repeat;
  pointer-events: none;
}

.page-infinite-skills .skill-taxonomy-strip ul {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-infinite-skills .skill-taxonomy-strip li {
  display: grid;
  grid-template-rows: 2.42rem minmax(2.2rem, auto);
  justify-items: center;
  align-items: start;
  min-height: 4.85rem;
  padding: 0.06rem 0.34rem 0;
  border-right: 1px solid rgba(122, 75, 21, 0.3);
  text-align: center;
  color: #351607;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(255, 242, 197, 0.64);
}

.page-infinite-skills .skill-taxonomy-strip li:last-child {
  border-right: 0;
}

.page-infinite-skills .skill-taxonomy-strip img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(49, 25, 10, 0.24));
}

.page-infinite-skills .skill-taxonomy-strip p {
  position: relative;
  z-index: 2;
  margin: 0.22rem 0 0;
  color: rgba(82, 43, 16, 0.92);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 244, 204, 0.62);
}

.page-infinite-skills .skill-card-grid {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 0.42rem;
  align-items: start;
}

.page-infinite-skills .skill-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: end;
  aspect-ratio: 0.6;
  min-height: 0;
  overflow: hidden;
  padding: 58% 12.5% 15%;
  color: #f8e8b4;
  text-align: center;
  background: #180402;
  border: 0;
  border-radius: 0.38rem;
  box-shadow:
    inset 0 0 1rem rgba(0, 0, 0, 0.52),
    0 0.45rem 0.78rem rgba(46, 16, 5, 0.18);
  isolation: isolate;
}

.page-infinite-skills .skill-card::before {
  content: "";
  position: absolute;
  left: 9.5%;
  right: 9.5%;
  bottom: 9.5%;
  height: 40%;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(43, 7, 4, 0), rgba(35, 5, 3, 0.76) 20%, rgba(16, 2, 1, 0.94) 100%),
    radial-gradient(ellipse at 50% 100%, rgba(85, 24, 11, 0.5), transparent 70%);
  border-radius: 0 0 0.62rem 0.62rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 209, 86, 0.12),
    inset 0 -0.55rem 0.75rem rgba(0, 0, 0, 0.42);
}

.page-infinite-skills .skill-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: url("assets/pages/infinite-skills/frames/skill-card-frame.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0.12rem 0.08rem rgba(28, 7, 2, 0.42));
}

.page-infinite-skills .skill-card img {
  position: absolute;
  top: 6.5%;
  left: 7.8%;
  z-index: 1;
  width: 84.4%;
  height: 86.7%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0.55rem;
  opacity: 1;
  filter: saturate(1.02) contrast(1.03);
}

.page-infinite-skills .skill-card h3 {
  position: relative;
  z-index: 3;
  align-self: end;
  margin: 0 0 0.08rem;
  color: #ffd768;
  font-size: 0.56rem;
  line-height: 1.04;
  text-shadow:
    0 1px 0 rgba(19, 3, 1, 0.9),
    0 0 0.3rem rgba(255, 202, 80, 0.22);
}

.page-infinite-skills .skill-card p {
  position: relative;
  z-index: 3;
  margin: 0;
  color: #f5e4b4;
  font-size: 0.43rem;
  line-height: 1.12;
  text-shadow: 0 1px 0 rgba(19, 3, 1, 0.92);
}

.page-infinite-skills .infinite-closing-line {
  margin: 0.65rem auto 0;
  color: rgba(73, 41, 19, 0.92);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.28;
  text-align: center;
}

@media (max-width: 1040px) {
  .page-infinite-skills .infinite-hero {
    min-height: 21rem;
  }

  .page-infinite-skills .infinite-hero__copy {
    width: min(38rem, 68%);
    padding-left: 1.45rem;
  }

  .page-infinite-skills .infinite-hero h1 {
    font-size: 3.65rem;
  }

  .page-infinite-skills .infinite-feature-strip__content {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-infinite-skills .infinite-feature-strip article {
    grid-template-columns: 3.1rem minmax(0, 1fr);
    padding: 0.1rem 0.5rem;
  }

  .page-infinite-skills .infinite-feature-strip img {
    width: 3.1rem;
    height: 2.7rem;
  }

  .page-infinite-skills .infinite-feature-strip h2 {
    font-size: 0.82rem;
  }

  .page-infinite-skills .infinite-feature-strip p {
    font-size: 0.69rem;
  }

  .page-infinite-skills .skill-explainer-grid {
    gap: 0.65rem;
  }

  .page-infinite-skills .skill-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-infinite-skills .skill-card h3 {
    font-size: 0.7rem;
  }

  .page-infinite-skills .skill-card p {
    font-size: 0.54rem;
  }
}

@media (max-width: 900px) {
  .page-infinite-skills .infinite-hero {
    display: block;
    min-height: 0;
    margin-top: 0.7rem;
    padding-top: 14.8rem;
    background: transparent;
  }

  .page-infinite-skills .skillstorm-art {
    inset: 0 0 auto 0;
    height: 16rem;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .page-infinite-skills .skillstorm-art::before {
    content: "";
    display: block;
    inset: auto 0 0;
    width: auto;
    height: 4.8rem;
    background: linear-gradient(180deg, rgba(255, 244, 209, 0), rgba(255, 244, 209, 0.97));
  }

  .page-infinite-skills .infinite-hero__copy {
    width: 100%;
    max-width: 40rem;
    padding: 1.2rem 1.25rem 1.35rem;
  }

  .page-infinite-skills .infinite-hero h1 {
    font-size: 3.45rem;
  }

  .page-infinite-skills .infinite-hero p:not(.infinite-hero__claim):not(.note) {
    max-width: 34rem;
  }

  .page-infinite-skills .infinite-feature-strip__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-infinite-skills .infinite-feature-strip::before {
    inset: -0.08rem;
    background:
      linear-gradient(90deg, transparent, rgba(109, 64, 18, 0.72) 8%, rgba(248, 218, 114, 0.82) 50%, rgba(109, 64, 18, 0.72) 92%, transparent) center top / calc(100% - 1rem) 2px no-repeat,
      linear-gradient(90deg, transparent, rgba(109, 64, 18, 0.7) 8%, rgba(248, 218, 114, 0.74) 50%, rgba(109, 64, 18, 0.7) 92%, transparent) center bottom / calc(100% - 1rem) 2px no-repeat,
      linear-gradient(180deg, transparent, rgba(109, 64, 18, 0.58) 8%, rgba(248, 218, 114, 0.5) 50%, rgba(109, 64, 18, 0.58) 92%, transparent) left center / 2px calc(100% - 1rem) no-repeat,
      linear-gradient(180deg, transparent, rgba(109, 64, 18, 0.58) 8%, rgba(248, 218, 114, 0.5) 50%, rgba(109, 64, 18, 0.58) 92%, transparent) right center / 2px calc(100% - 1rem) no-repeat;
  }

  .page-infinite-skills .infinite-feature-strip::after {
    clip-path: none;
  }

  .page-infinite-skills .infinite-feature-strip article {
    border-right: 0;
    border-bottom: 1px solid rgba(214, 163, 58, 0.42);
  }

  .page-infinite-skills .infinite-feature-strip article:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .page-infinite-skills .skill-explainer-grid {
    grid-template-columns: 1fr;
  }

  .page-infinite-skills .mapped-panel {
    min-height: 0;
    padding: 1rem 1.05rem;
  }

  .page-infinite-skills .skill-explainer-card--anything {
    --mapped-panel-art-top: 35%;
    --mapped-panel-art-left: 48%;
    --mapped-panel-art-width: 46%;
    --mapped-panel-art-height: 52%;
    --mapped-panel-art-opacity: 0.28;
  }

  .page-infinite-skills .skill-explainer-card--reasonable {
    --mapped-panel-art-top: 35%;
    --mapped-panel-art-right: 6%;
    --mapped-panel-art-width: 40%;
    --mapped-panel-art-height: 55%;
    --mapped-panel-art-opacity: 0.36;
  }

  .page-infinite-skills .mapped-panel__slot {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
  }

  .page-infinite-skills .mapped-panel__slot--title {
    margin-bottom: 0.35rem;
  }

  .page-infinite-skills .skill-explainer-card h3 {
    font-size: 1.1rem;
  }

  .page-infinite-skills .skill-explainer-card p,
  .page-infinite-skills .skill-explainer-card ul {
    font-size: 0.82rem;
  }

  .page-infinite-skills .skill-taxonomy-strip ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-infinite-skills .skill-taxonomy-strip li {
    grid-template-rows: 2.75rem minmax(2rem, auto);
    align-items: center;
    min-height: 4.75rem;
    font-size: 0.68rem;
    border-right: 0;
    border-bottom: 1px solid rgba(125, 80, 25, 0.25);
  }

  .page-infinite-skills .skill-taxonomy-strip img {
    width: 2.65rem;
    height: 2.65rem;
  }

  .page-infinite-skills .skill-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-infinite-skills .skill-card h3 {
    font-size: 0.78rem;
  }

  .page-infinite-skills .skill-card p {
    font-size: 0.6rem;
  }
}

@media (max-width: 640px) {
  .page-infinite-skills main.site-frame {
    padding: 0.55rem 0.5rem 1.4rem;
  }

  .page-infinite-skills .infinite-hero {
    padding-top: 12.5rem;
  }

  .page-infinite-skills .skillstorm-art {
    height: 13.6rem;
  }

  .page-infinite-skills .skillstorm-art img {
    object-position: 55% center;
  }

  .page-infinite-skills .infinite-hero__copy {
    padding: 1rem 0.82rem 1.1rem;
  }

  .page-infinite-skills .infinite-hero h1 {
    font-size: 2.85rem;
  }

  .page-infinite-skills .infinite-hero__claim {
    font-size: 1.25rem;
  }

  .page-infinite-skills .infinite-hero .button-row {
    align-items: flex-start;
  }

  .page-infinite-skills .ornate-red--xl,
  .page-infinite-skills .ornate-blue--xl {
    width: 184px;
    min-width: 184px;
  }

  .page-infinite-skills .ornate-red--xl {
    background-image: url("assets/shared/buttons/precomposed-red/red-lg-184x35@4x.png");
  }

  .page-infinite-skills .ornate-blue--xl {
    background-image: url("assets/shared/buttons/precomposed-blue/blue-lg-184x35@4x.png");
  }

  .page-infinite-skills .infinite-feature-strip__content {
    grid-template-columns: 1fr;
  }

  .page-infinite-skills .infinite-feature-strip article {
    grid-template-columns: 3.1rem minmax(0, 1fr);
  }

  .page-infinite-skills .ornamented-heading h2 {
    font-size: 1.55rem;
  }

  .page-infinite-skills .ornamented-heading h2::before,
  .page-infinite-skills .ornamented-heading h2::after {
    width: 1.15rem;
  }

  .page-infinite-skills .skill-formula-list li {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.16rem;
  }

  .page-infinite-skills .skill-formula-list li b:nth-of-type(2),
  .page-infinite-skills .skill-formula-list li .skill-formula-token:nth-of-type(3) {
    display: none;
  }

  .page-infinite-skills .skill-formula-list li b:nth-of-type(3) {
    grid-column: 1;
    justify-self: end;
  }

  .page-infinite-skills .skill-formula-list li strong {
    grid-column: 2 / 4;
  }

  .page-infinite-skills .skill-taxonomy-strip ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-infinite-skills .skill-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-infinite-skills .skill-card h3 {
    font-size: 0.74rem;
  }

  .page-infinite-skills .skill-card p {
    font-size: 0.56rem;
  }
}

@media (max-width: 420px) {
  .page-infinite-skills .skill-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-infinite-skills .skill-card h3 {
    font-size: 0.82rem;
  }

  .page-infinite-skills .skill-card p {
    font-size: 0.62rem;
  }
}

/* Join Our Story page: dark community patterns. */
body.page-join-our-story {
  --join-bg: #061015;
  --join-bg-2: #0b1921;
  --join-panel: #0c1820;
  --join-panel-2: #10232e;
  --join-gold: #d4a149;
  --join-gold-bright: #f3d184;
  --join-text: #f4dfad;
  --join-muted: #c5a873;
  --join-blue: #09233a;
  --join-red: #64140d;
  --join-violet: #4d164e;
  --join-indigo: #232055;
  --join-frame-border: var(--as-card-frame);
  --join-dark-grain:
    repeating-linear-gradient(135deg, rgba(255, 235, 168, 0.032) 0 1px, transparent 1px 9px),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.026) 0 1px, transparent 1.4px) 0 0 / 22px 22px repeat;
  color: var(--join-text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 50% 0%, rgba(44, 99, 132, 0.28), transparent 26rem),
    radial-gradient(circle at 18% 18%, rgba(214, 163, 58, 0.12), transparent 18rem),
    radial-gradient(circle at 82% 40%, rgba(117, 70, 158, 0.12), transparent 22rem),
    var(--join-dark-grain),
    var(--join-bg);
}

body.page-join-our-story::before {
  border-color: rgba(215, 164, 69, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 142, 0.28),
    inset 0 0 0 6px rgba(5, 9, 11, 0.72),
    0 0 0 0.42rem rgba(111, 59, 11, 0.22);
}

.page-join-our-story .site-header {
  background:
    linear-gradient(180deg, rgba(9, 18, 24, 0.96), rgba(5, 11, 15, 0.96)),
    var(--join-dark-grain),
    var(--join-bg);
  border-bottom-color: rgba(212, 161, 73, 0.46);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  color: var(--join-text);
}

.page-join-our-story .site-header .site-frame {
  width: min(var(--max), calc(100% - 0.75rem));
}

.page-join-our-story .site-nav a[aria-current="page"] {
  color: var(--join-gold-bright);
}

.page-join-our-story .site-nav .nav-cta.ornate-red {
  --ornate-red-w: 150px;
  --ornate-red-h: 35px;
  box-sizing: border-box;
  width: var(--ornate-red-w);
  min-width: var(--ornate-red-w);
  height: var(--ornate-red-h);
  min-height: var(--ornate-red-h);
  padding: 0 1.1rem;
  color: var(--as-red-button-text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 1px rgba(34, 9, 2, 0.72);
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("assets/shared/buttons/precomposed-red/red-md-150x35@4x.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
}

.page-join-our-story .site-nav .nav-cta.ornate-red::before,
.page-join-our-story .site-nav .nav-cta.ornate-red::after {
  content: none;
  display: none;
}

.page-join-our-story .brand img {
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.65));
}

.join-main {
  overflow: hidden;
}

.join-frame {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.join-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(20rem, 33vw, 28.5rem);
  margin-top: 0.72rem;
  border-bottom: 1px solid rgba(212, 161, 73, 0.42);
  background:
    linear-gradient(90deg, rgba(3, 8, 13, 0.7) 0%, rgba(5, 13, 20, 0.44) 34%, rgba(4, 11, 18, 0.2) 58%, rgba(2, 7, 11, 0.12) 100%),
    url("assets/pages/join-our-story/art/hero-community-wide.jpg") center / cover no-repeat,
    linear-gradient(180deg, #08131b, #071016);
  box-shadow:
    inset 0 1px 0 rgba(245, 207, 119, 0.28),
    inset 0 -1px 0 rgba(245, 207, 119, 0.34),
    0 16px 28px rgba(0, 0, 0, 0.34);
}

.join-hero::before,
.join-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(244, 209, 132, 0.8), transparent);
}

.join-hero::before {
  top: 0.95rem;
}

.join-hero::after {
  bottom: 0.42rem;
}

.join-hero__castle {
  display: none;
}

.join-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding-block: clamp(3rem, 5.5vw, 4.7rem);
}

.join-hero__copy {
  position: relative;
  width: min(52vw, 40rem);
  margin-left: clamp(5rem, 15vw, 13rem);
  text-align: center;
  max-width: 42rem;
}

.join-hero__copy::before,
.join-hero__copy::after {
  content: "";
  display: block;
  width: min(100%, 31rem);
  height: 1.05rem;
  margin-inline: auto;
  background:
    radial-gradient(closest-side, rgba(246, 211, 126, 0.92), rgba(246, 211, 126, 0.62) 42%, transparent 46%) center / 1.15rem 1.15rem no-repeat,
    linear-gradient(90deg, transparent, rgba(246, 211, 126, 0.78) 34%, rgba(246, 211, 126, 0.78) 66%, transparent) center / 100% 1px no-repeat;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.join-hero__copy::before {
  margin-bottom: 0.7rem;
}

.join-hero__copy::after {
  margin-top: 0.75rem;
}

.join-hero__copy h1 {
  margin-bottom: 0.82rem;
  color: var(--join-gold-bright);
  font-size: clamp(3.35rem, 5.6vw, 5.15rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(52, 23, 7, 0.9),
    0 0 18px rgba(244, 209, 132, 0.26);
}

.join-hero__copy p {
  margin: 0.3rem 0;
  color: #f7e8bf;
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.join-hero__emblem {
  width: min(100%, 21rem);
  justify-self: center;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}

.join-section {
  padding-block: 1.25rem 1.1rem;
}

.join-section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.15rem;
  text-align: center;
}

.join-section-heading::before,
.join-section-heading::after {
  content: "";
  flex: 1 1 4rem;
  max-width: 11rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 161, 73, 0.78), transparent);
}

.join-section-heading h2 {
  margin: 0;
  color: var(--join-gold-bright);
  font-size: 1.55rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.join-social-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.82rem;
}

.join-social-card {
  min-height: 11.35rem;
  padding: 0.92rem 0.66rem 0.84rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(36, 70, 86, 0.3), transparent 9rem),
    linear-gradient(180deg, rgba(20, 35, 44, 0.94), rgba(8, 17, 23, 0.96)),
    var(--join-dark-grain),
    var(--join-panel);
  border: 16px solid transparent;
  border-image: var(--join-frame-border) 30 stretch;
  box-shadow:
    inset 0 0 0 1px rgba(245, 207, 119, 0.12),
    0 15px 22px rgba(0, 0, 0, 0.36);
}

.join-social-mark {
  display: inline-grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 0.62rem;
  color: #f8fbff;
  font-family: var(--font-ui);
  font-size: 1.32rem;
  font-weight: 800;
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 9px 18px rgba(0, 0, 0, 0.42);
}

.join-social-mark--x {
  color: #5bc7ff;
  background: #07151d;
}

.join-social-mark--tiktok {
  background: linear-gradient(135deg, #18f0ff, #18142f 44%, #ff2f78);
}

.join-social-mark--reddit {
  background: #e94b18;
}

.join-social-mark--facebook {
  background: #1c71d8;
}

.join-social-mark--instagram {
  background: linear-gradient(135deg, #ffbd38, #f04769 48%, #6f4cff);
  font-size: 1rem;
}

.join-social-mark--discord {
  background: #5c61d6;
  font-size: 0.96rem;
}

.join-social-card h3 {
  margin-bottom: 0.5rem;
  color: var(--join-gold-bright);
  font-size: 0.98rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.join-social-card p {
  margin: 0.4rem 0;
  color: #e7cca0;
  font-family: var(--font-body);
  font-size: 0.83rem;
  line-height: 1.5;
}

.join-social-card .join-handle {
  color: #fff1c9;
  font-weight: 700;
}

.join-small-button,
.join-message-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.05rem;
  padding: 0.42rem 1.15rem;
  color: var(--join-gold-bright);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(28, 8, 2, 0.72);
  border: 1px solid rgba(245, 207, 119, 0.78);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(65, 26, 5, 0.65),
    0 9px 14px rgba(0, 0, 0, 0.28);
}

.join-small-button {
  width: min(100%, 8.5rem);
  margin-top: 0.78rem;
  letter-spacing: 0;
}

.join-small-button--blue,
.join-message-button {
  background: linear-gradient(180deg, #0f3856, #061a2a);
}

.join-small-button--red {
  background: linear-gradient(180deg, #8b2a13, #4c0f09);
}

.join-small-button--violet {
  background: linear-gradient(180deg, #78215d, #351136);
}

.join-small-button--indigo {
  background: linear-gradient(180deg, #3a3b82, #1c1a45);
}

.join-hashtag {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr) minmax(8rem, 12rem);
  align-items: center;
  min-height: 9.6rem;
  margin-block: 0.8rem 1.6rem;
  padding: 0.9rem 2.2rem;
  color: #071521;
  background:
    linear-gradient(90deg, rgba(255, 244, 207, 0.88), rgba(238, 211, 158, 0.94)),
    var(--as-parchment-surface) center / 768px 768px repeat;
  border: 16px solid transparent;
  border-image: var(--join-frame-border) 30 stretch;
  box-shadow: 0 18px 26px rgba(0, 0, 0, 0.38);
}

.join-hashtag img {
  max-height: 8.2rem;
  object-fit: contain;
}

.join-hashtag__compass {
  justify-self: start;
}

.join-hashtag__castle {
  justify-self: end;
}

.join-hashtag__copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.join-hashtag h2 {
  margin: 0 0 0.1rem;
  color: #35190f;
  font-size: 1.25rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.join-hashtag__tag {
  margin: 0;
  color: #071521;
  font-size: clamp(1.5rem, 4.2vw, 4rem);
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.join-hashtag__copy p:not(.join-hashtag__tag) {
  max-width: 38rem;
  margin: 0.35rem auto 0;
  color: #1f1b16;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.42;
}

.join-connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(21rem, 0.9fr);
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.join-form-panel,
.join-action-panel {
  background:
    radial-gradient(circle at 20% 0%, rgba(41, 83, 102, 0.2), transparent 12rem),
    linear-gradient(180deg, rgba(14, 29, 38, 0.95), rgba(6, 16, 22, 0.98)),
    var(--join-dark-grain),
    var(--join-panel);
  border: 18px solid transparent;
  border-image: var(--join-frame-border) 30 stretch;
  box-shadow:
    inset 0 0 0 1px rgba(245, 207, 119, 0.1),
    0 18px 26px rgba(0, 0, 0, 0.36);
}

.join-form-panel {
  padding: 1rem 1.2rem 0.95rem;
  scroll-margin-top: clamp(0.75rem, 2vw, 1.5rem);
}

.join-action-panel {
  padding: 1rem 1rem 0.9rem;
}

.join-panel-intro {
  max-width: 30rem;
  margin: -0.2rem auto 1rem;
  color: #f4ddaf;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: center;
}

.join-form {
  display: grid;
  gap: 0.78rem;
}

.join-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.join-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.join-form label {
  display: grid;
  gap: 0.32rem;
  color: var(--join-gold-bright);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
}

.join-form input,
.join-form select,
.join-form textarea,
.join-newsletter input {
  width: 100%;
  color: #f9eac3;
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.3;
  background: rgba(4, 13, 18, 0.78);
  border: 1px solid rgba(212, 161, 73, 0.58);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 239, 184, 0.08);
}

.join-form input,
.join-form select {
  min-height: 2.25rem;
  padding: 0.48rem 0.65rem;
}

.join-form textarea {
  resize: vertical;
  min-height: 6.3rem;
  padding: 0.65rem;
}

.join-form input::placeholder,
.join-form textarea::placeholder,
.join-newsletter input::placeholder {
  color: rgba(245, 223, 178, 0.64);
}

.join-message-button {
  width: min(100%, 18rem);
  min-height: 2.85rem;
  margin: 0.25rem auto 0;
  font-size: 1.18rem;
  cursor: pointer;
}

.join-privacy-note {
  margin: 0.7rem 0 0;
  color: var(--join-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-align: center;
}

.join-privacy-note a,
.join-newsletter__consent a,
.legal-document a {
  color: var(--join-gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.join-newsletter__consent {
  max-width: 30rem;
  color: #bca77c !important;
  font-size: 0.72rem !important;
  line-height: 1.35;
}

.legal-main {
  min-height: 62vh;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.35rem, 5vw, 5rem);
}

.legal-document {
  width: min(100%, 52rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid rgba(181, 125, 42, 0.58);
  background: rgba(7, 25, 38, 0.94);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.3);
  color: #f4e6c4;
}

.legal-document h1,
.legal-document h2 {
  color: var(--join-gold-bright);
  font-family: var(--font-display);
  letter-spacing: 0;
}

.legal-document h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: 1;
}

.legal-document h2 {
  margin: 1.8rem 0 0.4rem;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.legal-document p {
  margin: 0.55rem 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.62;
}

.legal-document .legal-eyebrow {
  margin-bottom: 0.55rem;
  color: #d69a42;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-document .legal-updated,
.legal-document .legal-form-note {
  color: var(--join-muted);
  font-size: 0.9rem;
}

.legal-document--form {
  width: min(100%, 38rem);
}

.legal-unsubscribe-form {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.legal-unsubscribe-form label {
  color: #f1d790;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-unsubscribe-form input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(210, 160, 70, 0.55);
  border-radius: 4px;
  background: rgba(3, 15, 25, 0.84);
  color: #f9eac3;
  font: 1rem var(--font-body);
}

.legal-unsubscribe-form .join-message-button {
  width: min(100%, 15rem);
  margin-top: 0.35rem;
}

.join-action-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 0.4rem 0.95rem;
  border-bottom: 1px solid rgba(212, 161, 73, 0.28);
}

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

.join-action-icon {
  display: grid;
  place-items: center;
  width: 4.1rem;
  height: 4.1rem;
  color: var(--join-gold-bright);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(34, 64, 84, 0.96), rgba(6, 17, 25, 0.96));
  border: 2px solid rgba(212, 161, 73, 0.66);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.32);
}

.join-action-icon--image {
  width: 4.8rem;
  height: 4.8rem;
  object-fit: contain;
  align-self: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.32);
}

.join-action-row h3 {
  margin-bottom: 0.26rem;
  color: var(--join-gold-bright);
  font-size: 1.03rem;
  text-transform: uppercase;
}

.join-action-row p {
  margin-bottom: 0.55rem;
  color: #e4cda1;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.45;
}

.join-rich-footer {
  position: relative;
  z-index: 1;
  margin-top: 0.9rem;
  color: #ead3a5;
  background:
    linear-gradient(180deg, rgba(5, 12, 17, 0.94), rgba(4, 9, 13, 0.98)),
    var(--join-dark-grain),
    var(--join-bg);
  border-top: 1px solid rgba(212, 161, 73, 0.44);
}

.join-rich-footer__inner {
  display: grid;
  grid-template-columns:
    minmax(11.5rem, 0.82fr)
    minmax(11rem, 0.98fr)
    minmax(6.7rem, 0.42fr)
    minmax(7rem, 0.42fr)
    minmax(11rem, 0.98fr);
  gap: clamp(0.65rem, 1.25vw, 1.45rem);
  align-items: center;
  padding-block: 1.1rem;
}

.join-rich-footer__scene {
  align-self: stretch;
  min-height: 8.8rem;
  background:
    linear-gradient(90deg, rgba(5, 12, 17, 0.08), rgba(5, 12, 17, 0.34)),
    url("assets/pages/join-our-story/art/footer-campfire.jpg") center / cover no-repeat;
  border-right: 1px solid rgba(212, 161, 73, 0.25);
}

.join-rich-footer__brand {
  text-align: center;
}

.join-rich-footer__brand img {
  width: 11.5rem;
  margin: 0 auto 0.35rem;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5));
}

.join-rich-footer__brand p,
.join-newsletter p {
  margin: 0;
  color: #cdb78b;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.4;
}

.join-footer-socials {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.join-footer-socials a {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--join-gold-bright);
  background: rgba(7, 21, 29, 0.52);
  border: 1px solid rgba(212, 161, 73, 0.36);
  border-radius: 50%;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

/* Books roadmap disclosure and planning estimates. */
.page-books .books-planning-notice,
.page-books .books-estimates {
  width: min(100%, 68rem);
  margin-inline: auto;
  box-sizing: border-box;
}

.page-books .books-planning-notice {
  padding: clamp(1rem, 2.4vw, 1.6rem) clamp(1rem, 3vw, 2.2rem);
  border-block: 1px solid rgba(123, 71, 17, 0.46);
  background: rgba(255, 244, 205, 0.56);
  text-align: center;
}

.page-books .books-planning-notice .eyebrow,
.page-books .books-estimates .eyebrow {
  margin-bottom: 0.3rem;
  color: #8d170e;
  font-size: clamp(0.76rem, 1.15vw, 0.92rem);
  font-weight: 900;
}

.page-books .books-planning-notice h2,
.page-books .books-estimates h2 {
  margin: 0;
  color: #341006;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.page-books .books-planning-notice > p:last-child {
  max-width: 55rem;
  margin: 0.55rem auto 0;
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  line-height: 1.45;
}

.page-books .books-estimates {
  display: grid;
  grid-template-columns: minmax(15rem, 0.76fr) minmax(0, 1.5fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.1rem, 2.5vw, 1.8rem) clamp(1rem, 3vw, 2.2rem);
  border-block: 1px solid rgba(123, 71, 17, 0.34);
  background: rgba(247, 223, 168, 0.45);
}

.page-books .books-estimates__heading > p:last-child {
  margin: 0.55rem 0 0;
  line-height: 1.4;
}

.page-books .books-estimates__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.page-books .books-estimates__list > div {
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border-left: 1px solid rgba(123, 71, 17, 0.32);
  border-bottom: 1px solid rgba(123, 71, 17, 0.24);
}

.page-books .books-estimates__list > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.page-books .books-estimates__list dt {
  color: #70120b;
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 1.35vw, 1.08rem);
  font-weight: 900;
}

.page-books .books-estimates__list dd {
  margin: 0.18rem 0 0;
  font-size: clamp(0.78rem, 1.05vw, 0.9rem);
  line-height: 1.35;
}

.page-books .book-release-badge--available {
  width: min(12.5rem, calc(100% - 1rem));
  white-space: normal;
  line-height: 1.12;
}

/* Why AS: approved mission and nine-principle editorial structure. */
.why-hero--philosophy .why-hero__title {
  right: 24%;
  left: 24%;
}

.why-hero--philosophy .why-hero__title h1 {
  max-width: 100%;
  margin-inline: auto;
  overflow-wrap: break-word;
  text-wrap: balance;
  font-size: clamp(1.85rem, 4.1vw, 3.25rem);
  font-size: clamp(1.8rem, 5.2cqw, 3.25rem);
}

.why-hero--philosophy .why-hero__intro h2 {
  font-size: clamp(1rem, 2.25vw, 1.8rem);
  font-size: clamp(0.98rem, 2.85cqw, 1.8rem);
}

.why-philosophy {
  display: grid;
  gap: clamp(0.8rem, 2vw, 1.35rem);
  margin-top: clamp(0.75rem, 1.8vw, 1.25rem);
}

.why-founder-note {
  width: min(100%, 58rem);
  margin: clamp(0.7rem, 1.8vw, 1.15rem) auto 0;
  padding: 0.85rem clamp(1rem, 3vw, 1.8rem);
  border-block: 1px solid rgba(238, 184, 74, 0.34);
  color: #ffecc2;
  background: rgba(8, 28, 41, 0.56);
  text-align: center;
}

.why-founder-note .eyebrow {
  margin: 0 0 0.3rem;
  color: #efba4e;
  font-size: 0.8rem;
  font-weight: 900;
}

.why-founder-note > p:last-child {
  margin: 0;
  font-size: clamp(0.9rem, 1.25vw, 1.04rem);
  line-height: 1.42;
}

.why-family {
  position: relative;
  padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1rem, 3.5vw, 2.8rem);
  border-block: 1px solid rgba(238, 184, 74, 0.4);
  background:
    linear-gradient(90deg, rgba(5, 27, 42, 0.94), rgba(41, 10, 7, 0.91) 52%, rgba(5, 27, 42, 0.94));
  color: #f8e7bd;
  box-shadow: inset 0 0 2rem rgba(0, 0, 0, 0.24);
}

.why-family::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(0.35rem, 1vw, 0.7rem);
  width: 1px;
  background: linear-gradient(transparent, #d9a536 16%, #d9a536 84%, transparent);
  opacity: 0.74;
}

.why-family__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(1rem, 2.4vw, 1.65rem);
}

.why-family__header .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 0.35rem;
  color: #efba4e;
  font-size: clamp(0.76rem, 1.1vw, 0.9rem);
  font-weight: 900;
}

.why-family__header h2 {
  margin: 0;
  color: #ffe077;
  font-size: clamp(1.55rem, 3.3vw, 2.75rem);
  line-height: 1.02;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
}

.why-principles {
  display: grid;
  gap: clamp(0.8rem, 2vw, 1.35rem);
}

.why-principles--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.why-principles--supporting {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.why-principle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(0.65rem, 1.5vw, 1rem);
  min-width: 0;
  padding-left: clamp(0.75rem, 1.8vw, 1.2rem);
  border-left: 1px solid rgba(238, 184, 74, 0.52);
}

.why-principle--wide {
  grid-column: 1 / -1;
  width: min(100%, 48rem);
}

.why-principle--supporting {
  margin-top: clamp(0.8rem, 2vw, 1.3rem);
  padding-top: clamp(0.8rem, 1.7vw, 1.1rem);
  border-top: 1px solid rgba(238, 184, 74, 0.24);
}

.why-principles--supporting .why-principle--supporting {
  margin-top: 0;
}

.why-principle__number {
  display: inline-grid;
  place-items: center;
  width: clamp(2rem, 3.4vw, 2.65rem);
  height: clamp(2rem, 3.4vw, 2.65rem);
  border: 1px solid #e2b044;
  color: #ffe079;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.65vw, 1.3rem);
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 3px rgba(4, 24, 38, 0.72);
}

.why-principle h3 {
  margin: 0;
  color: #ffe189;
  font-size: clamp(1.05rem, 1.75vw, 1.42rem);
  line-height: 1.12;
}

.why-principle--featured h3 {
  font-size: clamp(1.2rem, 2.15vw, 1.72rem);
}

.why-principle p {
  margin: 0.42rem 0 0;
  font-size: clamp(0.84rem, 1.1vw, 0.96rem);
  line-height: 1.45;
}

.why-principle p + p {
  margin-top: 0.72rem;
}

.why-principle--featured p {
  font-size: clamp(0.9rem, 1.25vw, 1.04rem);
}

.page-why-as .why-journey .button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
}

@media (max-width: 760px) {
  .page-books .books-estimates,
  .why-family__header {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-books .books-estimates__list,
  .why-principles--featured,
  .why-principles--supporting {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-books .books-estimates__list > div,
  .page-books .books-estimates__list > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(123, 71, 17, 0.24);
  }

  .page-books .books-estimates__list > div:last-child {
    border-bottom: 0;
  }

  .why-hero--philosophy .why-hero__title {
    right: 16%;
    left: 16%;
  }

  .why-hero--philosophy .why-hero__title h1 {
    font-size: clamp(1.1rem, 6.1vw, 1.95rem);
    font-size: clamp(1.08rem, 5.9cqw, 1.95rem);
  }

  .why-hero--philosophy .why-hero__intro h2 {
    font-size: clamp(0.82rem, 4.2vw, 1.2rem);
  }

  .why-principle--wide {
    width: 100%;
  }

  .why-principle--supporting {
    margin-top: 0;
  }

  .page-why-as .why-journey .button-row {
    display: grid;
    justify-items: center;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .why-principles--supporting {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .why-hero--philosophy .why-hero__title {
    right: 18%;
    left: 18%;
  }

  .why-hero--philosophy .why-hero__title h1 {
    font-size: clamp(0.95rem, 5.25cqw, 1.42rem);
  }

  .why-family {
    padding-inline: 0.85rem;
  }

  .why-principle {
    gap: 0.55rem;
    padding-left: 0.55rem;
  }

  .why-principle h3,
  .why-principle--featured h3 {
    overflow-wrap: anywhere;
  }
}

.join-footer-socials a:hover,
.join-footer-socials a:focus-visible {
  color: #fff1c9;
  background: rgba(77, 37, 16, 0.72);
  border-color: rgba(245, 207, 119, 0.82);
  transform: translateY(-1px);
}

.join-footer-socials a:focus-visible {
  outline: 2px solid #fff1c9;
  outline-offset: 2px;
}

.join-footer-social-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: var(--join-footer-social-icon) center / contain no-repeat;
  mask: var(--join-footer-social-icon) center / contain no-repeat;
}

.join-footer-social-icon--x {
  --join-footer-social-icon: url("assets/shared/social/icons/x.svg");
}

.join-footer-social-icon--tiktok {
  --join-footer-social-icon: url("assets/shared/social/icons/tiktok.svg");
}

.join-footer-social-icon--reddit {
  --join-footer-social-icon: url("assets/shared/social/icons/reddit.svg");
}

.join-footer-social-icon--facebook {
  --join-footer-social-icon: url("assets/shared/social/icons/facebook.svg");
}

.join-footer-social-icon--instagram {
  --join-footer-social-icon: url("assets/shared/social/icons/instagram.svg");
}

.join-footer-social-icon--discord {
  --join-footer-social-icon: url("assets/shared/social/icons/discord.svg");
}

.join-footer-links {
  display: grid;
  gap: 0.34rem;
  align-self: stretch;
  padding-left: 1rem;
  border-left: 1px solid rgba(212, 161, 73, 0.22);
}

.join-footer-links h2,
.join-newsletter h2 {
  margin-bottom: 0.22rem;
  color: var(--join-gold-bright);
  font-size: 0.98rem;
  text-transform: uppercase;
}

.join-footer-links a {
  display: flex;
  align-items: center;
  min-height: 1.75rem;
  color: #e3c995;
  font-family: var(--font-body);
  font-size: 0.82rem;
  line-height: 1.25;
  text-decoration: none;
}

.join-message-button:disabled,
.join-newsletter button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.join-form-status {
  min-height: 1.3em;
  margin: 0;
  color: #f4ddaf;
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: center;
}

.join-form-status:empty {
  display: none;
}

.join-form-status.is-success {
  color: #b9e6be;
}

.join-form-status.is-error {
  color: #ffb5a8;
}

.join-newsletter {
  display: grid;
  gap: 0.45rem;
  align-self: stretch;
  padding-left: 1rem;
  border-left: 1px solid rgba(212, 161, 73, 0.22);
}

.join-newsletter__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.35rem;
  margin-top: 0.4rem;
}

.join-newsletter input {
  min-height: 2.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 4px 0 0 4px;
}

.join-newsletter button {
  color: #2a1608;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 900;
  background: linear-gradient(180deg, #d9aa55, #8c5520);
  border: 1px solid rgba(245, 207, 119, 0.78);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.join-form-status--footer {
  color: #d8c49a;
  font-size: 0.76rem;
  text-align: left;
}

.join-copyright {
  margin: 0;
  padding: 0.65rem 1rem 2.1rem;
  color: #bfa678;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  border-top: 1px solid rgba(212, 161, 73, 0.28);
}

@media (max-width: 1100px) {
  .join-social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .join-hashtag {
    grid-template-columns: 8.5rem minmax(0, 1fr) 8.5rem;
    padding-inline: 1.35rem;
  }

  .join-hashtag img {
    max-height: 6.6rem;
  }

}

@media (max-width: 880px) {
  .join-rich-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .join-rich-footer__scene {
    grid-column: 1 / -1;
    min-height: 8rem;
  }
}

@media (max-width: 760px) {
  .page-join-our-story .site-nav .nav-cta.ornate-red {
    --ornate-red-w: 184px;
    width: var(--ornate-red-w);
    min-width: var(--ornate-red-w);
    background-image: url("assets/shared/buttons/precomposed-red/red-lg-184x35@4x.png");
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  .join-hero {
    min-height: 23rem;
    background-position: 42% center;
  }

  .join-hero__inner {
    justify-content: center;
    padding-block: 2.4rem 1.9rem;
  }

  .join-hero__copy {
    width: min(100%, 32rem);
    margin-inline: auto;
    padding-inline: 0.75rem;
  }

  .join-hero__copy h1 {
    font-size: 3.3rem;
  }

  .join-hashtag {
    grid-template-columns: 1fr;
    padding-inline: 1rem;
  }

  .join-hashtag__compass,
  .join-hashtag__castle {
    display: none;
  }

  .join-hashtag__tag {
    font-size: clamp(1.45rem, 5.8vw, 2.7rem);
  }

  .join-connect-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .join-frame {
    width: min(100% - 2rem, 31rem);
  }

  .join-hero__copy h1 {
    font-size: 2.55rem;
  }

  .join-hero__copy p {
    font-size: 0.94rem;
  }

  .join-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .join-social-card {
    min-height: 10.8rem;
    padding-inline: 0.55rem;
  }

  .join-field-row {
    grid-template-columns: 1fr;
  }

  .join-action-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .join-action-icon {
    margin-inline: auto;
  }

  .join-rich-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .join-footer-links,
  .join-newsletter {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 420px) {
  .join-social-grid {
    grid-template-columns: 1fr;
  }

  .join-social-card {
    min-height: 9.8rem;
  }

  .join-hashtag__tag {
    font-size: clamp(1.28rem, 5.8vw, 1.65rem);
  }
}

/* Shared Page Chrome v2: Infinite Skills frame/header pattern backported across completed pages. */
body.page-home,
body.page-books,
body.page-vault,
body.page-memories,
body.page-why-as,
body.page-infinite-skills,
body.page-story-engine,
body.page-book-details,
body.page-join-our-story,
body.page-art-showcase {
  --as-page-frame-outer-red: #460805;
  --as-page-frame-dead-zone: clamp(0.62rem, 1.05vw, 0.9rem);
  --as-page-frame-rail-size: clamp(0.24rem, 0.46vw, 0.36rem);
  --as-page-frame-bottom-rail-size: max(1px, calc(var(--as-page-frame-rail-size) - 1px));
  --as-page-frame-rail-half-size: clamp(0.12rem, 0.23vw, 0.18rem);
  --as-page-frame-rail-center: var(--as-page-frame-dead-zone);
  --as-page-frame-rail-inset: calc(var(--as-page-frame-rail-center) - var(--as-page-frame-rail-half-size));
  --as-page-frame-gem-w: clamp(5.2rem, 8vw, 7rem);
  --as-page-frame-gem-h: clamp(3.52rem, 5.4vw, 4.73rem);
  --as-page-frame-gem-half-h: clamp(1.76rem, 2.7vw, 2.365rem);
  --as-page-frame-corner-size: clamp(4.4rem, 7.5vw, 5.9rem);
  --as-page-frame-corner-rail-anchor: clamp(0.6rem, 1vw, 0.81rem);
  --as-page-frame-corner-offset: calc(var(--as-page-frame-rail-center) - var(--as-page-frame-corner-rail-anchor));
  --as-page-frame-corner-drawn-offset: calc(var(--as-page-frame-corner-offset) - 1px);
  --as-page-frame-corner-fill-cut: clamp(3.1rem, 4.8vw, 3.8rem);
  --as-page-frame-corner-fill-inner: clamp(0.72rem, 1.25vw, 1rem);
  --as-page-frame-rail-clear: calc(var(--as-page-frame-corner-size) * 0.84);
  --as-page-frame-rail-drawn-clear: max(0px, calc(var(--as-page-frame-rail-clear) - 5px));
  --as-page-frame-header-drop: clamp(0.32rem, 0.55vw, 0.52rem);
  position: relative;
  isolation: isolate;
}

body.page-home,
body.page-books,
body.page-vault,
body.page-memories,
body.page-story-engine,
body.page-book-details,
body.page-art-showcase {
  --as-page-frame-fill-background: var(--as-parchment-background);
}

body.page-why-as {
  --as-page-frame-fill-background:
    radial-gradient(circle at 50% 4%, rgba(22, 132, 188, 0.24), transparent 22rem),
    linear-gradient(180deg, rgba(6, 31, 50, 0.94), rgba(3, 13, 24, 0.96));
}

body.page-infinite-skills {
  --as-page-frame-fill-background:
    radial-gradient(circle at 18% 15%, rgba(255, 244, 209, 0.32), transparent 24rem),
    radial-gradient(circle at 82% 22%, rgba(105, 13, 8, 0.08), transparent 30rem),
    var(--as-parchment-background);
}

body.page-join-our-story {
  --as-page-frame-fill-background:
    radial-gradient(circle at 50% 0%, rgba(44, 99, 132, 0.28), transparent 26rem),
    radial-gradient(circle at 18% 18%, rgba(214, 163, 58, 0.12), transparent 18rem),
    radial-gradient(circle at 82% 40%, rgba(117, 70, 158, 0.12), transparent 22rem),
    var(--join-dark-grain),
    var(--join-bg);
}

body.page-home > .page-frame-fill,
body.page-books > .page-frame-fill,
body.page-vault > .page-frame-fill,
body.page-memories > .page-frame-fill,
body.page-why-as > .page-frame-fill,
body.page-infinite-skills > .page-frame-fill,
body.page-story-engine > .page-frame-fill,
body.page-book-details > .page-frame-fill,
body.page-join-our-story > .page-frame-fill,
body.page-art-showcase > .page-frame-fill {
  position: absolute;
  inset: var(--as-page-frame-dead-zone);
  z-index: 0;
  pointer-events: none;
  clip-path: polygon(
    var(--as-page-frame-corner-fill-cut) 0,
    calc(100% - var(--as-page-frame-corner-fill-cut)) 0,
    calc(100% - var(--as-page-frame-corner-fill-cut)) var(--as-page-frame-corner-fill-inner),
    calc(100% - var(--as-page-frame-corner-fill-inner)) var(--as-page-frame-corner-fill-inner),
    calc(100% - var(--as-page-frame-corner-fill-inner)) var(--as-page-frame-corner-fill-cut),
    100% var(--as-page-frame-corner-fill-cut),
    100% calc(100% - var(--as-page-frame-corner-fill-cut)),
    calc(100% - var(--as-page-frame-corner-fill-inner)) calc(100% - var(--as-page-frame-corner-fill-cut)),
    calc(100% - var(--as-page-frame-corner-fill-inner)) calc(100% - var(--as-page-frame-corner-fill-inner)),
    calc(100% - var(--as-page-frame-corner-fill-cut)) calc(100% - var(--as-page-frame-corner-fill-inner)),
    calc(100% - var(--as-page-frame-corner-fill-cut)) 100%,
    var(--as-page-frame-corner-fill-cut) 100%,
    var(--as-page-frame-corner-fill-cut) calc(100% - var(--as-page-frame-corner-fill-inner)),
    var(--as-page-frame-corner-fill-inner) calc(100% - var(--as-page-frame-corner-fill-inner)),
    var(--as-page-frame-corner-fill-inner) calc(100% - var(--as-page-frame-corner-fill-cut)),
    0 calc(100% - var(--as-page-frame-corner-fill-cut)),
    0 var(--as-page-frame-corner-fill-cut),
    var(--as-page-frame-corner-fill-inner) var(--as-page-frame-corner-fill-cut),
    var(--as-page-frame-corner-fill-inner) var(--as-page-frame-corner-fill-inner),
    var(--as-page-frame-corner-fill-cut) var(--as-page-frame-corner-fill-inner)
  );
  background: var(--as-page-frame-fill-background);
}

body.page-home::before,
body.page-books::before,
body.page-vault::before,
body.page-memories::before,
body.page-why-as::before,
body.page-infinite-skills::before,
body.page-story-engine::before,
body.page-book-details::before,
body.page-join-our-story::before,
body.page-art-showcase::before {
  content: "";
  position: absolute;
  inset: var(--as-page-frame-rail-inset);
  z-index: 60;
  pointer-events: none;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 236, 140, 0.78) 0 calc(18% + 1px), rgba(99, 27, 10, 0.78) calc(19% + 1px) 47%, rgba(211, 151, 43, 0.82) 48% 72%, rgba(255, 232, 126, 0.5) calc(73% + 1px) 100%) top center / calc(100% - var(--as-page-frame-rail-drawn-clear) - var(--as-page-frame-rail-drawn-clear)) var(--as-page-frame-rail-size) no-repeat,
    linear-gradient(0deg, rgba(255, 236, 140, 0.78) 0 18%, rgba(99, 27, 10, 0.78) 19% 47%, rgba(211, 151, 43, 0.82) 48% 72%, rgba(255, 232, 126, 0.5) 73% 100%) bottom center / calc(100% - var(--as-page-frame-rail-drawn-clear) - var(--as-page-frame-rail-drawn-clear)) var(--as-page-frame-bottom-rail-size) no-repeat,
    linear-gradient(90deg, rgba(255, 236, 140, 0.78) 0 18%, rgba(99, 27, 10, 0.78) 19% 47%, rgba(211, 151, 43, 0.82) 48% 72%, rgba(255, 232, 126, 0.5) 73% 100%) left center / var(--as-page-frame-rail-size) calc(100% - var(--as-page-frame-rail-drawn-clear) - var(--as-page-frame-rail-drawn-clear)) no-repeat,
    linear-gradient(270deg, rgba(255, 236, 140, 0.78) 0 18%, rgba(99, 27, 10, 0.78) 19% 47%, rgba(211, 151, 43, 0.82) 48% 72%, rgba(255, 232, 126, 0.5) 73% 100%) right center / var(--as-page-frame-rail-size) calc(100% - var(--as-page-frame-rail-drawn-clear) - var(--as-page-frame-rail-drawn-clear)) no-repeat;
  box-shadow: 0 0 0 0.2rem rgba(55, 8, 7, 0.08);
}

body.page-home::after,
body.page-books::after,
body.page-vault::after,
body.page-memories::after,
body.page-why-as::after,
body.page-infinite-skills::after,
body.page-story-engine::after,
body.page-book-details::after,
body.page-join-our-story::after,
body.page-art-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 61;
  pointer-events: none;
  background:
    url("assets/shared/ornaments/top-center-gem-transparent.png") center top calc(var(--as-page-frame-rail-center) - var(--as-page-frame-gem-half-h)) / var(--as-page-frame-gem-w) var(--as-page-frame-gem-h) no-repeat,
    url("assets/shared/ornaments/footer-center-gem-transparent.png") center bottom calc(var(--as-page-frame-rail-center) - var(--as-page-frame-gem-half-h)) / var(--as-page-frame-gem-w) var(--as-page-frame-gem-h) no-repeat,
    url("assets/shared/ornaments/page-corner-top-left-transparent.png") left var(--as-page-frame-corner-drawn-offset) top var(--as-page-frame-corner-drawn-offset) / var(--as-page-frame-corner-size) auto no-repeat,
    url("assets/shared/ornaments/page-corner-top-right-transparent.png") right var(--as-page-frame-corner-drawn-offset) top var(--as-page-frame-corner-drawn-offset) / var(--as-page-frame-corner-size) auto no-repeat,
    url("assets/shared/ornaments/page-corner-bottom-left-transparent.png") left var(--as-page-frame-corner-drawn-offset) bottom var(--as-page-frame-corner-drawn-offset) / var(--as-page-frame-corner-size) auto no-repeat,
    url("assets/shared/ornaments/page-corner-bottom-right-transparent.png") right var(--as-page-frame-corner-drawn-offset) bottom var(--as-page-frame-corner-drawn-offset) / var(--as-page-frame-corner-size) auto no-repeat;
}

body.page-home .site-header,
body.page-books .site-header,
body.page-vault .site-header,
body.page-memories .site-header,
body.page-why-as .site-header,
body.page-infinite-skills .site-header,
body.page-story-engine .site-header,
body.page-book-details .site-header,
body.page-join-our-story .site-header,
body.page-art-showcase .site-header {
  position: relative;
  z-index: 80;
  overflow: visible;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

body.page-home .site-header .site-frame,
body.page-books .site-header .site-frame,
body.page-vault .site-header .site-frame,
body.page-memories .site-header .site-frame,
body.page-why-as .site-header .site-frame,
body.page-infinite-skills .site-header .site-frame,
body.page-story-engine .site-header .site-frame,
body.page-book-details .site-header .site-frame,
body.page-join-our-story .site-header .site-frame,
body.page-art-showcase .site-header .site-frame {
  width: min(var(--as-header-max), calc(100% - 0.75rem));
}

body.page-home .header-inner,
body.page-books .header-inner,
body.page-vault .header-inner,
body.page-memories .header-inner,
body.page-why-as .header-inner,
body.page-infinite-skills .header-inner,
body.page-story-engine .header-inner,
body.page-book-details .header-inner,
body.page-join-our-story .header-inner,
body.page-art-showcase .header-inner {
  z-index: 80;
  transform: translateY(var(--as-page-frame-header-drop));
}

body.page-home > main,
body.page-books > main,
body.page-vault > main,
body.page-memories > main,
body.page-why-as > main,
body.page-infinite-skills > main,
body.page-story-engine > main,
body.page-book-details > main,
body.page-join-our-story > main,
body.page-art-showcase > main,
body.page-home .site-footer,
body.page-books .site-footer,
body.page-vault .site-footer,
body.page-memories .site-footer,
body.page-why-as .site-footer,
body.page-infinite-skills .site-footer,
body.page-story-engine .site-footer,
body.page-book-details .site-footer,
body.page-join-our-story .site-footer,
body.page-art-showcase .site-footer {
  position: relative;
  z-index: 1;
}

body.page-home .site-footer::after,
body.page-books .site-footer::after,
body.page-vault .site-footer::after,
body.page-memories .site-footer::after,
body.page-why-as .site-footer::after,
body.page-infinite-skills .site-footer::after,
body.page-story-engine .site-footer::after,
body.page-book-details .site-footer::after,
body.page-join-our-story .site-footer::after,
body.page-art-showcase .site-footer::after {
  content: none;
  display: none;
}

.site-footer .footer-inner {
  width: min(var(--max), calc(100% - 2rem));
}

body.page-books {
  overflow-x: clip;
}

body.page-home .site-nav .nav-cta.ornate-red,
body.page-books .site-nav .nav-cta.ornate-red,
body.page-vault .site-nav .nav-cta.ornate-red,
body.page-memories .site-nav .nav-cta.ornate-red,
body.page-why-as .site-nav .nav-cta.ornate-red,
body.page-infinite-skills .site-nav .nav-cta.ornate-red,
body.page-story-engine .site-nav .nav-cta.ornate-red,
body.page-book-details .site-nav .nav-cta.ornate-red,
body.page-join-our-story .site-nav .nav-cta.ornate-red,
body.page-art-showcase .site-nav .nav-cta.ornate-red {
  width: 150px;
  min-width: 150px;
  height: 35px;
  min-height: 35px;
  background-image: url("assets/shared/buttons/precomposed-red/red-md-150x35@4x.png");
  color: var(--as-red-button-text);
  font-size: 12px;
  text-shadow: 0 1px 1px rgba(34, 9, 2, 0.72);
}

@media (min-width: 901px) {
  body.page-home,
  body.page-books,
  body.page-vault,
  body.page-memories,
  body.page-why-as,
  body.page-infinite-skills,
  body.page-story-engine,
  body.page-book-details,
  body.page-join-our-story,
  body.page-art-showcase {
    --as-page-frame-header-drop: clamp(0.62rem, 0.9vw, 0.86rem);
  }

  body.page-home .site-nav--icons,
  body.page-books .site-nav--icons,
  body.page-vault .site-nav--icons,
  body.page-memories .site-nav--icons,
  body.page-why-as .site-nav--icons,
  body.page-infinite-skills .site-nav--icons,
  body.page-story-engine .site-nav--icons,
  body.page-book-details .site-nav--icons,
  body.page-join-our-story .site-nav--icons,
  body.page-art-showcase .site-nav--icons {
    margin-top: calc(var(--as-page-frame-gem-h) - 0.75rem);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  body.page-home .header-inner,
  body.page-books .header-inner,
  body.page-vault .header-inner,
  body.page-memories .header-inner,
  body.page-why-as .header-inner,
  body.page-infinite-skills .header-inner,
  body.page-story-engine .header-inner,
  body.page-book-details .header-inner,
  body.page-join-our-story .header-inner,
  body.page-art-showcase .header-inner {
    display: grid;
    grid-template-columns: minmax(9.6rem, 42%) minmax(14rem, 1fr);
    column-gap: 0.45rem;
    align-items: start;
    min-height: auto;
    padding: 0.9rem 0.95rem 0.95rem;
  }

  body.page-home .brand,
  body.page-books .brand,
  body.page-vault .brand,
  body.page-memories .brand,
  body.page-why-as .brand,
  body.page-infinite-skills .brand,
  body.page-story-engine .brand,
  body.page-book-details .brand,
  body.page-join-our-story .brand,
  body.page-art-showcase .brand {
    justify-self: start;
  }

  body.page-home .brand img,
  body.page-books .brand img,
  body.page-vault .brand img,
  body.page-memories .brand img,
  body.page-why-as .brand img,
  body.page-infinite-skills .brand img,
  body.page-story-engine .brand img,
  body.page-book-details .brand img,
  body.page-join-our-story .brand img,
  body.page-art-showcase .brand img {
    position: static;
    left: auto;
    top: auto;
    width: min(12rem, 40vw);
  }

  body.page-home .site-nav--icons,
  body.page-books .site-nav--icons,
  body.page-vault .site-nav--icons,
  body.page-memories .site-nav--icons,
  body.page-why-as .site-nav--icons,
  body.page-infinite-skills .site-nav--icons,
  body.page-story-engine .site-nav--icons,
  body.page-book-details .site-nav--icons,
  body.page-join-our-story .site-nav--icons,
  body.page-art-showcase .site-nav--icons {
    display: grid;
    justify-self: end;
    width: min(20rem, 56vw);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.2rem 0.32rem;
    align-items: center;
    justify-items: center;
    margin-top: max(1.5rem, calc(var(--as-page-frame-gem-h) - 2rem));
    transform: translateX(-3.7rem);
  }

  body.page-home .site-nav--icons .nav-icon-link,
  body.page-books .site-nav--icons .nav-icon-link,
  body.page-vault .site-nav--icons .nav-icon-link,
  body.page-memories .site-nav--icons .nav-icon-link,
  body.page-why-as .site-nav--icons .nav-icon-link,
  body.page-infinite-skills .site-nav--icons .nav-icon-link,
  body.page-story-engine .site-nav--icons .nav-icon-link,
  body.page-book-details .site-nav--icons .nav-icon-link,
  body.page-join-our-story .site-nav--icons .nav-icon-link,
  body.page-art-showcase .site-nav--icons .nav-icon-link {
    width: min(100%, clamp(3.8rem, 8.4vw, 4.75rem));
    height: clamp(3.35rem, 7.5vw, 4.25rem);
  }

  body.page-home .site-nav--icons .nav-cta,
  body.page-books .site-nav--icons .nav-cta,
  body.page-vault .site-nav--icons .nav-cta,
  body.page-memories .site-nav--icons .nav-cta,
  body.page-why-as .site-nav--icons .nav-cta,
  body.page-infinite-skills .site-nav--icons .nav-cta,
  body.page-story-engine .site-nav--icons .nav-cta,
  body.page-book-details .site-nav--icons .nav-cta,
  body.page-join-our-story .site-nav--icons .nav-cta,
  body.page-art-showcase .site-nav--icons .nav-cta {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 0.72rem;
  }
}

@media (max-width: 640px) {
  body.page-home .header-inner,
  body.page-books .header-inner,
  body.page-vault .header-inner,
  body.page-memories .header-inner,
  body.page-why-as .header-inner,
  body.page-infinite-skills .header-inner,
  body.page-story-engine .header-inner,
  body.page-book-details .header-inner,
  body.page-join-our-story .header-inner,
  body.page-art-showcase .header-inner {
    display: grid;
    grid-template-columns: minmax(8.1rem, 43%) minmax(10rem, 1fr);
    column-gap: 0.3rem;
    align-items: start;
    min-height: auto;
    padding: 1.15rem 0.95rem 1rem 0.82rem;
  }

  body.page-home .brand,
  body.page-books .brand,
  body.page-vault .brand,
  body.page-memories .brand,
  body.page-why-as .brand,
  body.page-infinite-skills .brand,
  body.page-story-engine .brand,
  body.page-book-details .brand,
  body.page-join-our-story .brand,
  body.page-art-showcase .brand {
    justify-self: start;
    margin-top: 0.28rem;
  }

  body.page-home .brand img,
  body.page-books .brand img,
  body.page-vault .brand img,
  body.page-memories .brand img,
  body.page-why-as .brand img,
  body.page-infinite-skills .brand img,
  body.page-story-engine .brand img,
  body.page-book-details .brand img,
  body.page-join-our-story .brand img,
  body.page-art-showcase .brand img {
    position: static;
    left: auto;
    top: auto;
    width: min(10.25rem, 44vw);
  }

  body.page-home .site-nav--icons,
  body.page-books .site-nav--icons,
  body.page-vault .site-nav--icons,
  body.page-memories .site-nav--icons,
  body.page-why-as .site-nav--icons,
  body.page-infinite-skills .site-nav--icons,
  body.page-story-engine .site-nav--icons,
  body.page-book-details .site-nav--icons,
  body.page-join-our-story .site-nav--icons,
  body.page-art-showcase .site-nav--icons {
    display: grid;
    justify-self: end;
    width: min(13.1rem, 50vw);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.2rem 0.2rem;
    align-items: center;
    justify-items: center;
    margin-top: clamp(2rem, calc(92px - 10.5vw), 2.65rem);
    transform: translateX(-0.08rem);
  }

  body.page-home .site-nav--icons .nav-icon-link,
  body.page-books .site-nav--icons .nav-icon-link,
  body.page-vault .site-nav--icons .nav-icon-link,
  body.page-memories .site-nav--icons .nav-icon-link,
  body.page-why-as .site-nav--icons .nav-icon-link,
  body.page-infinite-skills .site-nav--icons .nav-icon-link,
  body.page-story-engine .site-nav--icons .nav-icon-link,
  body.page-book-details .site-nav--icons .nav-icon-link,
  body.page-join-our-story .site-nav--icons .nav-icon-link,
  body.page-art-showcase .site-nav--icons .nav-icon-link {
    width: min(100%, clamp(3rem, 14.2vw, 3.95rem));
    height: clamp(2.65rem, 12.7vw, 3.45rem);
  }

  body.page-home .site-nav--icons .nav-cta,
  body.page-books .site-nav--icons .nav-cta,
  body.page-vault .site-nav--icons .nav-cta,
  body.page-memories .site-nav--icons .nav-cta,
  body.page-why-as .site-nav--icons .nav-cta,
  body.page-infinite-skills .site-nav--icons .nav-cta,
  body.page-story-engine .site-nav--icons .nav-cta,
  body.page-book-details .site-nav--icons .nav-cta,
  body.page-join-our-story .site-nav--icons .nav-cta,
  body.page-art-showcase .site-nav--icons .nav-cta {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 0.8rem;
  }
}

@media (min-width: 560px) and (max-width: 640px) {
  body.page-home .site-nav--icons,
  body.page-books .site-nav--icons,
  body.page-vault .site-nav--icons,
  body.page-memories .site-nav--icons,
  body.page-why-as .site-nav--icons,
  body.page-infinite-skills .site-nav--icons,
  body.page-story-engine .site-nav--icons,
  body.page-book-details .site-nav--icons,
  body.page-join-our-story .site-nav--icons,
  body.page-art-showcase .site-nav--icons {
    margin-top: 2rem;
    transform: translateX(-3.8rem);
  }
}

@media (min-width: 901px) and (max-width: 1040px) {
  body.page-home .site-nav--icons,
  body.page-books .site-nav--icons,
  body.page-vault .site-nav--icons,
  body.page-memories .site-nav--icons,
  body.page-why-as .site-nav--icons,
  body.page-infinite-skills .site-nav--icons,
  body.page-story-engine .site-nav--icons,
  body.page-book-details .site-nav--icons,
  body.page-join-our-story .site-nav--icons,
  body.page-art-showcase .site-nav--icons {
    transform: translateX(clamp(-5.1rem, calc((100vw - 1040px) * 0.5 - 2rem), -2rem));
  }
}

body.page-art-showcase {
  --art-showcase-ink: #2a140c;
  --art-showcase-ruby: #7d130f;
  --art-showcase-gold: #c99328;
  --art-showcase-blue: #05263d;
  background: var(--as-red-page-frame-background);
}

body.page-art-showcase .page-scroll {
  width: min(1250px, calc(100% - clamp(2rem, 7vw, 6.9rem)));
  max-width: none;
  padding-top: clamp(5.15rem, 7vw, 6.65rem);
  padding-bottom: clamp(1rem, 2.5vw, 2.3rem);
  border-right: 0;
  border-left: 0;
  box-shadow: none;
}

.art-showcase-hero {
  position: relative;
  min-height: clamp(18rem, 24vw, 22rem);
  padding: clamp(1.25rem, 2.2vw, 2rem) 0 clamp(0.7rem, 1.4vw, 1.25rem);
}

.art-showcase-hero::after {
  content: "";
  position: absolute;
  right: -0.8rem;
  bottom: -0.2rem;
  z-index: 0;
  width: min(55rem, 58%);
  height: 80%;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245, 226, 181, 0), rgba(245, 226, 181, 0.78) 88%),
    radial-gradient(circle at 72% 45%, rgba(126, 84, 35, 0.2), transparent 24rem);
  opacity: 0.75;
}

.art-showcase-hero__copy {
  position: relative;
  z-index: 2;
  width: min(53rem, 59%);
  min-width: 0;
  color: var(--art-showcase-ink);
}

.art-showcase-hero h1 {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 0 0 clamp(1.2rem, 1.8vw, 1.65rem);
  color: var(--art-showcase-ink);
  font-size: clamp(4.25rem, 7vw, 6.4rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.art-showcase-hero h1::after {
  content: "";
  position: absolute;
  right: -2.75rem;
  bottom: -0.58rem;
  left: 0;
  height: 0.72rem;
  background:
    linear-gradient(90deg, rgba(152, 91, 19, 0.72), rgba(211, 151, 43, 0.9) 48%, rgba(152, 91, 19, 0)) center / 100% 1px no-repeat,
    url("assets/shared/ornaments/footer-center-gem-transparent.png") center / 2.2rem auto no-repeat;
}

.art-showcase-hero__copy > .eyebrow {
  margin: 0 0 0.65rem;
  color: var(--art-showcase-ruby);
  font-size: clamp(0.96rem, 1.2vw, 1.12rem);
}

.art-showcase-hero__copy > p:not(.eyebrow) {
  width: min(48rem, 100%);
  margin: 0;
  color: var(--art-showcase-ink);
  font-size: clamp(1.25rem, 1.85vw, 1.72rem);
  line-height: 1.38;
}

.art-showcase-progress {
  position: absolute;
  top: clamp(0.8rem, 1.2vw, 1.25rem);
  right: 0;
  z-index: 1;
  width: min(49rem, 54%);
  height: clamp(19rem, 29vw, 25.5rem);
  pointer-events: none;
}

.art-showcase-progress::before,
.art-showcase-progress::after {
  content: "";
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.art-showcase-progress::before {
  inset: -1rem -0.4rem -1.1rem -3rem;
  background:
    linear-gradient(90deg, rgba(245, 226, 181, 0.76) 0%, rgba(245, 226, 181, 0.22) 28%, rgba(245, 226, 181, 0) 72%, rgba(245, 226, 181, 0.18) 100%),
    linear-gradient(180deg, rgba(245, 226, 181, 0.26), rgba(245, 226, 181, 0) 26%, rgba(245, 226, 181, 0) 72%, rgba(245, 226, 181, 0.3));
  opacity: 0.6;
}

.art-showcase-progress::after {
  right: 7%;
  bottom: -0.8rem;
  left: 4%;
  height: 3.5rem;
  background: radial-gradient(ellipse at center, rgba(62, 31, 12, 0.28), transparent 68%);
  filter: blur(8px);
}

.art-showcase-progress__photo {
  position: absolute;
  z-index: 2;
  display: grid;
  margin: 0;
  overflow: hidden;
  background: #eadfc4;
  border: 12px solid transparent;
  border-image: var(--as-card-frame) 30 stretch;
  box-shadow: 0 18px 32px rgba(61, 33, 10, 0.24);
}

.art-showcase-progress__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.16) saturate(0.86) contrast(1.02);
}

.art-showcase-progress__photo figcaption {
  position: absolute;
  right: 0.7rem;
  bottom: 0.55rem;
  left: 0.7rem;
  z-index: 2;
  color: #fff4cf;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.82);
}

.art-showcase-progress__photo--rough {
  left: 1%;
  top: 23%;
  width: 31%;
  height: 55%;
  opacity: 0.72;
  transform: rotate(-5deg);
}

.art-showcase-progress__photo--rough img {
  object-position: 42% 23%;
}

.art-showcase-progress__photo--refined {
  left: 25%;
  top: 9%;
  z-index: 3;
  width: 36%;
  height: 70%;
  opacity: 0.84;
  transform: rotate(2.5deg);
}

.art-showcase-progress__photo--refined img {
  object-position: 37% 27%;
}

.art-showcase-progress__photo--finished {
  right: 0;
  top: 0;
  z-index: 2;
  width: 45%;
  height: 88%;
  opacity: 0.96;
  transform: rotate(-1.6deg);
}

.art-showcase-progress__photo--finished img {
  object-position: 44% 35%;
}

.art-showcase-featured {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 3vw, 2.7rem) 0 clamp(2rem, 4vw, 3.4rem);
  color: var(--art-showcase-ink);
}

.art-showcase-section-heading {
  width: min(71rem, 100%);
  margin-bottom: clamp(1.2rem, 2.3vw, 2rem);
}

.art-showcase-section-heading .eyebrow {
  margin: 0 0 0.45rem;
  color: var(--art-showcase-ruby);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.art-showcase-section-heading h2 {
  margin: 0 0 0.85rem;
  color: var(--art-showcase-ink);
  font-size: clamp(2.65rem, 4.6vw, 4.35rem);
  line-height: 0.96;
}

.art-showcase-section-heading > p:last-child {
  width: min(61rem, 100%);
  margin: 0;
  font-size: clamp(1.02rem, 1.35vw, 1.23rem);
  line-height: 1.48;
}

.art-showcase-work {
  display: grid;
  grid-template-columns: minmax(17rem, 0.78fr) minmax(20rem, 1.22fr);
  grid-template-areas:
    "hero details"
    "process process";
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
  padding: clamp(1rem, 2vw, 1.65rem);
  background:
    linear-gradient(rgba(255, 247, 218, 0.78), rgba(255, 247, 218, 0.78)),
    var(--as-parchment-surface) 0 0 / var(--as-parchment-surface-size) repeat,
    #f5e2b7;
  border: 18px solid transparent;
  border-image: var(--as-core-card-frame) 30 stretch;
  background-clip: padding-box;
  box-shadow: 0 18px 32px rgba(77, 39, 8, 0.18);
}

.art-showcase-work__hero {
  position: relative;
  grid-area: hero;
  min-height: clamp(27rem, 43vw, 39rem);
  margin: 0;
  overflow: hidden;
  background: #d7cbb1;
  box-shadow: 0 12px 24px rgba(48, 24, 7, 0.2);
}

.art-showcase-work__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 29%;
  filter: sepia(0.09) contrast(1.03);
}

.art-showcase-work__hero figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.65rem 0.85rem;
  color: #fff2c5;
  background: rgba(3, 27, 43, 0.88);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.art-showcase-work__details {
  grid-area: details;
  align-self: center;
  min-width: 0;
  padding: clamp(0.25rem, 1vw, 0.75rem) clamp(0rem, 1vw, 0.85rem);
}

.art-showcase-work__credit {
  width: max-content;
  max-width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.38rem 0.72rem;
  color: #ffe19a;
  background: #08283c;
  border-left: 3px solid var(--art-showcase-gold);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.art-showcase-work__details h3 {
  margin: 0 0 0.85rem;
  color: var(--art-showcase-ruby);
  font-size: clamp(2.2rem, 3.9vw, 3.7rem);
  line-height: 0.95;
}

.art-showcase-work__details > p:not(.art-showcase-work__credit) {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.48;
}

.art-showcase-work__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 1.3rem 0;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(139, 81, 18, 0.42);
  border-bottom: 1px solid rgba(139, 81, 18, 0.42);
}

.art-showcase-work__facts div {
  min-width: 0;
  padding: 0 0.8rem;
  border-right: 1px solid rgba(139, 81, 18, 0.3);
}

.art-showcase-work__facts div:first-child {
  padding-left: 0;
}

.art-showcase-work__facts div:last-child {
  padding-right: 0;
  border-right: 0;
}

.art-showcase-work__facts dt {
  margin-bottom: 0.28rem;
  color: var(--art-showcase-ruby);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.art-showcase-work__facts dd {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.3;
}

.art-showcase-work__note {
  padding-left: 0.85rem;
  border-left: 3px solid var(--art-showcase-gold);
}

.art-showcase-work__process {
  display: grid;
  grid-area: process;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.4vw, 1.1rem);
  padding-top: clamp(0.3rem, 1vw, 0.8rem);
}

.art-showcase-work__process figure {
  display: grid;
  grid-template-rows: clamp(9rem, 17vw, 14rem) auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #08283c;
  border-top: 3px solid var(--art-showcase-gold);
}

.art-showcase-work__process img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 28%;
  filter: sepia(0.12) saturate(0.9);
}

.art-showcase-work__process figcaption {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  color: #fff0bc;
  font-family: var(--font-ui);
  font-size: 0.79rem;
  font-weight: 800;
  text-transform: uppercase;
}

.art-showcase-work__process figcaption span {
  color: #f0bd53;
}

.art-showcase-next {
  position: relative;
  z-index: 2;
  padding: clamp(0.5rem, 1vw, 0.9rem) 0 clamp(1.7rem, 3vw, 2.5rem);
  color: var(--art-showcase-ink);
}

.art-showcase-next > .eyebrow {
  margin: 0 0 0.42rem;
  color: var(--art-showcase-ruby);
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
}

.art-showcase-next h2 {
  max-width: 80rem;
  margin: 0 0 clamp(1.1rem, 2vw, 1.65rem);
  color: var(--art-showcase-ink);
  font-size: clamp(3rem, 4.3vw, 4.2rem);
  line-height: 0.92;
}

.art-showcase-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.art-showcase-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0.7rem 1rem;
  min-height: clamp(15rem, 18vw, 17.6rem);
  padding: clamp(1rem, 1.55vw, 1.25rem) clamp(0.9rem, 1.45vw, 1.15rem);
  color: var(--art-showcase-ink);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 253, 231, 0.72), transparent 14rem),
    linear-gradient(rgba(255, 246, 216, 0.8), rgba(255, 246, 216, 0.8)),
    var(--as-parchment-surface) 0 0 / var(--as-parchment-surface-size) repeat,
    #f5e2b7;
  border: 18px solid transparent;
  border-image: var(--as-core-card-frame) 30 stretch;
  background-clip: padding-box;
  box-shadow: 0 18px 28px rgba(88, 49, 13, 0.16);
}

.art-showcase-card__icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: clamp(4.35rem, 5.9vw, 5.45rem);
  aspect-ratio: 1;
  color: #f7d66e;
  background:
    radial-gradient(circle at 38% 34%, rgba(40, 112, 145, 0.74), transparent 34%),
    linear-gradient(180deg, #093551, #021522);
  border: 4px solid #d2a13a;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px rgba(255, 243, 185, 0.42),
    inset 0 0 16px rgba(0, 0, 0, 0.42),
    0 10px 16px rgba(53, 24, 7, 0.2);
}

.art-showcase-card__icon svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.45));
}

.art-showcase-card__copy {
  min-width: 0;
}

.art-showcase-card h3 {
  position: relative;
  margin: 0 0 0.75rem;
  color: var(--art-showcase-ink);
  font-size: clamp(1.45rem, 1.8vw, 1.85rem);
  line-height: 1;
}

.art-showcase-card h3::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.42rem;
  left: 0;
  height: 0.5rem;
  background:
    linear-gradient(90deg, rgba(166, 103, 22, 0), rgba(166, 103, 22, 0.45) 22%, rgba(166, 103, 22, 0.45) 78%, rgba(166, 103, 22, 0)) center / 100% 1px no-repeat,
    url("assets/shared/ornaments/footer-center-gem-transparent.png") center / 1.45rem auto no-repeat;
}

.art-showcase-card p {
  margin: 0;
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
  line-height: 1.35;
}

.art-showcase-card__button {
  grid-column: 1 / -1;
  justify-self: center;
  align-self: end;
  margin-top: 0.65rem;
}

.art-submission-main {
  color: var(--art-showcase-ink);
}

.art-submission-hero {
  width: min(69rem, 100%);
  padding: clamp(1.2rem, 2.6vw, 2.3rem) 0 clamp(1.7rem, 3.2vw, 2.8rem);
}

.art-submission-hero > .eyebrow,
.art-submission-panel__heading > .eyebrow,
.art-submission-process .eyebrow {
  margin: 0 0 0.45rem;
  color: var(--art-showcase-ruby);
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
}

.art-submission-hero h1 {
  margin: 0 0 0.85rem;
  color: var(--art-showcase-ink);
  font-size: clamp(3.5rem, 6vw, 5.8rem);
  line-height: 0.92;
}

.art-submission-hero > p:not(.eyebrow) {
  margin: 0;
  font-size: clamp(1.08rem, 1.55vw, 1.38rem);
  line-height: 1.5;
}

.art-submission-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.3rem;
  margin-top: 1.2rem;
}

.art-submission-hero__actions a {
  color: #762018;
  font-weight: 700;
  text-underline-offset: 0.22rem;
}

.art-submission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 0.7fr);
  gap: clamp(1.2rem, 2.4vw, 2.1rem);
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 3.4rem);
}

.art-submission-panel {
  padding: clamp(1rem, 2.4vw, 1.9rem);
  background:
    linear-gradient(rgba(255, 248, 220, 0.8), rgba(255, 248, 220, 0.8)),
    var(--as-parchment-surface) 0 0 / var(--as-parchment-surface-size) repeat,
    #f5e2b7;
  border: 18px solid transparent;
  border-image: var(--as-core-card-frame) 30 stretch;
  background-clip: padding-box;
  box-shadow: 0 18px 30px rgba(71, 34, 7, 0.17);
}

.art-submission-panel__heading {
  margin-bottom: 1.2rem;
}

.art-submission-panel__heading h2,
.art-submission-process h2 {
  margin: 0;
  color: var(--art-showcase-ink);
  font-size: clamp(2rem, 3.3vw, 3rem);
  line-height: 1;
}

.art-submission-form {
  display: grid;
  gap: 1rem;
}

.art-submission-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.art-submission-form > label,
.art-submission-field-row > label {
  display: grid;
  gap: 0.36rem;
  min-width: 0;
  color: var(--art-showcase-ink);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 800;
}

.art-submission-form label em {
  color: #684c32;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
}

.art-submission-form input:not([type="checkbox"]),
.art-submission-form select,
.art-submission-form textarea {
  width: 100%;
  min-width: 0;
  color: #26160d;
  background: rgba(255, 253, 237, 0.88);
  border: 1px solid rgba(135, 78, 20, 0.55);
  border-radius: 2px;
  font: 400 1rem/1.4 var(--font-body);
}

.art-submission-form input:not([type="checkbox"]),
.art-submission-form select {
  min-height: 2.8rem;
  padding: 0.58rem 0.7rem;
}

.art-submission-form textarea {
  min-height: 7rem;
  padding: 0.65rem 0.7rem;
  resize: vertical;
}

.art-submission-form input:focus-visible,
.art-submission-form select:focus-visible,
.art-submission-form textarea:focus-visible {
  outline: 3px solid rgba(15, 80, 114, 0.45);
  outline-offset: 2px;
}

.art-submission-form small {
  color: #5c412b;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
}

.art-submission-consent {
  display: grid;
  gap: 0.72rem;
  margin: 0.3rem 0 0;
  padding: 1rem;
  background: rgba(229, 205, 150, 0.32);
  border: 1px solid rgba(139, 81, 18, 0.38);
}

.art-submission-consent legend {
  padding: 0 0.4rem;
  color: var(--art-showcase-ruby);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.art-submission-consent label {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.42;
}

.art-submission-consent input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.12rem 0 0;
  accent-color: #7d130f;
}

.art-permission {
  display: grid;
  gap: 1rem;
  margin-top: 0.35rem;
  padding: clamp(1rem, 2vw, 1.35rem) 0;
  background: linear-gradient(90deg, rgba(228, 202, 142, 0.18), rgba(255, 250, 229, 0.34), rgba(228, 202, 142, 0.18));
  border-top: 1px solid rgba(139, 81, 18, 0.48);
  border-bottom: 1px solid rgba(139, 81, 18, 0.48);
}

.art-permission__heading,
.art-permission__summary,
.art-permission__terms,
.art-permission__signature,
.art-permission__confirmation,
.art-permission__noscript {
  margin-right: clamp(0.75rem, 2vw, 1.25rem);
  margin-left: clamp(0.75rem, 2vw, 1.25rem);
}

.art-permission__heading .eyebrow {
  margin: 0 0 0.25rem;
  color: var(--art-showcase-ruby);
  font-size: 0.78rem;
}

.art-permission__heading h3 {
  margin: 0;
  color: var(--art-showcase-ink);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.art-permission__version {
  margin: 0.35rem 0 0;
  color: #6b4b2f;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.art-permission__summary {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0.8rem;
  border-left: 3px solid var(--art-showcase-gold);
  font-size: 0.95rem;
  line-height: 1.5;
}

.art-permission__terms {
  max-height: 23rem;
  overflow-y: auto;
  padding: clamp(0.85rem, 1.8vw, 1.15rem);
  color: #2d1c10;
  background: rgba(255, 253, 239, 0.72);
  border: 1px solid rgba(135, 78, 20, 0.43);
  box-shadow: inset 0 0 1.1rem rgba(143, 88, 24, 0.08);
  scrollbar-color: #a66a22 rgba(225, 197, 135, 0.26);
}

.art-permission__terms section + section,
.art-permission__terms section + p,
.art-permission__terms p + section,
.art-permission__terms ul + section {
  margin-top: 0.9rem;
}

.art-permission__terms h4 {
  margin: 0 0 0.3rem;
  color: var(--art-showcase-ruby);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.art-permission__terms p,
.art-permission__terms ul {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.48;
}

.art-permission__terms ul {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.art-permission__terms li::marker,
.art-permission__terms li strong {
  color: var(--art-showcase-ruby);
}

.art-permission__terms li strong {
  font-family: var(--font-ui);
  font-size: 0.72rem;
}

.art-permission__terms .art-permission__guardian {
  margin-top: 0.55rem;
  font-style: italic;
}

.art-permission__terms .art-permission__footer {
  margin-top: 1rem;
  padding-top: 0.65rem;
  color: var(--art-showcase-ruby);
  border-top: 1px solid rgba(139, 81, 18, 0.35);
  font-family: var(--font-ui);
  font-size: 0.73rem;
  font-weight: 800;
}

.art-permission__signature {
  display: grid;
  gap: 0.36rem;
  color: var(--art-showcase-ink);
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 800;
}

.art-permission__confirmation {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.45;
}

.art-permission__confirmation input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.14rem 0 0;
  accent-color: #7d130f;
}

.art-permission__noscript {
  color: #8a1711;
  font-weight: 700;
}

.art-submission-form__notice {
  margin: 0;
  padding-left: 0.8rem;
  border-left: 3px solid var(--art-showcase-gold);
  font-size: 0.88rem;
  line-height: 1.45;
}

.art-submission-submit {
  justify-self: start;
  margin-top: 0.15rem;
}

.art-submission-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.art-submission-status {
  min-height: 1.5rem;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
}

.art-submission-status.is-success {
  color: #175724;
}

.art-submission-status.is-error {
  color: #8a1711;
}

.art-submission-process {
  position: sticky;
  top: 7.2rem;
  overflow: hidden;
  color: #f8e7b7;
  background: #062235;
  border: 18px solid transparent;
  border-image: var(--as-core-card-frame) 30 stretch;
  background-clip: padding-box;
  box-shadow: 0 18px 30px rgba(40, 18, 5, 0.22);
}

.art-submission-process > img {
  width: 100%;
  height: clamp(16rem, 26vw, 24rem);
  object-fit: cover;
  object-position: 42% 24%;
  filter: sepia(0.08) contrast(1.04);
}

.art-submission-process > div {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.art-submission-process .eyebrow {
  color: #efbe55;
}

.art-submission-process h2 {
  color: #fff0c1;
}

.art-submission-process ol {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.art-submission-process li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.7rem;
  align-items: start;
}

.art-submission-process li > span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #09263a;
  background: #e3b54d;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-weight: 900;
}

.art-submission-process strong {
  display: block;
  color: #fff0c1;
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.art-submission-process li p {
  margin: 0.2rem 0 0;
  color: #e8d6a8;
  font-size: 0.9rem;
  line-height: 1.4;
}

.art-policy-document {
  max-width: 62rem;
  border: 18px solid transparent;
  border-image: var(--as-core-card-frame) 30 stretch;
  background-clip: padding-box;
}

.art-policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.35rem 0 1.8rem;
}

.art-policy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.3rem 0 2rem;
  padding: 0.9rem 0;
  list-style: none;
  border-top: 1px solid rgba(217, 173, 84, 0.5);
  border-bottom: 1px solid rgba(217, 173, 84, 0.5);
}

.art-policy-summary li {
  min-width: 0;
  padding: 0.1rem 1rem;
  border-right: 1px solid rgba(217, 173, 84, 0.32);
}

.art-policy-summary li:first-child {
  padding-left: 0;
}

.art-policy-summary li:last-child {
  padding-right: 0;
  border-right: 0;
}

.art-policy-summary strong,
.art-policy-summary span {
  display: block;
}

.art-policy-summary strong {
  margin-bottom: 0.32rem;
  color: #f6d88a;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.art-policy-summary span {
  color: #e8d8b6;
  font-size: 0.84rem;
  line-height: 1.42;
}

.art-policy-closing {
  margin-top: 2rem !important;
  padding: 1rem 1.15rem;
  color: #f7e3af;
  background: #08283c;
  border-left: 4px solid var(--art-showcase-gold);
}

@media (max-width: 900px) {
  body.page-art-showcase .page-scroll {
    width: min(100% - 2rem, 58rem);
    padding-top: clamp(4.5rem, 12vw, 6.1rem);
  }

  .art-showcase-hero {
    display: grid;
    gap: 1.2rem;
    min-height: 0;
  }

  .art-showcase-hero__copy {
    width: 100%;
  }

  .art-showcase-progress {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 36rem);
    height: clamp(18rem, 62vw, 27rem);
    margin: 0 auto;
  }

  .art-showcase-hero::after {
    right: 0;
    width: 100%;
  }

  .art-showcase-card-grid {
    grid-template-columns: 1fr;
  }

  .art-showcase-card {
    min-height: 0;
  }

  .art-showcase-work {
    grid-template-columns: minmax(15rem, 0.8fr) minmax(17rem, 1.2fr);
  }

  .art-showcase-work__facts {
    grid-template-columns: 1fr;
  }

  .art-showcase-work__facts div,
  .art-showcase-work__facts div:first-child,
  .art-showcase-work__facts div:last-child {
    padding: 0.5rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(139, 81, 18, 0.22);
  }

  .art-showcase-work__facts div:last-child {
    border-bottom: 0;
  }

  .art-submission-layout {
    grid-template-columns: 1fr;
  }

  .art-submission-process {
    position: static;
    display: grid;
    grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr);
  }

  .art-submission-process > img {
    height: 100%;
    min-height: 24rem;
  }
}

@media (max-width: 640px) {
  .art-showcase-hero {
    padding-top: clamp(1rem, 3vw, 1.6rem);
  }

  .art-showcase-hero h1 {
    width: auto;
    font-size: clamp(2.35rem, 12.5vw, 4.7rem);
  }

  .art-showcase-hero h1::after {
    right: 0;
  }

  .art-showcase-hero__copy > p:not(.eyebrow) {
    font-size: 1.18rem;
  }

  .art-showcase-progress {
    width: min(calc(100% - 0.5rem), 36rem);
    height: 25rem;
  }

  .art-showcase-progress__photo--rough {
    left: 0;
    top: 30%;
    width: 38%;
    height: 50%;
  }

  .art-showcase-progress__photo--refined {
    left: 22%;
    top: 12%;
    width: 43%;
    height: 62%;
  }

  .art-showcase-progress__photo--finished {
    width: 49%;
    height: 78%;
  }

  .art-showcase-next h2 {
    font-size: clamp(2.55rem, 14vw, 3.55rem);
  }

  .art-showcase-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .art-showcase-card__icon {
    grid-row: auto;
  }

  .art-showcase-card__button {
    justify-self: start;
  }

  .art-showcase-work {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "details"
      "process";
  }

  .art-showcase-work__hero {
    min-height: 31rem;
  }

  .art-showcase-work__process {
    grid-template-columns: 1fr;
  }

  .art-showcase-work__process figure {
    grid-template-rows: 16rem auto;
  }

  .art-submission-field-row {
    grid-template-columns: 1fr;
  }

  .art-permission__terms {
    max-height: 28rem;
  }

  .page-art-showcase .art-submission-submit {
    --ornate-red-w: 184px;
    background-image: url("assets/shared/buttons/precomposed-red/red-lg-184x35@4x.png");
  }

  .art-submission-process {
    display: block;
  }

  .art-submission-process > img {
    height: 22rem;
    min-height: 0;
  }

  .art-policy-summary {
    grid-template-columns: 1fr;
  }

  .art-policy-summary li,
  .art-policy-summary li:first-child,
  .art-policy-summary li:last-child {
    padding: 0.75rem 0;
    border-right: 0;
    border-bottom: 1px solid rgba(217, 173, 84, 0.24);
  }

  .art-policy-summary li:last-child {
    border-bottom: 0;
  }
}

/* AI Art page: dark cinematic policy page built from reusable page patterns. */
body.page-ai-art {
  --max: 1180px;
  --ai-art-bg: #06101a;
  --ai-art-panel: rgba(5, 17, 28, 0.92);
  --ai-art-panel-2: rgba(7, 26, 42, 0.92);
  --ai-art-gold: #d9ad54;
  --ai-art-gold-bright: #ffe08a;
  --ai-art-blue: #071e31;
  --ai-art-red: #5e120b;
  --ai-art-parchment:
    radial-gradient(circle at 12% 12%, rgba(255, 249, 219, 0.34), transparent 18rem),
    linear-gradient(rgba(255, 246, 218, 0.24), rgba(255, 246, 218, 0.24)),
    var(--as-parchment-surface) 0 0 / var(--as-parchment-surface-size) repeat,
    #f2ddb0;
  color: #f9e7b9;
  background:
    radial-gradient(circle at 50% 0%, rgba(50, 104, 145, 0.28), transparent 28rem),
    radial-gradient(circle at 15% 24%, rgba(214, 166, 65, 0.12), transparent 22rem),
    linear-gradient(180deg, #081523, #030911 56%, #06101a);
}

.page-ai-art main.site-frame {
  --ai-art-section-rail-clearance: clamp(1rem, 2.2vw, 1.5rem);
  width: min(var(--max), calc(100% - 0.75rem));
  padding: 0.75rem 0 2.25rem;
  background: none;
}

.page-ai-art .button {
  display: inline-grid;
  place-items: center;
  min-height: 35px;
  padding: 0 0.9rem;
  color: var(--as-red-button-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  filter: none;
}

.page-ai-art .button::before,
.page-ai-art .button::after {
  content: none;
  display: none;
}

.page-ai-art .ornate-red--lg {
  width: 184px;
  background-image: url("assets/shared/buttons/precomposed-red/red-lg-184x35@4x.png");
}

.page-ai-art .ornate-blue--lg {
  width: 184px;
  background-image: url("assets/shared/buttons/precomposed-blue/blue-lg-184x35@4x.png");
}

.page-ai-art .ornate-blue--xl {
  width: 236px;
  background-image: url("assets/shared/buttons/precomposed-blue/blue-xl-236x35@4x.png");
}

.page-ai-art .ornate-gold--lg {
  width: 184px;
  color: #1d1508;
  text-shadow: 0 1px 0 rgba(255, 240, 165, 0.55);
  background-image: url("assets/shared/buttons/precomposed-gold/gold-lg-184x35@4x.png");
}

.ai-art-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem 0.85rem;
  align-items: center;
}

.ai-art-hero {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1916 / 821;
  min-height: 0;
  margin: 0 0 1.05rem;
  background:
    linear-gradient(90deg, rgba(2, 8, 14, 0.86) 0%, rgba(4, 14, 24, 0.66) 36%, rgba(4, 14, 24, 0.16) 58%, rgba(2, 8, 14, 0.04) 100%),
    url("assets/pages/ai-art/art/hero-background.jpg") center center / cover no-repeat;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.ai-art-section-heading h2::before,
.ai-art-section-heading h2::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ai-art-hero__copy {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(39rem, 46.5%);
  max-width: 100%;
  padding: clamp(5.95rem, 7.4vw, 6.6rem) 0 clamp(1.1rem, 2vw, 1.65rem) clamp(1.8rem, 3.45vw, 3.05rem);
}

.ai-art-hero h1 {
  margin: 0 0 0.65rem;
  color: var(--ai-art-gold-bright);
  font-size: clamp(2.16rem, 3.12vw, 3.1rem);
  line-height: 0.95;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.65);
}

.ai-art-hero p {
  margin: 0 0 0.52rem;
  color: #f5e8c2;
  font-size: clamp(0.82rem, 0.9vw, 0.95rem);
  line-height: 1.28;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.ai-art-hero .ai-art-hero__promise {
  color: var(--ai-art-gold-bright);
  font-weight: 700;
}

@media (min-width: 761px) and (max-width: 1040px) {
  .ai-art-hero {
    aspect-ratio: auto;
    min-height: 39rem;
  }

  .ai-art-hero__copy {
    padding-top: clamp(3.65rem, 6.2vw, 4.25rem);
  }
}

@media (min-width: 901px) and (max-width: 1040px) {
  .ai-art-hero__copy {
    padding-top: clamp(6rem, 9.5vw, 6.5rem);
  }
}

.ai-art-section {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - var(--ai-art-section-rail-clearance));
  margin: 1rem auto;
}

.ai-art-section-heading {
  position: relative;
  z-index: 1;
  margin: 0 auto 0.85rem;
  color: #5a1a0d;
  text-align: center;
}

.ai-art-section-heading h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0 3.15rem;
  color: inherit;
  font-size: clamp(1.36rem, 2.8vw, 2rem);
  line-height: 1.04;
}

.ai-art-section-heading h2::before,
.ai-art-section-heading h2::after {
  top: 50%;
  width: 2.35rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.7;
}

.ai-art-section-heading h2::before {
  left: 0;
  transform: translateY(-50%) scaleX(-1);
}

.ai-art-section-heading h2::after {
  right: 0;
  transform: translateY(-50%);
}

.ai-art-section-heading--dark {
  color: var(--ai-art-gold-bright);
}

.ai-art-section-heading--small h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.ai-art-section--parchment {
  padding: clamp(1.05rem, 2vw, 1.5rem);
  color: #24140d;
  background: var(--ai-art-parchment);
  border: 18px solid transparent;
  border-image: var(--as-card-frame) 30 stretch;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.ai-art-section--dark,
.ai-art-section--submit,
.ai-art-closing {
  padding: clamp(1rem, 2.2vw, 1.55rem);
  background:
    radial-gradient(circle at 16% 0%, rgba(45, 114, 151, 0.22), transparent 18rem),
    linear-gradient(180deg, rgba(8, 30, 47, 0.96), rgba(3, 12, 22, 0.98));
  border: 18px solid transparent;
  border-image: var(--as-card-frame) 30 stretch;
  box-shadow: inset 0 0 0 1px rgba(217, 173, 84, 0.18), 0 15px 28px rgba(0, 0, 0, 0.24);
}

.ai-art-reason-grid,
.ai-art-open-grid,
.ai-art-commitment-grid {
  display: grid;
  gap: clamp(0.7rem, 1.4vw, 1rem);
}

.ai-art-reason-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-art-reason-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  min-height: 8.2rem;
  padding: 0.95rem;
  background: rgba(255, 246, 216, 0.5);
  border: 12px solid transparent;
  border-image: var(--as-core-card-frame) 28 stretch;
}

.ai-art-reason-card img {
  width: clamp(4.1rem, 7vw, 5.35rem);
  max-height: 5.6rem;
  object-fit: contain;
}

.ai-art-reason-card h3,
.ai-art-dark-card h3,
.ai-art-process-list h3,
.ai-art-matters-strip h3,
.ai-art-commitment-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.08;
}

.ai-art-reason-card p,
.ai-art-dark-card p,
.ai-art-process-list p,
.ai-art-matters-strip p,
.ai-art-commitment-grid p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.28;
}

.ai-art-open-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-art-dark-card {
  min-height: 12rem;
  padding: 1rem;
  color: #f6e5b8;
  background:
    radial-gradient(circle at 50% 0%, rgba(45, 119, 162, 0.2), transparent 8rem),
    linear-gradient(180deg, rgba(9, 31, 50, 0.94), rgba(3, 10, 18, 0.96));
  border: 12px solid transparent;
  border-image: var(--as-card-frame) 30 stretch;
}

.ai-art-dark-card img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
  margin: 0 0 0.55rem;
}

.ai-art-process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ai-art-process-list li {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 17rem;
  padding: 1rem;
  background: rgba(255, 248, 225, 0.48);
  border: 12px solid transparent;
  border-image: var(--as-core-card-frame) 28 stretch;
}

.ai-art-process-number,
.ai-art-commitment-grid span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.55rem;
  color: #ffe08a;
  font-family: var(--font-heading);
  font-weight: 700;
  background: radial-gradient(circle, #61431b, #1a1208 70%);
  border: 1px solid rgba(234, 183, 76, 0.8);
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.ai-art-process-list img {
  width: 100%;
  aspect-ratio: 1.85 / 1;
  object-fit: cover;
  margin-top: 0.8rem;
  border: 1px solid rgba(118, 73, 23, 0.35);
}

.ai-art-matters-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0.2rem 0;
}

.ai-art-matters-strip article {
  min-height: 9rem;
  padding: 0.55rem 0.7rem;
  text-align: center;
  border-right: 1px solid rgba(119, 75, 24, 0.35);
}

.ai-art-matters-strip article:last-child {
  border-right: 0;
}

.ai-art-matters-strip img {
  width: 3.4rem;
  height: 3.2rem;
  object-fit: contain;
  margin: 0 auto 0.35rem;
}

.ai-art-commitment-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-art-commitment-grid article {
  padding: 0.8rem 0.9rem;
  color: #f8e7ba;
  border-left: 1px solid rgba(222, 174, 82, 0.32);
}

.ai-art-commitment-grid article:first-child {
  border-left: 0;
}

.ai-art-section--submit {
  display: grid;
  grid-template-columns: minmax(13rem, 22%) 1fr;
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: center;
}

.ai-art-submit-lyre {
  width: min(15.5rem, 100%);
  justify-self: center;
  filter: drop-shadow(0 0 10px rgba(111, 191, 255, 0.22));
}

.ai-art-submit-copy > p {
  max-width: 46rem;
  margin: 0 auto 0.75rem;
  text-align: center;
  color: #f8e7ba;
}

.ai-art-category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.42rem 0.55rem;
  max-width: 48rem;
  padding: 0;
  margin: 0 auto 1rem;
  list-style: none;
}

.ai-art-category-list li {
  min-width: 6.8rem;
  padding: 0.26rem 0.6rem;
  color: #281708;
  font-size: 0.78rem;
  line-height: 1;
  text-align: center;
  background: linear-gradient(180deg, #ecd18b, #b88937);
  border: 1px solid rgba(255, 236, 160, 0.58);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(73, 38, 5, 0.2);
}

.ai-art-section--submit .ai-art-button-row,
.ai-art-hero .ai-art-button-row {
  justify-content: flex-start;
}

.ai-art-section--submit .ai-art-button-row {
  justify-content: center;
}

.ai-art-closing {
  box-sizing: border-box;
  width: calc(100% - var(--ai-art-section-rail-clearance));
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 1rem;
  color: #f8e7ba;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(3, 11, 20, 0.75), rgba(3, 11, 20, 0.3), rgba(3, 11, 20, 0.75)),
    url("assets/pages/ai-art/art/closing-city.jpg") left center / auto 100% no-repeat,
    linear-gradient(180deg, #061625, #020810);
}

.ai-art-closing h2 {
  margin: 0 0 0.45rem;
  color: var(--ai-art-gold-bright);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.ai-art-closing p {
  margin: 0.12rem 0;
  color: #f2dfad;
}

.page-ai-art .site-footer {
  color: #f4e3b8;
  background: transparent;
}

.page-ai-art .site-footer .footer-inner {
  border-top-color: rgba(222, 174, 82, 0.35);
}

@media (max-width: 1040px) {
  .ai-art-reason-grid,
  .ai-art-open-grid,
  .ai-art-commitment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-art-matters-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-art-matters-strip article:nth-child(3) {
    border-right: 0;
  }

  .ai-art-matters-strip article:nth-child(n + 4) {
    border-top: 1px solid rgba(119, 75, 24, 0.25);
  }

  .ai-art-process-list {
    grid-template-columns: 1fr;
  }

  .ai-art-process-list li {
    grid-template-columns: auto 1fr minmax(11rem, 34%);
    grid-template-rows: auto;
    align-items: center;
    min-height: auto;
    column-gap: 0.9rem;
  }

  .ai-art-process-number {
    align-self: start;
  }

  .ai-art-process-list img {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .page-ai-art main.site-frame {
    padding-top: 0.35rem;
  }

  .ai-art-hero {
    aspect-ratio: auto;
    min-height: 39rem;
    background:
      linear-gradient(180deg, rgba(2, 8, 14, 0.82), rgba(2, 8, 14, 0.38) 54%, rgba(2, 8, 14, 0.88) 100%),
      url("assets/pages/ai-art/art/hero-background.jpg") 64% center / cover no-repeat;
  }

  .ai-art-hero__copy {
    width: min(100%, 31rem);
    padding: 3.35rem 1.15rem 1.5rem;
  }

  .ai-art-hero h1 {
    font-size: clamp(1.95rem, 9vw, 2.7rem);
  }

  .ai-art-button-row {
    justify-content: center;
  }

  .ai-art-section--parchment,
  .ai-art-section--dark,
  .ai-art-section--submit,
  .ai-art-closing {
    border-width: 13px;
  }

  .ai-art-section-heading h2 {
    padding: 0 1.6rem;
  }

  .ai-art-section-heading h2::before,
  .ai-art-section-heading h2::after {
    width: 1.15rem;
  }

  .ai-art-reason-grid,
  .ai-art-open-grid,
  .ai-art-commitment-grid,
  .ai-art-section--submit {
    grid-template-columns: 1fr;
  }

  .ai-art-reason-card {
    min-height: auto;
  }

  .ai-art-process-list li {
    grid-template-columns: auto 1fr;
  }

  .ai-art-process-list img {
    grid-column: 1 / -1;
    margin-top: 0.75rem;
  }

  .ai-art-matters-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-art-matters-strip article,
  .ai-art-matters-strip article:nth-child(3) {
    border-right: 1px solid rgba(119, 75, 24, 0.25);
  }

  .ai-art-matters-strip article:nth-child(even) {
    border-right: 0;
  }

  .ai-art-matters-strip article:nth-child(n + 3) {
    border-top: 1px solid rgba(119, 75, 24, 0.25);
  }

  .ai-art-commitment-grid article {
    border-left: 0;
    border-top: 1px solid rgba(222, 174, 82, 0.32);
  }

  .ai-art-commitment-grid article:first-child {
    border-top: 0;
  }
}

@media (max-width: 440px) {
  .ai-art-hero {
    min-height: 42rem;
  }

  .ai-art-hero p {
    font-size: 0.9rem;
  }

  .page-ai-art .ornate-red--lg,
  .page-ai-art .ornate-blue--lg,
  .page-ai-art .ornate-gold--lg {
    width: min(184px, 100%);
  }

  .page-ai-art .ornate-blue--xl {
    width: min(236px, 100%);
  }

  .ai-art-matters-strip {
    grid-template-columns: 1fr;
  }

  .ai-art-matters-strip article,
  .ai-art-matters-strip article:nth-child(3) {
    border-right: 0;
    border-top: 1px solid rgba(119, 75, 24, 0.25);
  }

  .ai-art-matters-strip article:first-child {
    border-top: 0;
  }
}

/* Phone-width containment: keep live text and controls inside the shared page rails. */
@media (max-width: 420px) {
  .page-home .as-hero {
    padding-inline: clamp(1.15rem, 6vw, 1.35rem);
  }

  .page-home .as-hero .hero-copy {
    width: auto;
    min-width: 0;
    max-width: 100%;
  }

  .page-home .as-hero .button-row,
  .page-memories .hero .button-row,
  .page-home .home-footer-cta--live .button-row,
  .page-memories .story-footer-cta .button-row {
    display: grid !important;
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    justify-items: center;
    gap: 0.35rem;
    transform: none;
  }

  .page-home .lore-section .scroll-card.token {
    grid-template-columns: clamp(5rem, 26vw, 5.75rem) minmax(0, 1fr);
    column-gap: 0.55rem;
    padding-inline: 1rem;
  }

  .page-home .lore-section .scroll-card.token .lore-card__copy {
    min-width: 0;
  }

  .page-home .lore-section .scroll-card.token h3 {
    font-size: clamp(1.35rem, 6.3vw, 1.62rem);
    overflow-wrap: anywhere;
  }

  .page-home .lore-section .scroll-card.token p {
    font-size: clamp(0.86rem, 3.8vw, 0.98rem);
  }

  .page-home .lore-section .scroll-card.token .lore-card__icon {
    width: clamp(4.75rem, 24vw, 5.4rem);
    max-height: clamp(4.75rem, 24vw, 5.4rem);
  }

  .page-home .home-footer-cta--live,
  .page-memories .story-footer-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .home-footer-cta--live .home-footer-cta__copy,
  .page-memories .story-footer-cta .art-footer-cta__copy {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .page-memories .hero {
    padding-inline: clamp(1.05rem, 5.5vw, 1.25rem);
  }

  .page-memories .hero h1 span {
    white-space: normal;
  }

  .page-memories .story-footer-cta .art-footer-cta__copy p:not(.eyebrow) {
    width: 100%;
    max-width: 100%;
  }
}
