/* ============================================================
   MUWAN PALASSA — The Gathering (Minneriya Safari) page styles.
   Everything shared (buttons, bands, marquee, book band, quotes,
   ambient layer) lives in main.css; this file carries only the
   full-bleed documentary hero, this page's journey stroke, the
   shore interlude, THE SEASON pinned month scrub, the herd field
   guide, the field-note logistics grid and the fired-clay
   best-time band.
   ============================================================ */

/* ---------- hero — full-bleed documentary title card ----------
   Straight edges: this whole page is a dark set piece (tokens §4). */
.xg-hero{
  position:relative;
  min-height:100svh;
  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);
}
.xg-hero-media{ position:absolute; inset:0; margin:0; border-radius:0; }
.xg-hero-media img{
  width:100%; height:100%; object-fit:cover;
  will-change:transform; transform-origin:50% 62%;
  filter: saturate(.8) contrast(1.07) brightness(.9) sepia(.14); /* the deeper Gathering cut */
}
.xg-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%);
}
.xg-hero-frame{ position:absolute; inset:0; z-index:3; pointer-events:none; }
.xg-hero-frame .field-note{ position:absolute; color:var(--khaki); text-shadow:0 1px 14px rgba(18,22,15,.85); }
.xg-hero-frame .fn-tl{ top:calc(var(--header-h) + 1.25rem); left:clamp(1.25rem, 4.5vw, 4rem); }
.xg-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){ .xg-hero-frame .fn-tr{ display:none; } }
.xg-hero-copy{ position:relative; z-index:2; }
.xg-hero-copy .kicker{ color:var(--bronze); }
.xg-hero-copy .kicker::before{ background:var(--bronze); }
.xg-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); }
.xg-hero h1{ color:var(--ivory); max-width:9em; 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; }
.xg-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);
}
.xg-hero-cta{ display:flex; flex-wrap:wrap; align-items:center; gap:1.4rem; margin-top:var(--s-4); }
.xg-hero-cta .textlink{ color:var(--sand); border-color:rgba(231,215,184,.5); }
.xg-hero-cta .textlink:hover{ border-color:var(--sand); }
.xg-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(#xgJourneyGrad); }

/* ---------- the shore (ivory interlude) ---------- */
.xg-shore{ --sec-bg: var(--ivory); }
.xg-shore-grid{ display:grid; gap:clamp(2.5rem, 6vw, 5rem); align-items:start; }
@media (min-width:56em){ .xg-shore-grid{ grid-template-columns:1.15fr .85fr; } }
.xg-shore-facts{ margin-top:var(--s-4); border-top:1.5px dashed var(--dash-light); max-width:38rem; }
.xg-shore-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);
}
.xg-shore-facts li strong{ font-family:var(--serif); font-weight:400; font-size:1.1em; color:var(--clay-deep); white-space:nowrap; }
.xg-shore-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);
}
.xg-shore-figure img{ width:100%; height:112%; object-fit:cover; will-change:transform; }
.xg-shore-caption{ margin-top:1rem; text-align:center; }

/* ---------- THE SEASON — pinned month scrub ---------- */
.xg-season{ --sec-bg: var(--night); }
.xg-pin{ position:relative; height:100svh; overflow:hidden; }
.xg-layer{ position:absolute; inset:0; margin:0; opacity:0; border-radius:0; /* straight documentary frame */ }
.xg-layer.cine img{ filter: saturate(.8) contrast(1.07) brightness(.9) sepia(.14); }
.xg-layer.cine::after{
  background: linear-gradient(180deg, rgba(18,22,15,.45) 0%, rgba(18,22,15,.05) 40%, rgba(18,22,15,.72) 100%);
}
.xg-layer img{ width:100%; height:100%; object-fit:cover; }
/* static composition for no-JS and reduced motion: September speaks */
.xg-layer:first-of-type{ opacity:1; }
html.js .xg-layer:first-of-type{ opacity:0; }
html.js.rm .xg-layer:first-of-type{ opacity:1; }

/* the month rail — the season's clock, ticking down the left edge */
.xg-rail{
  position:absolute; left:clamp(1.25rem, 4.5vw, 4rem); top:50%;
  transform:translateY(-50%);
  z-index:6; list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:clamp(1rem, 2.6vh, 1.6rem);
}
.xg-m{
  display:flex; align-items:baseline; gap:.7rem;
  font-family:var(--mono); font-size:.72rem; font-weight:500;
  letter-spacing:.22em; text-transform:uppercase;
  color:rgba(169,161,139,.55);
  text-shadow:0 1px 12px rgba(18,22,15,.85);
  transition: color .5s var(--ease-out);
}
.xg-m-dot{
  width:.5em; height:.5em; border-radius:50%; flex:none;
  align-self:center;
  border:1.5px solid rgba(169,161,139,.55);
  transition: background .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.xg-m-sub{ font-size:.58rem; letter-spacing:.16em; color:rgba(169,161,139,.45); transition: color .5s var(--ease-out); }
.xg-m.is-on{ color:var(--ivory); }
.xg-m.is-on .xg-m-dot{ background:var(--bronze); border-color:var(--bronze); box-shadow:0 0 12px rgba(192,137,78,.55); }
.xg-m.is-on .xg-m-sub{ color:var(--bronze); }
.xg-m--rains{ opacity:.75; } /* October never lights — the rains end the show */

.xg-cap{
  position:absolute; left:clamp(1.25rem, 4.5vw, 4rem); bottom:clamp(6rem, 16vh, 9rem);
  z-index:5; max-width:28rem;
  opacity:0; visibility:hidden;
}
html:not(.js) .xg-cap:first-of-type, html.rm .xg-cap:first-of-type{ opacity:1; visibility:visible; }
.xg-cap .field-note{ display:block; margin-bottom:var(--s-1); color:var(--bronze); text-shadow:0 1px 14px rgba(18,22,15,.85); }
.xg-cap p{ font-family:var(--serif); font-size:clamp(1.2rem, 2.2vw, 1.65rem); line-height:1.3; color:var(--ivory); text-shadow:0 2px 18px rgba(18,22,15,.8); }

/* the season stat: bottom-right, swelling with the months
   (a smaller cut than the homepage count — same voice, different register) */
.xg-count{
  position:absolute; right:clamp(1.25rem, 4.5vw, 4rem); bottom:clamp(4.5rem, 12vh, 7rem);
  z-index:6; text-align:right; max-width:22rem;
  opacity:0; visibility:hidden;
}
html:not(.js) .xg-count, html.rm .xg-count{ opacity:1; visibility:visible; }
.xg-num{
  display:block;
  font-family:var(--serif); font-variation-settings:"opsz" 144;
  font-size:clamp(4.5rem, 15vw, 10.5rem); line-height:1;
  color:var(--ivory);
  font-variant-numeric: tabular-nums;
  text-shadow:0 2px 26px rgba(18,22,15,.75);
}
.xg-count .field-note{ margin-top:var(--s-1); color:var(--ivory); line-height:1.9; text-shadow:0 2px 18px rgba(18,22,15,.8); }
.xg-count .field-note b{ color:var(--bronze); }

.xg-frame{ position:absolute; inset:0; z-index:7; pointer-events:none; }
.xg-frame .field-note{ position:absolute; color:var(--khaki); text-shadow:0 1px 14px rgba(18,22,15,.85); }
.xg-frame .fn-tl{ top:calc(var(--header-h) + 1.25rem); left:clamp(1.25rem, 4.5vw, 4rem); }
.xg-frame .fn-tr{ top:calc(var(--header-h) + 1.25rem); right:clamp(1.25rem, 4.5vw, 4rem); text-align:right; }
@media (max-width:700px){ .xg-frame .fn-tr{ display:none; } }

/* narrow screens: rail tucks under the header, captions clear the count */
@media (max-width:47.9375em){
  .xg-rail{
    top:auto; bottom:auto; transform:none;
    top:calc(var(--header-h) + 3.2rem);
    flex-direction:row; gap:1.1rem; flex-wrap:wrap;
    right:1.25rem;
  }
  .xg-m{ font-size:.62rem; }
  .xg-m-sub{ display:none; }
  .xg-cap{ bottom:clamp(11rem, 30vh, 14rem); max-width:22rem; }
  .xg-count{ right:1.25rem; bottom:2.4rem; max-width:18rem; }
  .xg-num{ font-size:clamp(3.6rem, 19vw, 5.5rem); }
}

.xg-after{ --sec-bg: var(--night); padding-block: var(--sect); }
.xg-after .grid{ display:grid; gap:var(--s-4); }
@media (min-width:56em){ .xg-after .grid{ grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:clamp(2.5rem, 6vw, 6rem); align-items:end; } }

/* ---------- how to read a herd (forest — the field guide) ---------- */
.xg-herd{ --sec-bg: var(--ground-exps); }
.xg-sight{
  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);
}
.xg-sight:last-of-type{ border-bottom:1.5px dashed rgba(243,235,219,.28); }
@media (min-width:56em){
  .xg-sight{ grid-template-columns:1.05fr .95fr; }
  .xg-sight--flip .xg-sight-figure{ order:2; }
  .xg-sight--flip .xg-sight-copy{ order:1; }
}
.xg-sight-figure{
  border-radius:var(--radius);
  overflow:hidden; aspect-ratio:16/10; background:var(--night);
}
.xg-sight-figure img{ width:100%; height:112%; object-fit:cover; will-change:transform; }
.xg-sight-copy .field-note{ color:var(--bronze); }
.xg-sight-copy h3{ margin-top:.7rem; font-size:var(--fs-700); color:var(--ivory); }
.xg-sight-copy p:last-child{ margin-top:.9rem; color:var(--khaki); max-width:34em; }

/* ---------- logistics — field notes (palm shade) ---------- */
.xg-log{ --sec-bg: var(--ground-stay); }
.xg-notes{
  list-style:none; margin:0; padding:0;
  display:grid; gap:clamp(1.5rem, 3.5vw, 2.5rem);
  counter-reset:none;
}
@media (min-width:44em){ .xg-notes{ grid-template-columns:1fr 1fr; } }
@media (min-width:66em){ .xg-notes{ grid-template-columns:1fr 1fr 1fr; } }
.xg-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;
}
.xg-note-idx{ color:var(--bronze); }
.xg-note h3{ font-size:1.35rem; color:var(--ivory); }
.xg-note p{ color:var(--khaki); font-size:.98rem; }
.xg-note .ph-slot{ margin-top:.35rem; }
.xg-log-outro{
  margin-top:clamp(2.5rem, 6vw, 4rem);
  display:flex; flex-wrap:wrap; align-items:center; gap:1.5rem;
}
.xg-log-outro .field-note{ color:var(--khaki); }

/* ---------- best time (fired clay — the warm interlude) ---------- */
.xg-besttime{ --sec-bg: var(--clay); color:var(--ivory); }
.xg-besttime .kicker{ color:var(--sand); }
.xg-besttime .kicker::before{ background:var(--sand); }
.xg-besttime h2{ color:var(--ivory); }
.xg-besttime .lede{ color:var(--ivory); }
.xg-besttime .stamp{ color:var(--sand); }
.xg-months{ list-style:none; margin:0; padding:0; border-top:1.5px dashed var(--dash-clay); max-width:56rem; }
.xg-month{
  display:grid; gap:.35rem 1.5rem; align-items:baseline;
  grid-template-columns:1fr;
  padding:1.05rem 0; border-bottom:1.5px dashed var(--dash-clay);
}
@media (min-width:44em){
  .xg-month{ grid-template-columns:7.5rem 7.5rem 1fr auto; }
}
.xg-month-name{ color:rgba(243,235,219,.85); }
.xg-month--peak .xg-month-name{ color:var(--ivory); }
.xg-meter{ display:inline-flex; gap:.4rem; align-items:center; }
.xg-meter i{
  width:.62rem; height:.62rem; border-radius:50%;
  border:1.5px solid rgba(243,235,219,.5);
  background:transparent;
}
.xg-meter i.is-full{ background:var(--sand); border-color:var(--sand); }
.xg-month--peak .xg-meter i.is-full{ box-shadow:0 0 10px rgba(231,215,184,.55); }
.xg-month-note{ font-family:var(--serif); font-size:1.05rem; line-height:1.45; color:rgba(243,235,219,.92); }
.xg-peak-tag{
  justify-self:start; color:var(--clay-deep);
  background:var(--sand); border-radius:var(--radius-pill);
  padding:.28em .9em; letter-spacing:.2em;
}
@media (min-width:44em){ .xg-peak-tag{ justify-self:end; } }
.xg-bt-foot{ margin-top:var(--s-3); color:rgba(243,235,219,.75); }
