/* =====================================================================
   UTOPIA — About page (extends styles.css + pages.css)
   ===================================================================== */

/* hero photo with a legibility wash on top (kept translucent so the photo
   actually shows; darker at the foot so it blends into the section below) */
.ab-hero {
  background-color: #03060d;
  background-image:
    radial-gradient(95% 85% at 50% 40%, rgba(3,8,18,0.26), transparent 72%),
    linear-gradient(180deg, rgba(3,8,18,0.52) 0%, rgba(3,8,18,0.34) 42%, rgba(3,6,13,0.94) 100%),
    url("../foto/utopia1.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* phones: only ~46% of the square photo's width fits, and dead-center is just
   dark tables — anchor left so the minaret + mosque dome stay in frame */
@media (max-width: 600px) {
  .ab-hero { background-position: 24% center; }
}

/* ---------- story: image + copy ---------- */
.ab-story__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.8rem, 5vw, 4rem); align-items: center;
}
.ab-story__media {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid rgba(220,227,234,0.12);
  box-shadow: 0 36px 90px rgba(0,0,0,0.5);
  aspect-ratio: 4 / 5;
}
.ab-story__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.86) saturate(1.02);
  transition: transform 1.4s var(--ease);
}
.ab-story__media:hover img { transform: scale(1.05); }
/* soft platinum frame sheen */
.ab-story__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  background: linear-gradient(180deg, transparent 55%, rgba(3,8,16,0.4) 100%);
}
.ab-story__copy .page-head__eyebrow { text-align: left; }
.ab-story__heading {
  font-family: 'ABC Arizona Flare', 'Marcellus', serif; font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.06; color: var(--cream); margin-bottom: 1.2rem;
}
.ab-story__heading em { font-style: italic; color: var(--gold-soft); }
.ab-story__copy p { color: rgba(239,232,216,0.86); font-size: 1.1rem; margin-bottom: 1.1rem; max-width: 46ch; }
.ab-story__copy p:last-child { margin-bottom: 0; }
.ab-story__sign {
  margin-top: 1.6rem; font-family: 'Great Vibes', cursive;
  font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold-soft); line-height: 1;
}

/* ---------- "A night at Utopia" — constellation timeline ---------- */
/* symmetric wash: starts and ends on the same tone as its neighbours, so the
   section slots between values (ends #03070f) and quote (starts #03070f)
   without breaking the page's seamless gradient chain */
.ab-night {
  background: linear-gradient(180deg, rgba(3,7,15,0.45) 0%, rgba(4,16,30,0.5) 55%, rgba(3,7,15,0.45) 100%);
}
.ab-night__track {
  --nightline: rgba(220,227,234,0.22);
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
/* the hairline joining the stars, star to star across the row */
.ab-night__track::before {
  content: ""; position: absolute; top: 0.6rem; left: 12.5%; right: 12.5%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--nightline) 10%, var(--nightline) 90%, transparent);
}
.ab-night__stop { position: relative; text-align: center; }
/* star node: a small platinum sparkle that breathes */
.ab-night__star {
  position: relative; display: grid; place-items: center;
  width: 1.2rem; height: 1.2rem; margin: 0 auto 1.3rem;
}
.ab-night__star::before {
  content: ""; width: 9px; height: 9px;
  background: linear-gradient(135deg, #f6f8fa, #aeb8c2);
  box-shadow: 0 0 14px rgba(220,231,244,0.8), 0 0 34px rgba(120,160,220,0.45);
  transform: rotate(45deg);
  animation: abStarPulse 3.6s ease-in-out infinite;
}
.ab-night__stop:nth-child(2) .ab-night__star::before { animation-delay: 0.9s; }
.ab-night__stop:nth-child(3) .ab-night__star::before { animation-delay: 1.8s; }
.ab-night__stop:nth-child(4) .ab-night__star::before { animation-delay: 2.7s; }
@keyframes abStarPulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.3); box-shadow: 0 0 20px rgba(220,231,244,0.95), 0 0 46px rgba(120,160,220,0.6); }
}
.ab-night__time {
  font-family: 'Great Vibes', cursive; line-height: 1.1;
  font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--gold-soft); margin-bottom: 0.5rem;
}
.ab-night__stop h3 {
  font-family: 'ABC Arizona Flare', 'Marcellus', serif; font-weight: 400;
  font-size: clamp(0.98rem, 2vw, 1.14rem); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 0.55rem;
}
.ab-night__stop > p:last-child {
  color: rgba(239,232,216,0.78); font-size: 1rem; line-height: 1.6;
  max-width: 30ch; margin-inline: auto;
}
@media (prefers-reduced-motion: reduce) {
  .ab-night__star::before { animation: none; }
}

/* ---------- quote band ---------- */
.ab-quote { text-align: center; }
.ab-quote .page-wrap { max-width: 760px; }
.ab-quote__mark { display: block; font-size: 1.6rem; color: var(--gold-soft); margin-bottom: 1.2rem; }
.ab-quote__text {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.4; color: var(--cream);
}
.ab-quote__text em { color: var(--gold-soft); font-style: italic; }
.ab-quote .brand-tag { display: block; margin-top: 1.8rem; }

/* ---------- closing CTA ---------- */
.ab-cta { text-align: center; }
.ab-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .ab-story__grid { grid-template-columns: 1fr; max-width: 32rem; margin-inline: auto; }
  .ab-story__media { aspect-ratio: 16 / 10; }
  /* portrait shot in a landscape frame: the raised glass sits above center,
     so a dead-center crop clips its rim — bias the window upward */
  .ab-story__media img { object-position: center 38%; }
  /* timeline goes vertical: stars stack down the left, line follows them */
  .ab-night__track { grid-template-columns: 1fr; gap: 2.2rem; max-width: 26rem; margin-inline: auto; }
  .ab-night__track::before {
    top: 0.6rem; bottom: 0.6rem; left: 0.6rem; right: auto; width: 1px; height: auto;
    background: linear-gradient(180deg, transparent, var(--nightline) 8%, var(--nightline) 92%, transparent);
  }
  .ab-night__stop { text-align: left; padding-left: 2.3rem; }
  .ab-night__star { position: absolute; left: 0; top: 0; margin: 0; }
  .ab-night__stop > p:last-child { margin-inline: 0; }
}
@media (max-width: 600px) {
  .ab-story__copy p { font-size: 1.05rem; max-width: none; }
  .ab-quote__text { font-size: clamp(1.35rem, 6vw, 1.85rem); }
}
@media (max-width: 520px) {
  .ab-cta__actions { flex-direction: column; align-items: center; gap: 0.8rem; }
}
