/* Rabsal Dawa — Home (Landing) styles.
   Extracted from the design system's complete site. Requires the Rabsal Dawa
   theme (styles.css) to be linked FIRST — every colour/type/spacing token
   (--sky-*, --gold, --cream-hi, --font-hero, --font-display, --ease*, --mist-*)
   comes from there. Asset url()s are relative to this file (./assets/...). */

/* ============ LANDING ============ */
.rdL {
  /* The package references var(--ease) (6×), which the theme names --ease-settle.
     Alias it here, scoped to the landing root, so the hover/scroll transitions
     resolve. (Reported as a minor gap in the home package.) */
  --ease: var(--ease-settle);
  color: var(--cream-hi);
  line-height: 1.65;
  font-family: var(--font-sans);
  background: linear-gradient(180deg,
    var(--sky-950) 0%, var(--sky-900) 7.2%, var(--sky-800) 14.4%,
    var(--azure) 21.7%, var(--azure-glow) 28.9%,
    #3F7AA8 36.1%, #6FA0C2 43.3%, #A3C2D6 50.6%, #D6E2E6 57.8%,
    var(--cream-hi) 65%);
}
.rdL-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.rdL-topbar {
  position: sticky; top: 0; z-index: 60;
  /* Grid, not flex+space-between. The nav used to be `position:absolute;
     left:50%`, which shrink-to-fits against its containing block — so its
     available width was centre-to-right-padding, about HALF the bar. That is
     why the Tibetan links stacked at 1920px and not only on phones.
     A `1fr auto 1fr` track sizes the nav against the WHOLE bar, and centres it
     truly: space-between only ever centred it when brand and CTA happened to
     be equal width, which is presumably why the transform was reached for. */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px 44px; border-bottom: 1px solid transparent;
  transition: padding .4s var(--ease), background .5s, backdrop-filter .5s, border-color .5s;
}
.rdL-topbar.is-scrolled {
  padding: 13px 44px; background: rgba(7,87,148,.72);
  backdrop-filter: blur(18px) saturate(1.2); border-bottom-color: var(--gline-soft);
}
.rdL-topbar.is-cream { background: rgba(248,245,238,.92); backdrop-filter: blur(18px) saturate(1.2); border-bottom-color: var(--cline); }
.rdL-topbar.is-cream .rdL-brandName, .rdL-topbar.is-cream .rdL-navlinks a, .rdL-topbar.is-cream .rdL-cta { color: var(--sky-900); }
.rdL-topbar.is-cream .rdL-cta { border-color: var(--cline); }
.rdL-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; justify-self: start; flex-shrink: 0; }
.rdL-seal { width: 34px; height: 34px; flex-shrink: 0; object-fit: contain; }
.rdL-brandName { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: .01em; color: var(--cream-hi); }
.rdL-navlinks { justify-self: center; display: flex; gap: 34px; font-size: 13.5px; font-weight: 300; color: var(--mist-200); }
/* Nothing in a topbar should be a shrink target — same reasoning as
   .rdL-seal's flex-shrink:0 above. */
.rdL-navlinks a { flex-shrink: 0; }
/* Buy gap for the wider script WITHOUT touching the Latin: Law 1's hook applied
   in CSS. bofit adds .sf-fitted only to runs it actually fitted, so the Latin
   keeps its authored 34px. */
.rdL-navlinks:has(.sf-fitted) { gap: 22px; }
.rdL-navlinks a { text-decoration: none; color: inherit; transition: color .3s; position: relative; padding: 4px 0; }
.rdL-navlinks a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .35s var(--ease); }
.rdL-navlinks a:hover { color: var(--cream-hi); }
.rdL-navlinks a:hover::after { width: 100%; }
.rdL-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.rdL-cta { justify-self: end; flex-shrink: 0; font-size: 12.5px; font-weight: 400; letter-spacing: .04em; color: var(--cream-hi); background: transparent; cursor: pointer; border: 1px solid var(--gline); border-radius: 999px; padding: 9px 18px; transition: .3s var(--ease); }
.rdL-cta:hover { background: rgba(236,179,32,.12); border-color: var(--gold); }

.rdL-stage { position: relative; z-index: 2; min-height: calc(100vh - 74px); display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; padding: 12vh 24px 9vh; }

/* ---- ACT I · THE GAZE (full-bleed film) ---- */
/* NO overflow:hidden here. The scaled video is clipped by .rdL-gaze-media,
   which is its own box; clipping at the section level as well shears the hero
   title's descenders, because correctly-sized Tibetan ink is ~1.4x taller than
   the Latin the line box was drawn for and is meant to SPILL (Law 2). */
.rdL-gaze { height: 100vh; min-height: 560px; margin-top: -74px; padding: 0; display: flex; flex-direction: column; align-items: stretch; background: var(--sky-950); }
/* the film fills the space left above the title+subtitle+cue, so the whole hero
   fits one viewport — nothing below the fold */
/* NOT clipped: it holds the copy, and the hero title's ink must be free to
   spill past it. The film inside is clipped by .rdL-gaze-clip instead. */
.rdL-gaze-media { position: relative; flex: 1 1 auto; min-height: 0; }
.rdL-gaze-clip { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
/* face-anchored crop + a gentle zoom (aspect nearly matches the hero, so a modest
   scale toward his face tucks the top behind the navbar and eases the headroom) */
.rdL-gaze-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 28% 44%; transform: scale(1.06); transform-origin: 50% 36%; z-index: 1; }
/* AI-restored still that fades in when the film ends — matches the video's crop
   exactly, sits above the video but below the edge fades (DOM order). */
.rdL-gaze-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 28% 44%; transform: scale(1.06); transform-origin: 50% 36%; z-index: 1; opacity: 0; transition: opacity 1.2s var(--ease-settle); pointer-events: none; }
.rdL-gaze-still.is-in { opacity: 1; }
/* the smile frame lives BEHIND the video as a fallback only — shown when the film
   can't load (bad connection), never as a pre-play poster that would spoil the arc */
.rdL-gaze-fallback { position: absolute; inset: 0; z-index: 0; background: var(--sky-950) url("./assets/images/gaze-poster.png") 28% 44% / cover no-repeat; transform: scale(1.06); transform-origin: 50% 36%; }
/* the eyebrow sits on the table's own dark cloth, so the fade can stay low — only
   the very bottom edge dissolves into the page */
.rdL-gaze-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,17,12,0) 0%, rgba(13,20,34,.45) 46%, var(--sky-950) 100%); }
/* a soft wash under the navbar keeps it legible without filtering the film */
.rdL-gaze-media::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 24%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,20,40,.55) 0%, rgba(7,20,40,0) 100%); }
.rdL-gaze-copy { position: absolute; left: 0; right: 0; bottom: 0.8vh; z-index: 3; text-align: center; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.rdL-gaze .rdL-eyebrow { margin: 0 0 12px; text-shadow: 0 1px 12px rgba(6,14,28,.95); }
.rdL-gaze .rdL-title { font-size: clamp(56px, 8vw, 96px); text-shadow: 0 2px 26px rgba(6,14,28,.5); }
/* Cardo is a serif, so its Tibetan partner is a serif-DISPLAY face. This line
   takes Gesarma rather than the serif-register Monlam — a deliberate look choice
   (softer invitation); see tibetan-font-application.md §1/§5. It uses the
   display-register bake `Gesarma Fit Display` (Gesarma → Castoro, 1.35), NOT the
   body `Gesarma Fit Sans`, so it sits at Monlam's display size, not the smaller
   body size. `font-style: italic` is safe: the face has an upright italic twin
   (tibetan-fonts.css), so the Tibetan is never synthesised into an oblique
   (Law 5b). Appending the face is the ONLY change here — every Latin decision on
   this line (size, nowrap, measure) is left exactly as authored. */
.rdL-gaze .rdL-lede { margin: 1.4vh auto; padding: 0 24px; font-family: 'Cardo', Georgia, 'Gesarma Fit Display', serif; font-style: italic; font-size: clamp(24px, 3.2vw, 38px); font-weight: 400; color: var(--mist-100); max-width: none; white-space: nowrap; text-align: center; text-shadow: none; opacity: .18; transform: none; transition: opacity 1.8s var(--ease-settle); }
.rdL-gaze .rdL-lede.is-in { opacity: 1; transform: none; }
.rdL-gaze .rdL-scrollHint { position: static; transform: none; font-size: 0; letter-spacing: 0; opacity: 1; margin: 0 auto 3vh; animation: rdL-bobY 2.4s ease-in-out infinite; }
.rdL-gaze .rdL-chev { margin: 0 auto; width: 18px; height: 18px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); animation: none; opacity: 1; }
@keyframes rdL-bobY { 0%,100% { transform: translateY(0); opacity: .7; } 50% { transform: translateY(5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rdL-gaze .rdL-scrollHint { animation: none; } }
@media (prefers-reduced-motion: reduce) { .rdL-gaze .rdL-lede { opacity: 1; transition: none; } }
@media (prefers-reduced-motion: reduce) { .rdL-gaze-video { /* still frame is fine */ } }

.rdL-halo { position: absolute; left: 50%; top: 55%; transform: translate(-50%,-50%); z-index: 0; pointer-events: none; }
.rdL-moon {
  position: absolute; left: 50%; top: 50%;
  transform: translate(calc(-50% - 1.65%), calc(-50% + 1.95%));
  width: clamp(300px, 60vw, 560px); height: clamp(300px, 60vw, 560px);
  z-index: 1; background: url("./assets/images/moon.png") center/contain no-repeat;
  opacity: .92; mix-blend-mode: screen;
  filter: drop-shadow(0 0 70px rgba(255,255,255,.42)) drop-shadow(0 0 150px rgba(233,197,107,.20));
}
.rdL-face {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: clamp(204px, 40vw, 380px); height: clamp(204px, 40vw, 380px);
  z-index: 2; background: url("./assets/images/face.png") center/contain no-repeat;
  border-radius: 50%; opacity: .15;
}
.rdL-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: clamp(230px,44vw,420px); height: clamp(230px,44vw,420px); border-radius: 50%; border: 1px solid rgba(233,197,107,.28); animation: rdL-ripple 50s linear infinite; }
.rdL-r1{animation-delay:0s}.rdL-r2{animation-delay:-6.25s}.rdL-r3{animation-delay:-12.5s}.rdL-r4{animation-delay:-18.75s}.rdL-r5{animation-delay:-25s}.rdL-r6{animation-delay:-31.25s}.rdL-r7{animation-delay:-37.5s}.rdL-r8{animation-delay:-43.75s}
@keyframes rdL-ripple { 0%{opacity:0;transform:translate(-50%,-50%) scale(1)} 4%{opacity:.45} 92%{opacity:.45} 100%{opacity:0;transform:translate(-50%,-50%) scale(9)} }
.rdL-heroTop { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 3; }
.rdL-eyebrow { font-size: 11.5px; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 30px; }
.rdL-eyebrow span { padding: 0 20px; position: relative; }
.rdL-eyebrow span::before, .rdL-eyebrow span::after { content: ""; position: absolute; top: 50%; width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--gline)); }
.rdL-eyebrow span::before { right: 100%; transform: scaleX(-1); } .rdL-eyebrow span::after { left: 100%; }
.rdL-title { font-family: var(--font-hero); font-weight: 500; font-size: clamp(56px, 9vw, 96px); line-height: .96; color: #fff; letter-spacing: -.01em; text-shadow: 0 0 34px rgba(255,255,255,.32); margin: 0; }
.rdL-titleAccent { color: var(--gold); font-weight: 600; font-style: italic; text-shadow: 0 0 30px rgba(236,179,32,.45); }
.rdL-heroBottom { position: relative; z-index: 3; }
.rdL-lede { max-width: 520px; margin: 0 auto; font-size: 16px; font-weight: 300; line-height: 1.85; color: var(--mist-100); text-shadow: 0 1px 14px rgba(7,27,56,.5); }
.rdL-scrollHint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--mist-300); font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .85; }
.rdL-chev { display: block; margin: 10px auto 0; width: 12px; height: 12px; border-right: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft); transform: rotate(45deg); animation: rdL-bob 2.4s ease-in-out infinite; }
@keyframes rdL-bob { 0%,100%{transform:rotate(45deg) translateY(0);opacity:.5} 50%{transform:rotate(45deg) translateY(5px);opacity:1} }

/* the hero's deep blue descends slowly through azure into cream across the WHOLE
   section, reaching cream only at the top of "Ways to begin" — a long, gentle fall
   of light. The copy sits high, on the still-dark upper band. */
.rdL-approach { position: relative; z-index: 2; padding: 150px 24px 230px; text-align: center;
  background: linear-gradient(180deg,
    var(--sky-950) 0%, var(--azure) 40%, #6f9ec2 66%, #b9ccd3 86%, #e4e9e2 100%); }
.rdL-approachMark { color: var(--gold); font-size: 16px; letter-spacing: 0; margin-bottom: 26px; text-shadow: 0 1px 14px rgba(7,27,56,.5); }
.rdL-approach h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px,4.5vw,42px); line-height: 1.25; color: var(--mist-100); margin: 0 auto 24px; max-width: 740px; text-shadow: 0 1px 18px rgba(7,27,56,.55); }
.rdL-approach p { font-size: 17px; font-weight: 300; color: var(--mist-200); line-height: 1.9; max-width: 580px; margin: 0 auto; text-shadow: 0 1px 12px rgba(7,27,56,.45); }

.rdL-gateways { position: relative; z-index: 2; padding: 30px 40px 20px;
  /* the descent has nearly settled by the section seam; only a whisper remains,
     fading imperceptibly to cream right at the top of "Ways to begin" */
  background: linear-gradient(180deg, #e4e9e2 0px, var(--cream) 32px, var(--cream) 100%); }
.rdL-gateways > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.rdL-gwHead { text-align: center; margin-bottom: 46px; }
.rdL-gwHead h2 { font-family: var(--font-display); font-weight: 500; font-size: 38px; color: var(--sky-800); margin: 0 0 12px; }
.rdL-gwHead p { font-size: 14.5px; font-weight: 300; color: var(--ink-soft); max-width: 460px; margin: 0 auto; }
.rdL-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.rdL-card { position: relative; background: linear-gradient(180deg, var(--cream-hi), var(--cream)); border-radius: 18px; overflow: hidden; border: 1px solid var(--cline); box-shadow: 0 18px 44px -20px rgba(7,27,56,.5); transition: transform .5s var(--ease), box-shadow .5s var(--ease); text-decoration: none; color: inherit; display: block; }
.rdL-card:hover { transform: translateY(-7px); box-shadow: 0 30px 62px -22px rgba(7,27,56,.55), 0 0 0 1px var(--gline); }
.rdL-thumb { position: relative; height: 132px; overflow: hidden; }
.rdL-gr { position: absolute; inset: 0; }
.tAzure{background:linear-gradient(145deg,var(--azure-glow),var(--azure) 55%,var(--sky-900))}
.tJade{background:linear-gradient(145deg,var(--jade-soft),var(--jade) 60%,#4E7E54)}
.tAmber{background:linear-gradient(145deg,var(--gold-soft),var(--amber) 65%,var(--vermilion-deep))}
.rdL-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; mix-blend-mode: soft-light; }
.rdL-body { padding: 18px 20px 22px; }
.rdL-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; font-weight: 500; }
.bArticle{background:rgba(194,41,32,.10);color:var(--vermilion-deep);border:1px solid rgba(194,41,32,.22)}
.bPlaylist{background:rgba(18,59,115,.08);color:var(--sky-800);border:1px solid rgba(18,59,115,.18)}
.bCollection{background:rgba(113,166,117,.14);color:#3F6B43;border:1px solid rgba(113,166,117,.30)}
.rdL-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; color: var(--sky-800); margin: 14px 0 7px; line-height: 1.22; }
.rdL-card p { font-size: 13px; font-weight: 300; color: var(--ink-soft); line-height: 1.62; margin: 0; }
.rdL-enter { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--vermilion); }
.rdL-arrow { transition: transform .35s var(--ease); }
.rdL-card:hover .rdL-arrow { transform: translateX(5px); }
.rdL-footer { position: relative; z-index: 2; max-width: 1160px; margin: 56px auto 0; padding: 36px 40px 54px; border-top: 1px solid var(--cline); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.rdL-footer h4 { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--sky-800); margin: 0 0 7px; }
.rdL-footer p { font-size: 12.5px; font-weight: 300; color: var(--ink-soft); max-width: 420px; line-height: 1.65; margin: 0; }
.rdL-footMeta { font-size: 11.5px; font-weight: 300; color: var(--bronze); text-align: right; }

@media (max-width: 980px) { .rdL-grid { grid-template-columns: 1fr 1fr; } .rdL-navlinks { gap: 24px; } }
/* Below this the three links cannot fit beside brand + CTA in any script. Drop
   them rather than overflow — the codebase's own mobile instinct (AdminShell
   hides chrome instead of letting it spill), and it costs nothing here: the
   same three destinations render as full cards in #rd-gateways one scroll
   down, which the hero's scroll cue points at. */
@media (max-width: 720px) { .rdL-navlinks { display: none; }
  /* The hero invitation is one nowrap line on desktop; it can't fit a phone, so
     it would force the page wider than the viewport (a white band on the right,
     the line running off the edge). Let it wrap on small screens instead. */
  .rdL-gaze .rdL-lede { white-space: normal; }
}
@media (max-width: 600px) { .rdL-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rdL-moon, .rdL-ring, .rdL-chev { animation: none !important; } }
