/* =========================================================================
   The 14-Day Immersion — /immersion (Tikkun Sanctuary)
   -------------------------------------------------------------------------
   Page-scoped only. The live V5 immersion page's visual vocabulary
   (its style.css, components.css and v5.css),
   ported onto the Sanctuary tokens in site.css. Every class is prefixed `im-`
   so nothing here can collide with site.css (which already has .pull, .split,
   .hero__meta …).

   🟥 Tokens only, never raw colour. site.css keeps the Retreats token NAMES
   over the navy / cream / gold palette, so in this file:
       --forest / --forest-deep ... navy / near-black
       --sage ..................... light gold (text on dark)
       --sage-deep / --clay ....... gold (rules, borders)
       --clay-ink ................. deep gold that passes as text on cream
   Translucent tints are color-mix() of a token, so a central re-skin follows.
   ========================================================================= */

.im {
  --im-on-dark: color-mix(in srgb, var(--cream) 86%, transparent);
  --im-on-dark-soft: color-mix(in srgb, var(--cream) 82%, transparent);
  --im-measure: 46rem;
}

/* ---------- hero: the still is the guarantee, the video is the upgrade ---------- */
/* 🟥 Leaves room for the utility bar (v2.css --util-h) AND the fixed header. */
.im-hero {
  min-height: min(100svh, 920px);
  padding-top: calc(var(--header-h) + var(--util-h, 0px) + 3rem);
}
.im-hero .hero__media img.im-hero__still,
.im-hero .hero__media video.im-hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
}
.im-hero__still { animation: im-drift 26s ease-out forwards; }
@keyframes im-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
/* Fades up only once it is actually PLAYING (see the page script): revealed on
   `canplay` it would paint a paused frame zero over the still. */
.im-hero__video { opacity: 0; transition: opacity 1.4s ease; }
.im-hero__video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .im-hero__still { animation: none; }
  .im-hero__video { display: none; }
}

.im-hero__title { max-width: 13ch; font-weight: 500; margin-bottom: 0.5em; }
.im-hero__kicker {
  display: block;
  font-style: italic;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--sage);
  margin-bottom: 0.55em;
}
.im-hero__line { display: block; }
.im-hero .im-land { margin-top: 0; color: var(--cream); max-width: 30ch; }
.im-hero .hero__lead { margin-top: 1.5rem; }
.im-hero__meta {
  margin: 2rem 0 0;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--im-on-dark-soft);
}

/* ---------- type ---------- */
.im-measure { max-width: var(--im-measure); }
.im-nowrap { white-space: nowrap; }

.im-big {
  font-size: clamp(2.4rem, 1.3rem + 4.6vw, 4.6rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.014em;
  margin: 0 0 1.25rem;
}

/* the line a section rests on */
.im-land {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1.3;
  font-weight: 500;
  color: var(--forest);
  margin: 2.25rem 0 0;
  max-width: 34ch;
  text-wrap: balance;
}

/* a statement that carries a moment on its own */
.im-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem);
  line-height: 1.34;
  font-weight: 500;
  color: var(--forest);
  margin: 1.75rem 0;
  max-width: 34ch;
}

/* short staggered lines — the cadence the copy is written in */
.im-cadence {
  font-size: clamp(1.075rem, 1rem + 0.5vw, 1.28rem);
  line-height: 1.62;
  margin: 0 0 1.5rem;
}
.im-cadence span { display: block; }
.im-cadence span + span { margin-top: 0.18em; }

.im-muted { color: var(--ink-soft); }
.im-gold { color: var(--clay-ink); }

.im-rule { border: 0; border-top: 1px solid var(--line); margin: clamp(2.5rem, 5vw, 4rem) 0; }

/* ---------- "show me the after" ---------- */
.im-imagine {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.15rem);
  line-height: 1.4;
  font-weight: 500;
  color: var(--forest);
  max-width: 40rem;
}
.im-imagine li { padding: 0.42rem 0; margin: 0; }
.im-imagine--tight {
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
  margin-top: 0.35rem;
  padding-left: 1.5rem;
  color: var(--ink);
}
.im-imagine--tight li { padding: 0.1rem 0; }
.im-imagine--tight span { display: block; }
.im-imagine + .im-imagine:not(.im-imagine--tight),
.im-imagine--tight + .im-imagine:not(.im-imagine--tight) { margin-top: 1.5rem; }
.im-after-close { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* ---------- lists ---------- */
.im-urges {
  list-style: none;
  margin: clamp(2rem, 4vw, 3rem) 0;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem);
  border-left: 2px solid var(--sage-deep);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: none;
}
.im-urges li { margin: 0; }
.im-urges li + li { margin-top: 0.15em; }

.im-questions {
  list-style: none; padding: 0;
  margin: clamp(2rem, 4vw, 3rem) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  max-width: none;
}
.im-questions li {
  margin: 0;
  padding: 0.95rem 1.5rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

/* what the fourteen days hold — a quiet inventory, not a menu */
.im-holds {
  list-style: none; padding: 0;
  margin: clamp(2rem, 4vw, 2.75rem) 0;
  display: grid;
  gap: 0.1rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  font-size: 1.05rem;
  max-width: none;
}
.im-holds li { padding: 0.5rem 0; margin: 0; }

/* free for — the eight words */
.im-free {
  list-style: none; padding: 0;
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1rem, 3vw, 2.5rem);
  max-width: none;
}
@media (min-width: 48rem) { .im-free { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.im-free li {
  margin: 0;
  padding: 1rem 0 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem);
  line-height: 1.2;
  font-weight: 500;
  color: var(--forest);
}

/* ---------- the four movements / trust ---------- */
.im-stages { margin: clamp(2.5rem, 5vw, 4rem) 0 0; }
.im-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
}
.im-stage:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 56rem) { .im-stage { grid-template-columns: 16rem 1fr; } }
.im-stage h3 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.6rem); font-weight: 500; margin: 0; }
.im-stage__body p { margin-bottom: 0.9rem; }
.im-stage__body p:last-child { margin-bottom: 0; }

/* ---------- worthiness ---------- */
.im-wound {
  margin: clamp(2rem, 4vw, 2.75rem) 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.1rem + 2vw, 2.4rem);
  line-height: 1.3;
  font-weight: 500;
  color: var(--forest);
}
.im-wound p { margin: 0; max-width: none; }
.im-wound__or {
  font-family: var(--font-body);
  font-size: 0.8rem; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.9rem 0 !important;
  padding-left: 1.5rem;
}
.im-wound p:last-child { padding-left: 1.5rem; }

.im-truths {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  line-height: 1.35;
  font-weight: 500;
  color: var(--forest);
}
.im-truths span { display: block; }
.im-truths span:last-child { color: var(--clay-ink); }

/* ---------- the property plates ---------- */
.im-plates {
  display: grid;
  gap: clamp(0.65rem, 1.4vw, 1rem);
  grid-template-columns: 1fr;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
}
@media (min-width: 46rem) { .im-plates { grid-template-columns: 1fr 1fr; } }
.im-plate { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--forest-deep); }
.im-plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.im-plate-wide { margin: clamp(2.5rem, 5vw, 4rem) 0 0; }
.im-plate-wide img { aspect-ratio: 4 / 3; }
@media (min-width: 46rem) { .im-plate-wide img { aspect-ratio: 21 / 9; } }

/* ---------- purpose: split with a tall photograph ---------- */
.im-purpose-media { aspect-ratio: 4 / 5; }
.im-purpose-media img { object-position: 44% 50%; }
@media (min-width: 62rem) { .im-purpose .split { align-items: start; } .im-purpose-media { position: sticky; top: calc(var(--header-h) + var(--util-h, 0px) + 2rem); } }

/* ---------- a note that must be read, quietly ---------- */
.im-note {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border-left: 3px solid var(--sage-deep);
  border-radius: var(--radius);
  background: var(--cream-deep);
}
.im-note__label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--clay-ink); margin: 0 0 1rem;
}
.im-note p:not(.im-note__label) { margin-bottom: 0.85rem; }
.im-note p:last-child { margin-bottom: 0; }

/* ---------- founder ---------- */
.im-founder { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 62rem) { .im-founder { grid-template-columns: 22rem 1fr; } }
.im-founder__portrait {
  margin: 0; max-width: 22rem;
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-deep);
}
.im-founder__portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 62rem) { .im-founder__portrait { position: sticky; top: calc(var(--header-h) + var(--util-h, 0px) + 2rem); } }

.im-pull {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.3;
  font-weight: 500;
  color: var(--forest);
  margin: 2.5rem 0;
  padding-left: 1.6rem;
  border-left: 2px solid var(--sage-deep);
}
.im-signature {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem; line-height: 1.4;
  color: var(--forest);
}
.im-signature small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.74rem; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* ---------- purpose / framework / community ---------- */
.im-pillars {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  margin-top: 3.25rem;
}
@media (min-width: 52rem) { .im-pillars { grid-template-columns: repeat(3, 1fr); } }
.im-pillar { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.im-pillar h3 { font-size: 1.55rem; font-weight: 500; margin-bottom: 0.55rem; }
.im-pillar p { margin: 0; }

/* ---------- CTA band ---------- */
.im-cta-band { padding-block: clamp(3.5rem, 7vw, 5.5rem); text-align: center; }
.im-cta-band .btn-row { justify-content: center; }

/* ---------- closing ---------- */
.im-closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(6rem, 14vw, 11rem);
  background: var(--forest-deep);
  color: var(--im-on-dark);
}
.im-closing__media { position: absolute; inset: 0; z-index: -2; }
.im-closing__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.im-closing::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--forest-deep) 86%, transparent),
    color-mix(in srgb, var(--forest-deep) 93%, transparent));
}
.im-closing .im-measure { margin-inline: auto; }
.im-closing .lead { color: var(--im-on-dark); margin-inline: auto; }
.im-closing .im-statement { color: var(--cream); margin-inline: auto; }
.im-closing a:not(.btn) { color: var(--sage); }
.im-closing a:not(.btn):hover { color: var(--white); }
.im-closing :focus-visible { outline-color: var(--sage); }
.im-closing p { margin-inline: auto; }
.im-closing .im-big, .im-closing .im-land { margin-inline: auto; max-width: 36rem; }
.im-closing .btn-row { justify-content: center; margin-top: 2.5rem; }
.im-contact {
  margin: 2rem auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem;
  font-size: 0.95rem;
}
.im-referral { margin-top: 1.75rem; font-size: 0.9rem; }
.im-closing__legal {
  margin: 3rem auto 0;
  font-size: 0.8125rem; line-height: 1.65;
  color: var(--im-on-dark-soft);
  max-width: 60ch;
}

/* ---------- dark grounds ---------- */
.im .section--forest .im-land,   .im .section--forest-deep .im-land,
.im .section--forest .im-statement, .im .section--forest-deep .im-statement,
.im .section--forest .im-imagine,   .im .section--forest-deep .im-imagine,
.im .section--forest .im-wound,     .im .section--forest-deep .im-wound,
.im .section--forest .im-truths,    .im .section--forest-deep .im-truths,
.im .section--forest .im-free li,   .im .section--forest-deep .im-free li,
.im .section--forest .im-pull,      .im .section--forest-deep .im-pull,
.im .section--forest .im-signature, .im .section--forest-deep .im-signature,
.im-closing .im-land, .im-closing .im-big { color: var(--cream); }

.im .section--forest .im-gold, .im .section--forest-deep .im-gold,
.im .section--forest .im-truths span:last-child,
.im .section--forest-deep .im-truths span:last-child { color: var(--sage); }

.im .section--forest .im-muted, .im .section--forest-deep .im-muted,
.im .section--forest .im-urges, .im .section--forest-deep .im-urges,
.im .section--forest .im-wound__or, .im .section--forest-deep .im-wound__or,
.im .section--forest .im-signature small, .im .section--forest-deep .im-signature small { color: var(--im-on-dark-soft); }

.im .section--forest .im-imagine--tight,
.im .section--forest-deep .im-imagine--tight { color: var(--im-on-dark); }

.im .section--forest .im-questions li, .im .section--forest-deep .im-questions li,
.im .section--forest .im-stage,  .im .section--forest-deep .im-stage,
.im .section--forest .im-pillar, .im .section--forest-deep .im-pillar,
.im .section--forest .im-free li, .im .section--forest-deep .im-free li,
.im .section--forest .im-rule,   .im .section--forest-deep .im-rule { border-color: var(--line-dark); }

.im .section--forest .im-note, .im .section--forest-deep .im-note {
  background: color-mix(in srgb, var(--cream) 7%, transparent);
  border-left-color: var(--sage);
}
.im .section--forest .im-note__label, .im .section--forest-deep .im-note__label { color: var(--sage); }

.im .section--forest .im-urges, .im .section--forest-deep .im-urges { border-left-color: var(--sage-deep); }
