/* Asmara Bella — Experiences family (experiences.html, coffee-ceremony.html, book-class.html).
   Shared hero, chapter rows, cross-links and the hub layout. Builds on the .xp-* components
   in experience.css and the colour tokens in design.css. Page extras live in
   coffee-ceremony.css and book-class.css. */

:root {
  --xe-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --xe-sand: #f6ecdd;
}

/* ---------- Cinematic hero (hub + coffee ceremony) ---------- */

.xe-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(94vh, 900px);
  display: flex;
  align-items: flex-end;
  padding: 150px 0 clamp(70px, 9vw, 120px);
  background: var(--ab-night);
  color: #fff;
}
.xe-hero-media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.xe-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; animation: xe-settle 2.8s var(--xe-ease) both; }
.xe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 14, 7, 0.55) 0%, rgba(22, 14, 7, 0.15) 32%, rgba(22, 14, 7, 0.55) 66%, rgba(22, 14, 7, 0.92) 100%),
    radial-gradient(ellipse at 15% 85%, rgba(22, 14, 7, 0.6), transparent 60%);
}
.xe-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: var(--ab-tilet) repeat-x 0 0 / 56px 18px;
  animation: ab-tilet-drift 40s linear infinite;
}
.xe-hero .xp-wrap { width: 100%; }
.xe-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.xe-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; font-size: 13.5px; color: rgba(240, 230, 211, 0.8); animation: xe-rise 1.1s var(--xe-ease) both; }
.xe-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.xe-crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.xe-crumbs a:hover { color: var(--ab-gold-hi); text-decoration: underline; text-underline-offset: 4px; }
.xe-hero .xp-eyebrow { animation: xe-rise 1.1s var(--xe-ease) 0.08s both; }
.xe-hero h1 {
  margin: 0 0 24px;
  max-width: 900px;
  font: 600 clamp(50px, 8.4vw, 118px)/0.96 "Playfair Display", serif;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.35);
  animation: xe-rise 1.3s var(--xe-ease) 0.16s both;
}
.xe-hero h1 em { font-style: italic; font-weight: 500; color: var(--ab-gold-hi); }
.xe-hero-lead { margin: 0 0 34px; max-width: 600px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: #f0e6d3; animation: xe-rise 1.3s var(--xe-ease) 0.28s both; }
.xe-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: xe-rise 1.3s var(--xe-ease) 0.4s both; }
.xe-hero-index { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 270px; animation: xe-rise 1.3s var(--xe-ease) 0.5s both; }
.xe-hero-index a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(230, 194, 119, 0.28);
  color: #fff;
  text-decoration: none;
  font: 600 18px/1.2 "Playfair Display", serif;
  transition: color 0.3s, padding 0.5s var(--xe-ease);
}
.xe-hero-index a .xp-num { color: var(--ab-gold-hi); }
.xe-hero-index a i { font-style: normal; color: var(--ab-gold-hi); transition: transform 0.5s var(--xe-ease); }
.xe-hero-index a:hover { color: var(--ab-gold-hi); padding-left: 10px; }
.xe-hero-index a:hover i { transform: translateX(4px); }
.xe-scroll {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 1px;
  height: 52px;
  background: linear-gradient(rgba(230, 194, 119, 0), rgba(230, 194, 119, 0.9));
  transform-origin: top;
  animation: xe-cue 2.4s var(--xe-ease) 1.4s infinite;
}
@keyframes xe-rise { from { opacity: 0; transform: translate3d(0, 34px, 0); } to { opacity: 1; transform: none; } }
@keyframes xe-settle { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes xe-cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Shared bits ---------- */

.xe-section { position: relative; overflow: hidden; }
.xe-facts { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.xe-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--ab-line);
  color: #4d4639;
  font-size: 14.5px;
  font-weight: 600;
}
.xe-facts .material-symbols-outlined { font-size: 19px; color: var(--ab-gold); }
.xe-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; }

/* ---------- Hub: opening statement ---------- */

.xe-intro { background: var(--ab-cream); padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 9vw, 120px); }
.xe-intro-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.xe-intro .xp-lead { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.4; margin-bottom: 0; }
.xe-intro-media { position: relative; aspect-ratio: 4 / 4.4; }
.xe-intro-main { position: absolute; inset: 0 14% 12% 0; border-radius: var(--xp-radius); overflow: hidden; box-shadow: 0 40px 90px -30px rgba(33, 27, 18, 0.45); }
.xe-intro-float { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border: 8px solid var(--ab-cream); box-shadow: 0 30px 70px -24px rgba(33, 27, 18, 0.5); }
.xe-intro-main img, .xe-intro-float img, .xe-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xe-intro-quote { margin: 40px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--ab-gold); font: italic 500 20px/1.55 "Playfair Display", serif; color: var(--ab-brown); }

/* ---------- Hub: experience chapters ---------- */

.xe-chapter { padding: clamp(80px, 10vw, 150px) 0; background: var(--ab-cream); }
.xe-chapter-alt { background: linear-gradient(180deg, var(--xe-sand), #fff1e3); }
.xe-chapter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.xe-chapter-alt .xe-chapter-media { order: 2; }
.xe-chapter-media { position: relative; }
.xe-frame { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 4.8; box-shadow: 0 40px 90px -30px rgba(33, 27, 18, 0.5); }
.xe-chapter-float {
  position: absolute;
  right: -34px;
  bottom: -50px;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--ab-cream);
  box-shadow: 0 30px 70px -24px rgba(33, 27, 18, 0.5);
}
.xe-chapter-alt .xe-chapter-float { right: auto; left: -34px; border-color: #fbefe2; }
.xe-chapter-float img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xe-chapter-tag {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(22, 14, 7, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 700 12px/1 "Plus Jakarta Sans", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.xe-bignum { display: block; margin: 0 0 6px; font: italic 500 clamp(64px, 7vw, 104px)/0.9 "Playfair Display", serif; color: rgba(179, 147, 77, 0.38); letter-spacing: -0.03em; }
.xe-chapter .xp-display { font-size: clamp(36px, 4.6vw, 64px); }

/* Class cards under chapter two */
.xe-classes { margin-top: clamp(70px, 9vw, 120px) !important; }
.xe-classes .xp-class-grid { margin-top: 0; }
.xe-classes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; }
.xe-classes-head h3 { margin: 0; font: 600 clamp(26px, 2.8vw, 36px)/1.15 "Playfair Display", serif; color: var(--ab-ink); }
.xe-classes-head p { margin: 0; max-width: 380px; color: #5c5142; font-size: 15.5px; line-height: 1.6; }
.xe-classes .xp-class p { margin-bottom: 18px; }
.xe-class-meta { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: #5c5142; }
.xe-class-meta li { display: flex; gap: 8px; align-items: center; }
.xe-class-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ab-gold); flex-shrink: 0; }
.xp-class-feature .xe-class-meta { color: rgba(255, 255, 255, 0.85); }
.xp-class-feature .xe-class-meta li::before { background: var(--ab-gold-hi); }

/* ---------- Gift band ---------- */

.xe-gift { padding: clamp(70px, 9vw, 120px) 0; background: var(--ab-cream); }
.xe-gift-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: 30px;
  background: linear-gradient(150deg, #8a6a22, var(--ab-brown) 50%, var(--ab-brown-dk));
  color: #fff;
  box-shadow: 0 40px 90px -40px rgba(91, 67, 1, 0.7);
}
.xe-gift-copy { padding: clamp(36px, 5vw, 70px); position: relative; z-index: 1; }
.xe-gift-copy .xp-display { font-size: clamp(34px, 4vw, 56px); color: #fff; }
.xe-gift-copy .xp-display em { color: var(--ab-gold-hi); }
.xe-gift-copy p:not(.xp-eyebrow) { margin: 0 0 30px; max-width: 480px; font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.88); }
.xe-gift-media { position: relative; min-height: 320px; overflow: hidden; }
.xe-gift-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xe-gift-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(117, 90, 26, 0.85), transparent 45%); }
.xe-gift-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ab-tilet) repeat-x 0 50% / 56px 18px; z-index: 2; }

/* ---------- More experiences (cross-links shared by all three pages) ---------- */

.xe-more { padding: clamp(70px, 9vw, 120px) 0; background: var(--ab-cream); }
.xe-more-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.xe-more-head .xp-display { margin: 0; font-size: clamp(32px, 3.8vw, 52px); }
.xe-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.xe-more-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  padding: 28px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 30px 70px -40px rgba(33, 27, 18, 0.6);
}
.xe-more-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--xe-ease); }
.xe-more-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22, 14, 7, 0.05) 30%, rgba(22, 14, 7, 0.88)); transition: background-color 0.4s; }
.xe-more-card:hover img { transform: scale(1.07); }
.xe-more-card .xp-eyebrow { margin-bottom: 12px; color: var(--ab-gold-hi); }
.xe-more-card strong { display: block; margin-bottom: 8px; font: 600 28px/1.15 "Playfair Display", serif; }
.xe-more-card span:not(.xp-eyebrow) { font-size: 15px; line-height: 1.55; color: #f0e6d3; }
.xe-more-card i { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 18px; border: 1.5px solid rgba(255, 255, 255, 0.6); transition: background-color 0.4s, color 0.4s, transform 0.5s var(--xe-ease); }
.xe-more-card:hover i { background: #fff; color: var(--ab-brown); transform: rotate(-45deg); }
.xe-more-card:focus-visible { outline: 3px solid var(--ab-gold-hi); outline-offset: 4px; }

/* ---------- Focus visibility for the new links and buttons ---------- */

.xe-hero a:focus-visible, .xe-section a:focus-visible, .xe-more a:focus-visible, .xe-hero-index a:focus-visible { outline: 3px solid var(--ab-gold-hi); outline-offset: 4px; border-radius: 8px; }
.xp-btn:focus-visible, .xp-link:focus-visible { outline: 3px solid var(--ab-gold); outline-offset: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .xe-more-grid { grid-template-columns: 1fr 1fr; }
  .xe-more-grid > :last-child { grid-column: 1 / -1; min-height: 300px; }
}
@media (max-width: 899px) {
  .xe-hero { min-height: 88vh; padding-top: 120px; }
  .xe-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .xe-hero-index { min-width: 0; }
  .xe-scroll { display: none; }
  .xe-intro-grid, .xe-chapter-grid { grid-template-columns: 1fr; }
  .xe-intro-media { max-width: 520px; width: 100%; margin: 0 auto; }
  .xe-chapter-alt .xe-chapter-media { order: 0; }
  .xe-chapter-media { max-width: 560px; width: 100%; margin: 0 auto 30px; }
  .xe-frame { aspect-ratio: 4 / 3.6; }
  .xe-chapter-float { right: -8px; bottom: -40px; width: 36%; }
  .xe-chapter-alt .xe-chapter-float { left: -8px; }
  .xe-classes-head, .xe-more-head { flex-direction: column; align-items: flex-start; }
  .xe-gift-card { grid-template-columns: 1fr; }
  .xe-gift-media { min-height: 240px; order: -1; }
  .xe-gift-media::before { background: linear-gradient(0deg, rgba(117, 90, 26, 0.9), transparent 55%); }
}
@media (max-width: 640px) {
  .xe-hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .xe-hero-actions .xp-btn { flex: 1 1 100%; }
  .xe-more-grid { grid-template-columns: 1fr; }
  .xe-more-grid > :last-child { grid-column: auto; }
  .xe-more-card { min-height: 300px; }
  .xe-facts li { font-size: 14px; padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .xe-hero-media img, .xe-crumbs, .xe-hero .xp-eyebrow, .xe-hero h1, .xe-hero-lead, .xe-hero-actions, .xe-hero-index, .xe-scroll, .xe-hero::after { animation: none; }
  .xe-more-card img, .xe-more-card i { transition: none; }
}
