/* =========================================================
   UCMSI — public website, v2 "Radiant night"
   Dark cinematic heroes, glass panels, 3D cards, parallax,
   scroll animations. Brand: logo emerald + gold/saffron.
   ========================================================= */
:root {
  --night: #04170f;
  --night-2: #072619;
  --night-3: #0d3a28;
  --ink: #0f1f18;
  --ink-2: #3a4a42;
  --muted: #66766e;
  --bg: #f5f8f6;
  --card: #ffffff;
  --line: #e2e9e4;
  --emerald: #19a35b;
  --teal: #0f8b7c;
  --gold: #f4b740;
  --saffron: #f07b21;
  --danger: #c0352b;
  --ok: #178a4f;
  --primary: #14553a;
  --primary-deep: #0b2f20;
  --accent: #e07a1f;
  --season: #14553a;
  --season-deep: #0b2f20;
  --season-tint: #e7f1ec;
  --grad: linear-gradient(135deg, #1fb866 0%, #0f8b7c 100%);
  --grad-warm: linear-gradient(120deg, #f6c454 0%, #f07b21 55%, #e2553a 100%);
  --display: "Sora", "Noto Sans Tamil", system-ui, sans-serif;
  --serif: "Literata", "Noto Serif Tamil", Georgia, serif;
  --sans: "Figtree", "Noto Sans Tamil", "Mukta Malar", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --shadow-1: 0 1px 2px rgba(4, 23, 15, .06), 0 8px 24px -12px rgba(4, 23, 15, .22);
  --shadow-3d: 0 2px 2px rgba(4, 23, 15, .04), 0 12px 28px -10px rgba(4, 23, 15, .28), 0 40px 70px -40px rgba(4, 23, 15, .45);
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 84px;
  --stole: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='44' viewBox='0 0 28 44'%3E%3Cg fill='none' stroke='%23F0CF73' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M14 10v24M4 22h20M11 10h6M11 34h6M4 19v6M24 19v6'/%3E%3Cpath d='M7.5 13.5v4M5.5 15.5h4M20.5 13.5v4M18.5 15.5h4M7.5 26.5v4M5.5 28.5h4M20.5 26.5v4M18.5 28.5h4'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body:not(.has-hero) { padding-top: var(--nav-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[lang="ta"] { line-height: 1.8; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 3000; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 2em; }
.hp { position: absolute !important; left: -9999px; height: 0; overflow: hidden; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: .86rem; color: var(--teal); margin: 0 0 12px; letter-spacing: .04em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad-warm); border-radius: 2px; }
.eyebrow--light { color: var(--gold); }

/* ---------- Loader & progress ---------- */
.loader { position: fixed; inset: 0; z-index: 2000; background: var(--night); display: grid; place-items: center; transition: opacity .5s ease, visibility .5s; }
.loader img { width: 84px; height: 84px; animation: pulse 1.4s ease-in-out infinite; }
.loader span { position: absolute; width: 130px; height: 130px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .1); border-top-color: var(--gold); animation: spin 1s linear infinite; }
.loader.is-done { opacity: 0; visibility: hidden; }
html:not(.js) .loader { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(.9); } }
.progress-line { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad-warm); z-index: 1100; }

/* ---------- Buttons ---------- */
.btn { --b: var(--primary); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.4em; border-radius: 999px; border: 1.5px solid var(--b); background: var(--b); color: #fff; font-family: var(--display); font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s; white-space: nowrap; isolation: isolate; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -10px var(--b); }
.btn .ic { transition: transform .2s; }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn--lg { padding: 1em 1.7em; font-size: 1.02rem; }
.btn--primary { --b: var(--primary); }
.btn--season { --b: var(--s, var(--primary)); }
.btn--glow { border: 0; background: var(--grad-warm); background-size: 160% 160%; color: #fff; box-shadow: 0 10px 30px -10px rgba(240, 123, 33, .8); animation: shimmer 6s ease infinite; }
.btn--glow:hover { box-shadow: 0 16px 36px -10px rgba(240, 123, 33, .95); }
@keyframes shimmer { 50% { background-position: 100% 50%; } }
.btn--glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); box-shadow: none; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { color: var(--ink); background: #fff; border-color: var(--ink); box-shadow: var(--shadow-1); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); box-shadow: var(--shadow-1); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn small { font-weight: 400; opacity: .85; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--primary); }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(4px); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; font-family: var(--display); }
.chip--glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; backdrop-filter: blur(10px); }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(244, 183, 64, .25); animation: pulse 2s infinite; }

/* ---------- Header ---------- */
/* The frosted background sits on a pseudo-element: a backdrop-filter on the header itself would trap the
   fixed-position mobile menu inside the 72px header bar. */
.nav-wrap { position: fixed; inset: 0 0 auto 0; z-index: 1000; transition: transform .35s ease; }
.nav-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--line); transition: opacity .3s; pointer-events: none; }
.nav-wrap--over:not(.is-scrolled)::before { opacity: 0; }
body.nav-open .nav-wrap { transform: none; }
body.nav-open .brand__text b { color: #fff; }
body.nav-open .brand__text small { color: rgba(255, 255, 255, .7); }
body.nav-open .navtoggle { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
body.nav-open .navtoggle span { background: #fff; }
body.nav-open .nav-wrap::before { opacity: 1; background: var(--night); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-wrap.is-hidden { transform: translateY(-100%); }
.nav-bar { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .4); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__text b { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; color: var(--primary); }
.brand__text small { font-size: .68rem; color: var(--muted); max-width: 190px; line-height: 1.25; margin-top: 2px; }
.nav-wrap--over:not(.is-scrolled) .brand__text b, .brand--light .brand__text b { color: #fff; }
.nav-wrap--over:not(.is-scrolled) .brand__text small, .brand--light .brand__text small { color: rgba(255, 255, 255, .7); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav__list { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a { position: relative; padding: 10px 12px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: .92rem; }
.nav__item > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad-warm); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav__item > a:hover::after, .nav__item.is-active > a::after { transform: scaleX(1); }
.nav-wrap--over:not(.is-scrolled) .nav__item > a, .nav-wrap--over:not(.is-scrolled) .nav__sub-toggle { color: #fff; }
.nav__sub-toggle { border: 0; background: none; padding: 6px 2px; margin-left: -8px; color: var(--muted); cursor: pointer; display: inline-flex; }
.nav__sub { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow-3d); opacity: 0; visibility: hidden; transform: translateY(10px) rotateX(-12deg); transform-origin: top; transition: .22s ease; }
.nav__sub a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .94rem; transition: background .15s, padding .15s; }
.nav__sub a:hover { background: var(--bg); color: var(--primary); padding-left: 18px; }
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub, .has-sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__tools { display: flex; align-items: center; gap: 10px; }
.nav__search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 14px; background: rgba(255, 255, 255, .7); }
.nav-wrap--over:not(.is-scrolled) .nav__search { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.nav__search input { border: 0; outline: 0; width: 100px; padding: 7px 0; font-size: .9rem; background: transparent; }
.nav-wrap--over:not(.is-scrolled) .nav__search input::placeholder { color: rgba(255, 255, 255, .7); }
.nav__search button { border: 0; background: none; color: inherit; opacity: .7; padding: 6px; cursor: pointer; display: flex; }
.navtoggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-wrap--over:not(.is-scrolled) .navtoggle { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.navtoggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-wrap--over:not(.is-scrolled) .navtoggle span { background: #fff; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1180px) { .nav__search { display: none; } }
@media (max-width: 1020px) {
  .navtoggle { display: flex; }
  .nav { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--night); flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 40px; gap: 18px; overflow-y: auto; clip-path: circle(0 at calc(100% - 40px) 0); transition: clip-path .5s ease; visibility: hidden; }
  .nav.is-open { clip-path: circle(150% at calc(100% - 40px) 0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav__item > a, .nav-wrap .nav__item > a { flex: 1; padding: 15px 4px; font-size: 1.15rem; color: #fff; }
  .nav__item > a::after { display: none; }
  .nav__sub-toggle, .nav-wrap .nav__sub-toggle { padding: 12px; margin: 0; color: #fff; }
  .nav__sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .nav__sub { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 10px 12px; display: none; }
  .nav__sub a { color: rgba(255, 255, 255, .8); }
  .nav__sub a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .has-sub.is-open .nav__sub { display: block; }
  .nav__tools { flex-direction: column; align-items: stretch; }
  .nav__search, .nav-wrap .nav__search { display: flex; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
  .nav__search input { width: 100%; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) { .brand__text small { display: none; } :root { --nav-h: 72px; } .brand img { width: 42px; height: 42px; } }

/* ---------- Flash ---------- */
.flashes { padding-top: 16px; position: relative; z-index: 5; }
.has-hero .flashes { position: absolute; top: calc(var(--nav-h) + 8px); left: 0; right: 0; z-index: 60; }
.flash { padding: 12px 16px; border-radius: var(--r-s); margin: 0 0 8px; border: 1px solid; font-weight: 500; box-shadow: var(--shadow-1); }
.flash--success { background: #e8f6ee; border-color: #b4dcc4; color: #13502f; }
.flash--error { background: #fdecea; border-color: #f4c2bd; color: #8a1c13; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(56px, 7vw, 100px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 52px); }
.section__head--center { justify-content: center; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .section__sub { margin-inline: auto; }
.section__title { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 0; font-weight: 800; letter-spacing: -.03em; }
.section__sub { color: var(--muted); margin: .7em 0 0; max-width: 60ch; font-size: 1.05rem; }
@media (max-width: 680px) { .section__head { flex-direction: column; align-items: flex-start; } }

/* ---------- Parallax helpers ---------- */
[data-parallax] { will-change: transform; }
html:not(.js-parallax) [data-parallax] { transform: none !important; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(720px, 100svh); display: flex; flex-direction: column; justify-content: safe center; color: #fff; background: var(--night); overflow: hidden; padding: calc(var(--nav-h) + 48px) 0 200px; isolation: isolate; }
.hero__bg { position: absolute; inset: -12% 0 -12% 0; z-index: -3; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-on { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero__slide.is-on img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.14) translate(1%, 1%); } to { transform: scale(1) translate(0, 0); } }
.hero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(4, 23, 15, .95) 0%, rgba(4, 23, 15, .78) 38%, rgba(4, 23, 15, .3) 72%, rgba(4, 23, 15, .55) 100%), linear-gradient(0deg, rgba(4, 23, 15, .95) 0%, transparent 35%), linear-gradient(180deg, rgba(4, 23, 15, .8) 0%, transparent 22%); }
.hero__orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: float 14s ease-in-out infinite; }
.hero__orb--a { width: 420px; height: 420px; background: #1fb866; left: -120px; top: 10%; }
.hero__orb--b { width: 360px; height: 360px; background: #f07b21; right: -100px; bottom: 5%; opacity: .35; animation-delay: -6s; }
@keyframes float { 50% { margin-top: 40px; margin-left: 30px; } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; margin: 22px 0 14px; color: #fff; text-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.hero__ta { font-family: "Noto Sans Tamil", var(--sans); font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 600; margin: 0 0 1em; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__intro { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(255, 255, 255, .82); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }
.hero__card { --s: var(--emerald); position: relative; display: grid; gap: 10px; padding: 26px; border-radius: var(--r-l); text-decoration: none; color: #fff; background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(18px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transform-style: preserve-3d; }
.hero__card:hover { color: #fff; }
.hero__card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .82rem; font-weight: 600; transform: translateZ(30px); }
.hero__card-top span { display: inline-flex; gap: 6px; align-items: center; color: var(--gold); }
.hero__card-top em { font-style: normal; padding: 3px 10px; border-radius: 999px; background: var(--s); color: #fff; font-size: .74rem; }
.hero__card b { font-family: var(--display); font-size: 1.45rem; line-height: 1.3; transform: translateZ(50px); }
.hero__card-verse { color: rgba(255, 255, 255, .78); font-size: .98rem; transform: translateZ(35px); }
.hero__card-foot { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; color: rgba(255, 255, 255, .7); padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .15); transform: translateZ(25px); }
.hero__card-foot i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-warm); color: #fff; }
.hero__ctrl { position: absolute; left: 0; right: 0; bottom: 96px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.hero__dots { display: flex; gap: 6px; flex-wrap: wrap; }
.hero__dots button { width: 34px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.hero__dots i { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.hero__dots .is-on i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: fillbar 6s linear forwards; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
.hero__arrows button:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.scrollcue { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; z-index: 2; }
.scrollcue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.marquee { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; overflow: hidden; background: rgba(4, 23, 15, .6); border-top: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); padding: 20px 0; }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.marquee span .ic { color: var(--gold); }
.marquee small { font-family: var(--sans); font-weight: 400; color: rgba(255, 255, 255, .6); font-size: .86rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 940px) {
  .hero { padding-bottom: 170px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
  .scrollcue { display: none; }
  .hero__ctrl { bottom: 86px; }
}

/* ---------- Devotion on home (season shown only here) ---------- */
.devo { --s: var(--emerald); background: var(--night); color: #fff; overflow: hidden; isolation: isolate; padding-block: clamp(56px, 7vw, 96px); }
.devo__glow { position: absolute; z-index: -1; width: 700px; height: 700px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, var(--s) 0%, transparent 65%); opacity: .45; filter: blur(30px); }
.devo__grid { display: grid; grid-template-columns: 200px minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 64px); align-items: center; }
.devo__date { display: flex; flex-direction: column; gap: 6px; }
.devo__day { font-family: var(--display); font-size: 6.5rem; line-height: .85; font-weight: 800; background: linear-gradient(180deg, #fff 30%, var(--s)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.devo__month { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.devo__wd { color: rgba(255, 255, 255, .65); font-size: .95rem; }
.season-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); align-self: flex-start; }
.season-badge i { width: 26px; height: 26px; border-radius: 8px; background: var(--s); box-shadow: 0 0 20px var(--s); flex: none; }
.season-badge b { display: block; font-size: .86rem; line-height: 1.25; }
.season-badge small { display: block; font-size: .78rem; color: rgba(255, 255, 255, .65); line-height: 1.4; }
.devo .eyebrow { color: var(--gold); }
.devo__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 18px 0 16px; font-weight: 700; }
.devo__pane[lang="ta"] .devo__title { font-family: "Noto Sans Tamil", var(--display); }
.devo__verse { margin: 0 0 18px; padding: 18px 22px; border-radius: var(--r-m); background: rgba(255, 255, 255, .06); border-left: 4px solid var(--s); font-size: 1.15rem; }
.devo__verse p { margin: 0 0 6px; }
.devo__verse cite { font-style: normal; font-weight: 700; color: var(--gold); font-size: .92rem; }
.devo__excerpt { color: rgba(255, 255, 255, .75); max-width: 62ch; }
.devo__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.devo .btn--season { --b: var(--s); }
.devo__img { margin: 0; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1); transform-style: preserve-3d; }
.devo__img img { width: 100%; height: 100%; object-fit: cover; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button, .seg a { border: 0; background: none; padding: 7px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; color: inherit; opacity: .7; text-decoration: none; }
.seg [aria-selected="true"], .seg [aria-current="true"] { background: var(--s, var(--primary)); color: #fff; opacity: 1; }
@media (max-width: 1000px) { .devo__grid { grid-template-columns: 1fr; } .devo__img { max-width: 340px; } .devo__date { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; } .devo__day { font-size: 4rem; } .season-badge { margin-top: 0; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.about__media { position: relative; padding: 0 0 60px 0; }
.about__img { margin: 0; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-3d); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { aspect-ratio: 4 / 4.4; width: 82%; }
.about__img--float { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border: 8px solid var(--bg); }
.about__badge { position: absolute; left: 58%; top: 8%; padding: 18px 22px; border-radius: var(--r-m); background: var(--grad); color: #fff; box-shadow: 0 20px 40px -15px rgba(15, 139, 124, .7); display: grid; max-width: 190px; animation: bob 5s ease-in-out infinite; }
.about__badge b { font-family: var(--display); font-size: 2.6rem; line-height: 1; font-weight: 800; }
.about__badge span { font-size: .86rem; opacity: .9; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.vm { display: grid; gap: 22px; margin: 28px 0 32px; }
.vm__item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px; border-radius: var(--r-m); background: #fff; box-shadow: var(--shadow-1); transition: transform .25s, box-shadow .25s; }
.vm__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-3d); }
.vm__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.vm__icon .ic { width: 24px; height: 24px; }
.vm__item h3 { font-size: 1.05rem; margin-bottom: .3em; }
.vm__item p { margin: 0; color: var(--ink-2); }
.vm__quote { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--ink) !important; line-height: 1.45; }
.vm__ref { color: var(--muted) !important; font-size: .88rem; margin-top: 6px !important; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- Parallax band + stats ---------- */
.pband { position: relative; overflow: hidden; color: #fff; padding: clamp(80px, 12vw, 150px) 0; isolation: isolate; background: var(--night); }
.pband__bg { position: absolute; inset: -25% 0; z-index: -2; }
.pband__bg img { width: 100%; height: 100%; object-fit: cover; }
.pband__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(4, 23, 15, .92), rgba(13, 58, 40, .78)); }
.pband__title { text-align: center; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: clamp(32px, 5vw, 56px); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; perspective: 1000px; }
.stat { padding: 30px 26px; border-radius: var(--r-l); background: linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); transform-style: preserve-3d; text-align: center; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateZ(40px); font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; }
.stat > span { display: block; margin-top: 10px; color: rgba(255, 255, 255, .8); transform: translateZ(20px); }

/* ---------- Ministries: 3D flip cards ---------- */
.flipgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.flip { display: block; height: 380px; perspective: 1400px; text-decoration: none; color: #fff; }
.flip:hover { color: #fff; }
.flip__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.flip__face { position: absolute; inset: 0; border-radius: var(--r-l); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow-3d); }
.flip__front { background: var(--night-3); }
.flip__front img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.flip__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4, 23, 15, .92)); }
.flip__label { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; display: grid; gap: 12px; }
.flip__label b { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.flip__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .15); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .25); }
.flip__icon--lg { width: 60px; height: 60px; background: rgba(255, 255, 255, .18); }
.flip__icon--lg .ic { width: 28px; height: 28px; }
.flip__back { transform: rotateY(180deg); background: var(--grad); display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 32px; }
.flip__back b { font-family: var(--display); font-size: 1.5rem; }
.flip__back > span:not(.flip__icon) { font-size: 1.02rem; opacity: .92; }
.flip__back em { font-style: normal; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.flip:nth-child(3n+2) .flip__back { background: linear-gradient(135deg, #0f8b7c, #0b4f6c); }
.flip:nth-child(3n+3) .flip__back { background: linear-gradient(135deg, #e07a1f, #b8402a); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .flip:hover .flip__inner, .flip:focus-visible .flip__inner { transform: rotateY(180deg); }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .flip__back { display: none; }
  .flip:hover .flip__front img { transform: scale(1.05); }
}
@media (max-width: 960px) { .flipgrid { grid-template-columns: 1fr 1fr; } .flip { height: 320px; } }
@media (max-width: 560px) { .flipgrid { grid-template-columns: 1fr; } .flip { height: 280px; } }
.mlist { display: grid; gap: 56px; }
.mrow { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.mrow:nth-child(even) .mrow__img { order: 2; }
.mrow__img { border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-3d); display: block; }
.mrow__img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .6s; }
.mrow__img:hover img { transform: scale(1.05); }
.mrow h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 16px; }
.mrow h2 a { color: var(--ink); text-decoration: none; }
.mrow p { color: var(--ink-2); max-width: 52ch; }
.mcard__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; }
@media (max-width: 760px) { .mrow { grid-template-columns: 1fr; } .mrow:nth-child(even) .mrow__img { order: 0; } }

/* ---------- Leaders ---------- */
.leaders { background: linear-gradient(180deg, #fff, var(--bg)); }
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.leader { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: stretch; background: #fff; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-3d); transform-style: preserve-3d; }
.leader__photo { position: relative; background: linear-gradient(160deg, #1fb866 0%, #0f8b7c 55%, #0b3d2c 100%); min-height: 290px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.leader__photo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .35), transparent 60%); }
.leader__photo img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader__photo--empty span { font-family: var(--display); font-size: 4rem; font-weight: 800; color: #fff; margin: auto; position: relative; }
.leader__text { padding: 28px; display: flex; flex-direction: column; justify-content: center; transform: translateZ(30px); }
.leader__text h3 { font-size: 1.35rem; margin-bottom: .35em; }
.leader__role { font-weight: 600; color: var(--teal); margin-bottom: .8em; }
.leader__msg { color: var(--ink-2); font-size: .96rem; }
.leader__contact { display: grid; gap: 6px; margin: 0; font-size: .93rem; }
.leader__contact a { display: inline-flex; gap: .5em; align-items: center; text-decoration: none; }
@media (max-width: 560px) { .lead-grid { grid-template-columns: 1fr; } .leader { grid-template-columns: 1fr; } .leader__photo { min-height: 340px; } }
.members { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.members li { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; align-items: center; background: #fff; border-radius: var(--r-m); padding: 14px; box-shadow: var(--shadow-1); transition: transform .2s; }
.members li:hover { transform: translateY(-3px); }
.members img, .members__init { grid-row: span 2; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--grad); display: grid; place-items: center; font-family: var(--display); color: #fff; font-size: 1.3rem; font-weight: 700; }
.members b { font-size: .97rem; line-height: 1.3; }
.members span { font-size: .86rem; color: var(--muted); }

/* ---------- News cards ---------- */
.news { background: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.ncard a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r-l); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.ncard a:hover { transform: translateY(-6px); box-shadow: var(--shadow-3d); color: var(--ink); }
.ncard__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night-3); display: block; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.ncard a:hover .ncard__img img { transform: scale(1.07); }
.ncard__ph { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .5); }
.ncard__ph .ic { width: 48px; height: 48px; }
.ncard__date { position: absolute; left: 16px; top: 16px; background: #fff; border-radius: 12px; padding: 8px 12px; text-align: center; display: grid; line-height: 1.1; box-shadow: var(--shadow-1); }
.ncard__date b { font-family: var(--display); font-size: 1.4rem; color: var(--primary); }
.ncard__date span { font-size: .72rem; color: var(--muted); }
.ncard__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ncard__title { font-family: var(--display); font-size: 1.2rem; line-height: 1.35; }
.ncard__sum { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal); font-size: .92rem; }
.tag { display: inline-flex; align-self: flex-start; justify-self: start; font-size: .76rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.tag--event { background: #e9f1fc; border-color: #c6d8f1; color: #1d4f8f; }
.tag--vacancy { background: #fff1e3; border-color: #f6d1ae; color: #9a4b0b; }
.tag--notice { background: #f3eefb; border-color: #d9cbf0; color: #5a2d91; }
.tag--free { background: #e6f6ed; border-color: #b4dcc4; color: #13502f; }
.tag--print { background: #fff6dc; border-color: #ecd894; color: #7a5a06; }

/* ---------- Publications: 3D books ---------- */
.pubs { background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.pubs__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 85% 20%, rgba(31, 184, 102, .25), transparent 70%), radial-gradient(500px 400px at 10% 90%, rgba(240, 123, 33, .2), transparent 70%); }
.pubs .eyebrow { color: var(--gold); }
.pubs .section__sub { color: rgba(255, 255, 255, .7); margin-bottom: 1.6em; }
.pubs__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .pubs__grid { grid-template-columns: 1fr; } }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 40vw), 1fr)); gap: 40px 28px; }
.book { text-decoration: none; color: inherit; display: grid; gap: 16px; }
.book:hover { color: inherit; }
.book__3d { position: relative; display: block; aspect-ratio: 3 / 4.2; perspective: 1200px; }
.book__cover, .book__pages { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.2, .8, .2, 1); transform-origin: left center; }
.book__cover { z-index: 2; border-radius: 3px 10px 10px 3px; overflow: hidden; transform: rotateY(-22deg); box-shadow: inset 8px 0 10px -6px rgba(0, 0, 0, .45), 18px 22px 30px -10px rgba(0, 0, 0, .55); background: var(--primary); display: block; }
.book__pages { z-index: 1; left: 6px; right: -6px; top: 3%; bottom: 3%; border-radius: 0 8px 8px 0; background: repeating-linear-gradient(90deg, #fdfbf4 0 2px, #e9e4d6 2px 3px); transform: rotateY(-22deg) translateX(10px); }
.book:hover .book__cover { transform: rotateY(-4deg) translateY(-6px); }
.book:hover .book__pages { transform: rotateY(-4deg) translateX(4px) translateY(-6px); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__type { height: 100%; display: flex; flex-direction: column; padding: 20px 18px 18px 24px; color: #fff; background: linear-gradient(90deg, rgba(0, 0, 0, .25) 0 7px, transparent 7px), radial-gradient(circle at 80% 15%, rgba(244, 183, 64, .35), transparent 50%), linear-gradient(160deg, #1d7a50 0%, #0b2f20 100%); }
.book__type small { font-size: .74rem; opacity: .8; }
.book__type b { font-family: var(--display); font-size: 1.2rem; line-height: 1.25; margin-top: auto; }
.book__type i { font-style: normal; font-size: .72rem; opacity: .75; margin-top: 12px; letter-spacing: .2em; }
.book__type--lg b { font-size: 1.9rem; }
.book__meta { display: grid; gap: 8px; }
.book__meta b { font-weight: 600; line-height: 1.35; }
.book__price { display: flex; flex-wrap: wrap; gap: 6px; }
.pub { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(48px, 7vw, 88px); }
.pub__cover { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; aspect-ratio: 3 / 4.2; border-radius: 4px 14px 14px 4px; overflow: hidden; box-shadow: inset 10px 0 12px -8px rgba(0, 0, 0, .35), 30px 40px 60px -30px rgba(0, 0, 0, .55); transform: perspective(1200px) rotateY(-10deg); }
.pub__cover img { width: 100%; height: 100%; object-fit: cover; }
.pub__facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0 0 22px; }
.pub__facts dt { font-size: .8rem; color: var(--muted); }
.pub__facts dd { margin: 0; font-weight: 600; }
.buy { display: grid; gap: 18px; margin-top: 30px; }
.buy__opt { background: #fff; border-radius: var(--r-l); padding: 26px; box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.buy__opt h2 { font-size: 1.3rem; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { color: var(--accent); font-weight: 800; }
.buy__note { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: var(--r-s); padding: 12px 14px; margin: 0; }
@media (max-width: 760px) { .pub { grid-template-columns: 1fr; } .pub__cover { position: static; max-width: 260px; } }

/* ---------- Gallery ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.mosaic a, .masonry a { position: relative; border-radius: var(--r-m); overflow: hidden; display: block; box-shadow: var(--shadow-1); }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(6) { grid-column: span 2; }
.mosaic img, .masonry img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter .4s; }
.mosaic a:hover img, .masonry a:hover img { transform: scale(1.08); filter: brightness(.75); }
.mosaic__cap { position: absolute; inset: auto 0 0 0; padding: 14px; color: #fff; display: flex; gap: 8px; align-items: center; font-size: .88rem; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); transform: translateY(100%); transition: transform .35s; }
.mosaic a:hover .mosaic__cap { transform: none; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .mosaic a:nth-child(6) { grid-column: auto; } }
.masonry { columns: 4 240px; column-gap: 14px; }
.masonry a { margin-bottom: 14px; break-inside: avoid; }
.masonry img { height: auto; }

/* ---------- Videos ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.vidcard { margin: 0; }
.vidcard figcaption { display: grid; gap: 4px; margin-top: 14px; }
.vidcard figcaption b { font-family: var(--display); }
.vidcard figcaption span { color: var(--muted); font-size: .93rem; }
.vidcard figcaption small { color: var(--muted); font-size: .8rem; }
.yt iframe, .yt video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt--file { cursor: default; }
.yt__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: rgba(255, 255, 255, .5); background: linear-gradient(135deg, var(--night-2), var(--night-3)); }
.yt__ph .ic { width: 40px; height: 40px; }
.vsub { display: flex; justify-content: flex-end; margin: 0 0 24px; }
.yt { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--r-l); overflow: hidden; cursor: pointer; background: #000; display: block; box-shadow: var(--shadow-3d); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .6s, opacity .3s; }
.yt:hover img { transform: scale(1.05); opacity: 1; }
.yt__play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: var(--grad-warm); display: grid; place-items: center; color: #fff; animation: ring 2s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(240, 123, 33, .6); } 70% { box-shadow: 0 0 0 20px rgba(240, 123, 33, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 123, 33, 0); } }
.yt__play .ic { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Give ---------- */
.give { position: relative; overflow: hidden; color: #fff; padding: clamp(80px, 12vw, 150px) 0; isolation: isolate; background: var(--night); }
.give__bg { position: absolute; inset: -25% 0; z-index: -2; }
.give__bg img { width: 100%; height: 100%; object-fit: cover; }
.give__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(4, 23, 15, .95) 30%, rgba(4, 23, 15, .55)), radial-gradient(600px 300px at 80% 80%, rgba(240, 123, 33, .3), transparent); }
.give__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.give__title { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
.give__sub { font-size: 1.12rem; max-width: 46ch; color: rgba(255, 255, 255, .8); margin-bottom: 1.8em; }
.glasscard { padding: 28px; border-radius: var(--r-l); background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(16px); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); transform-style: preserve-3d; }
.glasscard h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; transform: translateZ(30px); }
.glasscard small { color: rgba(255, 255, 255, .6); }
.bank { margin: 0 0 10px; display: grid; }
.bank div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.bank div:last-child { border-bottom: 0; }
.bank dt { color: rgba(255, 255, 255, .6); font-size: .9rem; }
.bank dd { margin: 0; font-weight: 600; color: #fff; }
.bank--light div { border-color: var(--line); grid-template-columns: 1fr; gap: 0; padding: 10px 0; }
.bank--light dt { color: var(--muted); }
.bank--light dd { color: var(--ink); }
[data-copy] { cursor: copy; }
[data-copy].is-copied::after { content: " ✓ copied"; font-weight: 400; font-size: .8rem; color: var(--gold); }
@media (max-width: 860px) { .give__grid { grid-template-columns: 1fr; } .bank div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--night); color: rgba(255, 255, 255, .7); font-size: .95rem; overflow: hidden; isolation: isolate; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-warm); }
.footer__glow { position: absolute; z-index: -1; width: 600px; height: 600px; left: -200px; bottom: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(31, 184, 102, .25), transparent 65%); }
.footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin: 0 0 4px; }
.footer__cta p { margin: 0; color: var(--gold); font-weight: 600; }
.footer__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.home .footer__cta { display: none; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 56px 40px; }
.footer__about p { margin: 18px 0; }
.footer__h { font-size: .95rem; color: #fff; margin-bottom: 16px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__links li { display: flex; gap: .5em; align-items: flex-start; }
.footer__links .ic { margin-top: .25em; color: var(--gold); }
.footer a { color: rgba(255, 255, 255, .78); text-decoration: none; display: inline-flex; gap: .5em; align-items: center; transition: color .15s, transform .15s; }
.footer__links a:hover { color: #fff; transform: translateX(3px); }
.footer__addr { font-style: normal; margin-bottom: 14px; }
.social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.social a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); display: grid; place-items: center; transition: background .2s, transform .2s; }
.social a:hover { background: var(--grad-warm); border-color: transparent; transform: translateY(-3px) rotate(-6deg); color: #fff; }
.footer__base { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding-block: 20px 30px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-3d); opacity: 0; transform: translateY(20px) scale(.8); transition: .3s; pointer-events: none; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { color: #fff; transform: translateY(-3px); }
.totop svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop circle { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; }
.totop .ic { transform: rotate(180deg); }

/* ---------- Inner page banner ---------- */
.phero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--night); padding: calc(var(--nav-h) + clamp(56px, 9vw, 110px)) 0 clamp(56px, 8vw, 96px); }
.phero__bg { position: absolute; inset: -20% 0; z-index: -3; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(4, 23, 15, .95) 20%, rgba(4, 23, 15, .55)), linear-gradient(0deg, rgba(4, 23, 15, .7), transparent 50%); }
.phero .hero__orb--a { width: 320px; height: 320px; top: -80px; left: auto; right: 10%; opacity: .35; }
.phero__in { position: relative; }
.phero__title { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; max-width: 20ch; margin: 14px 0 .3em; color: #fff; }
.phero__sub { font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 60ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: rgba(255, 255, 255, .65); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs--dark { color: var(--muted); }
.crumbs--dark a:hover { color: var(--primary); }
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: clamp(48px, 7vw, 88px); }
.page--narrow { max-width: 880px; }
.page--wide { grid-template-columns: minmax(0, 1fr) 330px; }
.page__side { display: grid; gap: 20px; align-content: start; position: sticky; top: calc(var(--nav-h) + 20px); }
@media (max-width: 900px) { .page--wide { grid-template-columns: 1fr; } .page__side { position: static; } }
.sidecard { background: #fff; border-radius: var(--r-l); padding: 24px; box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.sidecard h2 { font-size: 1.15rem; }
.sidecard--accent { background: var(--night); color: #fff; border: 0; }
.sidecard--accent .link-arrow { color: var(--gold); }
.sidecard .btn { margin-bottom: 14px; }
.sidelist { list-style: none; margin: 0; padding: 0; display: grid; }
.sidelist a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding .2s, color .2s; }
.sidelist a:hover { color: var(--teal); padding-left: 6px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); }
.figure { margin: 0 0 24px; }
.figure img { border-radius: var(--r-l); width: 100%; box-shadow: var(--shadow-3d); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chips .chip { padding: 8px 18px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink-2); font-size: .92rem; transition: .2s; }
.chips .chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.chips .chip.is-on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 20px -10px var(--teal); }
.empty { padding: 48px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-l); color: var(--muted); }
.notice { display: flex; gap: 10px; align-items: flex-start; background: #fff7e0; border: 1px solid #ecd894; border-radius: var(--r-m); padding: 14px 16px; margin-top: 16px; }
.narrow-msg { max-width: 760px; padding-top: clamp(48px, 8vw, 96px); }
.big404 { font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; margin: 0; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.okmark .ic { width: 64px; height: 64px; color: var(--ok); }
.share { display: flex; align-items: center; gap: 8px; margin: 32px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.share span { font-weight: 600; margin-right: 6px; }
.share a, .share button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); cursor: pointer; transition: .2s; }
.share a:hover, .share button:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-2px); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.pager a.is-on { background: var(--grad); color: #fff; border-color: transparent; }
.search-inline { display: flex; gap: 8px; margin-bottom: 24px; }
.search-inline input { flex: 1; min-width: 0; padding: 13px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.results li { padding: 18px 20px; background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow-1); display: grid; gap: 4px; }
.results a { font-family: var(--display); font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.results p { margin: 0; color: var(--muted); }

/* ---------- Rich text ---------- */
.rte { overflow-wrap: break-word; }
.rte--page { font-size: 1.08rem; max-width: 74ch; }
.rte h2 { font-size: 1.8rem; margin-top: 1.6em; }
.rte h3 { font-size: 1.35rem; margin-top: 1.4em; }
.rte img { border-radius: var(--r-m); margin: 1em 0; }
.rte blockquote { margin: 1.4em 0; padding: 18px 24px; border-left: 4px solid var(--teal); background: #fff; border-radius: 0 var(--r-m) var(--r-m) 0; font-size: 1.12em; color: var(--ink); box-shadow: var(--shadow-1); }
.rte ul, .rte ol { padding-left: 1.4em; }
.rte li { margin: .3em 0; }
.rte li[data-list="bullet"] { list-style-type: disc; }
.rte li[data-list="ordered"] { list-style-type: decimal; }
.rte li[data-list="checked"], .rte li[data-list="unchecked"] { list-style: none; margin-left: -1.2em; }
.rte li[data-list="checked"]::before { content: "☑ "; }
.rte li[data-list="unchecked"]::before { content: "☐ "; }
.rte .ql-indent-1 { padding-left: 3em; } .rte .ql-indent-2 { padding-left: 6em; } .rte .ql-indent-3 { padding-left: 9em; }
.rte li.ql-indent-1 { margin-left: 1.5em; padding-left: 0; } .rte li.ql-indent-2 { margin-left: 3em; padding-left: 0; }
.rte .ql-align-center { text-align: center; } .rte .ql-align-right { text-align: right; } .rte .ql-align-justify { text-align: justify; }
.rte .ql-direction-rtl { direction: rtl; }
.rte pre { background: var(--night); color: #eef; padding: 14px; border-radius: var(--r-s); overflow-x: auto; }
.rte iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-m); }
.rte table { border-collapse: collapse; width: 100%; }
.rte td, .rte th { border: 1px solid var(--line); padding: 8px; }
.rte > :last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.formcard { background: #fff; border-radius: var(--r-l); padding: clamp(22px, 4vw, 40px); margin-top: 32px; box-shadow: var(--shadow-3d); border: 1px solid var(--line); }
.formcard__title { font-size: 1.6rem; }
.form__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 18px; margin-bottom: 18px; }
.field { grid-column: span 6; display: grid; gap: 6px; align-content: start; }
.field--half { grid-column: span 3; }
.field--third { grid-column: span 2; }
@media (max-width: 640px) { .field--half, .field--third { grid-column: span 6; } }
.field label { font-weight: 600; font-size: .92rem; }
.field abbr { color: var(--danger); text-decoration: none; }
.field input, .field select, .field textarea, .filters input, .filters select { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 139, 124, .15); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); background: #fffafa; }
.field__err { color: var(--danger); font-size: .86rem; margin: 0; }
.field__err:empty { display: none; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); }
.form__note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.form__done { margin-top: 14px; padding: 16px 18px; border-radius: var(--r-m); background: #e8f6ee; color: #13502f; font-weight: 500; }
.form__done.is-error { background: #fdecea; color: #8a1c13; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; align-items: center; }
.filters input { flex: 1 1 220px; width: auto; border-radius: 999px; }
.filters select { flex: 0 1 200px; width: auto; border-radius: 999px; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact .formcard { margin-top: 0; }
.contact__info { background: var(--night); color: rgba(255, 255, 255, .85); padding: 32px; border-radius: var(--r-l); box-shadow: var(--shadow-3d); }
.contact__info h2 { color: #fff; }
.contact__info a { color: #fff; }
.contact__info .link-arrow { color: var(--gold); }
.contact__info address { font-style: normal; font-size: 1.08rem; margin-bottom: 18px; }
.contact__person { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.iconlist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.iconlist li { display: flex; gap: 12px; align-items: center; }
.iconlist .ic { color: var(--gold); }
.map { margin-top: 40px; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-3d); }
.map iframe { width: 100%; height: 400px; border: 0; display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Donate ---------- */
.donate { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 56px); padding-block: clamp(44px, 7vw, 80px); align-items: start; }
.donate__main .h2:first-child { margin-top: 0; }
.donate__side { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 20px); }
@media (max-width: 920px) { .donate { grid-template-columns: 1fr; } .donate__side { position: static; } }
.causes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cause { cursor: pointer; }
.cause input { position: absolute; opacity: 0; }
.cause__body { display: grid; gap: 6px; height: 100%; padding: 18px; border: 2px solid var(--line); border-radius: var(--r-m); background: #fff; transition: .2s; }
.cause__body img { border-radius: var(--r-s); aspect-ratio: 16 / 9; object-fit: cover; }
.cause__body > span { color: var(--muted); font-size: .92rem; }
.cause:hover .cause__body { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.cause input:checked + .cause__body { border-color: var(--teal); box-shadow: 0 14px 30px -14px var(--teal); }
.cause input:focus-visible + .cause__body { outline: 3px solid var(--gold); }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad-warm); }
.giveform { background: #fff; border-radius: var(--r-l); padding: clamp(22px, 4vw, 36px); margin-top: 30px; box-shadow: var(--shadow-3d); }
.giveform .h2 { margin-top: 0; }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.amount { padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; transition: .2s; }
.amount:hover { transform: translateY(-2px); }
.amount.is-on { background: var(--grad); color: #fff; border-color: transparent; }
.sidecard--bank { background: var(--night); color: #fff; border: 0; }
.sidecard--bank .bank--light dt { color: rgba(255, 255, 255, .6); }
.sidecard--bank .bank--light dd { color: #fff; }
.sidecard--bank .bank--light div { border-color: rgba(255, 255, 255, .12); }
.sidecard--bank .muted { color: rgba(255, 255, 255, .6); }
.upi__qr { display: grid; place-items: center; background: #fff; padding: 8px; }
.upi__qr img, .upi__qr svg { width: 200px; height: 200px; }

/* ---------- Verify ---------- */
.vresult { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-l); margin: 8px 0 20px; border: 1.5px solid; }
.vresult .ic { width: 38px; height: 38px; }
.vresult b { font-size: 1.2rem; font-family: var(--display); }
.vresult p { margin: 4px 0 0; }
.vresult--ok { background: #e8f6ee; border-color: #8cc7a5; color: #0f4429; }
.vresult--bad { background: #fdecea; border-color: #eca59e; color: #7a1a12; }
.vcard { display: grid; grid-template-columns: 150px 1fr; gap: 26px; background: #fff; border-radius: var(--r-l); padding: 26px; box-shadow: var(--shadow-3d); }
.vcard img { width: 150px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-s); }
.vcard dl { margin: 0; display: grid; gap: 10px; }
.vcard div { display: grid; grid-template-columns: 120px 1fr; }
.vcard dt { color: var(--muted); }
.vcard dd { margin: 0; font-weight: 600; }
@media (max-width: 560px) { .vcard { grid-template-columns: 1fr; } .vcard div { grid-template-columns: 1fr; } }

/* ---------- Devotion archive & page (season colours live here) ---------- */
.dvfeature { position: relative; display: grid; gap: 8px; padding: 32px 36px; margin-bottom: 36px; border-radius: var(--r-l); background: var(--night); color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; box-shadow: var(--shadow-3d); }
.dvfeature::before { content: ""; position: absolute; z-index: -1; width: 400px; height: 400px; right: -100px; top: -150px; border-radius: 50%; background: radial-gradient(circle, var(--s), transparent 65%); opacity: .7; }
.dvfeature:hover { color: #fff; }
.dvfeature__label { font-size: .9rem; color: var(--gold); font-weight: 600; }
.dvfeature b { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.25; }
.dvfeature span:last-child { opacity: .85; }
.dvlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.dvlist a { display: grid; grid-template-columns: 80px 1fr; gap: 16px; align-items: center; padding: 14px 16px 14px 0; background: #fff; border-radius: var(--r-m); text-decoration: none; color: var(--ink); overflow: hidden; height: 100%; box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s; }
.dvlist a:hover { transform: translateY(-3px); box-shadow: var(--shadow-3d); }
.dvlist time { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-right: 4px solid var(--s); height: 100%; justify-content: center; }
.dvlist time b { font-family: var(--display); font-size: 1.9rem; line-height: 1; color: var(--s); }
.dvlist time span { font-size: .78rem; color: var(--muted); }
.dvlist time i { font-size: .72rem; font-style: normal; color: var(--muted); }
.dvlist__text { display: grid; gap: 2px; }
.dvlist__text b { font-family: var(--display); font-weight: 600; line-height: 1.35; }
.dvlist__text .muted { font-size: .9rem; }
.dvlist__ref { font-size: .85rem; color: var(--s); font-weight: 600; }
.dvpage { background: var(--s-tint); padding: 28px 0 80px; }
.dvtools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 24px; }
.dvtools .seg { background: #fff; border-color: var(--line); color: var(--ink); }
.dvtools__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dvtools .btn { padding: .65em 1.1em; font-size: .9rem; }
.dvpage .btn--season { --b: var(--s); }
.dvstage { display: flex; justify-content: center; }
.dvnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; max-width: 860px; margin: 32px auto 0; }
.dvnav a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.dvnav a small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.dvnav__next { justify-self: end; text-align: right; }
.dvnav__all { background: #fff; border-radius: 999px; padding: 9px 18px; box-shadow: var(--shadow-1); }

/* The devotion card itself — also used for the downloadable image. */
.dv { --pad: 1.6em; position: relative; width: 100%; max-width: 860px; background: #fff; color: #1d2a23; font-family: var(--dv-font), var(--sans); font-size: var(--dv-size, 19px); line-height: 1.7; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .45); display: flex; }
.dv__stole { flex: 0 0 22px; background: var(--s) var(--stole) center top / 22px 35px repeat-y; }
.dv__inner { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dv__head { display: flex; align-items: center; gap: .8em; padding: 1em var(--pad); border-bottom: 1px solid #e6ebe5; font-family: "Figtree", sans-serif; }
.dv__logo { width: 3.4em; height: 3.4em; object-fit: contain; flex: none; }
.dv__org { display: grid; line-height: 1.25; min-width: 0; }
.dv__org b { font-family: "Literata", serif; font-size: 1.35em; color: var(--s-deep); letter-spacing: .03em; }
.dv__org span { font-size: .78em; font-weight: 600; color: #2f3d35; }
.dv__org small { font-size: .62em; color: #6a786f; }
.dv__series-logo { margin-left: auto; height: 3.8em; width: auto; max-width: 42%; object-fit: contain; }
.dv__series { margin-left: auto; text-align: right; display: grid; }
.dv__series b { font-size: 1.15em; color: var(--s-deep); }
.dv__series small { font-size: .65em; color: #6a786f; }
.dv__band { display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1em; padding: .55em var(--pad); background: var(--s); color: var(--s-ink); font-family: "Figtree", sans-serif; font-size: .8em; font-weight: 600; }
.dv__season { margin-left: auto; padding: .1em .8em; border-radius: 99px; background: rgba(255, 255, 255, .2); }
.dv__main { padding: 1.3em var(--pad) 1.2em; }
.dv__topic { font-size: .78em; font-weight: 600; color: var(--s-deep); margin: 0 0 .3em; }
.dv__topic span { color: #6a786f; font-weight: 400; }
.dv__title { font-family: var(--dv-font), var(--serif); font-size: 1.85em; line-height: 1.3; color: #16261d; margin: 0 0 .35em; font-weight: 700; letter-spacing: 0; }
.dv__portion { font-size: .85em; margin: 0 0 .9em; color: #3a4a41; }
.dv__portion span { font-weight: 700; color: var(--s-deep); }
.dv__verse { margin: 0 0 1.1em; }
.dv__verse p { margin: 0; font-weight: 600; }
.dv__verse cite { display: block; font-style: normal; font-weight: 700; font-size: .85em; margin-top: .3em; }
.dv__verse--band { background: var(--s-tint); border-left: 5px solid var(--s); padding: .8em 1em; border-radius: 0 10px 10px 0; color: var(--s-deep); }
.dv__verse--quote { font-size: 1.15em; text-align: center; color: var(--s-deep); padding: .4em 1em; }
.dv__verse--quote cite { font-size: .75em; }
.dv__verse--plain { font-style: italic; color: #2f3d35; }
.dv__verse--plain p { font-weight: 400; }
.dv__content { display: flow-root; }
.dv__fig { margin: 0 0 1em; }
.dv__fig img { width: 100%; border-radius: 10px; }
.dv__fig--side { float: right; width: 38%; margin: .2em 0 .8em 1.2em; }
.dv__fig--left { float: left; margin: .2em 1.2em .8em 0; }
.dv__fig--small { width: 28%; }
.dv__fig--large { width: 50%; }
.dv__fig--side img { border-radius: 10px; aspect-ratio: 2 / 3; object-fit: cover; }
.dv__fig--middle { clear: both; margin: .4em 0 1em; }
.dv__fig--middle img { aspect-ratio: 16 / 9; object-fit: cover; }
/* Boxes beside a floating picture keep their own width so text flows full-width under the picture. */
.dv__body .rte, .dv__body { overflow: visible; }
.dv__verse--at-after_body, .dv__verse--at-bottom { clear: both; margin-top: 1em; }
.dv__prayer { clear: none; }
.dv__body p { margin: 0 0 .8em; }
.dv__body strong { color: #13241b; }
.dv__prayer { margin: .4em 0 0; padding: .9em 1.1em; border-radius: 10px; background: #fbf6e6; border: 1px solid #efe1b2; }
.dv__prayer h3 { font-family: "Figtree", sans-serif; font-size: .8em; font-weight: 700; color: #7a5a06; margin: 0 0 .3em; letter-spacing: 0; }
.dv__prayer p { margin: 0 0 .5em; }
.dv__prayer p:last-child { margin: 0; }
.dv__author { clear: both; margin: 1.1em 0 0; padding: .5em .9em; background: #fde9a8; display: inline-block; border-radius: 6px; font-family: "Figtree", sans-serif; font-size: .8em; }
.dv__author span { font-family: "Literata", serif; }
.dv__foot { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; padding: .9em var(--pad); background: var(--s-tint); border-top: 2px solid var(--s); font-family: "Figtree", sans-serif; font-size: .7em; line-height: 1.45; color: #2f3d35; text-align: center; }
.dv__foot b { display: block; color: var(--s-deep); font-size: 1.1em; margin-bottom: .2em; }
.dv .rte li[data-list="bullet"] { list-style: disc; }
@media (max-width: 640px) {
  .dv { --dv-size: 16px !important; --pad: 1.1em; }
  .dv__fig--side, .dv__fig--left { float: none; width: 100%; margin: 0 0 1em; }
  .dv__fig--side img { aspect-ratio: 4 / 3; }
  .dv__foot { grid-template-columns: 1fr; }
  .dv__series-logo { height: 2.8em; }
  .dv__stole { flex-basis: 12px; background-size: 12px 19px; }
}
.dv.dv--export { width: 1080px !important; max-width: none !important; --dv-size: 26px !important; --pad: 1.6em; border-radius: 0; box-shadow: none; }
.dv.dv--export .dv__fig--side { float: right; width: 38%; margin: .2em 0 .8em 1.2em; }
.dv.dv--export .dv__fig--left { float: left; margin: .2em 1.2em .8em 0; }
.dv.dv--export .dv__fig--small { width: 28%; }
.dv.dv--export .dv__fig--large { width: 50%; }
.dv.dv--export .dv__fig--side img { aspect-ratio: 2 / 3; }
.dv.dv--export .dv__foot { grid-template-columns: repeat(3, 1fr); }
.dv.dv--export .dv__stole { flex-basis: 30px; background-size: 30px 47px; }
.dv.dv--export .dv__series-logo { height: 3.8em; }
/* ---------- Devotion designs ---------- */
/* Modern */
.dv--t-modern { border-radius: 18px; }
.dv--t-modern .dv__stole { display: none; }
.dv--t-modern .dv__head { background: linear-gradient(120deg, var(--s-deep), var(--s)); border: 0; color: #fff; }
.dv--t-modern .dv__org b, .dv--t-modern .dv__series b { color: #fff; }
.dv--t-modern .dv__org span, .dv--t-modern .dv__org small, .dv--t-modern .dv__series small { color: rgba(255, 255, 255, .82); }
.dv--t-modern .dv__logo { background: #fff; border-radius: 50%; padding: .22em; }
.dv--t-modern .dv__series-logo { background: rgba(255, 255, 255, .92); border-radius: .5em; padding: .2em .4em; }
.dv--t-modern .dv__band { background: var(--s-tint); color: var(--s-deep); }
.dv--t-modern .dv__season { background: var(--s); color: var(--s-ink); }
.dv--t-modern .dv__title { font-size: 2.05em; color: var(--s-deep); }
.dv--t-modern .dv__title::after { content: ""; display: block; width: 2.6em; height: .16em; margin-top: .3em; border-radius: 99px; background: #e0b54a; }
.dv--t-modern .dv__verse { position: relative; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--s-deep), var(--s)); color: #fff; padding: .95em 1.2em .95em 2.5em; text-align: left; font-style: normal; }
.dv--t-modern .dv__verse::before { content: "“"; position: absolute; left: .35em; top: -.05em; font: 700 2.6em/1 "Playfair Display", serif; color: #e0b54a; }
.dv--t-modern .dv__verse p { font-weight: 600; }
.dv--t-modern .dv__verse cite { color: #f3d27a; }
.dv--t-modern .dv__fig img { border-radius: 16px; box-shadow: 0 .6em 1.4em -.7em rgba(0, 0, 0, .45); }
.dv--t-modern .dv__prayer { background: #fff8e6; border: 0; border-left: .3em solid #e0b54a; border-radius: 0 12px 12px 0; }
.dv--t-modern .dv__author { background: var(--s-deep); color: #fff; border-radius: 99px; padding: .45em 1.1em; }
.dv--t-modern .dv__foot { background: var(--s-deep); color: rgba(255, 255, 255, .86); border-top: .25em solid #e0b54a; }
.dv--t-modern .dv__foot b { color: #f3d27a; }
/* Elegant */
.dv--t-elegant { background: #fbf8f1; }
.dv--t-elegant .dv__stole { flex-basis: 8px; background: var(--s); }
.dv--t-elegant .dv__head { flex-direction: column; text-align: center; border: 0; padding-bottom: .3em; gap: .35em; }
.dv--t-elegant .dv__org b { color: #3b2f17; }
.dv--t-elegant .dv__series, .dv--t-elegant .dv__series-logo { margin: 0 auto; text-align: center; }
.dv--t-elegant .dv__band { justify-content: center; margin: 0 var(--pad); padding: .4em 0; background: transparent; color: #6b5a2e; border-top: 1px solid #d9cba6; border-bottom: 1px solid #d9cba6; letter-spacing: .04em; }
.dv--t-elegant .dv__season { margin-left: 0; background: var(--s-tint); color: var(--s-deep); }
.dv--t-elegant .dv__topic, .dv--t-elegant .dv__title, .dv--t-elegant .dv__portion { text-align: center; }
.dv--t-elegant .dv__title { font-size: 2em; color: #3b2f17; }
.dv--t-elegant .dv__title::after { content: "✦  ✦  ✦"; display: block; margin-top: .25em; font-size: .38em; letter-spacing: .3em; color: #c29a3a; }
.dv--t-elegant .dv__verse { text-align: center; background: transparent; border: 0; border-top: 1px solid #d9cba6; border-bottom: 1px solid #d9cba6; border-radius: 0; color: #5a4720; padding: .7em 1em; }
.dv--t-elegant .dv__verse p { font-style: italic; }
.dv--t-elegant .dv__fig img { border-radius: 3px; border: .35em solid #fff; box-shadow: 0 .25em .7em rgba(60, 40, 0, .18); }
.dv--t-elegant .dv__prayer { background: transparent; border: 1px solid #d9cba6; border-radius: 4px; }
.dv--t-elegant .dv__prayer h3 { text-align: center; color: #8a6a1c; }
.dv--t-elegant .dv__author { display: block; text-align: right; background: transparent; border-top: 1px solid #d9cba6; border-radius: 0; padding: .5em 0 0; }
.dv--t-elegant .dv__foot { background: transparent; border-top: 1px solid #d9cba6; }
.dv--t-elegant .dv__foot b { color: #8a6a1c; }
/* Minimal */
.dv--t-minimal .dv__stole { display: none; }
.dv--t-minimal .dv__head { border: 0; padding-bottom: .3em; }
.dv--t-minimal .dv__band { margin: 0 var(--pad); padding: .3em 0 .6em; background: transparent; color: #6a786f; border-bottom: 1px solid #e6ebe5; }
.dv--t-minimal .dv__season { background: var(--s-tint); color: var(--s-deep); }
.dv--t-minimal .dv__title { font-size: 2.3em; line-height: 1.15; }
.dv--t-minimal .dv__verse { background: transparent; border: 0; border-left: .18em solid var(--s); border-radius: 0; color: #2f3d35; padding: .15em 0 .15em 1em; text-align: left; }
.dv--t-minimal .dv__prayer { background: #f5f7f4; border: 0; }
.dv--t-minimal .dv__prayer h3 { color: var(--s-deep); }
.dv--t-minimal .dv__author { background: transparent; padding: 0; }
.dv--t-minimal .dv__foot { background: transparent; border-top: 1px solid #e6ebe5; }
.dv--t-minimal .dv__fig img { border-radius: 4px; }
/* Bold colour */
.dv--t-bold .dv__stole { display: none; }
.dv--t-bold .dv__head { background: var(--s); color: var(--s-ink); border: 0; }
.dv--t-bold .dv__org b, .dv--t-bold .dv__org span, .dv--t-bold .dv__org small, .dv--t-bold .dv__series b, .dv--t-bold .dv__series small { color: var(--s-ink); }
.dv--t-bold .dv__logo { background: #fff; border-radius: 50%; padding: .2em; }
.dv--t-bold .dv__band { background: var(--s-deep); color: #fff; }
.dv--t-bold .dv__main { background: linear-gradient(180deg, var(--s-tint), #fff 14em); }
.dv--t-bold .dv__title { font-size: 2.35em; font-weight: 800; line-height: 1.15; color: var(--s-deep); }
.dv--t-bold .dv__verse { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); padding: .9em var(--pad); border: 0; border-radius: 0; background: var(--s-deep); color: #fff; font-size: 1.08em; text-align: left; }
.dv--t-bold .dv__verse cite { color: #f3d27a; }
.dv--t-bold .dv__fig:not(.dv__fig--side) { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
.dv--t-bold .dv__fig:not(.dv__fig--side) img { border-radius: 0; }
.dv--t-bold .dv__prayer { background: var(--s-tint); border: 0; border-left: .35em solid var(--s); border-radius: 0; }
.dv--t-bold .dv__author { background: var(--s); color: var(--s-ink); border-radius: 0; }
.dv--t-bold .dv__foot { background: var(--s); color: var(--s-ink); border: 0; }
.dv--t-bold .dv__foot b { color: inherit; }

/* ---------- Devotion as fixed-size pages (A4, posts, status) ---------- */
.dvp { position: relative; overflow: hidden; background: #fff; }
.dv.dv--page { width: 100%; height: 100%; max-width: none; border-radius: 0; box-shadow: none; }
.dv--page .dv__inner { height: 100%; min-height: 0; }
.dv--page .dv__main { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.dv--page .dv__head, .dv--page .dv__band, .dv--page .dv__foot, .dv--page .dv__run, .dv--page .dv__pgfoot { flex: none; }
.dv--page .dv__fig--side { float: right; width: 38%; margin: .2em 0 .8em 1.2em; }
.dv--page .dv__fig--left { float: left; margin: .2em 1.2em .8em 0; }
.dv--page .dv__fig--small { width: 28%; }
.dv--page .dv__fig--large { width: 50%; }
.dv--page .dv__fig--side img { aspect-ratio: 2 / 3; max-height: var(--figmax, 60vh); }
.dv--page .dv__fig:not(.dv__fig--side) img { aspect-ratio: 16 / 9; width: 100%; max-height: var(--figmax, 40vh); object-fit: cover; }
.dv--page .dv__foot { grid-template-columns: repeat(3, 1fr); }
.dv--page .dv__stole { flex-basis: 22px; background-size: 22px 35px; }
.dv--page.dv--t-elegant .dv__stole { flex-basis: 8px; background-image: none; }
.dv--page .dv__series-logo { height: 3.8em; }
.dv--page .dv__main > .dv__content > :last-child { margin-bottom: 0; }
/* Running header & page numbers on pages after the first */
.dv__run { display: flex; align-items: center; gap: .6em; padding: .55em var(--pad); background: var(--s); color: var(--s-ink); font-family: "Figtree", sans-serif; font-size: .72em; font-weight: 600; }
.dv__run img { width: 2em; height: 2em; object-fit: contain; background: #fff; border-radius: 50%; padding: .12em; }
.dv__run span:last-child { margin-left: auto; opacity: .9; }
.dv__pgfoot { display: flex; justify-content: space-between; gap: 1em; padding: .45em var(--pad); border-top: 1px solid #e6ebe5; font-family: "Figtree", sans-serif; font-size: .62em; color: #6a786f; }
.dv__more { color: var(--s-deep); font-weight: 600; }
/* Page templates */
.dv--cover .dv__main { display: flex; flex-direction: column; }
.dv--cover .dv__content { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.dv--cover .dv__cover-fig { flex: 1 1 auto; min-height: 4em; margin: .4em 0 1em; }
.dv--cover .dv__cover-fig img { width: 100%; height: 100%; max-height: none !important; object-fit: cover; border-radius: 12px; aspect-ratio: auto; }
.dv--cover .dv__title { font-size: 2.6em; line-height: 1.15; }
.dv--cover .dv__verse { font-size: 1.12em; }
.dv__hero { margin: 0 0 1em; }
.dv__hero img { width: 100%; height: var(--herohe, 16em); object-fit: cover; border-radius: 12px; max-height: none !important; }
.dv__verse--big { font-size: 1.35em; text-align: center; padding: 1em 1.2em; }
.dv--back .dv__main { display: grid; place-content: center; text-align: center; gap: .9em; }
.dv__back-logo { width: 7em; height: 7em; object-fit: contain; margin: 0 auto; }
.dv__back-name { font: 700 1.5em/1.25 "Literata", serif; color: var(--s-deep); margin: 0; }
.dv__back-lines { font-family: "Figtree", sans-serif; font-size: .82em; color: #2f3d35; white-space: pre-line; margin: 0; }
.dv__back-qr { width: 8em; height: 8em; margin: .4em auto 0; padding: .4em; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px #e6ebe5; }
.dv__back-qr svg, .dv__back-qr img, .dv__back-qr canvas { width: 100%; height: 100%; display: block; }
.dv__back-cap { font-family: "Figtree", sans-serif; font-size: .7em; color: #6a786f; margin: 0; }
.export-host { position: fixed; left: -20000px; top: 0; z-index: -1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--night); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 2500; box-shadow: var(--shadow-3d); font-weight: 500; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1500; background: rgba(4, 16, 11, .95); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; } }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; padding: 24px 0; }
.lightbox video { max-height: 82vh; max-width: 100%; border-radius: 10px; background: #000; }
.lightbox img[hidden], .lightbox video[hidden] { display: none; }
.lightbox img { max-height: 82vh; max-width: 100%; object-fit: contain; border-radius: 10px; animation: zoomin .3s ease; }
@keyframes zoomin { from { transform: scale(.94); opacity: .4; } }
.lightbox figcaption { color: #dfe9e2; }
.lightbox button { border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; justify-self: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 600px) { .lightbox { grid-template-columns: 44px 1fr 44px; } .lightbox button { width: 40px; height: 40px; } }

.vban { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; background: var(--night); overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 40px) 0 120px; }
.vban__media { position: absolute; inset: -12% 0; z-index: -3; will-change: transform; }
.vban__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vban__shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(120% 90% at 20% 60%, rgba(4, 23, 15, .82) 0%, rgba(4, 23, 15, .45) 55%, rgba(4, 23, 15, .2) 100%), linear-gradient(0deg, rgba(4, 23, 15, .9) 0%, transparent 30%), linear-gradient(180deg, rgba(4, 23, 15, .55) 0%, transparent 25%); }
.vban--light .vban__shade { opacity: .6; }
.vban--dark .vban__shade { background: rgba(4, 23, 15, .78); }
.vban--none .vban__shade { background: linear-gradient(0deg, rgba(4, 23, 15, .55) 0%, transparent 25%); }
.vban__content { position: relative; max-width: 1200px; }
.vban__title { font-size: clamp(2.5rem, 6.2vw, 5.2rem); font-weight: 800; line-height: 1; letter-spacing: -.045em; margin: 22px 0 16px; color: #fff; text-shadow: 0 10px 40px rgba(0, 0, 0, .4); max-width: 16ch; }
.vban__text { font-size: clamp(1.02rem, 1.5vw, 1.25rem); color: rgba(255, 255, 255, .86); max-width: 56ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.vban__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }
.vban__ctrl { position: absolute; left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); bottom: 32px; display: flex; gap: 10px; z-index: 2; }
.vban__btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(12px); cursor: pointer; transition: background .2s, transform .2s; }
.vban__btn:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.vban__btn:focus-visible { outline: 3px solid var(--accent, #f59e0b); outline-offset: 3px; }
.vban__btn .ic { width: 20px; height: 20px; }
.vban__btn .vban__off { display: none; }
.vban.is-paused [data-vban-play] .vban__on { display: none; }
.vban.is-paused [data-vban-play] .vban__off { display: inline; }
.vban [data-vban-sound] .vban__on { display: none; }
.vban [data-vban-sound] .vban__off { display: inline; }
.vban.is-sound [data-vban-sound] .vban__on { display: inline; }
.vban.is-sound [data-vban-sound] .vban__off { display: none; }
.vban.is-error .vban__ctrl { display: none; }
.vban__down { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); color: rgba(255, 255, 255, .8); z-index: 2; animation: vban-bob 2s ease-in-out infinite; }
.vban__down .ic { width: 30px; height: 30px; }
@keyframes vban-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@media (max-width: 640px) {
  .vban { padding-bottom: 130px; }
  .vban__ctrl { left: 16px; bottom: 24px; }
  .vban__down { display: none; }
}

.rte--page + .contact, .rte--page + .form-card { margin-top: 40px; }

/* ---------- Albums ---------- */
.albumgroup { margin-top: 8px; }
.albumgroup + .albumgroup { margin-top: 56px; }
.albumgroup__title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.albumgroup__title a { font-family: var(--sans, inherit); font-size: .92rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 34px 26px; }
.album { display: grid; gap: 16px; text-decoration: none; color: var(--ink); }
.album__stack { position: relative; display: block; aspect-ratio: 4 / 3; margin: 10px 10px 0 0; }
.album__cover, .album__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-m, 14px); }
.album__cover { box-shadow: 0 22px 40px -20px rgba(4, 23, 15, .55); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; }
.album__layer { border: 3px solid #fff; box-shadow: 0 10px 22px -14px rgba(4, 23, 15, .5); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.album__layer--1 { transform: translate(6px, -6px) rotate(2deg); }
.album__layer--2 { transform: translate(10px, -10px) rotate(4deg); }
.album__layer--3 { transform: translate(14px, -14px) rotate(6deg); }
.album:hover .album__cover, .album:focus-visible .album__cover { transform: translateY(-6px) scale(1.01); box-shadow: 0 30px 50px -22px rgba(4, 23, 15, .65); }
.album:hover .album__layer--1 { transform: translate(14px, -12px) rotate(4deg); }
.album:hover .album__layer--2 { transform: translate(22px, -18px) rotate(7deg); }
.album:hover .album__layer--3 { transform: translate(30px, -24px) rotate(10deg); }
.album__count { position: absolute; left: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border-radius: 999px; background: rgba(4, 23, 15, .72); color: #fff; font-size: .8rem; font-weight: 600; backdrop-filter: blur(6px); }
.album__count .ic { width: 14px; height: 14px; }
.album__body { display: grid; gap: 4px; }
.album__title { font-family: var(--display); font-size: 1.08rem; line-height: 1.35; }
.album__meta { color: var(--muted); font-size: .84rem; }
.album__open { display: inline-flex; gap: 6px; align-items: center; color: var(--primary); font-weight: 600; font-size: .88rem; }
.album__open .ic { width: 15px; height: 15px; transition: transform .25s; }
.album:hover .album__open .ic { transform: translateX(4px); }
.album:focus-visible { outline: 3px solid var(--accent, #f59e0b); outline-offset: 6px; border-radius: 14px; }
.albumbar { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 26px; color: var(--muted); font-size: .92rem; }
.albumbar > span, .albumbar > a { display: inline-flex; gap: 7px; align-items: center; }
.albumbar a { color: var(--primary); font-weight: 600; text-decoration: none; }
.albumbar .ic { width: 16px; height: 16px; }
.albumbar .share { margin: 0 0 0 auto; }
.masonry a.is-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 23, 15, .5), transparent 50%); pointer-events: none; }
.masonry__play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: var(--grad-warm); display: grid; place-items: center; color: #fff; z-index: 1; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.masonry__play .ic { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }

/* ---------- FAQ ---------- */
.faqpage { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.faqpage__ask { position: sticky; top: calc(var(--nav-h) + 24px); }
.faqpage__ask .formcard { margin-top: 0; }
@media (max-width: 980px) { .faqpage { grid-template-columns: 1fr; } .faqpage__ask { position: static; } }
.faqsearch { display: flex; gap: 10px; margin-bottom: 20px; }
.faqsearch input { flex: 1; border-radius: 999px; }
.chips .chip small { opacity: .7; font-weight: 500; }
.faqlist { display: grid; gap: 12px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m, 14px); box-shadow: 0 10px 30px -22px rgba(4, 23, 15, .45); transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: color-mix(in srgb, var(--primary) 35%, transparent); box-shadow: 0 18px 40px -24px rgba(4, 23, 15, .5); }
.faq summary { list-style: none; display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--accent, #f59e0b); outline-offset: 2px; border-radius: 12px; }
.faq__q { font-family: var(--display); font-weight: 600; font-size: 1.06rem; line-height: 1.4; }
.faq__ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2, #eef4f0); color: var(--primary); transition: transform .3s; }
.faq[open] .faq__ic { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq__a { padding: 0 22px 20px; }
.faq__a .rte > :first-child { margin-top: 0; }
.faq__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; color: var(--muted); font-size: .86rem; }
.faq__meta span { display: inline-flex; gap: 6px; align-items: center; }
.faq__meta .ic { width: 15px; height: 15px; }
.faqhome { background: var(--surface-2, #f2f6f3); }
.faqhome__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .faqhome__grid { grid-template-columns: 1fr; gap: 28px; } }
.dvsub { max-width: 760px; margin: 40px auto 0; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .nav-wrap, .footer, .dvtools, .dvnav, .crumbs, .share, .skip, .lightbox, .totop, .progress-line, .loader { display: none !important; }
  body, .dvpage { background: #fff; padding: 0; }
  .dv { box-shadow: none; max-width: none; }
  .dv * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
