/* ============================================================
   MUWAN PALASSA — Experience detail (page-templates/page-experience.php):
   Kaudulla · Polonnaruwa · Bird Watching · Village Life.
   Shared chrome (buttons, bands, earthblocks, book band, ambient
   layer) lives in main.css; this file carries only the full-bleed
   documentary hero, this page's journey stroke, the ivory story
   interlude, the field moments, the practical notes grid and the
   field-gallery strip.
   ============================================================ */

/* ---------- hero — full-bleed documentary title card ----------
   Straight edges: the dark set piece register (tokens §4). */
.xp-hero{
  position:relative;
  min-height:92svh;
  display:flex; align-items:flex-end;
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(4.5rem, 9vh, 6.5rem);
  overflow:hidden;
  background:var(--night);
}
.xp-hero-media{ position:absolute; inset:0; margin:0; border-radius:0; }
.xp-hero-media img{
  width:100%; height:100%; object-fit:cover;
  will-change:transform; transform-origin:50% 60%;
}
.xp-hero-media.cine::after{
  background:
    linear-gradient(180deg, rgba(18,22,15,.55) 0%, rgba(18,22,15,.12) 34%, rgba(18,22,15,.55) 68%, var(--forest) 100%),
    radial-gradient(120% 90% at 50% 45%, rgba(192,137,78,.08) 0%, rgba(18,22,15,.2) 100%);
}
.xp-hero-frame{ position:absolute; inset:0; z-index:3; pointer-events:none; }
.xp-hero-frame .field-note{ position:absolute; color:var(--khaki); text-shadow:0 1px 14px rgba(18,22,15,.85); }
.xp-hero-frame .fn-tl{ top:calc(var(--header-h) + 1.25rem); left:clamp(1.25rem, 4.5vw, 4rem); }
.xp-hero-frame .fn-tr{ top:calc(var(--header-h) + 1.25rem); right:clamp(1.25rem, 4.5vw, 4rem); text-align:right; }
@media (max-width:700px){ .xp-hero-frame .fn-tr{ display:none; } }
.xp-hero-copy{ position:relative; z-index:2; }
.xp-hero-copy .kicker{ color:var(--bronze); }
.xp-hero-copy .kicker::before{ background:var(--bronze); }
.xp-hero-file{ margin:-0.6rem 0 var(--s-2); max-width:none; color:rgba(243,235,219,.8); text-shadow:0 1px 12px rgba(18,22,15,.8); }
.xp-hero h1{ color:var(--ivory); max-width:10em; text-shadow:0 2px 26px rgba(18,22,15,.65); }
.hero-line{ display:block; overflow:hidden; padding-bottom:.08em; margin-bottom:-.08em; }
.hero-line-inner{ display:block; will-change:transform; }
.xp-hero-lede{
  margin-top:var(--s-3);
  font-size:var(--fs-600); line-height:1.55;
  color:rgba(243,235,219,.9); max-width:34em;
  text-shadow:0 1px 16px rgba(18,22,15,.7);
}
.xp-hero-cta{ display:flex; flex-wrap:wrap; align-items:center; gap:1.4rem; margin-top:var(--s-4); }
.xp-hero-cta .textlink{ color:var(--sand); border-color:rgba(231,215,184,.5); }
.xp-hero-cta .textlink:hover{ border-color:var(--sand); }
.xp-hero-fignote{
  position:absolute; left:clamp(1.25rem, 4.5vw, 4rem); bottom:1.1rem; z-index:3;
  font-size:var(--fs-fignote); letter-spacing:.16em;
  color:rgba(243,235,219,.7); text-shadow:0 1px 10px rgba(18,22,15,.75);
}

/* ---------- the journey line: this page's material stops ---------- */
.journey path{ stroke: url(#xpJourneyGrad); }

/* ---------- the story (ivory interlude) ---------- */
.xp-story{ --sec-bg: var(--ivory); }
.xp-story-grid{ display:grid; gap:clamp(2.5rem, 6vw, 5rem); align-items:start; }
@media (min-width:56em){ .xp-story-grid{ grid-template-columns:1.15fr .85fr; } }
.xp-facts{ margin-top:var(--s-4); border-top:1.5px dashed var(--dash-light); max-width:38rem; }
.xp-facts li{
  display:flex; gap:1rem; align-items:baseline;
  padding:1.05rem 0; border-bottom:1.5px dashed var(--dash-light);
  font-size:1rem; color:var(--ink);
}
.xp-facts li strong{ font-family:var(--serif); font-weight:400; font-size:1.1em; color:var(--clay-deep); white-space:nowrap; }
.xp-story-figure{
  border-radius:56% 44% 48% 52% / 52% 46% 54% 48%; /* river-stone blob — the day's one blob */
  overflow:hidden; aspect-ratio:4/4.6; background:var(--sand);
  transform:rotate(-1deg);
}
.xp-story-figure img{ width:100%; height:112%; object-fit:cover; will-change:transform; }
.xp-story-caption{ margin-top:1rem; text-align:center; }

/* ---------- in the field — three moments (forest ground) ---------- */
.xp-moments{ --sec-bg: var(--ground-exps); }
.xp-moment{
  display:grid; gap:clamp(1.75rem, 4.5vw, 4rem); align-items:center;
  padding-block:clamp(2rem, 5vw, 3.5rem);
  border-top:1.5px dashed rgba(243,235,219,.28);
}
.xp-moment:last-of-type{ border-bottom:1.5px dashed rgba(243,235,219,.28); }
@media (min-width:56em){
  .xp-moment{ grid-template-columns:1.05fr .95fr; }
  .xp-moment--flip .xp-moment-figure{ order:2; }
  .xp-moment--flip .xp-moment-copy{ order:1; }
}
.xp-moment-figure{
  border-radius:var(--radius);
  overflow:hidden; aspect-ratio:16/10; background:var(--night);
}
.xp-moment-figure img{ width:100%; height:112%; object-fit:cover; will-change:transform; }
.xp-moment-copy .field-note{ color:var(--bronze); }
.xp-moment-copy h3{ margin-top:.7rem; font-size:var(--fs-700); color:var(--ivory); }
.xp-moment-copy p:last-child{ margin-top:.9rem; color:var(--khaki); max-width:34em; }
/* strata placeholder inside a moment keeps the soft-rectangle frame */
.xp-earthblock{ border-radius:var(--radius); aspect-ratio:16/10; }

/* ---------- practical field notes (palm shade) ---------- */
.xp-notes-sec{ --sec-bg: var(--ground-stay); }
.xp-notes{
  list-style:none; margin:0; padding:0;
  display:grid; gap:clamp(1.5rem, 3.5vw, 2.5rem);
}
@media (min-width:44em){ .xp-notes{ grid-template-columns:1fr 1fr; } }
.xp-note{
  border-top:1.5px dashed rgba(243,235,219,.32);
  padding-top:1.25rem;
  display:flex; flex-direction:column; align-items:flex-start; gap:.55rem;
}
.xp-note-idx{ color:var(--bronze); }
.xp-note h3{ font-size:1.35rem; color:var(--ivory); }
.xp-note p{ color:var(--khaki); font-size:.98rem; }
.xp-note .ph-slot{ margin-top:.35rem; }
.xp-notes-outro{
  margin-top:clamp(2.5rem, 6vw, 4rem);
  display:flex; flex-wrap:wrap; align-items:center; gap:1.5rem;
}
.xp-notes-outro .field-note{ color:var(--khaki); }

/* ---------- field gallery (forest strip) ---------- */
.xp-gallery{ --sec-bg: var(--forest); padding-block:clamp(3rem, 7vw, 5.5rem); }
.xp-gallery-head{ color:var(--khaki); margin-bottom:clamp(1.5rem, 4vw, 2.5rem); }
.xp-gallery-grid{ display:grid; gap:clamp(1.25rem, 3vw, 2rem); }
@media (min-width:44em){ .xp-gallery-grid{ grid-template-columns:1fr 1fr 1fr; } }
.xp-gal-figure{
  border-radius:var(--radius);
  overflow:hidden; aspect-ratio:4/3; background:var(--night);
}
.xp-gal-figure.xp-earthblock{ aspect-ratio:4/3; }
.xp-gal-figure img{ width:100%; height:100%; object-fit:cover; transition:transform 1.2s var(--ease-out); will-change:transform; }
.xp-gal-slot:hover .xp-gal-figure img{ transform:scale(1.045); }
.xp-gal-caption{ margin-top:.8rem; }
