/**
 * RAG elephant scene (page-rag template + RG00 video).
 * Logical canvas 1280x720 (desktop) or 720x1280 (shorts), scaled by rag.js.
 */
@font-face {
	font-family: "RAG Manrope";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(fonts/manrope-latin.woff2) format("woff2");
}

.rag-wrap {
	--rag-bg: #faf6ee;
	--rag-ink: #1b2e4b;
	--rag-muted: #5f6b7a;
	--rag-teal: #2aa3a8;
	--rag-coral: #f27c5f;
	--rag-navy: #1b2e4b;
	--rag-paper: #f3ede1;
	font-family: "RAG Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--rag-ink);
}
.rag-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rag-bg); }
.rag-stage.is-sh { aspect-ratio: 9 / 16; }
.rag-canvas { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden;
	background: radial-gradient(90% 80% at 50% 45%, #fffdf8, var(--rag-bg)); }
.is-sh .rag-canvas { width: 720px; height: 1280px; }
.rag-canvas * { box-sizing: border-box; margin: 0; }
.rag-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* text layers */
.rag-txt { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.rag-kicker { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--rag-muted); font-weight: 600; }
.rag-h { font-size: 46px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.rag-h em { font-style: normal; color: var(--rag-teal); }
.rag-sub { font-size: 19px; color: var(--rag-muted); margin-top: 10px; }
.rag-sub b { color: var(--rag-ink); }
.rag-t1, .rag-t2, .rag-t3, .rag-t4, .rag-t5, .rag-tp { top: 34px; }
.rag-cta { top: auto; bottom: 34px; }
.rag-cta { --ring: 0; }
.rag-cta .rag-btn { display: inline-flex; align-items: center; gap: 14px; padding: 15px 28px 15px 16px; border-radius: 999px; background: #ff0000; color: #fff; font-weight: 800; font-size: 25px; letter-spacing: .01em;
	box-shadow: 0 0 0 calc(var(--ring) * 40px) rgba(255, 0, 0, calc(var(--ring) * 1.2)), 0 16px 36px rgba(255, 0, 0, .45); }
.rag-cta .rag-btn i { width: 40px; height: 28px; border-radius: 8px; background: #fff; position: relative; }
.rag-cta .rag-btn i::after { content: ""; position: absolute; left: 15px; top: 7px; border: 7px solid transparent; border-left: 12px solid #ff0000; border-right: 0; }
.rag-cta .rag-handle { margin-top: 10px; font-size: 16px; color: var(--rag-muted); letter-spacing: .04em; }
.rag-cta .rag-handle b { color: var(--rag-ink); }

.is-sh .rag-t1, .is-sh .rag-t2, .is-sh .rag-t3, .is-sh .rag-t4, .is-sh .rag-t5, .is-sh .rag-tp { top: 80px; padding: 0 30px; }
.is-sh .rag-h { font-size: 46px; }
.is-sh .rag-sub { font-size: 20px; }
.is-sh .rag-kicker { font-size: 16px; }
.is-sh .rag-cta { bottom: 56px; }
.is-sh .rag-cta .rag-btn { font-size: 32px; padding: 20px 34px 20px 20px; }
.is-sh .rag-cta .rag-handle { font-size: 20px; }

/* page: labels on hover */
.rag-stage.is-live .rag-hit { cursor: help; }
.rag-tip { position: absolute; z-index: 5; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.4; max-width: 260px; background: rgba(255, 255, 255, .92);
	border: 1px solid rgba(42, 163, 168, .35); box-shadow: 0 12px 28px rgba(27, 46, 75, .15); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.rag-tip.on { opacity: 1; transform: none; }
.rag-tip b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rag-teal); margin-bottom: 3px; }
.is-sh .rag-tip { font-size: 22px; max-width: 460px; }
.is-sh .rag-tip b { font-size: 16px; }

/* page shell */
.rag-page-intro { max-width: 900px; margin: 0 auto; padding: 40px 24px 0; text-align: center; }
.rag-page-intro .rag-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.rag-page-intro .rag-chips span { font: 600 13px/1 "RAG Manrope", sans-serif; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid #e7dfcf; color: var(--rag-ink); }
.rag-page-intro .rag-chips span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--rag-teal)); margin-right: 8px; vertical-align: 1px; }
.rag-tp { height: 160px; }
.rag-tp .rag-ps { position: absolute; left: 0; right: 0; opacity: 0; }
.is-sh .rag-tp { height: 230px; }
.rag-sub-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 24px 14px 14px; border-radius: 999px; background: #ff0000; color: #fff !important; text-decoration: none; font: 800 18px "RAG Manrope", sans-serif;
	box-shadow: 0 14px 30px rgba(255, 0, 0, .35); animation: rag-beat 2.4s ease-in-out infinite; }
.rag-sub-btn i { width: 34px; height: 24px; border-radius: 7px; background: #fff; position: relative; }
.rag-sub-btn i::after { content: ""; position: absolute; left: 13px; top: 6px; border: 6px solid transparent; border-left: 10px solid #ff0000; border-right: 0; }
.rag-sub-btn:hover { background: #e00000; }
@keyframes rag-beat { 0%, 70%, 100% { box-shadow: 0 14px 30px rgba(255, 0, 0, .35), 0 0 0 0 rgba(255, 0, 0, .45); } 85% { box-shadow: 0 14px 30px rgba(255, 0, 0, .35), 0 0 0 14px rgba(255, 0, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .rag-sub-btn { animation: none; } }
@media (prefers-reduced-motion: reduce) { .rag-tip { transition: none; } }

/* page head under the scene: kicker, H1 (post title), lead, data-colour bar */
.rag-page-intro { padding-bottom: 36px; }
.rag-head { padding: 8px 24px 0; margin-bottom: 36px; }
.rag-head__kicker { margin: 0 0 10px; font: 700 13px/1 "RAG Manrope", sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--rag-teal); }
.rag-head .rag-head__title { margin: 0; font-family: "RAG Manrope", sans-serif; font-weight: 800; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.025em; color: var(--rag-navy); }
.rag-head .rag-head__lead { margin-top: 16px; margin-bottom: 0; font: 400 clamp(17px, 1.6vw, 20px)/1.55 "RAG Manrope", sans-serif; color: var(--rag-muted); }
.rag-head__lead b { color: var(--rag-ink); }
.rag-head__bar { display: flex; gap: 6px; margin: 22px 0 8px; }
.rag-head__bar i { height: 5px; border-radius: 3px; background: var(--rag-teal); width: 72px; }
.rag-head__bar i:nth-child(2) { background: var(--rag-coral); width: 44px; }
.rag-head__bar i:nth-child(3) { background: #3a6ea5; width: 24px; }
