/* Navana — premium / cinematic layer (tich, 2026-12-05: "doesn't feel premium" + immersive cinematic brief).
   Sits after redesign.css. Presentation only: no copy, link, form, gate or egg changes.
   Principles: restraint over decoration · real depth (layered light, not boxes) · content is always visible
   (nothing waits for a scroll reveal) · slow, single easing · all motion transform/opacity only and
   off for prefers-reduced-motion. Scene layers are built by js/premium.js (decorative, aria-hidden). */

body.rd {
  --pz-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --pz-slow: 1.6s;
  --pz-space: clamp(5rem, 3rem + 8vw, 10rem);
  --pz-read: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
}

/* ───────────── 1. Content is always visible (no empty gap before a reveal) ───────────── */
html.js-depth main .reveal:not(.page-header) > .container > *,
html.js-depth main .reveal:not(.page-header) > .unity-inner > *,
html.js-depth main .reveal:not(.page-header) > .container > .depth-seen,
html.js-depth main .reveal:not(.page-header) > .unity-inner > .depth-seen {
  opacity: 1 !important; transform: none !important; transition: none !important; translate: none !important;
}
html.js-depth body.rd main .reveal:not(.page-header) > .container > h2,
html.js-depth body.rd main .reveal:not(.page-header) > .container > .ig-head,
html.js-depth body.rd main .reveal:not(.page-header) > .unity-inner > h2 {
  -webkit-mask: none !important; mask: none !important; transform: none !important; transition: none !important;
}
html.js-depth body.rd main .depth-seen.value-grid > .value-block,
html.js-depth body.rd main .depth-seen.path-list > li,
html.js-depth body.rd main .depth-seen.ig-grid > li { animation: none !important; }
html.js-depth .depth-band-words { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ───────────── 2. Hero scenes: one full-bleed, layered environment per page ───────────── */
body.rd main > .pz-hero {
  position: relative; isolation: isolate; overflow: hidden; background-color: var(--rd-night);
}
/* Pre-JS: the photo-hero pages already take their full height at first paint, so the scene build causes no layout shift. */
:root { --pz-hdr: 69px; }
html body:is(.navana-about, .navana-workshops, .navana-retreats, .navana-programs, .navana-resources, .navana-readings, .navana-market, .navana-contact, .navana-donate).rd main > .page-header,
html body.rd main > .pz-photo-hero.pz-hero {
  min-height: 100vh !important;
  min-height: calc(100svh - var(--pz-hdr, 4.25rem)) !important;
}
body.rd main > .pz-hero > .container { position: relative; z-index: 3; }
.pz-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.pz-scene > * { position: absolute; pointer-events: none; }
.pz-photo {
  inset: -8% 0; background-repeat: no-repeat; transform: scale(1.06); transform-origin: 50% 40%;
  will-change: transform; animation: pz-settle 2.8s var(--pz-ease) backwards;
}
.pz-scrim { inset: 0; }
/* soft light: two slow-drifting pools, teal from above-right and a warm trace low-left */
.pz-haze {
  inset: -12%;
  background:
    radial-gradient(46% 42% at 76% 20%, rgba(143, 217, 203, 0.2) 0%, rgba(143, 217, 203, 0) 70%),
    radial-gradient(40% 36% at 10% 92%, rgba(255, 236, 205, 0.11) 0%, rgba(255, 236, 205, 0) 72%);
  animation: pz-drift 42s ease-in-out infinite alternate;
}
/* hairline geometry: two nested hexagons, breathing very slowly */
.pz-geo {
  right: -16vw; top: 2%; width: min(50vw, 700px); aspect-ratio: 1 / 1.1547;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 116'%3E%3Cg fill='none' stroke='%23C4E4DC' stroke-width='.22' vector-effect='non-scaling-stroke'%3E%3Cpath d='M50 1 99 29.5v57L50 115 1 86.5v-57Z'/%3E%3Cpath d='M50 17 85 37.5v41L50 99 15 78.5v-41Z' stroke-opacity='.7'/%3E%3Cpath d='M50 33 71 45.5v25L50 83 29 70.5v-25Z' stroke-opacity='.5'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.4; transform-origin: 50% 50%; animation: pz-breathe 18s ease-in-out infinite;
}
.pz-grain {
  inset: 0; opacity: 0.07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px repeat;
}
/* a single quiet cue at the right edge of the frame */
body.rd main > .pz-photo-hero::after {
  content: ""; position: absolute; z-index: 2; right: var(--rd-margin); bottom: 0; width: 1px; height: clamp(56px, 10vh, 110px);
  background: linear-gradient(to bottom, rgba(196, 228, 220, 0), rgba(196, 228, 220, 0.75));
  transform-origin: 50% 0; animation: pz-cue 4.4s var(--pz-ease) infinite;
}
.pz-hero.pz-away .pz-scene > *, .pz-hero.pz-away::after { animation-play-state: paused; }
@keyframes pz-settle { from { scale: 1.12; } to { scale: 1; } }
@keyframes pz-drift { from { translate: -3% 1% ; } to { translate: 3% -2%; } }
@keyframes pz-breathe { 0%, 100% { scale: 1; opacity: 0.3; } 50% { scale: 1.035; opacity: 0.5; } }
@keyframes pz-cue { 0% { transform: scaleY(0); opacity: 0; } 35% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* title card: confident, left-set, one hairline */
body.rd main > .pz-photo-hero h1 { text-wrap: balance; }
body.rd main > .pz-hero .lead { max-width: 34rem; }

/* ───────────── 3. Rhythm, reading comfort, restraint ───────────── */
body.rd main :where(.section, .container) p { font-size: var(--pz-read); }
body.rd main .section { padding-block: var(--pz-space); }
body.rd main .section.rd-chapter { padding-block: var(--pz-space); }
body.rd main .eyebrow { letter-spacing: 0.26em; font-size: 0.7rem; }
body.rd main .rd-night .eyebrow, body.rd main .pz-hero .eyebrow { opacity: 1; }
/* images: no radius, no drop shadow; one quiet frame and a slow settle */
body.rd main figure:not(.workshop-photo) { margin: 0; position: relative; overflow: hidden; background: var(--rd-mist); }
body.rd main figure:not(.workshop-photo) img { display: block; width: 100%; height: auto; box-shadow: none !important; border-radius: 0 !important; filter: saturate(0.94) contrast(1.02); }
body.rd main figure:not(.workshop-photo)::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(20, 26, 26, 0.08), inset 0 -80px 90px -70px rgba(10, 22, 20, 0.35); }
html.pz-js body.rd main figure:not(.workshop-photo).pz-pre {
  clip-path: inset(9% 0 0 0);
  transition: clip-path var(--pz-slow) var(--pz-ease);
}
html.pz-js body.rd main figure:not(.workshop-photo).pz-pre img { scale: 1.1; transition: scale 2.2s var(--pz-ease); }
html.pz-js body.rd main figure:not(.workshop-photo).pz-pre.pz-in { clip-path: inset(0 0 0 0); }
html.pz-js body.rd main figure:not(.workshop-photo).pz-pre.pz-in img { scale: 1; }

/* buttons: hairline rectangles, tracked small caps, a slow wash on hover (no pills, no shadows) */
body.rd main :is(.btn, .btn-primary, .btn-secondary) {
  border-radius: 0 !important; box-shadow: none !important; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.72rem; font-weight: 600; padding: 1.05rem 2rem; min-height: 3rem;
  transition: background-color 0.7s var(--pz-ease), color 0.7s var(--pz-ease), border-color 0.7s var(--pz-ease);
}
body.rd main .btn-primary { background: var(--rd-teal-deep); border: 1px solid var(--rd-teal-deep); color: #fff; }
body.rd main .btn-primary:hover { background: var(--rd-night); border-color: var(--rd-night); color: #fff; }
body.rd main .btn-secondary { background: transparent; border: 1px solid rgba(20, 26, 26, 0.35); color: var(--rd-ink); }
body.rd main .btn-secondary:hover { border-color: var(--rd-teal-deep); color: var(--rd-teal-deep); background: transparent; }
body.rd main .rd-night .btn-secondary, body.rd main .pz-hero .btn-secondary { border-color: rgba(196, 228, 220, 0.5); color: var(--rd-on-night); }
body.rd main .rd-night .btn-secondary:hover, body.rd main .pz-hero .btn-secondary:hover { border-color: var(--rd-link-night); color: var(--rd-link-night); }

/* forms: quiet underlines instead of default boxes */
body.rd-p2:not(.is-darkness) main :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="url"], select, textarea) {
  background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(20, 26, 26, 0.38) !important; border-radius: 0 !important;
  padding: 0.85rem 0 !important; box-shadow: none !important; transition: border-color 0.6s var(--pz-ease);
}
body.rd-p2:not(.is-darkness) main :is(input, select, textarea):focus { border-bottom-color: var(--rd-teal-deep) !important; outline: none; box-shadow: 0 1px 0 0 var(--rd-teal-deep) !important; }
body.rd-p2 main :is(input, select, textarea):focus-visible { outline: 2px solid var(--rd-teal-deep); outline-offset: 4px; }

/* ───────────── 4. Chrome: quiet header, calmer footer ───────────── */
body.rd .site-header {
  background: rgba(250, 248, 244, 0.84) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid rgba(20, 26, 26, 0.07) !important; box-shadow: none !important;
  view-transition-name: site-header;
}
body.rd .site-footer { padding-top: clamp(4rem, 3rem + 4vw, 7rem); }
body.rd .site-footer a { transition: color 0.6s var(--pz-ease); }

/* ───────────── 5. Ambient, section-to-section ───────────── */
/* night chapters carry the same soft light as the hero scenes */
body.rd main .rd-night { position: relative; }
body.rd main .rd-night::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 45% at 82% 8%, rgba(143, 217, 203, 0.1), transparent 70%), radial-gradient(40% 40% at 8% 100%, rgba(42, 155, 143, 0.08), transparent 70%);
}
body.rd main .rd-night > .container { position: relative; z-index: 1; }
/* every chapter starts with a drawn hairline instead of a boxed label */
body.rd main .section > .container > .eyebrow:first-child { margin-bottom: clamp(1rem, 0.8rem + 0.8vw, 1.6rem); }

/* ───────────── 6. Page transitions (cross-document View Transitions; progressive enhancement) ───────────── */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: 0.6s; }
::view-transition-old(root) { animation: pz-vt-out 0.35s var(--pz-ease) both; }
::view-transition-new(root) { animation: pz-vt-in 0.6s var(--pz-ease) both; }
::view-transition-group(site-header) { animation: none; }
@keyframes pz-vt-out { to { opacity: 0; } }
@keyframes pz-vt-in { from { opacity: 0; } }

/* ───────────── 7. Phones: same scenes, no scroll parallax, lighter ambient ───────────── */
@media (max-width: 899px), (pointer: coarse) {
  .pz-haze { animation-duration: 60s; }
  .pz-geo { right: -34vw; top: 4%; width: 84vw; opacity: 0.2; animation: none; }
  .pz-photo { inset: -2% 0; transform: none; }
}

/* ───────────── 8. Reduced motion / no JS ───────────── */
@media (prefers-reduced-motion: reduce) {
  .pz-photo, .pz-haze, .pz-geo, body.rd main > .pz-photo-hero::after { animation: none !important; }
  .pz-photo { transform: none !important; }
  html.pz-js body.rd main figure:not(.workshop-photo).pz-pre { clip-path: none !important; transition: none !important; }
  html.pz-js body.rd main figure:not(.workshop-photo).pz-pre img { scale: 1 !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  body.rd main :is(.btn, .btn-primary, .btn-secondary) { transition: none; }
}

/* the legacy opacity reveal (main.js → html.js-reveal) never hides content either */
html.js-reveal .reveal, html.js-reveal .reveal-child { opacity: 1 !important; transition: none !important; will-change: auto; }
html.js-reveal .reveal.is-visible .value-block,
html.js-reveal .reveal.is-visible .field-item,
html.js-reveal .reveal.is-visible .path-list > li { animation: none !important; opacity: 1 !important; }
body.rd main figure:not(.workshop-photo) { box-shadow: none !important; }

/* Our Story sets its title card on the right, so its hexagon sits on the left, over the sky */
body.rd.navana-about .pz-geo { right: auto; left: -14vw; }

/* ───────────── 9. Typography as a feature ───────────── */
@media (min-width: 1025px) {
  body.rd .site-header .site-nav > ul > li > a:not(.nav-cta):not(.nav-give) { font-size: 0.7rem; letter-spacing: 0.17em; text-transform: uppercase; font-weight: 500; }
}
body.rd main :is(.page-invite-links a, .inquiry-link a, .resource-more, .jr-links a) { transition: color 0.6s var(--pz-ease), letter-spacing 0.8s var(--pz-ease); }
body.rd main .reading-title, body.rd main .resource-title { font-family: var(--rd-display); font-weight: 400; letter-spacing: -0.005em; }

/* ───────────── 10. One memorable moment per page (same system, different composition) ───────────── */
/* Journeys: the six journeys as an editorial index, not six boxes */
body.rd.navana-retreats main .jr-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: clamp(2.5rem, 2rem + 3vw, 5rem); border-bottom: 1px solid var(--rd-hair); }
body.rd.navana-retreats main .jr-card > article {
  position: relative; width: 100%; display: grid; grid-template-columns: 3.2rem minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(1.2rem, 3vw, 3.5rem); align-items: start;
  padding: clamp(1.8rem, 1.2rem + 2vw, 3.2rem) 0; border: 0 !important; border-top: 1px solid var(--rd-hair) !important; border-radius: 0; background: none !important; box-shadow: none !important; transform: none !important;
}
body.rd.navana-retreats main .jr-card > article::before, body.rd.navana-retreats main .jr-card > article::after { content: none !important; }
body.rd.navana-retreats main .jr-card .jr-badge { grid-row: 1 / span 3; margin: 0.4rem 0 0; }
body.rd.rd-p2.navana-retreats:not(.is-darkness) main .jr-grid .jr-card h3 { grid-column: 2; margin: 0; font-family: var(--rd-display); font-weight: 300; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.8rem) !important; line-height: 1; letter-spacing: -0.012em; transition: transform 0.9s var(--pz-ease), color 0.6s var(--pz-ease); }
body.rd.navana-retreats main .jr-card p { grid-column: 3; font-size: 1rem; line-height: 1.7; color: var(--rd-ink-2); }
body.rd.navana-retreats main .jr-card p.jr-links { grid-column: 3; margin-top: 0.8rem; padding-top: 0; }
body.rd.navana-retreats main .jr-card > article:is(:hover, :focus-within) h3 { transform: translateX(0.5rem); color: var(--rd-teal-deep); }
@media (max-width: 860px) {
  body.rd.navana-retreats main .jr-card > article { grid-template-columns: 2.4rem minmax(0, 1fr); }
  body.rd.navana-retreats main .jr-card p, body.rd.navana-retreats main .jr-card p.jr-links { grid-column: 2; margin-top: 0.8rem; }
}
/* Resources: each resource is a wide doorway — image plate left, a large title right */
body.rd.navana-resources main .resources-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 0; border-bottom: 1px solid var(--rd-hair); max-width: none; }
body.rd.navana-resources main .resource-card { max-width: none !important; border: 0 !important; border-top: 1px solid var(--rd-hair) !important; background: none !important; }
body.rd.navana-resources main .resource-link { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(1.5rem, 4vw, 5rem); padding: clamp(2rem, 1.4rem + 2.4vw, 4rem) 0; background: none !important; }
body.rd.navana-resources main .resource-covers { margin: 0; min-height: clamp(11rem, 20vw, 17rem); display: flex; align-items: center; justify-content: center; gap: 0.6rem; background: var(--rd-mist) !important; transition: background-color 0.8s var(--pz-ease); overflow: hidden; }
body.rd.navana-resources main .resource-covers img { transition: transform 1.2s var(--pz-ease); }
body.rd.navana-resources main .resource-link:hover .resource-covers img { transform: scale(1.05); }
body.rd.navana-resources main .resource-title { display: block; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 4.2rem) !important; font-weight: 300; line-height: 1; margin-bottom: 1rem; transition: transform 0.9s var(--pz-ease); }
body.rd.navana-resources main .resource-link:hover .resource-title { transform: translateX(0.5rem); }
@media (max-width: 760px) { body.rd.navana-resources main .resource-link { grid-template-columns: minmax(0, 1fr); } }
/* Readings: the shelf — titles in the display face, covers on a quiet plate */
body.rd.navana-readings main .reading-title { font-size: 1.5rem; line-height: 1.12; }
/* Legal: a calm reading column */
body.rd.navana-legal main .legal-body .container { max-width: 52rem; }
body.rd.navana-legal main .legal-body :is(h2, h3) { font-family: var(--rd-display); font-weight: 400; }
/* no gimmick tilt on cards; hover is a slow image settle instead */
.jr-card > article.has-tilt, .workshop-card.has-tilt { transform: none !important; }
@media (hover: hover) and (pointer: fine) {
  body.rd main figure:not(.workshop-photo) img { transition: scale 1.6s var(--pz-ease); }
  body.rd main figure:not(.workshop-photo):hover img { scale: 1.035; }
}
