/* Carry the healing page's cinematic language into the talisman story. */
html:has(> .talisman-page), .talisman-page { overflow-x: clip; }
.talisman-page { background: #10221c; }
.talisman-page .header nav a[aria-current='page'] { padding-bottom: 2px; }
.talisman-page .detail-main { overflow: clip; }
.talisman-page .detail-main > section { min-height: 100svh; scroll-margin-top: 0; }
.talisman-page .detail-main .eyebrow {
  font-size: .75rem;
  line-height: 1.8;
  letter-spacing: .22em;
  margin-bottom: 20px;
}
.talisman-page .detail-main h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.5;
  letter-spacing: .075em;
  margin-bottom: 20px;
}
.talisman-page .detail-main p { line-height: 1.9; }

/* 01 — The forest and drum remain visible behind the opening copy. */
.talisman-page .detail-hero {
  min-height: 100svh;
  padding: 0;
}
.talisman-page .detail-hero > img { object-position: 56% center; animation: talisman-drift 26s ease-in-out infinite alternate; }
.talisman-page .detail-hero::after {
  background: linear-gradient(90deg, rgba(7, 22, 16, .9) 0%, rgba(9, 25, 17, .64) 43%, rgba(9, 25, 17, .14) 82%),
              linear-gradient(0deg, rgba(7, 22, 16, .58), transparent 35%);
}
.talisman-page .detail-hero-copy { padding-block: 160px 125px; }
.talisman-page .detail-hero h1 {
  font-size: clamp(3.4rem, 7.8vw, 6.75rem);
  line-height: 1.35;
  letter-spacing: .1em;
}
.talisman-page .detail-hero-line { font-size: clamp(1.35rem, 2.3vw, 2rem); }
.talisman-page .detail-hero-foot {
  left: max(64px, calc((100% - 1280px) / 2));
  right: max(64px, calc((100% - 1280px) / 2));
  bottom: 34px;
  border-top: 1px solid rgba(245, 243, 237, .25);
  padding-top: 22px;
}

/* 02 — A light chapter gives the talisman image room to breathe. */
.talisman-page .detail-story {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 115px 85px;
  background: #edf0e8;
}
.talisman-page .detail-story-inner {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}
.talisman-page .detail-story-copy { max-width: 560px; }
.talisman-page .detail-story-copy > p:not(.eyebrow) { font-size: 1rem; color: #45594b; }
.talisman-page .detail-story-copy .story-lead { color: var(--ink) !important; font-size: clamp(1.18rem, 1.6vw, 1.5rem) !important; }
.talisman-page .detail-story-figure { background: transparent; }
.talisman-page .detail-story-figure img {
  width: 100%;
  height: min(62svh, 610px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
  filter: saturate(.9);
}
.talisman-page .detail-story-figure figcaption { padding-top: 14px; }

/* 03 — The commission steps sit over a shaded detail of the work. */
.talisman-page .detail-chapters {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding-block: 125px 105px;
  background: #10221c;
}
.talisman-page .detail-chapters::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url('/assets/talisman.jpg') 72% center / cover no-repeat;
}
.talisman-page .detail-chapters::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 24, 17, .94), rgba(17, 39, 29, .72) 55%, rgba(17, 39, 29, .53)),
              linear-gradient(0deg, rgba(7, 24, 17, .76), transparent 65%);
}
.talisman-page .detail-chapters > .wrap > p:last-of-type { color: #e0e8d9; font-size: 1.06rem; }
.talisman-page .detail-chapter-grid { gap: clamp(20px, 2.6vw, 46px); margin-top: clamp(38px, 6vh, 72px); }
.talisman-page .detail-chapter-grid article { border-color: rgba(221, 229, 209, .45); }
.talisman-page .detail-chapter-grid article > span { color: #cfddc7; }
.talisman-page .detail-chapter-grid h3 { font-size: clamp(1.5rem, 2.1vw, 2rem); margin: 22px 0 14px; }
.talisman-page .detail-chapter-grid p { color: #e5eadf; font-size: 1rem; }

/* 04 — A full-screen invitation closes the journey like Healing's final scene. */
.talisman-page .detail-end {
  min-height: 100svh;
  justify-content: center;
  text-align: center;
}
.talisman-page .detail-end > img { object-position: center; animation: talisman-drift 28s ease-in-out infinite alternate; }
.talisman-page .detail-end::after {
  background: linear-gradient(90deg, rgba(7, 22, 16, .65), rgba(7, 22, 16, .48), rgba(7, 22, 16, .65)),
              linear-gradient(0deg, rgba(7, 22, 16, .68), transparent 65%);
}
.talisman-page .detail-end-copy { padding-block: 130px; }
.talisman-page .detail-end h2,
.talisman-page .detail-end p:not(.eyebrow) { margin-inline: auto; }
.talisman-page .detail-end-actions { justify-content: center; }

/* Navigation and footer keep the same quiet forest and glass treatment. */
.talisman-page .detail-rail {
  display: grid;
  z-index: 40;
  right: 24px;
  gap: 9px;
  padding: 17px 8px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05));
  box-shadow: inset 1px 1px rgba(255, 255, 255, .28), 0 8px 26px rgba(9, 21, 14, .16);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  backdrop-filter: blur(22px) saturate(1.55);
}
.talisman-page .detail-rail a { width: 26px; height: 26px; }
.talisman-page .detail-rail i { width: 4px; height: 4px; background: #20372b; }
.talisman-page .detail-rail.on-dark i { background: var(--paper); }
.talisman-page .detail-rail span {
  right: 36px;
  border-radius: 12px;
  background: rgba(35, 55, 45, .78);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.talisman-page .footer {
  width: 100%;
  max-width: none;
  padding: 44px max(64px, calc((100% - 1280px) / 2));
  background: #10221c;
  color: #e0e5d9;
  border-color: rgba(245, 243, 237, .24);
}
.talisman-page .footer > small { color: #bcc9bb; }

@keyframes talisman-drift { from { transform: scale(1); } to { transform: scale(1.04); } }
@media (max-width: 900px) and (min-width: 761px) {
  .talisman-page .detail-story-inner { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 35px; }
  .talisman-page .detail-chapter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .talisman-page > .header nav { background: rgba(245, 243, 237, .96); }
  .talisman-page .header nav a[aria-current='page'] { padding-bottom: 14px; }
  .talisman-page .detail-main .eyebrow { font-size: .6875rem; margin-bottom: 18px; }
  .talisman-page .detail-main h2 { font-size: clamp(2rem, 8vw, 2.65rem); line-height: 1.5; }
  .talisman-page .detail-hero { min-height: 100svh; }
  .talisman-page .detail-hero > img { object-position: 53% center; }
  .talisman-page .detail-hero::after {
    background: linear-gradient(90deg, rgba(7, 22, 16, .9), rgba(7, 22, 16, .38)),
                linear-gradient(0deg, rgba(7, 22, 16, .65), transparent 45%);
  }
  .talisman-page .detail-hero-copy { padding-block: 145px 125px; }
  .talisman-page .detail-hero h1 { font-size: clamp(3.1rem, 12vw, 4.6rem); }
  .talisman-page .detail-hero-line { font-size: 1.2rem; }
  .talisman-page .detail-hero-foot { left: 24px; right: 24px; bottom: 30px; }
  .talisman-page .detail-story { padding-block: 105px 80px; }
  .talisman-page .detail-story-inner { grid-template-columns: 1fr; gap: 35px; }
  .talisman-page .detail-story-figure img { height: auto; aspect-ratio: 1.08; }
  .talisman-page .detail-chapters { padding-block: 105px 95px; }
  .talisman-page .detail-chapters::before { background-position: 76% center; }
  .talisman-page .detail-chapters::after { background: linear-gradient(0deg, rgba(7, 24, 17, .94), rgba(7, 24, 17, .78)); }
  .talisman-page .detail-chapter-grid { grid-template-columns: 1fr; gap: 25px; margin-top: 40px; }
  .talisman-page .detail-chapter-grid h3 { margin: 15px 0 9px; }
  .talisman-page .detail-end { min-height: 100svh; }
  .talisman-page .detail-end-copy { padding-block: 115px 130px; }
  .talisman-page .detail-end-actions { flex-direction: column; }
  .talisman-page .detail-rail { display: none; }
  .talisman-page .footer { padding: 36px 24px 112px; }
}
@media (prefers-reduced-motion: reduce) {
  .talisman-page .detail-hero > img, .talisman-page .detail-end > img { animation: none; }
}
