/* ==========================================================
   00. ARCHIVIST PAGE FOUNDATION
   ========================================================== */

.archivist-page {
  min-height: 100vh;

  background:
    var(--pearl);
}

/* ==========================================================
   01. MEET THE ARCHIVIST — HERO
   ========================================================== */

.archivist-hero {
  position: relative;

  min-height: 0;

  display: flex;
  align-items: center;

  padding:
    135px
    var(--page-padding, 32px)
    30px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 20% 45%,
      rgba(255, 255, 255, 0.82),
      transparent 30%
    ),
    radial-gradient(
      circle at 82% 28%,
      rgba(255, 255, 255, 0.55),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      var(--pearl) 0%,
      var(--cloud-blush) 48%,
      var(--heaven-pink) 100%
    );
}


.archivist-hero__inner {
  position: relative;
  z-index: 2;

  width: min(100%, 1120px);

  margin: 0 auto;

  display: grid;
  grid-template-columns:
    minmax(280px, 0.8fr)
    minmax(0, 1.2fr);

  align-items: center;

  gap: clamp(55px, 7vw, 100px);
}


/* ==========================================================
   PORTRAIT
   ========================================================== */

.archivist-hero__portrait {
  position: relative;

  width: min(100%, 360px);

  margin: 0 auto;

  padding: 13px;
}


.archivist-hero__portrait-glow {
  position: absolute;

  inset: 8% -10% -3%;

  border-radius:
    999px
    999px
    40px
    40px;

  background:
    rgba(255, 255, 255, 0.58);

  filter: blur(30px);

  opacity: 0.8;
}


.archivist-hero__portrait::before {
  content: "";

  position: absolute;

  inset: 1px;

  z-index: 1;

  border:
    1px solid
    rgba(200, 121, 133, 0.3);

  border-radius:
    999px
    999px
    34px
    34px;

  box-shadow:
    0 0 20px
    rgba(255, 255, 255, 0.95),
    0 0 44px
    rgba(225, 165, 174, 0.22);

  pointer-events: none;
}


.archivist-hero__portrait-frame {
  position: relative;
  z-index: 2;

  padding: 8px;

  overflow: hidden;

  border:
    1px solid
    rgba(255, 255, 255, 0.92);

  border-radius:
    999px
    999px
    28px
    28px;

  background:
    rgba(255, 249, 250, 0.72);

  box-shadow:
    0 20px 45px
    rgba(94, 61, 69, 0.13);

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);
}


.archivist-hero__portrait-frame img {
  display: block;

  width: 100%;

  aspect-ratio: 0.72 / 1;

  object-fit: cover;

  border-radius:
    999px
    999px
    21px
    21px;
}


/* Portrait Label */

.archivist-hero__portrait-label {
  position: absolute;

  z-index: 5;

  left: 50%;
  bottom: -6px;

  transform:
    translateX(-50%);

  min-width: 145px;

  padding:
    8px
    18px;

  border:
    1px solid
    rgba(200, 121, 133, 0.24);

  border-radius:
    999px;

  background:
    rgba(255, 249, 250, 0.92);

  box-shadow:
    0 8px 20px
    rgba(94, 61, 69, 0.1);

  color:
    var(--archive-rose);

  font-family:
    var(--font-display);

  font-size:
    0.75rem;

  font-weight:
    600;

  letter-spacing:
    0.15em;

  text-align:
    center;

  text-transform:
    uppercase;
}


/* Portrait Sparkles */

.archivist-hero__sparkle {
  position: absolute;

  z-index: 6;

  color:
    var(--cherub-rose);

  text-shadow:
    0 0 12px
    rgba(255, 255, 255, 0.95);

  animation:
    archivistHeroTwinkle
    3s
    ease-in-out
    infinite;
}


.archivist-hero__sparkle--one {
  top: 13%;
  right: -5%;

  font-size: 1.3rem;
}


.archivist-hero__sparkle--two {
  top: 43%;
  left: -7%;

  font-size: 0.9rem;

  animation-delay: 0.8s;
}


.archivist-hero__sparkle--three {
  right: -1%;
  bottom: 17%;

  font-size: 1.1rem;

  animation-delay: 1.5s;
}


@keyframes archivistHeroTwinkle {

  0%,
  100% {
    opacity: 0.35;

    transform:
      scale(0.85)
      rotate(-4deg);
  }

  50% {
    opacity: 1;

    transform:
      scale(1.12)
      rotate(4deg);
  }

}


/* ==========================================================
   HERO CONTENT
   ========================================================== */

.archivist-hero__content {
  position: relative;
}


.archivist-hero__eyebrow {
  margin:
    0
    0
    10px;

  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size:
    0.62rem;

  font-weight:
    600;

  letter-spacing:
    0.2em;

  text-transform:
    uppercase;
}


.archivist-hero__content h1 {
  margin:
    0
    0
    22px;

  color:
    var(--ink-rose);

  font-family:
    var(--font-display);

  font-size:
    clamp(3.1rem, 5vw, 5rem);

  font-weight:
    500;

  line-height:
    0.88;

  letter-spacing:
    -0.035em;
}


.archivist-hero__content h1 span {
  color:
    var(--archive-rose);

  font-family:
    "Allura",
    cursive;

  font-size:
    1.08em;

  font-weight:
    400;

  white-space:
    nowrap;
}


/* ==========================================================
   BIO
   ========================================================== */

.archivist-hero__bio {
  width:
    min(100%, 650px);

  color:
    var(--dusty-ink);

  font-family:
    var(--font-display);

  font-size:
    clamp(1rem, 1.35vw, 1.12rem);

  line-height:
    1.55;
}


.archivist-hero__bio p {
  margin:
    0
    0
    13px;
}


/* ==========================================================
   QUICK FACTS
   ========================================================== */

.archivist-hero__facts {
  margin-top:
    25px;

  display:
    grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    10px;
}


.archivist-fact {
  min-height:
    88px;

  display:
    flex;

  align-items:
    center;

  gap:
    12px;

  padding:
    13px
    15px;

  border:
    1px solid
    rgba(200, 121, 133, 0.14);

  border-radius:
    15px;

  background:
    rgba(255, 249, 250, 0.58);

  box-shadow:
    0 9px 22px
    rgba(94, 61, 69, 0.06);

  backdrop-filter:
    blur(10px);

  -webkit-backdrop-filter:
    blur(10px);

  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}


.archivist-fact:hover {
  transform:
    translateY(-2px);

  background:
    rgba(255, 249, 250, 0.78);

  box-shadow:
    0 12px 26px
    rgba(94, 61, 69, 0.09);
}


.archivist-fact__icon {
  flex:
    0 0
    35px;

  width:
    35px;

  height:
    35px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    rgba(200, 121, 133, 0.17);

  border-radius:
    50%;

  background:
    rgba(246, 214, 217, 0.58);

  color:
    var(--archive-rose);

  font-family:
    var(--font-display);

  font-size:
    0.9rem;
}


.archivist-fact p {
  margin:
    0
    0
    3px;

  color:
    var(--dusty-ink);

  font-family:
    var(--font-body);

  font-size:
    0.48rem;

  font-weight:
    600;

  letter-spacing:
    0.14em;

  text-transform:
    uppercase;
}


.archivist-fact strong {
  display:
    block;

  color:
    var(--ink-rose);

  font-family:
    var(--font-display);

  font-size:
    1rem;

  font-weight:
    600;

  line-height:
    1.05;
}


.archivist-fact small {
  display:
    block;

  margin-top:
    3px;

  color:
    var(--dusty-ink);

  font-family:
    var(--font-display);

  font-size:
    0.68rem;

  font-style:
    italic;

  line-height:
    1.15;
}


/* ==========================================================
   SIGNATURE
   ========================================================== */

.archivist-hero__signature {
  margin-top:
    22px;

  display:
    flex;

  align-items:
    center;

  gap:
    14px;
}


.archivist-hero__signature > span {
  flex:
    1;

  height:
    1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(200, 121, 133, 0.35)
    );
}


.archivist-hero__signature > span:last-child {
  background:
    linear-gradient(
      90deg,
      rgba(200, 121, 133, 0.35),
      transparent
    );
}


.archivist-hero__signature p {
  margin:
    0;

  color:
    var(--archive-rose);

  font-family:
    "Allura",
    cursive;

  font-size:
    clamp(1.35rem, 2vw, 1.75rem);

  line-height:
    1;

  white-space:
    nowrap;
}


/* ==========================================================
   RESPONSIVE — ARCHIVIST HERO
   ========================================================== */

@media (max-width: 900px) {

  .archivist-hero {
    padding-top:
      125px;
  }


  .archivist-hero__inner {
    grid-template-columns:
      1fr;

    gap:
      55px;
  }


  .archivist-hero__portrait {
    width:
      min(78vw, 330px);
  }


  .archivist-hero__content {
    text-align:
      center;
  }


  .archivist-hero__bio {
    margin:
      0 auto;
  }

}


@media (max-width: 600px) {

  .archivist-hero {
    padding:
      115px
      var(--page-padding, 22px)
      65px;
  }


  .archivist-hero__facts {
    grid-template-columns:
      1fr;
  }


  .archivist-hero__content h1 {
    font-size:
      clamp(2.8rem, 14vw, 4rem);
  }


  .archivist-hero__signature p {
    white-space:
      normal;
  }

}

/* ✦ END 01. MEET THE ARCHIVIST — HERO ✦ */

/* ==========================================================
   02. THE ARCHIVIST'S FILE
   ========================================================== */

.archivist-file {
  position: relative;

  padding:
    85px
    var(--page-padding, 32px)
    100px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 15% 30%,
      rgba(255, 255, 255, 0.72),
      transparent 28%
    ),
    radial-gradient(
      circle at 85% 65%,
      rgba(246, 214, 217, 0.6),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #fbe9ec 0%,
      #f7dfe4 100%
    );
}


.archivist-file__inner {
  width:
    min(100%, 1080px);

  margin:
    0 auto;
}


/* ==========================================================
   SECTION HEADING
   ========================================================== */

.archivist-file__heading {
  margin-bottom:
    2px;

  text-align:
    center;
}


.archivist-file__eyebrow {
  margin:
    0
    0
    8px;

  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size:
    0.58rem;

  font-weight:
    600;

  letter-spacing:
    0.2em;

  text-transform:
    uppercase;
}


.archivist-file__heading h2 {
  margin:
    0;

  color:
    var(--ink-rose);

  font-family:
    var(--font-display);

  font-size:
    clamp(2.8rem, 5vw, 4.7rem);

  font-weight:
    500;

  line-height:
    0.95;
}


.archivist-file__subtitle {
  margin:
    8px
    0
    0;

  color:
    var(--archive-rose);

  font-family:
    "Allura",
    cursive;

  font-size:
    1.55rem;
}


/* ==========================================================
   FILE FOLDER
   ========================================================== */

.archivist-folder {
  position:
    relative;

  width:
    min(100%, 980px);

  margin:
    0 auto;
}

.archivist-folder::before {
  content:
    "⌇";

  position:
    absolute;

  top:
    54px;

  right:
    34px;

  z-index:
    6;

  color:
    rgba(200, 121, 133, 0.28);

  font-family:
    var(--font-display);

  font-size:
    2rem;

  transform:
    rotate(18deg);

  pointer-events:
    none;
}


/* ==========================================================
   FILE TABS
   ========================================================== */

.archivist-folder__tabs {
  position:
    relative;

  z-index:
    5;

  display:
    flex;

  align-items:
    flex-end;

  gap:
    6px;

  padding-left:
    22px;
}


.archivist-folder__tab {
  position:
    relative;

  padding:
    10px
    18px
    9px;

  border:
    1px solid
    rgba(200, 121, 133, 0.19);

  border-bottom:
    0;

  border-radius:
    14px
    14px
    0
    0;

  background:
    rgba(255, 249, 250, 0.55);

  color:
    var(--dusty-ink);

  font-family:
    var(--font-body);

  font-size:
    0.53rem;

  font-weight:
    600;

  letter-spacing:
    0.1em;

  text-transform:
    uppercase;

  cursor:
    pointer;

  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}


.archivist-folder__tab:hover {
  transform:
    translateY(-3px);

  color:
    var(--archive-rose);
}


.archivist-folder__tab.is-active {
  transform:
    translateY(-6px);

  background:
    rgba(255, 249, 250, 0.95);

  color:
    var(--archive-rose);

  box-shadow:
    0 -8px 20px
    rgba(94, 61, 69, 0.05);
}


/* ==========================================================
   FILE PAPER
   ========================================================== */

.archivist-folder__paper {
  position:
    relative;

  min-height:
    470px;

  padding:
    34px
    38px
    38px;

  border:
    1px solid
    rgba(200, 121, 133, 0.18);

  border-radius:
    20px;

  background:
    linear-gradient(
      rgba(255, 252, 251, 0.95),
      rgba(255, 248, 249, 0.93)
    );

  box-shadow:
    0 20px 50px
    rgba(94, 61, 69, 0.11);

  overflow:
    hidden;
}


.archivist-folder__paper::before {
  content:
    "";

  position:
    absolute;

  inset:
    0;

  pointer-events:
    none;

  opacity:
    0.4;

  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 31px,
      rgba(200, 121, 133, 0.035) 32px
    );
}

.archivist-folder__paper::after {
  content:
    "ARCHIVE COPY  ♡  ANGEL";

  position:
    absolute;

  right:
    26px;

  bottom:
    18px;

  z-index:
    1;

  color:
    rgba(200, 121, 133, 0.20);

  font-family:
    var(--font-body);

  font-size:
    0.46rem;

  font-weight:
    700;

  letter-spacing:
    0.16em;

  text-transform:
    uppercase;

  transform:
    rotate(-2deg);

  pointer-events:
    none;
}

/* ==========================================================
   FILE PAGE
   ========================================================== */

.archivist-file-page {
  position:
    relative;

  z-index:
    2;

  animation:
    archivistFileIn
    360ms
    ease
    both;
}


@keyframes archivistFileIn {

  from {
    opacity:
      0;

    transform:
      translateY(14px);
  }

  to {
    opacity:
      1;

    transform:
      translateY(0);
  }

}


.archivist-file-page__meta {
  margin-bottom:
    26px;

  display:
    flex;

  justify-content:
    space-between;

  gap:
    20px;

  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size:
    0.5rem;

  font-weight:
    600;

  letter-spacing:
    0.15em;

  text-transform:
    uppercase;
}


/* ==========================================================
   PROFILE PAGE
   ========================================================== */

.reader-record {
  display:
    grid;

  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(260px, 0.75fr);

  gap:
    24px;

  align-items:
    stretch;
}


/* ==========================================================
   MAIN READER RECORD
   ========================================================== */

.reader-record__main {
  position:
    relative;

  min-height:
    330px;

  padding:
    26px
    28px;

  border:
    1px solid
    rgba(200, 121, 133, 0.18);

  border-radius:
    18px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 249, 250, 0.92),
      rgba(250, 229, 230, 0.55)
    );

  box-shadow:
    0 14px 30px
    rgba(94, 61, 69, 0.06);

  overflow:
    hidden;
}


/* faint archival lines */

.reader-record__main::before {
  content:
    "";

  position:
    absolute;

  inset:
    0;

  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 35px,
      rgba(200, 121, 133, 0.045) 36px
    );

  pointer-events:
    none;
}


/* ==========================================================
   RECORD HEADER
   ========================================================== */

.reader-record__header {
  position:
    relative;

  z-index:
    2;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    20px;

  padding-bottom:
    18px;

  border-bottom:
    1px solid
    rgba(200, 121, 133, 0.16);
}


.reader-record__header p {
  margin:
    0
    0
    4px;

  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size:
    0.48rem;

  font-weight:
    700;

  letter-spacing:
    0.15em;

  text-transform:
    uppercase;
}


.reader-record__header h3 {
  margin:
    0;

  color:
    var(--ink-rose);

  font-family:
    var(--font-display);

  font-size:
    2rem;

  font-weight:
    500;
}


/* ==========================================================
   ACTIVE READER STATUS
   ========================================================== */

.reader-record__status {
  padding:
    8px
    11px;

  border:
    1px solid
    rgba(200, 121, 133, 0.2);

  border-radius:
    10px;

  background:
    rgba(246, 214, 217, 0.5);

  text-align:
    right;
}


.reader-record__status span {
  display:
    block;

  margin-bottom:
    2px;

  color:
    var(--dusty-ink);

  font-family:
    var(--font-body);

  font-size:
    0.4rem;

  font-weight:
    700;

  letter-spacing:
    0.14em;
}


.reader-record__status strong {
  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size:
    0.55rem;

  letter-spacing:
    0.08em;
}


/* ==========================================================
   RECORD LINES
   ========================================================== */

.reader-record__lines {
  position:
    relative;

  z-index:
    2;

  margin-top:
    25px;

  display:
    grid;

  gap:
    18px;
}


.reader-record__line {
  display:
    grid;

  grid-template-columns:
    auto
    1fr
    auto;

  align-items:
    end;

  gap:
    10px;
}


.reader-record__line span {
  color:
    var(--dusty-ink);

  font-family:
    var(--font-body);

  font-size:
    0.52rem;

  font-weight:
    600;

  letter-spacing:
    0.1em;

  text-transform:
    uppercase;
}


.reader-record__line i {
  height:
    1px;

  margin-bottom:
    4px;

  background:
    repeating-linear-gradient(
      90deg,
      rgba(200, 121, 133, 0.28) 0 3px,
      transparent 3px 7px
    );
}


.reader-record__line strong {
  color:
    var(--ink-rose);

  font-family:
    var(--font-display);

  font-size:
    0.95rem;

  font-weight:
    600;
}


/* ==========================================================
   CERTIFIED STAMP
   ========================================================== */

.reader-record__stamp {
  position:
    absolute;

  right:
    26px;

  bottom:
    5px;

  z-index:
    3;

  width:
    76px;

  height:
    76px;

  display:
    grid;

  place-items:
    center;

  border:
    2px solid
    rgba(200, 121, 133, 0.22);

  border-radius:
    50%;

  color:
    rgba(200, 121, 133, 0.38);

  font-family:
    var(--font-body);

  font-size:
    0.45rem;

  font-weight:
    700;

  letter-spacing:
    0.1em;

  line-height:
    1.4;

  text-align:
    center;

  transform:
    rotate(-10deg);

  animation:
    readerStampIn
    500ms
    cubic-bezier(.2, .8, .2, 1)
    both;
}


@keyframes readerStampIn {

  from {
    opacity:
      0;

    transform:
      rotate(-10deg)
      scale(1.6);
  }

  to {
    opacity:
      1;

    transform:
      rotate(-10deg)
      scale(1);
  }

}


/* ==========================================================
   EVIDENCE SLIPS
   ========================================================== */

.reader-record__evidence {
  position:
    relative;

  display:
    grid;

  gap:
    14px;
}


.reader-evidence {
  position:
    relative;

  padding:
    18px
    18px
    17px;

  border:
    1px solid
    rgba(200, 121, 133, 0.17);

  background:
    rgba(255, 249, 250, 0.84);

  box-shadow:
    0 10px 22px
    rgba(94, 61, 69, 0.06);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}


.reader-evidence:hover {
  z-index:
    4;

  transform:
    translateY(-3px)
    rotate(0deg);

  box-shadow:
    0 15px 28px
    rgba(94, 61, 69, 0.09);
}


.reader-evidence::before {
  content:
    "";

  position:
    absolute;

  top:
    -6px;

  left:
    50%;

  width:
    48px;

  height:
    13px;

  transform:
    translateX(-50%);

  background:
    rgba(225, 165, 174, 0.18);

  backdrop-filter:
    blur(3px);
}


.reader-evidence--annotation {
  transform:
    rotate(1.2deg);
}


.reader-evidence--speed {
  transform:
    rotate(-1deg);
}


.reader-evidence--buying {
  transform:
    rotate(0.7deg);

  background:
    rgba(250, 229, 230, 0.82);
}


.reader-evidence > span {
  display:
    block;

  margin-bottom:
    6px;

  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size:
    0.44rem;

  font-weight:
    700;

  letter-spacing:
    0.13em;

  text-transform:
    uppercase;
}


.reader-evidence strong {
  display:
    block;

  color:
    var(--ink-rose);

  font-family:
    var(--font-display);

  font-size:
    1rem;

  font-weight:
    600;

  line-height:
    1.15;
}


.reader-evidence p {
  margin:
    5px
    0
    0;

  color:
    var(--dusty-ink);

  font-family:
    var(--font-display);

  font-size:
    0.83rem;

  line-height:
    1.35;
}


.reader-evidence--buying p {
  color:
    var(--ink-rose);

  font-family:
    "Allura",
    cursive;

  font-size:
    1.45rem;

  line-height:
    1.05;
}


.reader-evidence small {
  display:
    block;

  margin-top:
    7px;

  color:
    var(--dusty-ink);

  font-family:
    var(--font-display);

  font-size:
    0.66rem;

  font-style:
    italic;
}


/* ==========================================================
   CLASSIFICATION STRIP
   ========================================================== */

.reader-record__classification {
  margin-top:
    22px;

  padding:
    9px
    14px;

  border-top:
    1px solid
    rgba(200, 121, 133, 0.14);

  border-bottom:
    1px solid
    rgba(200, 121, 133, 0.14);

  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size:
    0.50rem;

  font-weight:
    700;

  letter-spacing:
    0.14em;

  text-align:
    center;

  text-transform:
    uppercase;

  animation:
    classificationReveal
    700ms
    ease
    both;
}


@keyframes classificationReveal {

  from {
    opacity:
      0;

    letter-spacing:
      0.3em;
  }

  to {
    opacity:
      1;

    letter-spacing:
      0.14em;
  }

}


/* ==========================================================
   RESPONSIVE — PROFILE PAGE
   ========================================================== */

@media (max-width: 760px) {

  .reader-record {
    grid-template-columns:
      1fr;
  }


  .reader-record__main {
    min-height:
      0;
  }

}


@media (max-width: 520px) {

  .reader-record__header {
    flex-direction:
      column;
  }


  .reader-record__status {
    text-align:
      left;
  }


  .reader-record__line {
    grid-template-columns:
      1fr;

    gap:
      4px;
  }


  .reader-record__line i {
    display:
      none;
  }


  .reader-record__stamp {
    display:
      none;
  }

}

/* ==========================================================
   YES PLEASE — TROPE COMPATIBILITY SCANNER
   ========================================================== */

.trope-scanner {
  position: relative;

  min-height: 430px;

  display: grid;

  grid-template-columns:
    minmax(220px, 1fr)
    minmax(280px, 0.95fr)
    minmax(220px, 1fr);

  align-items: center;

  gap: 34px;

  padding:
    8px
    6px
    14px;

  isolation: isolate;
}


/* ==========================================================
   TROPE COLUMNS
   ========================================================== */

.trope-scanner__column {
  position: relative;

  z-index: 3;

  display: grid;

  gap: 11px;
}


/* ==========================================================
   TROPE MATCH CARDS
   ========================================================== */

.trope-match {
  position: relative;

  min-height: 63px;

  display: grid;

  grid-template-columns:
    34px
    1fr
    22px;

  align-items: center;

  gap: 11px;

  padding:
    10px
    12px;

  border:
    1px solid
    rgba(200, 121, 133, 0.15);

  border-radius:
    12px;

  background:
    rgba(255, 249, 250, 0.72);

  box-shadow:
    0 7px 16px
    rgba(94, 61, 69, 0.045);

  opacity: 0;

  translate:
    0 8px;

  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}


.archivist-file-page.is-active
.trope-match {
  animation:
    tropeMatchIn
    390ms
    ease
    forwards;
}


.trope-match:hover {
  transform:
    translateY(-2px);

  background:
    rgba(255, 249, 250, 0.96);

  box-shadow:
    0 10px 22px
    rgba(94, 61, 69, 0.07);
}


/* ==========================================================
   TROPE STAGGER
   ========================================================== */

.archivist-file-page.is-active
.trope-match--01 {
  animation-delay: 80ms;
}

.archivist-file-page.is-active
.trope-match--06 {
  animation-delay: 130ms;
}

.archivist-file-page.is-active
.trope-match--02 {
  animation-delay: 180ms;
}

.archivist-file-page.is-active
.trope-match--07 {
  animation-delay: 230ms;
}

.archivist-file-page.is-active
.trope-match--03 {
  animation-delay: 280ms;
}

.archivist-file-page.is-active
.trope-match--08 {
  animation-delay: 330ms;
}

.archivist-file-page.is-active
.trope-match--04 {
  animation-delay: 380ms;
}

.archivist-file-page.is-active
.trope-match--09 {
  animation-delay: 430ms;
}

.archivist-file-page.is-active
.trope-match--05 {
  animation-delay: 480ms;
}

.archivist-file-page.is-active
.trope-match--10 {
  animation-delay: 530ms;
}


@keyframes tropeMatchIn {

  to {
    opacity: 1;

    translate:
      0 0;
  }

}


/* ==========================================================
   TROPE → SCANNER CONNECTORS
   ========================================================== */

/*
   Each line begins at its trope card
   and angles toward the center scanner.

   Top rows angle downward.
   Middle rows stay almost straight.
   Bottom rows angle upward.
*/

.trope-scanner__column--left
.trope-match::after,
.trope-scanner__column--right
.trope-match::after {
  content: "";

  position: absolute;

  top: 50%;

  z-index: -1;

  width:
    clamp(58px, 6vw, 88px);

  height: 1px;

  pointer-events: none;

  opacity: 0;

  background:
    repeating-linear-gradient(
      90deg,
      rgba(200, 121, 133, 0.42) 0 4px,
      transparent 4px 9px
    );
}


/* left-side lines extend RIGHT */

.trope-scanner__column--left
.trope-match::after {
  left: 100%;

  transform-origin:
    left center;
}


/* right-side lines extend LEFT */

.trope-scanner__column--right
.trope-match::after {
  right: 100%;

  transform-origin:
    right center;
}


/* LEFT COLUMN ANGLES */

.trope-scanner__column--left
.trope-match--01::after {
  transform:
    translateY(-50%)
    rotate(28deg);
}


.trope-scanner__column--left
.trope-match--02::after {
  transform:
    translateY(-50%)
    rotate(12deg);
}


.trope-scanner__column--left
.trope-match--03::after {
  transform:
    translateY(-50%)
    rotate(0deg);
}


.trope-scanner__column--left
.trope-match--04::after {
  transform:
    translateY(-50%)
    rotate(-12deg);
}


.trope-scanner__column--left
.trope-match--05::after {
  transform:
    translateY(-50%)
    rotate(-28deg);
}


/* RIGHT COLUMN ANGLES */

.trope-scanner__column--right
.trope-match--06::after {
  transform:
    translateY(-50%)
    rotate(-28deg);
}


.trope-scanner__column--right
.trope-match--07::after {
  transform:
    translateY(-50%)
    rotate(-12deg);
}


.trope-scanner__column--right
.trope-match--08::after {
  transform:
    translateY(-50%)
    rotate(0deg);
}


.trope-scanner__column--right
.trope-match--09::after {
  transform:
    translateY(-50%)
    rotate(12deg);
}


.trope-scanner__column--right
.trope-match--10::after {
  transform:
    translateY(-50%)
    rotate(28deg);
}


/* lines fade in after cards */

.archivist-file-page.is-active
.trope-match::after {
  animation:
    tropeSignalIn
    500ms
    ease
    560ms
    forwards;
}


@keyframes tropeSignalIn {

  from {
    opacity: 0;
  }

  to {
    opacity: 0.72;
  }

}


/* ==========================================================
   TROPE CARD DETAILS
   ========================================================== */

.trope-match__icon {
  width: 32px;

  height: 32px;

  display: grid;

  place-items: center;

  border:
    1px solid
    rgba(200, 121, 133, 0.16);

  border-radius: 9px;

  background:
    rgba(246, 214, 217, 0.47);

  color:
    var(--archive-rose);

  font-family:
    var(--font-display);

  font-size: 0.88rem;
}


.trope-match div > span {
  display: block;

  margin-bottom: 2px;

  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size: 0.35rem;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


.trope-match strong {
  display: block;

  color:
    var(--ink-rose);

  font-family:
    var(--font-display);

  font-size: 0.9rem;

  font-weight: 600;

  line-height: 1.05;
}


.trope-match p {
  margin:
    2px
    0
    0;

  color:
    var(--dusty-ink);

  font-family:
    var(--font-display);

  font-size: .85rem;

  font-style: italic;

  line-height: 1.15;
}


.trope-match > b {
  width: 18px;

  height: 18px;

  display: grid;

  place-items: center;

  border:
    1px solid
    rgba(200, 121, 133, 0.26);

  border-radius: 4px;

  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size: 0.53rem;

  font-weight: 700;

  opacity: 0;
}


.archivist-file-page.is-active
.trope-match > b {
  animation:
    tropeCheckIn
    220ms
    ease
    650ms
    forwards;
}


@keyframes tropeCheckIn {

  from {
    opacity: 0;

    transform:
      scale(0.5);
  }

  to {
    opacity: 1;

    transform:
      scale(1);
  }

}


/* ==========================================================
   CENTER SCANNER
   ========================================================== */

.trope-scanner__center {
  position: relative;

  z-index: 4;

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;
}


/* ==========================================================
   SCANNER HEADING
   ========================================================== */

.trope-scanner__heading {
  margin-bottom: 9px;
}


.trope-scanner__heading > span {
  display: block;

  color:
    var(--ink-rose);

  font-family:
    var(--font-display);

  font-size: 2.15rem;

  line-height: 0.88;
}


.trope-scanner__heading strong {
  display: block;

  color:
    var(--archive-rose);

  font-family:
    "Allura",
    cursive;

  font-size: 2.75rem;

  font-weight: 400;

  line-height: 0.95;
}


.trope-scanner__heading p {
  margin:
    7px
    0
    0;

  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size: 0.46rem;

  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


/* ==========================================================
   COMPATIBILITY METER
   ========================================================== */

.compatibility-meter {
  position: relative;

  width: 230px;

  height: 230px;

  display: grid;

  place-items: center;

  isolation: isolate;

  filter:
    drop-shadow(
      0 0 18px
      rgba(200, 121, 133, 0.18)
    );
}


/* inner glow */

.compatibility-meter::before {
  content: "";

  position: absolute;

  inset: 17px;

  z-index: -1;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 249, 250, 0.98) 0%,
      rgba(246, 214, 217, 0.52) 50%,
      rgba(246, 214, 217, 0.12) 72%,
      transparent 100%
    );

  box-shadow:
    0 0 22px
    rgba(200, 121, 133, 0.16),
    0 0 46px
    rgba(246, 214, 217, 0.44);
}


/* outer halo */

.compatibility-meter::after {
  content: "";

  position: absolute;

  inset: 5px;

  z-index: -2;

  border-radius: 50%;

  border:
    1px solid
    rgba(200, 121, 133, 0.12);

  box-shadow:
    0 0 30px
    rgba(225, 165, 174, 0.15);
}


.compatibility-meter__svg {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  transform:
    rotate(-90deg);

  overflow: visible;
}


.compatibility-meter__track {
  fill: none;

  stroke:
    rgba(200, 121, 133, 0.11);

  stroke-width: 8;
}


.compatibility-meter__progress {
  fill: none;

  stroke:
    var(--archive-rose);

  stroke-width: 8;

  stroke-linecap: round;

  stroke-dasharray: 100;

  stroke-dashoffset: 100;

  filter:
    drop-shadow(
      0 0 7px
      rgba(200, 121, 133, 0.35)
    );
}


.archivist-file-page.is-active
.compatibility-meter__progress {
  animation:
    compatibilityFill
    2.15s
    cubic-bezier(.2, .75, .25, 1)
    650ms
    forwards;
}


@keyframes compatibilityFill {

  from {
    stroke-dashoffset: 100;
  }

  to {
    stroke-dashoffset: 2;
  }

}

/* ==========================================================
   SCANNER HEART SPARKLES
   ========================================================== */

.trope-scanner__center::before,
.trope-scanner__center::after {
  position: absolute;

  z-index: 6;

  color:
    var(--archive-rose);

  text-shadow:
    0 0 10px
    rgba(255, 255, 255, 0.95),
    0 0 14px
    rgba(200, 121, 133, 0.28);

  pointer-events: none;

  animation:
    scannerHeartTwinkle
    2.8s
    ease-in-out
    infinite;
}


.trope-scanner__center::before {
  content: "♡";

  top: 31%;
  left: -2%;

  font-family:
    var(--font-display);

  font-size: 1rem;
}


.trope-scanner__center::after {
  content: "♡";

  top: 45%;
  right: -1%;

  font-family:
    var(--font-display);

  font-size: 1.1rem;

  animation-delay: 0.9s;
}


.compatibility-meter__content::before,
.compatibility-meter__content::after {
  position: absolute;

  color:
    var(--cherub-rose);

  font-family:
    var(--font-display);

  text-shadow:
    0 0 8px
    rgba(255, 255, 255, 0.95),
    0 0 12px
    rgba(200, 121, 133, 0.22);

  pointer-events: none;

  animation:
    scannerHeartTwinkle
    3.2s
    ease-in-out
    infinite;
}


.compatibility-meter__content::before {
  content: "♡";

  top: -42px;
  left: -76px;

  font-size: 0.82rem;

  animation-delay: 0.4s;
}


.compatibility-meter__content::after {
  content: "♡";

  right: -76px;
  bottom: -37px;

  font-size: 0.72rem;

  animation-delay: 1.4s;
}


/* ==========================================================
   HEART TWINKLE ANIMATION
   ========================================================== */

@keyframes scannerHeartTwinkle {

  0%,
  100% {
    opacity: 0.2;

    transform:
      scale(0.7)
      rotate(-8deg);
  }

  45% {
    opacity: 0.85;

    transform:
      scale(1.05)
      rotate(3deg);
  }

  60% {
    opacity: 1;

    transform:
      scale(1.2)
      rotate(6deg);
  }

  75% {
    opacity: 0.65;

    transform:
      scale(0.95)
      rotate(1deg);
  }

}


/* ==========================================================
   METER CONTENT
   ========================================================== */

.compatibility-meter__content {
  position: relative;

  z-index: 3;

  display: flex;

  flex-direction: column;

  align-items: center;
}


.compatibility-meter__heart {
  display: block;

  margin-bottom: 2px;

  color:
    var(--archive-rose);

  font-size: 1.05rem;

  opacity: 0;
}


.archivist-file-page.is-active
.compatibility-meter__heart {
  animation:
    scannerHeartPop
    550ms
    cubic-bezier(.2, 1.4, .4, 1)
    2.72s
    forwards;
}


@keyframes scannerHeartPop {

  0% {
    opacity: 0;

    transform:
      scale(0);
  }

  55% {
    opacity: 1;

    transform:
      scale(1.7);
  }

  100% {
    opacity: 1;

    transform:
      scale(1);
  }

}


.compatibility-meter__content strong {
  color:
    var(--ink-rose);

  font-family:
    var(--font-display);

  font-size: 3.25rem;

  font-weight: 500;

  line-height: 0.9;

  opacity: 0;
}


.archivist-file-page.is-active
.compatibility-meter__content strong {
  animation:
    scannerResultIn
    450ms
    ease
    2.4s
    forwards;
}


.compatibility-meter__content p {
  margin:
    7px
    0
    0;

  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size: 0.58rem;

  font-weight: 700;

  letter-spacing: 0.18em;

  opacity: 0;
}


.archivist-file-page.is-active
.compatibility-meter__content p {
  animation:
    scannerResultIn
    400ms
    ease
    2.55s
    forwards;
}


.compatibility-meter__content small {
  margin-top: 4px;

  color:
    var(--archive-rose);

  font-family:
    "Allura",
    cursive;

  font-size: 1.35rem;

  opacity: 0;
}


.archivist-file-page.is-active
.compatibility-meter__content small {
  animation:
    scannerResultIn
    420ms
    ease
    2.68s
    forwards;
}


@keyframes scannerResultIn {

  from {
    opacity: 0;

    translate:
      0 5px;
  }

  to {
    opacity: 1;

    translate:
      0 0;
  }

}


/* ==========================================================
   HEART / SPARKLE BURST
   ========================================================== */

.compatibility-meter__burst {
  position: absolute;

  inset: 0;

  z-index: 5;

  pointer-events: none;
}


.compatibility-meter__burst span {
  position: absolute;

  top: 50%;
  left: 50%;

  color:
    var(--archive-rose);

  opacity: 0;
}


.compatibility-meter__burst span:nth-child(1) {
  --burst-x: -82px;
  --burst-y: -62px;
}


.compatibility-meter__burst span:nth-child(2) {
  --burst-x: 4px;
  --burst-y: -94px;
}


.compatibility-meter__burst span:nth-child(3) {
  --burst-x: 84px;
  --burst-y: -48px;
}


.compatibility-meter__burst span:nth-child(4) {
  --burst-x: -95px;
  --burst-y: 34px;
}


.compatibility-meter__burst span:nth-child(5) {
  --burst-x: 92px;
  --burst-y: 42px;
}


.compatibility-meter__burst span:nth-child(6) {
  --burst-x: 8px;
  --burst-y: 94px;
}


.archivist-file-page.is-active
.compatibility-meter__burst span {
  animation:
    compatibilityBurst
    850ms
    ease-out
    2.72s
    forwards;
}


@keyframes compatibilityBurst {

  0% {
    opacity: 0;

    transform:
      translate(-50%, -50%)
      scale(0);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;

    transform:
      translate(
        calc(-50% + var(--burst-x)),
        calc(-50% + var(--burst-y))
      )
      scale(1.2);
  }

}


/* ==========================================================
   REVERSE HAREM BONUS
   ========================================================== */

.trope-scanner__bonus {
  width:
    min(100%, 235px);

  margin-top: 4px;

  display: flex;

  align-items: center;

  gap: 9px;

  padding:
    10px
    12px;

  border:
    1px solid
    rgba(200, 121, 133, 0.18);

  border-radius: 11px;

  background:
    rgba(246, 214, 217, 0.58);

  box-shadow:
    0 8px 18px
    rgba(94, 61, 69, 0.04);

  text-align: left;

  opacity: 0;
}


.archivist-file-page.is-active
.trope-scanner__bonus {
  animation:
    scannerResultIn
    430ms
    ease
    2.95s
    forwards;
}


.trope-scanner__bonus > span {
  width: 30px;

  height: 30px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background:
    rgba(255, 249, 250, 0.8);

  color:
    var(--archive-rose);
}


.trope-scanner__bonus small {
  display: block;

  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size: 0.33rem;

  font-weight: 700;

  letter-spacing: 0.12em;
}


.trope-scanner__bonus strong {
  display: block;

  color:
    var(--ink-rose);

  font-family:
    var(--font-display);

  font-size: 0.86rem;
}


.trope-scanner__bonus p {
  margin:
    1px
    0
    0;

  color:
    var(--dusty-ink);

  font-family:
    var(--font-display);

  font-size: 0.57rem;

  font-style: italic;
}


/* ==========================================================
   FINAL VERDICT
   ========================================================== */

.trope-scanner__verdict {
  margin-top: 10px;

  opacity: 0;
}


.archivist-file-page.is-active
.trope-scanner__verdict {
  animation:
    scannerResultIn
    450ms
    ease
    3.12s
    forwards;
}


.trope-scanner__verdict span {
  display: block;

  color:
    var(--dusty-ink);

  font-family:
    var(--font-body);

  font-size: 0.34rem;

  font-weight: 700;

  letter-spacing: 0.14em;
}


.trope-scanner__verdict strong {
  display: block;

  margin-top: 2px;

  color:
    var(--archive-rose);

  font-family:
    "Allura",
    cursive;

  font-size: 1.5rem;

  font-weight: 400;
}


/* ==========================================================
   RESPONSIVE — TROPE SCANNER
   ========================================================== */

@media (max-width: 850px) {

  .trope-scanner {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 22px;
  }


  .trope-scanner__center {
    grid-column:
      1 / -1;

    grid-row: 1;

    margin-bottom: 20px;
  }


  .trope-scanner__column--left {
    grid-column: 1;
  }


  .trope-scanner__column--right {
    grid-column: 2;
  }


  .trope-scanner__column--left
  .trope-match::after,
  .trope-scanner__column--right
  .trope-match::after {
    display: none;
  }

}


@media (max-width: 560px) {

  .trope-scanner {
    grid-template-columns: 1fr;

    gap: 16px;
  }


  .trope-scanner__center,
  .trope-scanner__column--left,
  .trope-scanner__column--right {
    grid-column: 1;
  }


  .trope-scanner__column--left,
  .trope-scanner__column--right {
    gap: 8px;
  }


  .compatibility-meter {
    width: 200px;

    height: 200px;
  }


  .trope-scanner__heading > span {
    font-size: 1.85rem;
  }


  .trope-scanner__heading strong {
    font-size: 2.35rem;
  }

}

/* ✦ END YES PLEASE — TROPE COMPATIBILITY SCANNER ✦ */

/* ==========================================================
   ABSOLUTELY NOT PAGE
   ========================================================== */

.archivist-rejection-list {
  display:
    grid;

  gap:
    13px;
}


.archivist-rejection {
  position:
    relative;

  display:
    grid;

  grid-template-columns:
    85px
    1fr;

  align-items:
    center;

  gap:
    16px;

  padding:
    14px
    16px;

  border:
    1px solid
    rgba(200, 121, 133, 0.13);

  border-radius:
    14px;

  background:
    rgba(250, 229, 230, 0.28);
}


.archivist-rejection__stamp {
  display:
    inline-block;

  width:
    fit-content;

  padding:
    5px
    8px;

  border:
    1px solid
    rgba(200, 121, 133, 0.46);

  border-radius:
    4px;

  color:
    var(--archive-rose);

  font-family:
    var(--font-body);

  font-size:
    0.48rem;

  font-weight:
    700;

  letter-spacing:
    0.11em;

  transform:
    rotate(-5deg);

  opacity:
    0;

  animation:
    stampIn
    320ms
    ease
    forwards;
}


.archivist-rejection:nth-child(2)
.archivist-rejection__stamp {
  animation-delay:
    80ms;
}


.archivist-rejection:nth-child(3)
.archivist-rejection__stamp {
  animation-delay:
    160ms;
}


.archivist-rejection:nth-child(4)
.archivist-rejection__stamp {
  animation-delay:
    240ms;
}


@keyframes stampIn {

  from {
    opacity:
      0;

    transform:
      scale(1.5)
      rotate(-5deg);
  }

  to {
    opacity:
      1;

    transform:
      scale(1)
      rotate(-5deg);
  }

}


.archivist-rejection strong {
  color:
    var(--ink-rose);

  font-family:
    var(--font-display);

  font-size:
    1.02rem;
}


.archivist-rejection p {
  margin:
    3px
    0
    0;

  color:
    var(--dusty-ink);

  font-family:
    var(--font-display);

  font-size:
    0.86rem;

  line-height:
    1.35;
}


/* ==========================================================
   CASE NOTES PAGE
   ========================================================== */

.archivist-case-notes {
  text-align:
    center;
}


.archivist-case-notes__statement {
  width:
    min(100%, 680px);

  margin:
    30px
    auto
    22px;

  color:
    var(--ink-rose);

  font-family:
    var(--font-display);

  font-size:
    clamp(1.7rem, 3vw, 2.4rem);

  line-height:
    1.15;
}


.archivist-case-notes__statement em {
  color:
    var(--archive-rose);

  font-family:
    "Allura",
    cursive;

  font-size:
    1.15em;

  font-weight:
    400;
}


.archivist-reactions {
  display:
    flex;

  flex-wrap:
    wrap;

  justify-content:
    center;

  gap:
    8px;

  margin-bottom:
    30px;
}


.archivist-reactions span {
  padding:
    7px
    12px;

  border-radius:
    999px;

  background:
    rgba(246, 214, 217, 0.47);

  color:
    var(--dusty-ink);

  font-family:
    var(--font-display);

  font-size:
    0.78rem;

  font-style:
    italic;
}


/* ==========================================================
   EMOTIONAL DAMAGE METER
   ========================================================== */

.archivist-damage {
  width:
    min(100%, 640px);

  margin:
    0 auto;
}


.archivist-damage__labels {
  margin-bottom:
    8px;

  display:
    flex;

  justify-content:
    space-between;

  color:
    var(--dusty-ink);

  font-family:
    var(--font-body);

  font-size:
    0.48rem;

  font-weight:
    600;

  letter-spacing:
    0.11em;

  text-transform:
    uppercase;
}


.archivist-damage__track {
  position:
    relative;

  height:
    10px;

  border-radius:
    999px;

  background:
    rgba(200, 121, 133, 0.12);

  overflow:
    visible;
}


.archivist-damage__fill {
  display:
    block;

  width:
    0;

  height:
    100%;

  border-radius:
    inherit;

  background:
    linear-gradient(
      90deg,
      var(--heaven-pink),
      var(--archive-rose)
    );

  animation:
    damageFill
    1.1s
    ease
    200ms
    forwards;
}


.archivist-damage__marker {
  position:
    absolute;

  top:
    50%;

  left:
    92%;

  transform:
    translate(-50%, -50%)
    scale(0);

  width:
    28px;

  height:
    28px;

  display:
    grid;

  place-items:
    center;

  border:
    1px solid
    rgba(200, 121, 133, 0.25);

  border-radius:
    50%;

  background:
    var(--pearl);

  color:
    var(--archive-rose);

  box-shadow:
    0 5px 13px
    rgba(94, 61, 69, 0.1);

  animation:
    damageMarkerIn
    350ms
    ease
    1s
    forwards;
}


@keyframes damageFill {

  to {
    width:
      92%;
  }

}


@keyframes damageMarkerIn {

  to {
    transform:
      translate(-50%, -50%)
      scale(1);
  }

}


.archivist-case-notes__ending {
  margin:
    28px
    0
    0;

  color:
    var(--archive-rose);

  font-family:
    "Allura",
    cursive;

  font-size:
    1.45rem;
}


/* ==========================================================
   RESPONSIVE — ARCHIVIST FILE
   ========================================================== */

@media (max-width: 760px) {

  .archivist-folder__tabs {
    padding-left:
      8px;

    overflow-x:
      auto;
  }


  .archivist-folder__tab {
    flex:
      0 0 auto;

    padding:
      9px
      13px;
  }


  .archivist-folder__paper {
    padding:
      28px
      22px
      30px;
  }


  .archivist-profile-grid {
    grid-template-columns:
      1fr;
  }


  .archivist-profile-item--wide {
    grid-column:
      auto;
  }


  .archivist-rejection {
    grid-template-columns:
      1fr;

    gap:
      8px;
  }

}


@media (max-width: 520px) {

  .archivist-file {
    padding:
      70px
      var(--page-padding, 22px)
      80px;
  }


  .archivist-file-page__meta {
    flex-direction:
      column;

    gap:
      5px;
  }

}

/* ✦ END 02. THE ARCHIVIST'S FILE ✦ */

/* ==========================================================
   03 — THE SACRED SEVEN
   CELESTIAL ARC LAYOUT
   ========================================================== */

.sacred-seven {
  position: relative;
  padding: 2.8rem 1.5rem 3rem;
  overflow: hidden;
}

.sacred-seven__inner {
  width: min(1280px, 100%);
  margin: 0 auto;
}


/* ==========================================================
   HEADING — COMPACT + HIGHER
   ========================================================== */

.sacred-seven__heading {
  max-width: 760px;
  margin: -0.6rem auto 1.25rem;
  text-align: center;
}

.sacred-seven__eyebrow {
  display: inline-block;

  margin-bottom: 0.2rem;

  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;

  color: var(--archive-rose);
}

.sacred-seven__heading h2 {
  margin: 0;

  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 0.9;

  color: var(--ink-rose);
}

.sacred-seven__heading h2 span {
  color: var(--cherub-rose);
}

.sacred-seven__heading p {
  margin: 0.32rem 0 0;

  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;

  color: var(--dusty-ink);
}


/* ==========================================================
   SACRED SHELF — CELESTIAL ARC
   ========================================================== */

.sacred-seven__shelf {
  position: relative;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(110px, 1fr))
    minmax(160px, 1.18fr)
    repeat(3, minmax(110px, 1fr));

  gap: clamp(1rem, 1.7vw, 1.7rem);

  align-items: end;

  padding:
  0
  0.75rem
  2.2rem;
}


/* ==========================================================
   ARC POSITIONING
   ========================================================== */

.sacred-book {
  position: relative;
  z-index: 3;

  min-width: 0;

  text-align: center;

  transition:
    transform 300ms ease;
}


/* far left */
.sacred-book:nth-child(1) {
  transform:
    translateY(20px)
    rotate(-1.2deg);
}


/* inner left */
.sacred-book:nth-child(2) {
  transform:
    translateY(8px)
    rotate(0.6deg);
}


/* closest left */
.sacred-book:nth-child(3) {
  transform:
    translateY(-2px)
    rotate(-0.5deg);
}


/* centerpiece handled separately */


/* closest right */
.sacred-book:nth-child(5) {
  transform:
    translateY(-2px)
    rotate(0.5deg);
}


/* inner right */
.sacred-book:nth-child(6) {
  transform:
    translateY(8px)
    rotate(-0.6deg);
}


/* far right */
.sacred-book:nth-child(7) {
  transform:
    translateY(20px)
    rotate(1.2deg);
}


.sacred-book:hover {
  z-index: 20;

  transform:
    translateY(-10px)
    rotate(0deg);
}


/* ==========================================================
   STANDARD BOOK DISPLAY
   ========================================================== */

.sacred-book__display {
  position: relative;

  width: min(138px, 100%);
  margin: 0 auto;

  isolation: isolate;
}

.sacred-book__display::before {
  content: "";

  position: absolute;

  inset: 5% -24%;

  z-index: -2;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(246, 214, 217, 0.55),
      rgba(248, 219, 226, 0.22) 48%,
      transparent 74%
    );

  filter: blur(10px);

  opacity: 0.28;

  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.sacred-book:hover .sacred-book__display::before {
  opacity: 0.9;
  transform: scale(1.1);
}

.sacred-book__cover {
  display: block;

  width: 100%;
  aspect-ratio: 2 / 3;

  object-fit: cover;

  border-radius: 7px;

  border:
    1px solid rgba(255, 255, 255, 0.9);

  box-shadow:
    0 14px 26px rgba(94, 61, 69, 0.14),
    0 4px 9px rgba(200, 121, 133, 0.08);

  transition:
    transform 300ms ease,
    box-shadow 300ms ease;
}

.sacred-book:hover .sacred-book__cover {
  transform:
    translateY(-8px)
    scale(1.015);

  box-shadow:
    0 22px 38px rgba(94, 61, 69, 0.2),
    0 8px 16px rgba(200, 121, 133, 0.13);
}


/* ==========================================================
   BOOK LABELS
   ========================================================== */

.sacred-book__info {
  margin-top: 0.62rem;
}

.sacred-book__info h3 {
  margin: 0 0 0.02rem;

  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.15vw, 1.08rem);
  font-weight: 600;
  line-height: 1.05;

  color: var(--ink-rose);
}

.sacred-book__classification {
  display: inline-block;

  position: relative;
  top: -8px;

  padding: 0;

  border: 0;
  background: none;

  font-family: var(--font-body);
  font-size: 0.46rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.1em;

  color: var(--archive-rose);
}


/* ==========================================================
   STILL BEATING — THE RELIC
   ========================================================== */

.sacred-book--relic {
  z-index: 8;

  transform:
    translateY(12px)
    scale(1.08);
}

.sacred-book--relic:hover {
  transform:
    translateY(3px)
    scale(1.1);
}

.sacred-book--relic .sacred-book__display {
  width: min(178px, 100%);
}

.sacred-book--relic .sacred-book__cover {
  border-radius: 8px;

  box-shadow:
    0 24px 44px rgba(94, 61, 69, 0.22),
    0 10px 20px rgba(200, 121, 133, 0.15);
}


/* big ceremonial arch */
.sacred-book__halo {
  position: absolute;

  left: 50%;
  top: -43px;

  width: 215px;
  height: 320px;

  z-index: -4;

  transform: translateX(-50%);

  border-radius:
    125px 125px 28px 28px;

  border:
    1px solid rgba(200, 121, 133, 0.18);

  background:
    radial-gradient(
      circle at 50% 38%,
      rgba(255, 255, 255, 1) 0%,
      rgba(246, 214, 217, 0.64) 38%,
      rgba(248, 219, 226, 0.22) 60%,
      rgba(255, 255, 255, 0) 80%
    );

  box-shadow:
    0 0 36px rgba(225, 165, 174, 0.18);

  pointer-events: none;
}

.sacred-book__relic-label {
  position: relative;
  z-index: 6;

  margin-bottom: 0.75rem;

  display: flex;
  justify-content: center;

  transform: translateY(10px);
}

.sacred-book__relic-label span {
  font-family: var(--font-body);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.2em;

  color: var(--archive-rose);
}

.sacred-book--relic .sacred-book__info h3 {
  font-size: 1.65rem;
}

.sacred-book__favorite {
  display: block;

  margin-top: 0.15rem;

  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1;

  color: var(--cherub-rose);

  transform: translateY(-12px);
}


/* ==========================================================
   HEAVENLY DETAILS
   ========================================================== */

.sacred-book--relic::before,
.sacred-book--relic::after {
  position: absolute;

  z-index: 10;

  color: var(--cherub-rose);

  pointer-events: none;

  animation:
    sacredHeartTwinkle
    3s
    ease-in-out
    infinite;
}

.sacred-book--relic::before {
  content: "♡";

  top: 15%;
  left: -15px;

  font-size: 0.95rem;
}

.sacred-book--relic::after {
  content: "✦";

  top: 35%;
  right: -12px;

  font-size: 0.72rem;

  animation-delay: 1.1s;
}

@keyframes sacredHeartTwinkle {

  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }

}


/* ==========================================================
   SUBTLE DECORATIVE ORBITS
   ========================================================== */

.sacred-seven__shelf::before {
  content: "♡      ✦      ♡";

  position: absolute;

  left: 50%;
  top: 12%;

  z-index: 0;

  transform:
    translateX(-50%);

  width: 420px;

  text-align: center;

  white-space: pre;

  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 3rem;

  color:
    rgba(225, 165, 174, 0.38);

  pointer-events: none;
}


/* ==========================================================
   PEARL SHELF
   ========================================================== */

.sacred-seven__shelf-line {
  position: absolute;

  left: 5%;
  right: 5%;
  bottom: 0.55rem;

  height: 7px;

  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.95),
      rgba(241, 206, 210, 0.4)
    );

  border:
    1px solid rgba(200, 121, 133, 0.12);

  box-shadow:
    0 7px 14px rgba(94, 61, 69, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);

  opacity: 0.78;

  z-index: 0;
}


/* ==========================================================
   HOVER NOTES
   ========================================================== */

.sacred-book__note {
  position: absolute;

  left: 50%;
  bottom: calc(100% + 14px);

  width: 178px;

  padding:
    0.85rem
    0.9rem;

  border-radius: 13px;

  background:
    rgba(255, 249, 250, 0.98);

  border:
    1px solid rgba(200, 121, 133, 0.16);

  box-shadow:
    0 16px 30px rgba(94, 61, 69, 0.14);

  opacity: 0;

  pointer-events: none;

  transform:
    translateX(-50%)
    translateY(8px)
    scale(0.95)
    rotate(-1deg);

  transition:
    opacity 220ms ease,
    transform 280ms ease;

  z-index: 30;
}

.sacred-book:nth-child(even) .sacred-book__note {
  transform:
    translateX(-50%)
    translateY(8px)
    scale(0.95)
    rotate(1deg);
}

.sacred-book:hover .sacred-book__note {
  opacity: 1;

  transform:
    translateX(-50%)
    translateY(0)
    scale(1)
    rotate(-0.5deg);
}

.sacred-book:nth-child(even):hover .sacred-book__note {
  transform:
    translateX(-50%)
    translateY(0)
    scale(1)
    rotate(0.5deg);
}

.sacred-book__note::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -6px;

  width: 10px;
  height: 10px;

  background:
    rgba(255, 249, 250, 0.98);

  border-right:
    1px solid rgba(200, 121, 133, 0.12);

  border-bottom:
    1px solid rgba(200, 121, 133, 0.12);

  transform:
    translateX(-50%)
    rotate(45deg);
}

.sacred-book__note span {
  display: block;

  margin-bottom: 0.38rem;

  font-family: var(--font-body);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.16em;

  color: var(--archive-rose);
}

.sacred-book__note p {
  margin: 0;

  font-family: var(--font-display);
  font-size: 0.85rem;
  line-height: 1.3;

  color: var(--ink-rose);
}


/* ==========================================================
   FOOTER
   ========================================================== */

.sacred-seven__footer {
  margin-top: 2.2rem;
  text-align: center;
}

.sacred-seven__footer p {
  margin: 0;

  font-family: "Allura", cursive;
  font-size: clamp(1.55rem, 2.7vw, 2.2rem);
  line-height: 1.1;

  color: var(--archive-rose);
}

.sacred-seven__footer > span {
  display: block;

  margin-top: 0.75rem;

  font-family: var(--font-body);
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.17em;

  color:
    rgba(139, 107, 114, 0.65);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1050px) {

  .sacred-seven__shelf {
    grid-template-columns:
      repeat(4, minmax(120px, 1fr));

    row-gap: 3rem;
  }

  .sacred-book,
  .sacred-book:nth-child(1),
  .sacred-book:nth-child(2),
  .sacred-book:nth-child(3),
  .sacred-book:nth-child(5),
  .sacred-book:nth-child(6),
  .sacred-book:nth-child(7) {
    transform: none;
  }

  .sacred-book--relic {
    grid-column: 2 / span 2;
    grid-row: 1;

    justify-self: center;

    transform:
      translateY(-16px)
      scale(1.06);
  }

  .sacred-seven__shelf-line,
  .sacred-seven__shelf::before {
    display: none;
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 720px) {

  .sacred-seven {
    padding:
      4.25rem
      1rem
      3.25rem;
  }

  .sacred-seven__heading {
    margin-bottom: 2.5rem;
  }

  .sacred-seven__shelf {
    display: flex;

    overflow-x: auto;

    gap: 1.35rem;

    padding:
      3rem
      1.25rem
      2rem;

    scroll-snap-type:
      x mandatory;

    scrollbar-width: none;
  }

  .sacred-seven__shelf::-webkit-scrollbar {
    display: none;
  }

  .sacred-book,
  .sacred-book:nth-child(1),
  .sacred-book:nth-child(2),
  .sacred-book:nth-child(3),
  .sacred-book:nth-child(5),
  .sacred-book:nth-child(6),
  .sacred-book:nth-child(7) {
    flex:
      0 0
      138px;

    transform: none;

    scroll-snap-align: center;
  }

  .sacred-book--relic {
    flex-basis: 178px;

    order: -1;

    transform: none;
  }

  .sacred-book__display,
  .sacred-book--relic .sacred-book__display {
    width: 100%;
  }

  .sacred-book:hover {
    transform:
      translateY(-6px);
  }

  .sacred-book__note {
    width: 170px;
  }

  .sacred-seven__shelf-line,
  .sacred-seven__shelf::before {
    display: none;
  }

  .sacred-seven__footer {
    margin-top: 1.8rem;
  }

}

/* ==================================================
   04 — READER LORE
   ================================================== */

.reader-lore {
  position: relative;
  padding: 2.5rem 1.5rem 3rem;
  overflow: hidden;
}

.reader-lore__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

/* =============================================
   SECTION HEADING
   ============================================= */

.reader-lore__heading {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.reader-lore__eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--archive-rose);
}

.reader-lore__heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.4vw, 5rem);
  font-weight: 500;
  line-height: 0.92;
  color: var(--ink-rose);
}

.reader-lore__heading h2 span {
  color: var(--cherub-rose);
}

.reader-lore__heading p {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-style: italic;
  color: var(--dusty-ink);
}

/* =============================================
   TIMELINE — MUCH TIGHTER
   ============================================= */

.reader-lore__timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.15rem 0;
}

.lore-entry {
  position: relative;
  width: 50%;
  margin-top: -4.6rem;
}

.lore-entry:first-child {
  margin-top: 0;
}

.lore-entry + .lore-entry {
  margin-top: -4.6rem;
}

.lore-entry--left {
  align-self: flex-start;
  padding-right: 2.4rem;
}

.lore-entry--right {
  align-self: flex-end;
  padding-left: 2.4rem;
}

/* =============================================
   CLICKABLE SUMMARY
   ============================================= */

.lore-entry__trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 112px;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(200, 121, 133, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.92),
      rgba(250, 229, 230, 0.72)
    );
  box-shadow:
    0 14px 36px rgba(94, 61, 69, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-align: left;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.lore-entry__trigger:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 121, 133, 0.34);
  box-shadow:
    0 18px 42px rgba(94, 61, 69, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.lore-entry.is-open .lore-entry__trigger {
  border-color: rgba(200, 121, 133, 0.36);
  box-shadow:
    0 20px 48px rgba(94, 61, 69, 0.12),
    0 0 28px rgba(225, 165, 174, 0.1);
}

/* =============================================
   NUMBER
   ============================================= */

.lore-entry__number {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-right: 0.75rem;
  border: 1px solid rgba(200, 121, 133, 0.22);
  border-radius: 50%;
  background: rgba(255, 249, 250, 0.82);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--archive-rose);
}

/* =============================================
   TIMELINE MARKER
   ============================================= */

.lore-entry__marker {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(200, 121, 133, 0.25);
  border-radius: 50%;
  background: var(--pearl);
  font-size: 0.72rem;
  color: var(--cherub-rose);
  box-shadow:
    0 0 0 6px rgba(250, 229, 230, 0.72),
    0 0 18px rgba(225, 165, 174, 0.18);
  z-index: 4;
}

.lore-entry--left .lore-entry__marker {
  right: -14px;
}

.lore-entry--right .lore-entry__marker {
  left: -14px;
}

/* =============================================
   SUMMARY TEXT
   ============================================= */

.lore-entry__summary {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lore-entry__summary small {
  margin-bottom: 0.08rem;
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  color: var(--archive-rose);
}

.lore-entry__summary strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink-rose);
}

.lore-entry__summary em {
  margin-top: 0.18rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--dusty-ink);
}

/* =============================================
   STORY — CLOSED STATE
   ============================================= */

.lore-entry__story {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 380ms ease,
    opacity 240ms ease,
    margin-top 380ms ease;
  margin-top: 0;
}

.lore-entry__story > * {
  overflow: hidden;
}

/* =============================================
   STORY — OPEN STATE
   ============================================= */

.lore-entry.is-open .lore-entry__story {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.85rem;
}

/* =============================================
   PAPER PANEL
   ============================================= */

.lore-entry__paper {
  position: relative;
  padding: 1.25rem 1.35rem 1.15rem;
  border: 1px solid rgba(200, 121, 133, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.96),
      rgba(255, 249, 250, 0.94)
    );
  box-shadow:
    0 16px 34px rgba(94, 61, 69, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* tiny paper fold / archive corner */

.lore-entry__paper::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  width: 20px;
  height: 20px;
  border-top: 1px solid rgba(200, 121, 133, 0.16);
  border-right: 1px solid rgba(200, 121, 133, 0.16);
  opacity: 0.7;
}

.lore-entry__label {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--archive-rose);
}

.lore-entry__paper p {
  margin: 0 0 0.8rem;
  font-family: var(--font-body);
  font-size: 0.83rem;
  line-height: 1.72;
  color: var(--dusty-ink);
}

.lore-entry__paper p:last-of-type {
  margin-bottom: 0.95rem;
}

.lore-entry__paper em {
  color: var(--ink-rose);
}

/* =============================================
   ANNOTATION
   ============================================= */

.lore-entry__annotation {
  display: inline-block;
  padding: 0.38rem 0.62rem;
  border: 1px dashed rgba(200, 121, 133, 0.28);
  border-radius: 999px;
  background: rgba(250, 229, 230, 0.48);
  font-family: var(--font-body);
  font-size: 0.47rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--archive-rose);
}

/* =============================================
   CURRENT ERA
   ============================================= */

.lore-entry--current .lore-entry__trigger {
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(255, 255, 255, 0.98),
      rgba(250, 229, 230, 0.82) 55%,
      rgba(246, 214, 217, 0.68)
    );
  border-color: rgba(200, 121, 133, 0.28);
}

.lore-entry--current .lore-entry__marker {
  color: var(--archive-rose);
  box-shadow:
    0 0 0 6px rgba(250, 229, 230, 0.82),
    0 0 24px rgba(225, 165, 174, 0.3);
}

.lore-entry--current .lore-entry__number {
  background: rgba(246, 214, 217, 0.64);
}

/* tiny decorative glow */

.lore-entry--current::after {
  content: "YOU ARE HERE ♡";
  position: absolute;
  bottom: -0.1rem;
  font-family: var(--font-body);
  font-size: 0.44rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cherub-rose);
}

.lore-entry--current.lore-entry--right::after {
  left: 3.35rem;
}

.lore-entry--current.lore-entry--left::after {
  right: 3.35rem;
}

/* =============================================
   RESPONSIVE — TABLET
   ============================================= */

@media (max-width: 900px) {

  .reader-lore {
    padding: 3.5rem 1.25rem 4rem;
  }

  .reader-lore__timeline::before {
    left: 22px;
  }

  .lore-entry,
  .lore-entry--left,
  .lore-entry--right {
    width: 100%;
    align-self: auto;
    padding-left: 3.4rem;
    padding-right: 0;
  }

  .lore-entry__marker,
  .lore-entry--left .lore-entry__marker,
  .lore-entry--right .lore-entry__marker {
    left: 8px;
    right: auto;
  }

  .lore-entry--current::after,
  .lore-entry--current.lore-entry--right::after,
  .lore-entry--current.lore-entry--left::after {
    left: 3.75rem;
    right: auto;
  }
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */

@media (max-width: 620px) {

  .reader-lore {
    padding: 3rem 1rem 3.5rem;
  }

  .reader-lore__heading {
    margin-bottom: 2.3rem;
  }

  .reader-lore__heading h2 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .reader-lore__timeline {
    gap: 1rem;
  }

  .lore-entry__trigger {
    min-height: 102px;
    padding: 1rem;
    border-radius: 18px;
  }

  .lore-entry__number {
    width: 38px;
    height: 38px;
    margin-right: 0.8rem;
    font-size: 0.95rem;
  }

  .lore-entry__summary strong {
    font-size: 1.35rem;
  }

  .lore-entry__summary em {
    font-size: 0.82rem;
  }

  .lore-entry__paper {
    padding: 1.05rem 1rem 1rem;
  }

  .lore-entry__paper p {
    font-size: 0.79rem;
    line-height: 1.65;
  }
}

/* ✦ END — READER LORE ✦ */

/* ==================================================
   05 — ASK THE ARCHIVIST
   ================================================== */

.ask-archivist {
  position: relative;
  padding: 4.25rem 1.5rem 5rem;
  overflow: hidden;
}


/* ==============================
   SECTION HEADING
   ============================== */

.ask-archivist__heading {
  max-width: 780px;
  margin: 0 auto 2rem;
  text-align: center;
}

.ask-archivist__eyebrow {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--archive-rose);
}

.ask-archivist__heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 0.92;
  color: var(--ink-rose);
}

.ask-archivist__heading h2 span {
  color: var(--cherub-rose);
}

.ask-archivist__heading p {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dusty-ink);
}


/* ==============================
   CORRESPONDENCE DESK
   ============================== */

.ask-archivist__desk {
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(300px, 0.8fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;

  width: min(1180px, 100%);
  min-height: 560px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.75rem);

  border: 1px solid rgba(200, 121, 133, 0.13);
  border-radius: 38px;

  background:
    radial-gradient(
      circle at 78% 35%,
      rgba(255, 255, 255, 0.9),
      transparent 27%
    ),
    linear-gradient(
      135deg,
      rgba(255, 249, 250, 0.94),
      rgba(250, 229, 230, 0.72)
    );

  box-shadow:
    0 25px 70px rgba(94, 61, 69, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


/* ==============================
   POSTMARK
   ============================== */

.archive-postmark {
  position: absolute;
  right: 6rem;
  top: 1.4rem;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 104px;
  height: 104px;
  padding-top: 29px;

  border: 1px solid rgba(200, 121, 133, 0.2);
  border-radius: 50%;

  color: rgba(200, 121, 133, 0.38);

  transform: rotate(8deg);
  pointer-events: none;
}

.archive-postmark::after {
  content: "";
  position: absolute;
  inset: 7px;

  border: 1px dashed rgba(200, 121, 133, 0.16);
  border-radius: inherit;
}

.archive-postmark span {
  font-family: var(--font-body);
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.archive-postmark strong {
  margin: 0.15rem 0;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
}


/* ==============================
   LETTER
   ============================== */

.archive-letter-wrap {
  position: relative;
  z-index: 4;
  perspective: 1000px;
}

.archive-letter {
  position: relative;

  width: min(650px, 100%);
  margin: 0 auto;
  padding: clamp(1.65rem, 3vw, 2.5rem);

  border: 1px solid rgba(200, 121, 133, 0.14);
  border-radius: 5px;

  background:
    linear-gradient(
      rgba(255, 255, 255, 0.78),
      rgba(255, 255, 255, 0.78)
    ),
    var(--pearl);

  box-shadow:
    0 22px 55px rgba(94, 61, 69, 0.12),
    6px 8px 0 rgba(246, 214, 217, 0.35);

  transform: rotate(-0.7deg);
}

.archive-letter::before {
  content: "";
  position: absolute;
  inset: 10px;

  border: 1px solid rgba(200, 121, 133, 0.08);

  pointer-events: none;
}


/* Masthead */

.archive-letter__masthead {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.archive-letter__masthead > div {
  display: flex;
  flex-direction: column;
}

.archive-letter__masthead span {
  font-family: var(--font-body);
  font-size: 0.47rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--archive-rose);
}

.archive-letter__masthead strong {
  margin-top: 0.15rem;

  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;

  color: var(--ink-rose);
}

.archive-letter__number {
  color: var(--dusty-ink) !important;
}

.archive-letter__rule {
  height: 1px;
  margin: 0.85rem 0 1.2rem;

  background:
    linear-gradient(
      90deg,
      var(--cherub-rose),
      rgba(225, 165, 174, 0.12)
    );
}


/* ==============================
   FORM
   ============================== */

.archive-letter__form {
  position: relative;
  z-index: 2;
}

.archive-letter__field {
  margin-bottom: 1rem;
}

.archive-letter__field label,
.archive-letter__fieldset legend {
  display: block;
  margin-bottom: 0.4rem;

  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.16em;

  color: var(--archive-rose);
}

.archive-letter__field label span {
  margin-left: 0.25rem;

  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;

  color: var(--dusty-ink);
}

.archive-letter input[type="text"],
.archive-letter textarea {
  width: 100%;

  border: 0;
  border-bottom: 1px solid rgba(200, 121, 133, 0.18);
  outline: 0;

  background: transparent;

  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-rose);
}

.archive-letter input[type="text"] {
  padding: 0.35rem 0 0.45rem;
}

.archive-letter textarea {
  min-height: 105px;
  padding: 0.5rem 0;

  line-height: 1.65;
  resize: vertical;

  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 25px,
      rgba(200, 121, 133, 0.09) 26px
    );
}

.archive-letter input::placeholder,
.archive-letter textarea::placeholder {
  color: rgba(139, 107, 114, 0.55);
  font-style: italic;
}

.archive-letter input:focus,
.archive-letter textarea:focus {
  border-color: var(--cherub-rose);
}


/* ==============================
   CATEGORY STAMPS
   ============================== */

.archive-letter__fieldset {
  min-width: 0;
  margin: 0 0 1rem;
  padding: 0;

  border: 0;
}

.archive-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.archive-category {
  cursor: pointer;
}

.archive-category input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.archive-category span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;

  min-height: 42px;
  padding: 0.55rem 0.4rem;

  border: 1px dashed rgba(200, 121, 133, 0.28);
  border-radius: 8px;

  background: rgba(255, 249, 250, 0.66);

  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.archive-category b {
  font-family: var(--font-body);
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  color: var(--dusty-ink);
}

.archive-category small {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--cherub-rose);
}

.archive-category:hover span {
  transform: translateY(-2px);
  border-color: rgba(200, 121, 133, 0.45);
}

.archive-category input:checked + span {
  border-style: solid;
  border-color: var(--cherub-rose);

  background: rgba(246, 214, 217, 0.56);

  box-shadow:
    0 7px 18px rgba(200, 121, 133, 0.09);
}

.archive-category input:checked + span b {
  color: var(--ink-rose);
}


/* ==============================
   IDENTITY
   ============================== */

.archive-identity {
  margin-top: 0.8rem;
}

.archive-identity__choices {
  display: flex;
  gap: 0.65rem;
}

.archive-identity__choices label {
  cursor: pointer;
}

.archive-identity__choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.archive-identity__choices span {
  display: block;
  padding: 0.4rem 0.75rem;

  border: 1px solid rgba(200, 121, 133, 0.18);
  border-radius: 999px;

  font-family: var(--font-body);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.1em;

  color: var(--dusty-ink);

  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.archive-identity__choices input:checked + span {
  border-color: var(--cherub-rose);
  background: var(--cloud-blush);
  color: var(--ink-rose);
}


/* ==============================
   LETTER BOTTOM / SEND BUTTON
   ============================== */

.archive-letter__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;

  margin-top: 1rem;
}

.archive-letter__bottom p {
  max-width: 280px;
  margin: 0;

  font-family: var(--font-display);
  font-size: 0.72rem;
  font-style: italic;
  line-height: 1.35;

  color: var(--dusty-ink);
}

.archive-letter__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;

  padding: 0.55rem 1rem 0.55rem 0.55rem;

  border: 1px solid rgba(200, 121, 133, 0.2);
  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 249, 250, 0.98),
      rgba(246, 214, 217, 0.9)
    );

  box-shadow:
    0 8px 22px rgba(200, 121, 133, 0.12);

  font-family: var(--font-body);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-rose);

  cursor: pointer;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.archive-letter__submit:hover {
  transform: translateY(-2px);

  box-shadow:
    0 11px 28px rgba(200, 121, 133, 0.18);
}

.archive-letter__seal {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  border-radius: 50%;

  background: var(--archive-rose);
  color: var(--pearl);

  font-family: var(--font-display);
  font-size: 0.9rem;

  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}


/* ==============================
   HEAVENLY MAIL SIDE
   ============================== */

.archive-mail {
  position: relative;
  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 440px;
  padding-top: 4.5rem;

  text-align: center;
}


/* ==============================
   CUPID
   ============================== */

.archive-mail__cupid {
  position: absolute;
  z-index: 8;

  top: -2.75rem;
  right: -4.5rem;

  width: 150px;

  pointer-events: none;
}

.archive-mail__cupid img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(-7deg);

  filter:
    drop-shadow(
      0 10px 15px rgba(94, 61, 69, 0.1)
    );
}

.archive-mail__cupid span {
  position: absolute;
  left: -300px;
  bottom: -180px;

  width: 120px;

  font-family: "Allura", cursive;
  font-size: 1.4rem;
  line-height: 1;

  color: var(--archive-rose);

  transform: rotate(-6deg);
}


/* ==============================
   ENVELOPE
   ============================== */

.archive-envelope {
  position: relative;

  width: min(330px, 90%);
  aspect-ratio: 1.55 / 1;

  margin-top: 2rem;

  filter:
    drop-shadow(
      0 18px 25px rgba(94, 61, 69, 0.13)
    );
}

.archive-envelope__back {
  position: absolute;
  inset: 0;

  border: 1px solid rgba(200, 121, 133, 0.2);
  border-radius: 8px;

  background:
    linear-gradient(
      145deg,
      #f7dadd,
      #edbec5
    );
}



.archive-envelope__front {
  position: absolute;
  z-index: 4;
  inset: 0;

  overflow: hidden;

  border-radius: 8px;

  background:
    linear-gradient(
      35deg,
      transparent 49.5%,
      rgba(255, 255, 255, 0.15) 50%
    ),
    linear-gradient(
      -35deg,
      transparent 49.5%,
      rgba(255, 255, 255, 0.13) 50%
    ),
    linear-gradient(
      145deg,
      #f5d3d7,
      #eebfc6
    );

  clip-path:
    polygon(
      0 35%,
      50% 70%,
      100% 35%,
      100% 100%,
      0 100%
    );
}

.archive-envelope__flap {
  position: absolute;
  z-index: 5;

  left: 0;
  right: 0;
  top: 0;

  height: 58%;

  clip-path:
    polygon(
      0 0,
      100% 0,
      50% 100%
    );

  background:
    linear-gradient(
      160deg,
      #f8dde0,
      #efc4ca
    );

  transform-origin: top;
  transform: rotateX(180deg);
}

.archive-envelope__wax {
  position: absolute;
  z-index: 7;

  left: 50%;
  bottom: 23%;

  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 30%,
      #df9ba6,
      var(--archive-rose)
    );

  color: var(--pearl);

  font-family: var(--font-display);
  font-size: 1.1rem;

  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.11),
    0 5px 10px rgba(94, 61, 69, 0.14);

  transform: translateX(-50%);
}


/* ==============================
   SPARKLES
   ============================== */

.archive-mail__sparkle {
  position: absolute;

  font-family: var(--font-display);
  color: var(--cherub-rose);

  pointer-events: none;
}

.archive-mail__sparkle--one {
  left: -3%;
  top: 24%;
  font-size: 1.3rem;
}

.archive-mail__sparkle--two {
  right: -3%;
  top: 45%;
  font-size: 1rem;
}

.archive-mail__sparkle--three {
  left: 12%;
  bottom: 26%;
  font-size: 0.8rem;
}


/* ==============================
   MAIL STATUS
   ============================== */

.archive-mail__status {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-top: 1.4rem;
}

.archive-mail__status span {
  font-family: var(--font-body);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.18em;

  color: var(--archive-rose);
}

.archive-mail__status strong {
  margin-top: 0.1rem;

  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;

  color: var(--ink-rose);
}


/* ==============================
   MAIL TABS
   ============================== */

.archive-mail__tabs {
  display: flex;
  gap: 0.45rem;

  margin-top: 1.15rem;
  padding: 0.3rem;

  border: 1px solid rgba(200, 121, 133, 0.13);
  border-radius: 999px;

  background: rgba(255, 249, 250, 0.68);
}

.archive-mail__tab {
  padding: 0.48rem 0.8rem;

  border: 0;
  border-radius: 999px;

  background: transparent;

  font-family: var(--font-body);
  font-size: 0.47rem;
  font-weight: 700;
  letter-spacing: 0.09em;

  color: var(--dusty-ink);

  cursor: pointer;

  transition:
    background 180ms ease,
    color 180ms ease;
}

.archive-mail__tab.is-active {
  background: var(--cloud-blush);
  color: var(--ink-rose);
}

.archive-mail__note {
  max-width: 250px;
  margin: 0.65rem auto 0;

  font-family: var(--font-display);
  font-size: 0.67rem;
  font-style: italic;
  line-height: 1.3;

  color: var(--dusty-ink);
}


/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 900px) {

  .ask-archivist__desk {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .archive-mail {
    min-height: 390px;
  }

  .archive-postmark {
    display: none;
  }

}


@media (max-width: 650px) {

  .ask-archivist {
    padding:
      3.5rem
      1rem
      4rem;
  }

  .ask-archivist__desk {
    padding:
      1.25rem
      1rem
      1.75rem;

    border-radius: 25px;
  }

  .archive-letter {
    padding:
      1.5rem
      1.15rem;
  }

  .archive-letter__masthead {
    flex-direction: column;
    gap: 0.3rem;
  }

  .archive-category-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .archive-letter__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-letter__submit {
    align-self: flex-end;
  }

  .archive-mail__cupid {
    width: 115px;
  }

  .archive-mail__cupid span {
    left: -70px;
    font-size: 1.2rem;
  }

}

/* ==================================================
   05D — ASK THE ARCHIVIST · SEND ANIMATION
   ================================================== */


/* ==============================
   TRAVELING LETTER
   ============================== */

.archive-outgoing-letter {
  position: absolute;
  z-index: 20;

  left: 37%;
  top: 46%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 175px;
  height: 115px;
  padding: 1rem;

  border: 1px solid rgba(200, 121, 133, 0.16);
  border-radius: 4px;

  background: var(--pearl);

  box-shadow:
    0 14px 30px rgba(94, 61, 69, 0.15);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform:
    translate(-50%, -50%)
    rotate(-4deg)
    scale(0.85);

  transition:
    left 700ms cubic-bezier(.22, .8, .3, 1),
    top 700ms cubic-bezier(.22, .8, .3, 1),
    transform 700ms cubic-bezier(.22, .8, .3, 1),
    opacity 220ms ease;
}

.archive-outgoing-letter span {
  font-family: var(--font-body);
  font-size: 0.38rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--archive-rose);
}

.archive-outgoing-letter strong {
  margin-top: 0.25rem;

  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;

  color: var(--ink-rose);
}

.archive-outgoing-letter small {
  margin-top: 0.15rem;

  font-family: var(--font-display);
  font-size: 0.62rem;
  font-style: italic;

  color: var(--dusty-ink);
}


/* Letter appears above writing desk */

.ask-archivist__desk.is-sending
.archive-outgoing-letter {
  opacity: 1;
  visibility: visible;

  transform:
    translate(-50%, -65%)
    rotate(-2deg)
    scale(1);
}


/* Letter flies across the desk */

.ask-archivist__desk.is-flying
.archive-outgoing-letter {
  left: 76%;
  top: 42%;

  opacity: 1;

  transform:
    translate(-50%, -50%)
    rotate(3deg)
    scale(0.88);
}


/* Letter drops inside envelope */

.ask-archivist__desk.is-inserting
.archive-outgoing-letter {
  left: 76%;
  top: 49%;

  opacity: 0;

  transform:
    translate(-50%, -50%)
    rotate(0deg)
    scale(0.72);
}


/* ==============================
   ENVELOPE ANIMATION
   ============================== */

.archive-envelope__flap {
  transition:
    transform 600ms cubic-bezier(.22, .8, .3, 1);
}

.archive-envelope__wax {
  opacity: 0;

  transform:
    translateX(-50%)
    scale(0);

  transition:
    opacity 200ms ease,
    transform 380ms cubic-bezier(.34, 1.56, .64, 1);
}


/* Close flap */

.ask-archivist__desk.is-sealing
.archive-envelope__flap {
  transform: rotateX(0deg);
}


/* Wax seal pops */

.ask-archivist__desk.is-sealed
.archive-envelope__wax {
  opacity: 1;

  transform:
    translateX(-50%)
    scale(1);
}

/* ==============================
   SEAL SPARKLE BURST
   ============================== */

.archive-envelope::after {
  content: "♡  ✦  ♡";

  position: absolute;
  z-index: 12;

  left: 50%;
  bottom: 20%;

  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.45rem;

  color: var(--archive-rose);

  opacity: 0;
  pointer-events: none;

  transform:
    translateX(-45%)
    scale(0.5);
}

.ask-archivist__desk.is-sealed
.archive-envelope::after {
  animation:
    archiveSealBurst 650ms ease forwards;
}

@keyframes archiveSealBurst {

  0% {
    opacity: 0;
    transform:
      translateX(-45%)
      scale(0.45);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translateX(-45%)
      translateY(-28px)
      scale(1.25);
  }

}


/* ==============================
   DELIVERY DEPARTURE
   ============================== */

.archive-envelope,
.archive-mail__cupid {
  transition:
    transform 800ms cubic-bezier(.22, .8, .3, 1),
    opacity 650ms ease;
}

.archive-mail__cupid span {
  transition:
    opacity 300ms ease;
}

.ask-archivist__desk.is-delivered
.archive-envelope {
  opacity: 0;

  transform:
    translate(45px, -45px)
    rotate(3deg)
    scale(0.92);
}

.ask-archivist__desk.is-delivered
.archive-mail__cupid {
  opacity: 0;

  transform:
    translate(45px, -55px)
    rotate(3deg);
}

.ask-archivist__desk.is-delivered
.archive-mail__cupid span {
  opacity: 0;
}


/* Hide normal mailbox details */

.archive-mail__status,
.archive-mail__tabs,
.archive-mail__note {
  transition:
    opacity 350ms ease,
    transform 350ms ease;
}

.ask-archivist__desk.is-delivered
.archive-mail__status,
.ask-archivist__desk.is-delivered
.archive-mail__tabs,
.ask-archivist__desk.is-delivered
.archive-mail__note {
  opacity: 0;

  transform:
    translateY(8px);

  pointer-events: none;
}


/* ==============================
   SUCCESS MESSAGE
   ============================== */

.archive-mail-success {
  position: absolute;
  z-index: 15;

  left: 50%;
  top: 50%;

  width: min(330px, 90%);

  text-align: center;

  opacity: 0;
  visibility: hidden;

  transform:
    translate(-50%, -42%);

  transition:
    opacity 500ms ease,
    transform 500ms ease,
    visibility 500ms ease;
}

.ask-archivist__desk.is-complete
.archive-mail-success {
  opacity: 1;
  visibility: visible;

  transform:
    translate(-50%, -50%);
}

.archive-mail-success__eyebrow {
  display: block;

  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.18em;

  color: var(--archive-rose);
}

.archive-mail-success h3 {
  margin: 0.3rem 0 0;

  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;

  color: var(--ink-rose);
}

.archive-mail-success p {
  max-width: 260px;
  margin: 0.55rem auto 1rem;

  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.35;

  color: var(--dusty-ink);
}

.archive-mail-success__reset {
  padding: 0.55rem 1rem;

  border: 1px solid rgba(200, 121, 133, 0.2);
  border-radius: 999px;

  background:
    rgba(255, 249, 250, 0.76);

  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;

  color: var(--ink-rose);

  cursor: pointer;

  transition:
    transform 180ms ease,
    background 180ms ease;
}

.archive-mail-success__reset:hover {
  transform: translateY(-2px);
  background: var(--cloud-blush);
}


/* ==============================
   FORM SENDING STATE
   ============================== */

.archive-letter {
  transition:
    opacity 350ms ease,
    transform 350ms ease;
}

.ask-archivist__desk.is-sending
.archive-letter {
  opacity: 0.62;
}

.archive-letter__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}


/* ==============================
   MOBILE
   ============================== */

@media (max-width: 900px) {

  /*
    On stacked layouts there is no useful
    horizontal flight path, so the letter
    simply fades toward the envelope.
  */

  .archive-outgoing-letter {
    display: none;
  }

}

/* ==================================================
   05E — ANSWERED MAIL
   ================================================== */


/* ==============================
   ANSWERED MAIL VIEW
   ============================== */

.answered-mail,
.answered-letter {
  position: absolute;
  z-index: 14;

  left: 50%;
  top: 50%;

  width: min(360px, 94%);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform:
    translate(-50%, -46%);

  transition:
    opacity 400ms ease,
    transform 400ms ease,
    visibility 400ms ease;
}


/* Show archive */

.ask-archivist__desk.is-viewing-answers
.answered-mail {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform:
    translate(-50%, -50%);
}


/* Hide archive when individual letter opens */

.ask-archivist__desk.is-reading-answer
.answered-mail {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform:
    translate(-55%, -50%);
}


/* Show individual letter */

.ask-archivist__desk.is-reading-answer
.answered-letter {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform:
    translate(-50%, -50%);
}


/* ==============================
   HIDE NORMAL MAILROOM
   ============================== */

.ask-archivist__desk.is-viewing-answers
.archive-envelope,

.ask-archivist__desk.is-viewing-answers
.archive-mail__cupid,

.ask-archivist__desk.is-viewing-answers
.archive-mail__status,

.ask-archivist__desk.is-viewing-answers
.archive-mail__tabs,

.ask-archivist__desk.is-viewing-answers
.archive-mail__note,

.ask-archivist__desk.is-reading-answer
.archive-envelope,

.ask-archivist__desk.is-reading-answer
.archive-mail__cupid,

.ask-archivist__desk.is-reading-answer
.archive-mail__status,

.ask-archivist__desk.is-reading-answer
.archive-mail__tabs,

.ask-archivist__desk.is-reading-answer
.archive-mail__note {
  opacity: 0;
  pointer-events: none;
}


/* Fade the writing desk */

.ask-archivist__desk.is-viewing-answers
.archive-letter,

.ask-archivist__desk.is-reading-answer
.archive-letter {
  opacity: 0.16;

  transform:
    rotate(-0.7deg)
    scale(0.985);

  pointer-events: none;
}


/* ==============================
   ANSWERED MAIL HEADER
   ============================== */

.answered-mail__header {
  margin-bottom: 1rem;
  text-align: center;
}

.answered-mail__header > span {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;

  color: var(--archive-rose);
}

.answered-mail__header h3 {
  margin: 0.18rem 0 0;

  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 500;
  line-height: 0.95;

  color: var(--ink-rose);
}

.answered-mail__header h3 em {
  font-style: normal;
  color: var(--cherub-rose);
}

.answered-mail__count {
  margin: 0.35rem 0 0;

  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;

  color: var(--dusty-ink);
}


/* ==============================
   LETTER STACK
   ============================== */

.answered-mail__stack {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 0.65rem;

  max-height: 275px;
  padding: 0.35rem 0.4rem;

  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color:
    rgba(200, 121, 133, 0.28)
    transparent;
}


/* Individual correspondence */

.answered-mail-card {
  position: relative;

  width: 100%;
  padding:
    0.85rem
    1rem
    0.8rem;

  border:
    1px solid
    rgba(200, 121, 133, 0.15);

  border-radius: 4px;

  background:
    rgba(255, 249, 250, 0.94);

  box-shadow:
    3px 4px 0
    rgba(246, 214, 217, 0.42);

  text-align: left;

  cursor: pointer;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.answered-mail-card:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.answered-mail-card:nth-child(even) {
  transform: rotate(0.45deg);
}

.answered-mail-card:hover {
  z-index: 3;

  transform:
    translateY(-3px)
    rotate(0deg);

  border-color:
    rgba(200, 121, 133, 0.32);

  box-shadow:
    5px 8px 18px
    rgba(94, 61, 69, 0.08);
}


.answered-mail-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.answered-mail-card__category,
.answered-mail-card__id {
  font-family: var(--font-body);
  font-size: 0.43rem;
  font-weight: 700;
  letter-spacing: 0.13em;

  color: var(--archive-rose);
}

.answered-mail-card__question {
  margin: 0.45rem 0 0.25rem;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;

  font-family: var(--font-display);
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.25;

  color: var(--ink-rose);
}

.answered-mail-card__from {
  font-family: var(--font-display);
  font-size: 0.65rem;

  color: var(--dusty-ink);
}


/* ==============================
   EMPTY / LOADING
   ============================== */

.answered-mail__loading,
.answered-mail__empty {
  padding: 2.5rem 1rem;

  text-align: center;

  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;

  color: var(--dusty-ink);
}

.answered-mail__loading span {
  display: block;

  margin-bottom: 0.35rem;

  font-size: 1.2rem;
  color: var(--cherub-rose);
}


/* ==============================
   BACK BUTTONS
   ============================== */

.answered-mail__back,
.answered-letter__back {
  margin-top: 1rem;
  padding: 0.48rem 0.85rem;

  border:
    1px solid
    rgba(200, 121, 133, 0.18);

  border-radius: 999px;

  background:
    rgba(255, 249, 250, 0.72);

  font-family: var(--font-body);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.1em;

  color: var(--ink-rose);

  cursor: pointer;

  transition:
    transform 180ms ease,
    background 180ms ease;
}

.answered-mail__back:hover,
.answered-letter__back:hover {
  transform: translateY(-2px);

  background:
    var(--cloud-blush);
}


/* ==============================
   OPENED LETTER
   ============================== */

.answered-letter {
  width: min(405px, 96%);
}

.answered-letter__back {
  display: block;
  margin:
    0
    auto
    0.75rem;
}


.answered-letter__paper {
  position: relative;

  padding:
    1.5rem
    1.45rem
    1.3rem;

  border:
    1px solid
    rgba(200, 121, 133, 0.14);

  border-radius: 5px;

  background:
    rgba(255, 249, 250, 0.97);

  box-shadow:
    5px 7px 0
      rgba(246, 214, 217, 0.38),
    0 18px 38px
      rgba(94, 61, 69, 0.08);

  text-align: left;

  transform:
    rotate(-0.35deg);
}


.answered-letter__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;

  padding-bottom: 0.6rem;

  border-bottom:
    1px solid
    rgba(200, 121, 133, 0.14);
}

.answered-letter__category,
.answered-letter__id {
  font-family: var(--font-body);
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.14em;

  color: var(--archive-rose);
}


.answered-letter__question {
  margin-top: 1rem;
}

.answered-letter__sender,
.answered-letter__response > span {
  display: block;

  margin-bottom: 0.3rem;

  font-family: var(--font-body);
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.12em;

  color: var(--archive-rose);
}

.answered-letter__question p,
.answered-letter__response p {
  margin: 0;

  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.45;

  color: var(--ink-rose);
}

.answered-letter__question p {
  font-style: italic;
}


.answered-letter__rule {
  margin: 0.85rem 0;

  text-align: center;

  font-family: var(--font-display);
  font-size: 0.8rem;

  color: var(--cherub-rose);
}

.answered-letter__date {
  margin-top: 1rem;

  text-align: right;

  font-family: var(--font-display);
  font-size: 0.65rem;
  font-style: italic;

  color: var(--dusty-ink);
}

/* ==============================
   ANSWERED MAIL FILTERS
   ============================== */

.answered-mail__filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.28rem;

  margin-top: 0.75rem;
}

.answered-mail__filter {
  padding:
    0.32rem
    0.52rem;

  border:
    1px solid
    rgba(200, 121, 133, 0.14);

  border-radius: 999px;

  background:
    rgba(255, 249, 250, 0.6);

  font-family: var(--font-body);
  font-size: 0.39rem;
  font-weight: 700;
  letter-spacing: 0.08em;

  color: var(--dusty-ink);

  cursor: pointer;

  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.answered-mail__filter:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(200, 121, 133, 0.3);

  color:
    var(--ink-rose);
}

.answered-mail__filter.is-active {
  border-color:
    rgba(200, 121, 133, 0.32);

  background:
    var(--cloud-blush);

  color:
    var(--ink-rose);
}
/* ==========================================================
   FINAL ATMOSPHERE PASS · 2026-09-19
   Visual-only additions. Existing Archivist layouts/interactions
   remain untouched; shared script.js requires no changes.
   ========================================================== */

/* Each major chapter keeps its original gradient/color treatment.
   The photo lives on its own low-opacity layer so it reads as
   atmosphere rather than a white veil over an opaque image. */
.archivist-hero,
.archivist-file,
.sacred-seven,
.reader-lore,
.ask-archivist {
  isolation: isolate;
}

.archivist-hero::before,
.archivist-file::before,
.sacred-seven::before,
.reader-lore::before,
.ask-archivist::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.archivist-hero::after,
.archivist-file::after,
.sacred-seven::after,
.reader-lore::after,
.ask-archivist::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 249, 0.12),
      rgba(255, 247, 249, 0.05) 48%,
      rgba(255, 250, 249, 0.14)
    );
}

/* Hero: the established Angel Archive arches. */
.archivist-hero::before {
  background-image: url("assets/images/shelf-arches.jpg");
  background-position: center 44%;
  opacity: 0.27;
}

/* File: softer paper-vault atmosphere behind the folder. */
.archivist-file::before {
  background-image: url("/assets/images/shelf-ethereal.jpg");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: repeat-y;
  opacity: 0.25;
}

/* Sacred Seven: return to the archive architecture behind the shelf. */
.sacred-seven::before {
  background-image: url("assets/images/shelf-one.jpg");
  background-position: center 58%;
  opacity: 0.40;
}

/* Reader Lore: dreamy paper/celestial texture, kept deliberately faint. */
.reader-lore::before {
  background-image: url("assets/images/shelf-test.jpg");
  background-position: center top;
  background-size: 100% auto;
  background-repeat: repeat-y;
  opacity: 0.25;
}

/* Correspondence desk: a final architectural echo before the footer. */
.ask-archivist::before {
  background-image: url("assets/images/shelf-ethereal.jpg");
  background-position: center 72%;
  opacity: 0.25;
}

/* Keep all existing content above the atmospheric layers. */
.archivist-hero__inner,
.archivist-file__inner,
.sacred-seven__inner,
.reader-lore__inner,
.ask-archivist__heading,
.ask-archivist__desk {
  position: relative;
  z-index: 1;
}

/* ==========================================================
   BUDDY READ · SMALL ARCHIVE CTA
   ========================================================== */

.archivist-buddy-read {
  position: relative;
  overflow: hidden;
  padding: 42px var(--page-padding, 32px);
  background:
    linear-gradient(
      135deg,
      rgba(255, 249, 250, 0.98),
      rgba(247, 223, 228, 0.88)
    );
}

.archivist-buddy-read::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("assets/images/shelf-coquette.jpg") center 66% / cover no-repeat;
  opacity: 0.10;
}

.archivist-buddy-read__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1000px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 24px 28px;
  border-top: 1px solid rgba(200, 121, 133, 0.22);
  border-bottom: 1px solid rgba(200, 121, 133, 0.22);
}

.archivist-buddy-read__sparkle {
  flex: 0 0 auto;
  color: #d6a95c;
  font-size: 0.72rem;
}

.archivist-buddy-read__copy {
  flex: 1;
}

.archivist-buddy-read__copy > span {
  display: block;
  margin-bottom: 5px;
  color: var(--archive-rose);
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.archivist-buddy-read__copy h2 {
  margin: 0;
  color: var(--ink-rose);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 500;
  line-height: 1;
}

.archivist-buddy-read__copy h2 em {
  color: var(--archive-rose);
  font-family: "Allura", cursive;
  font-style: normal;
  font-weight: 400;
}

.archivist-buddy-read__copy p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--dusty-ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.45;
}

.archivist-buddy-read__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid rgba(200, 121, 133, 0.30);
  border-radius: 999px;
  background: rgba(255, 249, 250, 0.72);
  box-shadow: 0 8px 22px rgba(94, 61, 69, 0.06);
  color: var(--archive-rose);
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.archivist-buddy-read__link:hover {
  transform: translateY(-2px);
  background: rgba(255, 249, 250, 0.94);
  box-shadow: 0 11px 26px rgba(94, 61, 69, 0.09);
}

@media (max-width: 720px) {
  .archivist-buddy-read {
    padding: 34px var(--page-padding, 22px);
  }

  .archivist-buddy-read__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 4px;
  }

  .archivist-buddy-read__sparkle {
    display: none;
  }
}
