/* =========================================================================
   Mission 301 — About the project (html_4)
   Rebuilt to the client's reference: gilded angel hero, four narrow pillar
   cards in one row, quiet closing statement.
   ========================================================================= */

.aboutpage { padding-top: var(--header-h); }

/* ---- this page swaps the global temple backdrop for the gilded angel ---- */
body::before {
 background: #050606 url(../img/about-angel.jpg) right -30px top 140px / auto 80% no-repeat;
    opacity: .7;
}
/* the sculpture now lives in the page background, so the inline hero copy of
   it is dropped to avoid showing the same image twice */
.ahero__photo { display: none; }

/* ---------------- Four pillar cards ---------------- */
.pillars { padding: clamp(30px, 4vw, 54px) 0 clamp(40px, 5vw, 64px); }
.pcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }

.pcard {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--gold-muted); border-radius: 2px;
  background: linear-gradient(180deg, rgba(14, 12, 9, .55), rgba(6, 7, 7, .85));
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.pcard:hover { border-color: var(--gold-bright); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 26px rgba(217, 161, 59, .12); transform: translateY(-4px); }

.pcard__media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4.1; background: #080907; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 7, 7, .92)); pointer-events: none; }

/* --- II · three volumes standing on a shelf --- */
.pcard__media--books { display: grid; place-items: end center; padding: 0 10% 12%; background: radial-gradient(80% 60% at 50% 40%, #1a1510, #070806 75%); }
.bookrow { display: flex; align-items: flex-end; gap: 5px; perspective: 700px; }
.bk {
  position: relative; width: clamp(30px, 3.4vw, 46px); aspect-ratio: 1 / 3.05;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid rgba(169, 121, 45, .55); border-radius: 1px 3px 3px 1px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, .6), inset 0 0 18px rgba(0, 0, 0, .55);
  transition: transform .45s ease;
}
.bk::after { content: ""; position: absolute; inset: 4px 4px 4px 7px; border: 1px solid rgba(217, 161, 59, .3); }
.bk i { font-family: var(--font-serif); font-style: normal; font-size: 6.5px; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: rgba(237, 189, 91, .85); line-height: 1.3; }
.bk b { font-family: var(--font-serif); font-size: 11px; color: var(--gold-bright); }
.bk--1 { background: linear-gradient(135deg, #16130e, #221b12); transform: rotateY(9deg); }
.bk--2 { background: linear-gradient(135deg, #2a1210, #3d1a15); transform: translateY(-4px) scale(1.03); z-index: 2; }
.bk--3 { background: linear-gradient(135deg, #d9cfba, #efe7d5); transform: rotateY(-9deg); }
.bk--3 i { color: #6b5326; }
.bk--3 b { color: #8a6a2c; }
.bk--3::after { border-color: rgba(138, 106, 44, .5); }
.pcard:hover .bk--1 { transform: rotateY(5deg) translateY(-3px); }
.pcard:hover .bk--2 { transform: translateY(-9px) scale(1.05); }
.pcard:hover .bk--3 { transform: rotateY(-5deg) translateY(-3px); }

/* --- IV · frame profile in cross-section --- */
.pcard__media--frame { display: grid; place-items: center; background: radial-gradient(80% 60% at 50% 45%, #17130e, #070806 78%); }
.frprofile { position: relative; width: 62%; aspect-ratio: 1 / 1.5; transform: rotate(-14deg); }
.frprofile__gold {
  position: absolute; left: 0; top: 0; bottom: 0; width: 46%;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(100deg, #7a561f, #edbd5b 34%, #c08c2c 58%, #f6dc9c 78%, #8a6224);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
}
.frprofile__gold::after { content: ""; position: absolute; inset: 8% 12%; border-left: 1px solid rgba(255, 240, 205, .45); border-right: 1px solid rgba(90, 62, 20, .6); }
.frprofile__core {
  position: absolute; right: 0; top: 4%; bottom: 4%; width: 58%;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(180deg, #4a4a4a 0 6px, #3a3a3a 6px 12px);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .7);
}
.frprofile__core::before, .frprofile__core::after {
  content: ""; position: absolute; left: 14%; right: 14%; height: 22%;
  border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .35);
}
.frprofile__core::before { top: 14%; }
.frprofile__core::after { bottom: 14%; }
.frprofile__shine { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(255, 245, 220, .18) 50%, transparent 60%); }

/* --- card body --- */
/* flex:1 lets the body fill the card, so the button's margin-top:auto can pin
   it to the bottom edge — all four buttons then line up regardless of text */
.pcard__body { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 clamp(14px, 1.4vw, 22px) clamp(20px, 2vw, 28px); margin-top: 8px; }
.pcard__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; }
.pcard__icon svg, .pcard__icon img { width: 34px; height: 34px; fill: none; stroke: var(--gold-bright); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.pcard__title {
  margin: 0; font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(19px, 1.75vw, 25px); line-height: 1.2; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-bright);
}
.pcard__rule { width: 108px; margin: 12px auto 14px; }
.pcard__rule span:first-child { background: linear-gradient(90deg, transparent, var(--gold-muted)); }
.pcard__rule span:last-child { background: linear-gradient(90deg, var(--gold-muted), transparent); }
.pcard__text { margin: 0 0 22px; color: var(--text); font-family: var(--font-serif); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; }

.pcard__btn {
  margin-top: auto; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px; border: 1px solid var(--gold-muted); border-radius: 1px;
  font-family: var(--font-head); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-bright); transition: all .25s ease;
}
.pcard__btn em { font-style: normal; font-size: 14px; transition: transform .25s ease; }
.pcard__btn:hover { border-color: var(--gold-bright); background: rgba(217, 161, 59, .1); box-shadow: 0 0 18px rgba(217, 161, 59, .14); }
.pcard__btn:hover em { transform: translateX(3px); }

/* action row inside the pillar modals */
.modal__actions { margin: 26px 0 0; text-align: center; }

/* ---------------- Closing ---------------- */
.closing { padding: clamp(30px, 4vw, 50px) 0 clamp(60px, 8vw, 100px); text-align: center; }
.closing__rule { width: min(420px, 76%); margin: 0 auto; }
.closing__rule span:first-child { background: linear-gradient(90deg, transparent, var(--gold-muted)); }
.closing__rule span:last-child { background: linear-gradient(90deg, var(--gold-muted), transparent); }
.closing__title {
  margin: 26px 0 20px; font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(24px, 2.9vw, 40px); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright);
}
.closing__text { margin: 0 0 26px; font-family: var(--font-serif); font-style: italic; font-size: clamp(19px, 2vw, 27px); line-height: 1.5; color: var(--text); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .pcards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 520px) {
  .pcards { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
  .pcard__media { aspect-ratio: 4 / 3.4; }
}
