/* ==========================================================
   DIVINE RECOMMENDATIONS · THE ANGEL ARCHIVE
   Editorial celestial recommendation gallery
   ========================================================== */

.recs-page {
  --rec-rose: #c87985;
  --rec-deep: #765058;
  --rec-mauve: #9b707b;
  --rec-pearl: #fffaf8;
  --rec-cream: #fff6ef;
  --rec-gold: #d5ae88;
  --rec-line: rgba(200, 121, 133, 0.24);
  --rec-shadow: 0 24px 60px rgba(107, 70, 79, 0.10);

  color: #684c53;
  background:
    radial-gradient(circle at 12% 12%, rgba(244, 213, 219, 0.48), transparent 27rem),
    radial-gradient(circle at 88% 28%, rgba(255, 234, 215, 0.52), transparent 28rem),
    linear-gradient(180deg, #fffaf8 0%, #fff8f5 48%, #fffaf8 100%);
}

.recs-page main {
  overflow: hidden;
}


/* ==========================================================
   HERO
   ========================================================== */

.recs-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: 8.5rem 5vw 5rem;
}

.recs-hero::before,
.recs-hero::after {
  position: absolute;
  color: rgba(200, 121, 133, 0.23);
  pointer-events: none;
}

.recs-hero::before {
  content: "✦";
  left: 8%;
  top: 31%;
  font-size: 1rem;
}

.recs-hero::after {
  content: "♡";
  right: 9%;
  bottom: 17%;
  font-size: 1.4rem;
}

.recs-hero__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 5rem;
  align-items: center;
}

.recs-eyebrow,
.recs-section-heading > p,
.collection-section__eyebrow,
.catalogue-empty__eyebrow {
  margin: 0 0 1rem;
  font: 600 0.72rem/1 var(--font-body, "DM Sans", sans-serif);
  letter-spacing: 0.23em;
  text-transform: uppercase;
  color: var(--rec-rose);
}

.recs-hero h1 {
  max-width: 690px;
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: clamp(4rem, 7vw, 6.6rem);
  font-weight: 500;
  line-height: 0.86;
  color: var(--rec-deep);
}

.recs-hero h1 span {
  display: block;
  margin: 0.12em 0 0 0.38em;
  font-family: "Allura", cursive;
  font-size: 0.88em;
  font-weight: 400;
  color: var(--rec-rose);
}

.recs-hero__description {
  position: relative;

  max-width: 560px;

  margin:
    1.7rem
    0
    2.2rem;

  padding:
    0.35rem
    0
    0.35rem
    1.4rem;

  border-left:
    2px solid
    rgba(200, 121, 133, 0.48);

  color: var(--rec-muted);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  font-style: italic;
  font-weight: 400;

  line-height: 1.65;
  letter-spacing: 0.01em;
}


/* tiny celestial accent at the top of the quote line */

.recs-hero__description::before {
  content: "";

  position: absolute;

  top: -0.55rem;
  left: -0.34rem;

  padding: 0.15rem;

  background: rgba(255, 249, 250, 0.82);

  color: var(--rec-gold);

  font-family: Georgia, serif;
  font-size: 0.55rem;
  font-style: normal;
  line-height: 1;
}

.recs-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid rgba(200, 121, 133, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 28px rgba(112, 73, 82, 0.07);
  color: var(--rec-deep);
  text-decoration: none;
  font: 600 0.76rem/1 var(--font-body, "DM Sans", sans-serif);
  letter-spacing: 0.08em;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.recs-button:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 14px 32px rgba(112, 73, 82, 0.12);
}


/* ==========================================================
   DIVINE GATE
   ========================================================== */

.recs-hero__art {
  min-height: 490px;
  display: grid;
  place-items: center;
}

.divine-gate {
  position: relative;
  width: min(430px, 78vw);
  aspect-ratio: 0.92;
  display: grid;
  place-items: center;
  animation: gateFloat 6s ease-in-out infinite;
}

.divine-gate__halo {
  position: absolute;
  border: 1px solid rgba(200, 121, 133, 0.24);
  border-radius: 50%;
}

.divine-gate__halo--one {
  width: 94%;
  height: 58%;
  animation: orbitOne 24s linear infinite;
}

.divine-gate__halo--two {
  width: 78%;
  height: 78%;
  border-style: dashed;
  border-color: rgba(213, 174, 136, 0.28);
  animation: orbitTwo 31s linear infinite reverse;
}

.divine-gate__door {
  position: relative;
  width: 53%;
  height: 76%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  border: 1px solid rgba(200, 121, 133, 0.34);
  border-bottom: 0;
  border-radius: 999px 999px 22px 22px;
  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 255, 255, .98),
      rgba(248, 224, 228, .68) 44%,
      rgba(244, 213, 219, .24) 72%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .92),
      rgba(255, 244, 240, .78)
    );
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, .38),
    0 26px 60px rgba(107, 70, 79, .12),
    0 0 45px rgba(200, 121, 133, .10);
  transition:
    transform .4s ease,
    box-shadow .4s ease;
}

.divine-gate__door::before,
.divine-gate__door::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(200, 121, 133, .16);
  border-bottom: 0;
  border-radius: inherit;
}

.divine-gate__door::after {
  inset: 14%;
}

.divine-gate__spark {
  position: relative;
  z-index: 1;
  font-size: 3.2rem;
  color: var(--rec-rose);
  text-shadow: 0 0 30px rgba(200, 121, 133, .38);
  animation: starPulse 3.8s ease-in-out infinite;
}

.divine-gate__script {
  position: relative;
  z-index: 1;
  font: 400 2.2rem/1 "Allura", cursive;
  color: #a66c79;
  transition:
    letter-spacing .35s ease,
    text-shadow .35s ease;
}

.divine-gate:hover .divine-gate__script {
  letter-spacing: .06em;
  text-shadow: 0 0 18px rgba(200, 121, 133, .28);
}

.divine-gate:hover .divine-gate__door {
  transform: translateY(-5px);
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, .42),
    0 32px 70px rgba(107, 70, 79, .15),
    0 0 60px rgba(200, 121, 133, .16);
}

.divine-gate__star {
  position: absolute;
  color: rgba(200, 121, 133, .55);
}

.divine-gate__star--one {
  left: 8%;
  top: 28%;
  font-size: 1.2rem;
}

.divine-gate__star--two {
  right: 5%;
  top: 16%;
  font-size: 1.5rem;
}

.divine-gate__star--three {
  right: 4%;
  bottom: 24%;
  font-size: 1.25rem;
}


/* ==========================================================
   SHARED PAGE SECTIONS
   ========================================================== */

.collection-directory,
.recommendation-catalogue {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 3rem 0;
}

.recs-section-heading {
  max-width: 760px;
  margin: 0 auto 3.4rem;
  text-align: center;
}

.recs-section-heading h2,
.collection-section__heading h2,
.catalogue-empty h2 {
  margin: 0;
  font: 500 clamp(2.8rem, 5vw, 4.5rem)/1
    var(--font-display, "Cormorant Garamond", serif);
  color: var(--rec-deep);
}

.recs-section-heading > span {
  display: block;
  margin: 1rem auto 0;
  font: italic 1.12rem/1.5
    var(--font-display, "Cormorant Garamond", serif);
  color: #92757c;
}


/* ==========================================================
   DIVINE DIRECTORY
   ========================================================== */

.collection-portals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
  align-items: start;
}

.collection-portal {
  position: relative;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.collection-portal:nth-child(3n + 2) {
  margin-top: 2.2rem;
}

.collection-portal:hover {
  transform: translateY(-7px);
}


/* ---------- collection number ---------- */

.collection-portal__index {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .8rem .65rem;
  font: 600 .52rem/1 var(--font-body, "DM Sans", sans-serif);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: rgba(155, 112, 123, .76);
}

.collection-portal__index::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(200, 121, 133, .38),
    transparent
  );
}


/* ---------- portal arch ---------- */

.collection-portal__arch {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(200, 121, 133, .25);
  border-radius: 999px 999px 24px 24px;
  background:
    radial-gradient(
      circle at 50% 24%,
      rgba(255, 255, 255, .98),
      transparent 19%
    ),
    radial-gradient(
      circle at 72% 56%,
      rgba(255, 231, 218, .52),
      transparent 35%
    ),
    linear-gradient(
      155deg,
      rgba(246, 218, 223, .88),
      rgba(255, 245, 238, .96)
    );
  box-shadow:
    0 25px 55px rgba(107, 70, 79, .09),
    inset 0 0 50px rgba(255, 255, 255, .32);
  transition:
    box-shadow .45s ease,
    border-color .45s ease;
}

.collection-portal__arch::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: inherit;
  pointer-events: none;
}

.collection-portal__arch::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto -15% -26% -15%;
  height: 58%;
  background: radial-gradient(
    ellipse at center,
    rgba(200, 121, 133, .15),
    transparent 66%
  );
  pointer-events: none;
}

.collection-portal__arch img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 1.25s cubic-bezier(.2, .7, .2, 1),
    filter .5s ease;
}

.collection-portal:hover .collection-portal__arch img {
  transform: scale(1.055);
  filter: saturate(1.04);
}

.collection-portal:hover .collection-portal__arch {
  border-color: rgba(200, 121, 133, .42);
  box-shadow:
    0 32px 72px rgba(107, 70, 79, .14),
    0 0 38px rgba(200, 121, 133, .10);
}


/* ---------- image-less celestial portal ---------- */

.collection-portal__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--rec-rose);
}

.collection-portal__glow-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  font-size: 2.8rem;
  text-shadow: 0 0 30px rgba(200, 121, 133, .40);
}

.collection-portal__glow-mark::before,
.collection-portal__glow-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(200, 121, 133, .17);
  border-radius: 50%;
}

.collection-portal__glow-mark::before {
  width: 98px;
  height: 98px;
}

.collection-portal__glow-mark::after {
  width: 150px;
  height: 78px;
  transform: rotate(-18deg);
  border-color: rgba(213, 174, 136, .22);
}

.collection-portal__glow::before,
.collection-portal__glow::after {
  position: absolute;
  color: rgba(200, 121, 133, .32);
  animation: twinkle 3.4s ease-in-out infinite;
}

.collection-portal__glow::before {
  content: "✧";
  left: 28%;
  top: 35%;
  font-size: .8rem;
}

.collection-portal__glow::after {
  content: "✦";
  right: 26%;
  bottom: 31%;
  font-size: .62rem;
  animation-delay: 1.2s;
}


/* ---------- plaque ---------- */

.collection-portal__plaque {
  position: relative;
  z-index: 4;
  width: calc(100% - 1.7rem);
  min-height: 130px;
  margin: -73px auto 0;
  padding: 1.25rem 1.35rem 1.15rem;
  border: 1px solid rgba(200, 121, 133, .24);
  border-radius: 19px;
  background: rgba(255, 250, 248, .95);
  box-shadow:
    0 16px 38px rgba(107, 70, 79, .11),
    inset 0 1px rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  transition:
    transform .35s ease,
    box-shadow .35s ease;
}

.collection-portal:hover .collection-portal__plaque {
  transform: translateY(-5px);
  box-shadow: 0 21px 46px rgba(107, 70, 79, .14);
}

.collection-portal__eyebrow {
  display: block;
  margin-bottom: .4rem;
  text-align: center;
  font: 600 .52rem/1 var(--font-body, "DM Sans", sans-serif);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--rec-rose);
}

.collection-portal__title {
  display: block;
  text-align: center;
  font: 500 1.55rem/1.05
    var(--font-display, "Cormorant Garamond", serif);
  color: var(--rec-deep);
}

.collection-portal__footer {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(200, 121, 133, .11);
}

.collection-portal__count,
.collection-portal__enter {
  font: 600 .48rem/1 var(--font-body, "DM Sans", sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.collection-portal__count {
  color: #aa858c;
}

.collection-portal__enter {
  color: var(--rec-rose);
  white-space: nowrap;
}

.collection-portal__enter span {
  display: inline-block;
  transition: transform .3s ease;
}

.collection-portal:hover .collection-portal__enter span {
  transform: translateX(4px);
}


/* ==========================================================
   RECOMMENDATION CATALOGUE
   ========================================================== */

.recommendation-catalogue {
  padding-top: 4.5rem;
  padding-bottom: 6rem;
}

.catalogue-empty {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(200, 121, 133, .14);
  border-bottom: 1px solid rgba(200, 121, 133, .14);
}

.catalogue-empty__mark {
  display: block;
  margin-bottom: 1.2rem;
  font-size: 2rem;
  color: var(--rec-rose);
  text-shadow: 0 0 24px rgba(200, 121, 133, .3);
}

.catalogue-empty > p:last-child {
  max-width: 580px;
  margin: 1rem auto 0;
  font: italic 1.05rem/1.6
    var(--font-display, "Cormorant Garamond", serif);
  color: #92757c;
}


/* ==========================================================
   COLLECTION SECTION
   ========================================================== */

.collection-section {
  position: relative;
  scroll-margin-top: 120px;
  padding: 6rem 0 7rem;
  border-top: 1px solid rgba(200, 121, 133, .11);
}

.collection-section:first-child {
  border-top: 0;
}

.collection-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 78px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    var(--rec-gold),
    transparent
  );
}

.collection-section__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 4.5rem;
  padding: 0 .8rem 1.8rem;
  border-bottom: 1px solid rgba(200, 121, 133, .12);
}

.collection-section__heading-copy {
  max-width: 790px;
}

.collection-section__heading h2 {
  font-size: clamp(3.2rem, 5vw, 5rem);
}

.collection-section__description {
  max-width: 680px;
  margin: 1rem 0 0;
  font: italic 1.1rem/1.55
    var(--font-display, "Cormorant Garamond", serif);
  color: #92757c;
}

.collection-section__count {
  padding: .75rem 1.05rem;
  border: 1px solid rgba(200, 121, 133, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
  white-space: nowrap;
  font: 600 .57rem/1 var(--font-body, "DM Sans", sans-serif);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #a17c84;
}


/* ==========================================================
   EDITORIAL RECOMMENDATION SHELF
   ========================================================== */

.rec-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4.6rem 2.3rem;
  align-items: start;
  padding: .6rem .8rem 0;
}

/* slight editorial rhythm only when multiple books exist */

.rec-book:nth-child(4n + 2),
.rec-book:nth-child(4n + 4) {
  margin-top: 2.5rem;
}

.rec-book {
  position: relative;
  min-width: 0;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}

.rec-book:hover {
  transform: translateY(-7px);
}


/* ---------- cover composition ---------- */

.rec-book__visual {
  position: relative;
  padding: 1rem 0 0 1rem;
}

.rec-book__celestial-number {
  position: absolute;
  z-index: 4;
  top: -1.1rem;
  left: -.25rem;
  font: italic 3.8rem/.8
    var(--font-display, "Cormorant Garamond", serif);
  color: rgba(200, 121, 133, .24);
  pointer-events: none;
  transition:
    color .35s ease,
    transform .35s ease;
}

.rec-book:hover .rec-book__celestial-number {
  color: rgba(200, 121, 133, .40);
  transform: translateY(-3px);
}

.rec-book__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(200, 121, 133, .18);
  border-radius: 145px 145px 14px 14px;
  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(255, 255, 255, .9),
      transparent 25%
    ),
    linear-gradient(145deg, #f7dfe2, #fff1e8);
  box-shadow:
    0 20px 42px rgba(107, 70, 79, .11),
    inset 0 0 35px rgba(255, 255, 255, .20);
  transition:
    box-shadow .4s ease,
    transform .4s ease;
}

.rec-book:hover .rec-book__cover {
  box-shadow:
    0 28px 55px rgba(107, 70, 79, .16),
    0 0 28px rgba(200, 121, 133, .06);
}

.rec-book__cover::after {
  content: "";
  position: absolute;
  inset: 11px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: inherit;
  pointer-events: none;
}

.rec-book__cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .75s cubic-bezier(.2, .7, .2, 1);
}

.rec-book:hover .rec-book__cover img {
  transform: scale(1.025);
}


/* ---------- missing cover treatment ---------- */

.rec-book__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 2rem 1.3rem;
  text-align: center;
  background:
    radial-gradient(
      circle at 50% 31%,
      rgba(255, 255, 255, .94),
      transparent 26%
    ),
    radial-gradient(
      circle at 75% 72%,
      rgba(255, 226, 210, .45),
      transparent 34%
    ),
    linear-gradient(160deg, #f5dadd, #fff1e7);
}

.rec-book__placeholder-orbit {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: .3rem;
}

.rec-book__placeholder-orbit::before,
.rec-book__placeholder-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(200, 121, 133, .22);
  border-radius: 50%;
}

.rec-book__placeholder-orbit::before {
  width: 70px;
  height: 70px;
}

.rec-book__placeholder-orbit::after {
  width: 88px;
  height: 44px;
  transform: rotate(-20deg);
  border-color: rgba(213, 174, 136, .30);
}

.rec-book__placeholder-orbit span {
  position: relative;
  z-index: 1;
  font-size: 1.7rem;
  color: var(--rec-rose);
  text-shadow: 0 0 24px rgba(200, 121, 133, .32);
}

.rec-book__placeholder em {
  max-width: 90%;
  font: 500 1.35rem/1.08
    var(--font-display, "Cormorant Garamond", serif);
  color: var(--rec-deep);
}

.rec-book__placeholder small {
  font: 600 .47rem/1 var(--font-body, "DM Sans", sans-serif);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #aa858c;
}


/* ==========================================================
   BOOK EDITORIAL DETAILS
   ========================================================== */

.rec-book__body {
  position: relative;
  padding: 1.25rem .2rem 0 1rem;
}


/* ---------- Archive Scale seal ---------- */

.rec-book__verdict {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .9rem;
  padding: .46rem .68rem;
  border: 1px solid rgba(200, 121, 133, .19);
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  font: 600 .48rem/1 var(--font-body, "DM Sans", sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rec-rose);
}

.rec-book__verdict::before {
  content: "✦";
  font-size: .56rem;
  color: var(--rec-gold);
}

.rec-book__body h3 {
  margin: 0;
  font: 500 1.65rem/1.02
    var(--font-display, "Cormorant Garamond", serif);
  color: var(--rec-deep);
}

.rec-book__author {
  margin: .35rem 0 0;
  font: italic .94rem/1.25
    var(--font-display, "Cormorant Garamond", serif);
  color: #96777e;
}


/* ---------- recommendation annotation ---------- */

.rec-book__annotation {
  position: relative;
  margin-top: 1.35rem;
  padding: 1.05rem 1rem 1rem 1.15rem;
  border-left: 1px solid rgba(200, 121, 133, .32);
  background: linear-gradient(
    90deg,
    rgba(248, 224, 228, .25),
    transparent 88%
  );
}

.rec-book__annotation::before {
  content: "♡";
  position: absolute;
  left: -.38rem;
  top: -.38rem;
  display: grid;
  place-items: center;
  width: .75rem;
  height: .75rem;
  background: var(--rec-pearl);
  color: var(--rec-rose);
  font-size: .62rem;
}

.rec-book__annotation-label {
  display: block;
  margin-bottom: .45rem;
  font: 600 .48rem/1 var(--font-body, "DM Sans", sans-serif);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rec-rose);
}

.rec-book__annotation-text {
  margin: 0;
  font: italic 1.02rem/1.45
    var(--font-display, "Cormorant Garamond", serif);
  color: #80646b;
}


/* ==========================================================
   EMPTY COLLECTION
   ========================================================== */

.collection-section__empty {
  padding: 3.5rem 1rem;
  text-align: center;
  border: 1px solid var(--rec-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .56);
  color: #92757c;
  font: italic 1.05rem/1.5
    var(--font-display, "Cormorant Garamond", serif);
}


/* ==========================================================
   REVEALS + ARRIVAL
   ========================================================== */

.reveal-item,
.reveal-section {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .7s ease,
    transform .7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible,
.reveal-section.is-visible {
  opacity: 1;
  transform: none;
}

.collection-section.deep-link-arrival {
  animation: arrivalGlow 1.6s ease;
}


/* ==========================================================
   ANIMATIONS
   ========================================================== */

@keyframes gateFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes orbitOne {
  from {
    transform: rotate(-12deg);
  }

  to {
    transform: rotate(348deg);
  }
}

@keyframes orbitTwo {
  from {
    transform: rotate(23deg);
  }

  to {
    transform: rotate(383deg);
  }
}

@keyframes starPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: .8;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: .2;
    transform: scale(.8);
  }

  50% {
    opacity: .8;
    transform: scale(1.15);
  }
}

@keyframes arrivalGlow {
  0%,
  100% {
    filter: none;
  }

  35% {
    filter: drop-shadow(
      0 0 24px rgba(200, 121, 133, .18)
    );
  }
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 980px) {
  .recs-hero__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .recs-hero__copy {
    display: grid;
    justify-items: center;
  }

  .recs-hero h1 span {
    margin-left: 0;
  }

  .recs-hero__art {
    min-height: 390px;
  }

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

  .collection-portal:nth-child(3n + 2) {
    margin-top: 0;
  }

  .collection-portal:nth-child(even) {
    margin-top: 1.5rem;
  }

  .rec-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4rem 1.8rem;
  }

  .rec-book:nth-child(4n + 2),
  .rec-book:nth-child(4n + 4) {
    margin-top: 0;
  }

  .rec-book:nth-child(3n + 2) {
    margin-top: 2rem;
  }
}

@media (max-width: 700px) {
  .recs-hero {
    min-height: auto;
    padding: 7.5rem 6vw 3rem;
  }

  .recs-hero h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .recs-hero__art {
    min-height: 320px;
  }

  .collection-directory,
  .recommendation-catalogue {
    width: min(92vw, 1180px);
    padding: 2.5rem 0;
  }

  .collection-portals {
    grid-template-columns: 1fr;
    max-width: 430px;
    margin-inline: auto;
  }

  .collection-portal:nth-child(even) {
    margin-top: 0;
  }

  .collection-portal__arch {
    min-height: 390px;
  }

  .collection-section {
    padding: 4.5rem 0 5rem;
  }

  .collection-section__heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 3.4rem;
  }

  .collection-section__count {
    justify-self: start;
  }

  .rec-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.8rem 1.2rem;
    padding-inline: 0;
  }

  .rec-book:nth-child(3n + 2) {
    margin-top: 0;
  }

  .rec-book:nth-child(even) {
    margin-top: 1.8rem;
  }

  .rec-book__celestial-number {
    font-size: 3.2rem;
  }
}

@media (max-width: 470px) {
  .rec-shelf {
    grid-template-columns: 1fr;
    max-width: 310px;
    margin-inline: auto;
  }

  .rec-book:nth-child(even) {
    margin-top: 0;
  }

  .rec-book__body {
    padding-right: .4rem;
  }

  .collection-portal__footer {
    align-items: flex-end;
  }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .recs-button,
  .collection-portal,
  .collection-portal__arch img,
  .collection-portal__plaque,
  .rec-book,
  .rec-book__cover,
  .rec-book__cover img,
  .rec-book__celestial-number,
  .divine-gate__door {
    transition: none;
  }

  .divine-gate,
  .divine-gate__halo--one,
  .divine-gate__halo--two,
  .divine-gate__spark,
  .collection-portal__glow::before,
  .collection-portal__glow::after {
    animation: none !important;
  }

  .reveal-item,
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ==========================================================
   FINAL POLISH · 2026-09-19
   tighter rhythm + image portal + pink CTA
   ========================================================== */

/* Tighter desktop rhythm without changing the page structure */
.recs-hero {
  min-height: 620px;
  padding-top: 7.25rem;
  padding-bottom: 2.75rem;
}

.recs-hero__art {
  min-height: 420px;
}

.collection-directory,
.recommendation-catalogue {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.recs-section-heading {
  margin-bottom: 2.6rem;
}

.recommendation-catalogue {
  padding-top: 2.75rem;
  padding-bottom: 4.5rem;
}

/* Pink hero CTA */
.recs-button {
  color: var(--rec-rose);
}

/* Hero gate becomes an image portal.
   Drop your chosen image at: assets/images/recs-portal.jpg
   If the file is not there yet, the existing celestial gradient remains underneath. */
.divine-gate__door {
  overflow: hidden;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 247, 248, .22),
      rgba(244, 213, 219, .30)
    ),
    url("../assets/images/recs-portal.jpg"),
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 255, 255, .98),
      rgba(248, 224, 228, .68) 44%,
      rgba(244, 213, 219, .24) 72%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .92),
      rgba(255, 244, 240, .78)
    );
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
}

/* Keep the celestial spark over the artwork, lose the literal 'enter' text */
.divine-gate__script {
  display: none;
}

.divine-gate__spark {
  text-shadow:
    0 0 18px rgba(255, 255, 255, .92),
    0 0 34px rgba(200, 121, 133, .46);
}

/* A softer veil keeps any hero image in the same blush/pearl world */
.divine-gate__door::after {
  background: linear-gradient(
    180deg,
    rgba(255, 250, 248, .08),
    rgba(245, 218, 223, .16)
  );
}

@media (max-width: 700px) {
  .recs-hero {
    padding-bottom: 1.75rem;
  }

  .collection-directory,
  .recommendation-catalogue {
    padding-top: 1.75rem;
    padding-bottom: 2rem;
  }
}

/* ==========================================================
   FINAL RECS SECTION BACKGROUNDS
   Separate images with ACTUAL image transparency
   ========================================================== */


/* ==========================================================
   HERO · IMAGE SLOT 01
   ========================================================== */

.recs-hero {
  position: relative;
  isolation: isolate;

  background: #fff8f9;
  overflow: hidden;
}


/* The PHOTO itself is translucent */

.recs-hero::before {
  content: "";

  position: absolute;
  z-index: -2;
  inset: 0;

  background:
    url("../assets/images/shelf-arches.jpg")
    center 44% / cover
    no-repeat;

  opacity: 0.32;

  pointer-events: none;
}


/* Directional pearl veil ABOVE the faded photo */

.recs-hero::after {
  content: "";

  position: absolute;
  z-index: -1;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(255, 250, 250, 0.58) 0%,
      rgba(255, 250, 250, 0.38) 36%,
      rgba(255, 250, 250, 0.12) 68%,
      transparent 100%
    );

  pointer-events: none;
}


.recs-hero__inner {
  position: relative;
  z-index: 2;
}


/* ==========================================================
   DIVINE DIRECTORY · IMAGE SLOT 02
   ========================================================== */

.collection-directory {
  position: relative;
  isolation: isolate;

  width: 100%;
  max-width: none;

  margin: 0;

  padding:
    3.25rem
    max(5vw, calc((100vw - 1180px) / 2))
    4.25rem;

  background: #fff8f9;

  overflow: hidden;
}


/* ACTUAL TRANSPARENT PHOTO */

.collection-directory::before {
  content: "";

  position: absolute;
  z-index: -2;
  inset: 0;

  background:
    url("../assets/images/shelf-ethereal.jpg")
    center 50% / cover
    no-repeat;

  opacity: 0.30;

  pointer-events: none;
}


/* VERY light atmosphere over the faded photo */

.collection-directory::after {
  content: "";

  position: absolute;
  z-index: -1;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(255, 249, 250, 0.10) 0%,
      transparent 22%,
      transparent 78%,
      rgba(255, 249, 250, 0.14) 100%
    );

  pointer-events: none;
}


.collection-directory > * {
  position: relative;
  z-index: 2;
}


.collection-portals {
  width: min(1180px, 100%);
  margin-inline: auto;
}


/* ==========================================================
   RECOMMENDATION CATALOGUE · IMAGE SLOT 03
   ========================================================== */

.recommendation-catalogue {
  position: relative;
  isolation: isolate;

  width: 100%;
  max-width: none;

  margin: 0;
  padding: 0;

  background: #fff8f9;
}


/* ACTUAL TRANSPARENT PHOTO */

.recommendation-catalogue::before {
  content: "";

  position: absolute;
  z-index: -2;
  inset: 0;

  background:
    url("../assets/images/shelf-one.jpg")
    center top / 100% auto
    repeat-y;

  opacity: 0.26;

  pointer-events: none;
}


/* Soft pearl atmosphere — NOT the photograph opacity */

.recommendation-catalogue::after {
  content: "";

  position: absolute;
  z-index: -1;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(255, 249, 250, 0.12),
      rgba(255, 249, 250, 0.04) 18%,
      rgba(255, 249, 250, 0.04) 82%,
      rgba(255, 249, 250, 0.12)
    );

  pointer-events: none;
}


/* ==========================================================
   COLLECTIONS
   These do NOT get their own background.
   They reveal the translucent catalogue image underneath.
   ========================================================== */

.collection-section {
  position: relative;
  z-index: 1;

  width: 100%;

  background: transparent !important;

  padding:
    5rem
    max(5vw, calc((100vw - 1180px) / 2))
    5.75rem;
}


/* Preserve original decorative gold line */

.collection-section::before {
  content: "";

  position: absolute;

  top: 0;
  left: 50%;

  width: 78px;
  height: 1px;

  transform: translateX(-50%);

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--rec-gold),
      transparent
    );
}


.collection-section::after {
  content: none;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 640px) {

  .recs-hero::before {
    background-size: auto 100%;
    background-position: center top;

    opacity: 0.28;
  }


  .collection-directory::before {
    background-size: auto 100%;
    background-position: center top;

    opacity: 0.27;
  }


  .recommendation-catalogue::before {
    background-size: auto 760px;

    opacity: 0.24;
  }

}

/* ==========================================================
   FINAL CAROUSEL LOCK
   Books stay on ONE row + arrows always visible
   ========================================================== */

.rec-shelf {
  display: grid !important;

  grid-template-columns: none !important;
  grid-template-rows: 1fr !important;

  grid-auto-flow: column !important;

  /* 4 books visible on desktop */
  grid-auto-columns:
    calc((100% - 6.9rem) / 4) !important;

  gap: 2.3rem;

  width: 100%;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  scrollbar-width: none;
}

.rec-shelf::-webkit-scrollbar {
  display: none;
}

.rec-shelf .rec-book {
  width: 100%;
  min-width: 0;

  margin-top: 0 !important;

  scroll-snap-align: start;
}

/* ==========================================================
   RECOMMENDATION SHELF CAROUSEL
   Matches Divine Directory carousel controls
   ========================================================== */

.rec-shelf-shell {
  position: relative;

  width: min(1180px, 100%);

  margin:
    0
    auto;
}


/* ----------------------------------------------------------
   ARROWS
   ---------------------------------------------------------- */

.rec-shelf__arrow {
  position: absolute;
  z-index: 20;

  top: 50%;

  width: 52px;
  height: 52px;

  display: grid !important;
  place-items: center;

  padding:
    0
    0
    3px;

  border:
    1px solid
    rgba(200, 121, 133, 0.34);

  border-radius: 50%;

  background:
    rgba(255, 250, 249, 0.90);

  box-shadow:
    0 10px 28px rgba(107, 70, 79, 0.11),
    inset 0 0 0 5px rgba(255, 255, 255, 0.32);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: var(--rec-rose);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 2rem;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;

  transform: translateY(-300%);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}


/* LEFT */

.rec-shelf__arrow--prev {
  left: -50px;
}


/* RIGHT */

.rec-shelf__arrow--next {
  right: -50px;
}


/* HOVER */

.rec-shelf__arrow:hover:not(:disabled) {
  background:
    rgba(255, 255, 255, 0.97);

  border-color:
    rgba(200, 121, 133, 0.55);

  box-shadow:
    0 14px 34px rgba(107, 70, 79, 0.16),
    0 0 22px rgba(246, 214, 217, 0.32),
    inset 0 0 0 5px rgba(255, 255, 255, 0.42);

  transform:
    translateY(-325%)
    scale(1.06);
}


/* DISABLED / AT BEGINNING OR END */

.rec-shelf__arrow:disabled {
  opacity: 0.34;

  cursor: default;

  background:
    rgba(255, 250, 249, 0.72);

  box-shadow:
    0 7px 20px rgba(107, 70, 79, 0.07),
    inset 0 0 0 5px rgba(255, 255, 255, 0.22);
}


/* Tiny celestial accent */

.rec-shelf__arrow::after {
  content: "✦";

  position: absolute;

  top: 5px;
  right: 8px;

  color:
    rgba(214, 169, 92, 0.48);

  font-family:
    Georgia,
    serif;

  font-size: 0.42rem;

  pointer-events: none;
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 700px) {

  .rec-shelf__arrow {
    width: 44px;
    height: 44px;

    font-size: 1.7rem;
  }


  .rec-shelf__arrow--prev {
    left: -50px;
  }


  .rec-shelf__arrow--next {
    right: -50px;
  }

}

/* ==========================================================
   DIVINE DIRECTORY CAROUSEL
   ========================================================== */

.collection-carousel-shell {
  position: relative;

  width: min(1180px, 100%);

  margin:
    0
    auto;
}


.collection-portals {
  display: grid !important;

  grid-template-columns: none !important;
  grid-template-rows: 1fr !important;

  grid-auto-flow: column !important;

  /* THREE collections visible */
  grid-auto-columns:
    calc((100% - 4.4rem) / 3) !important;

  gap: 2.2rem;

  width: 100%;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  padding:
    1rem
    0
    3rem;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  scrollbar-width: none;

  overscroll-behavior-inline: contain;
}


.collection-portals::-webkit-scrollbar {
  display: none;
}


.collection-portal {
  width: 100%;
  min-width: 0;

  scroll-snap-align: start;
}


/* KEEP your middle stagger */

.collection-portal:nth-child(3n + 2) {
  margin-top: 2.2rem;
}


/* ==========================================================
   COLLECTION ARROWS
   Same exact style as your finalized book arrows
   ========================================================== */

.collection-carousel__arrow {
  position: absolute;
  z-index: 20;

  top: 50%;

  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  padding:
    0
    0
    3px;

  border:
    1px solid
    rgba(200, 121, 133, 0.34);

  border-radius: 50%;

  background:
    rgba(255, 250, 249, 0.90);

  box-shadow:
    0 10px 28px rgba(107, 70, 79, 0.11),
    inset 0 0 0 5px rgba(255, 255, 255, 0.32);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: var(--rec-rose);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 2rem;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;

  /* YOUR FINAL POSITION */
  transform: translateY(-60%);

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}


.collection-carousel__arrow--prev {
  left: -75px;
}


.collection-carousel__arrow--next {
  right: -75px;
}


.collection-carousel__arrow:hover:not(:disabled) {
  background:
    rgba(255, 255, 255, 0.97);

  border-color:
    rgba(200, 121, 133, 0.55);

  box-shadow:
    0 14px 34px rgba(107, 70, 79, 0.16),
    0 0 22px rgba(246, 214, 217, 0.32),
    inset 0 0 0 5px rgba(255, 255, 255, 0.42);

  transform:
    translateY(-80%)
    scale(1.06);
}


.collection-carousel__arrow:disabled {
  opacity: 0.34;

  cursor: default;

  background:
    rgba(255, 250, 249, 0.72);

  box-shadow:
    0 7px 20px rgba(107, 70, 79, 0.07),
    inset 0 0 0 5px rgba(255, 255, 255, 0.22);
}


.collection-carousel__arrow::after {
  content: "✦";

  position: absolute;

  top: 5px;
  right: 8px;

  color:
    rgba(214, 169, 92, 0.48);

  font-family:
    Georgia,
    serif;

  font-size: 0.42rem;

  pointer-events: none;
}


/* ==========================================================
   DIRECTORY CAROUSEL · RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

  .collection-portals {
    grid-auto-columns:
      calc((100% - 1.6rem) / 2) !important;

    gap: 1.6rem;
  }


  .collection-carousel__arrow--prev {
    left: -14px;
  }


  .collection-carousel__arrow--next {
    right: -14px;
  }

}


@media (max-width: 620px) {

  .collection-portals {
    grid-auto-columns: 84% !important;
  }


  .collection-portal:nth-child(3n + 2) {
    margin-top: 0;
  }


  .collection-carousel__arrow {
    width: 44px;
    height: 44px;

    font-size: 1.7rem;
  }

}