/* Scoped home/course visual delta; no lesson or assessment selectors. */
/* R1 (founder refinements 2026-11-27): Earth larger (1040→1150 px) and less veiled, so it reads as the protagonist behind the title. */
body.sal-brand-home .xp-hero{background:linear-gradient(90deg,#071521f5 0%,#081b2bc2 42%,#07192366 100%),linear-gradient(0deg,#071921 1%,transparent 35%),var(--sal-brand-earth,none) right 4% center/min(92vw,1150px) auto no-repeat,#071521}
body.sal-brand-home .xp-hero-inner{padding-top:96px}
body.sal-brand-home .xp-course.mar:before{background-image:var(--sal-brand-ocean,linear-gradient(145deg,#0a5e8c,#07243d));filter:none}
body.sal-brand-home .xp-course.mar:after{background:linear-gradient(0deg,#061b32c7 3%,#082d4cb0 55%,#075d8d19 100%)}
body.sal-brand-home .xp-course.env:after{background:linear-gradient(0deg,#172b25c7 3%,#39442baa 55%,#775b1d1a 100%)}
body.sal-brand-home .xp-labs-image{background:linear-gradient(0deg,#09263770,#172e3820),var(--sal-brand-lab,linear-gradient(130deg,#485567,#182734)) center/cover}
body.sal-brand-home .sal-brand-expansion-note{margin:1.4rem 0 0;color:#c5dcd4;font-size:.95rem;max-width:75ch}
body.sal-brand-course[data-brand-course="biology"]{--sal-course-image:url('media/forest.webp');--sal-course-shade:#123b32}
body.sal-brand-course[data-brand-course="environmental"]{--sal-course-image:url('media/wetland.webp');--sal-course-shade:#3b432c}
body.sal-brand-course[data-brand-course="marine"]{--sal-course-image:var(--sal-brand-ocean,none);--sal-course-shade:#103c61}
body.sal-brand-course[data-brand-course]{background:linear-gradient(90deg,#071c26f4,var(--sal-course-shade)),var(--sal-course-image) center top/cover fixed}
body.sal-brand-course[data-brand-course] .panel:first-child{background:linear-gradient(100deg,#082533f0, #0f273b8f),var(--sal-course-image) center/cover,var(--sal-course-shade)}
@media(max-width:720px){body.sal-brand-home .xp-hero{background:linear-gradient(0deg,#071921 2%,#071521b5 62%,#07152144),var(--sal-brand-earth,none) center top/100% auto no-repeat,#071521}body.sal-brand-home .xp-hero-inner{padding-top:76px}body.sal-brand-course[data-brand-course]{background-attachment:scroll}}
@media print{body.sal-brand-home .xp-hero{background:#fff!important;color:#111!important}}

body.sal-brand-home .xp-hero{isolation:isolate;overflow:hidden;background:#071521}
/* 0.2.8 round 4 item 1: the 30 s -4deg..+5deg rotation moved ~0.14 deg/s, so
   the founder (rightly) reported no movement. Replaced with a visible slow
   breathe: the Earth layer zooms 1 -> 1.08 -> 1 over 18 s, looped. The
   ::before layer is inset -2%, so the zoom never exposes an edge. Pausing
   (entry-motion + prefers-reduced-motion) is unchanged below. The old
   :before radial (line 5) was dead — this ::before background shorthand
   overrides it — so it is removed, not moved. The live veil over the Earth
   was the ::after radial below (0.15 -> 0.06); the dark gradient on the
   LEFT (title side) is kept so the title stays legible. */
body.sal-brand-home .xp-hero::before{content:"";position:absolute;inset:-2%;z-index:-2;background:var(--sal-brand-earth) right 4% center/min(92vw,1150px) auto no-repeat;transform-origin:70% 50%;animation:sal-earth-breathe 18s ease-in-out infinite}
body.sal-brand-home .xp-hero::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 80% 40%,#3068900f,transparent 65%),linear-gradient(90deg,#071521ed,transparent 87%)}
@keyframes sal-earth-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
body.sal-brand-home.sal-entry-motion .xp-hero::before{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){body.sal-brand-home .xp-hero::before{animation-play-state:paused}}
/* 0.2.9 round 5 item 2: the global *{animation:none} rule in sal-premium.css
   does not reach ::before layers (the universal selector never matches a
   pseudo-element), so the card motions need their own reduced-motion kill.
   !important because the per-course animation rules outrank this selector. */
@media(prefers-reduced-motion:reduce){body.sal-brand-home .xp-course::before{animation:none!important}}
@media(max-width:650px){body.sal-brand-home .xp-hero::before{background-position:center top;background-size:100% auto;transform-origin:50% 25%}}
/* 0.2.9 round 5 item 2: ambient motion on the course cards, one per course.
   CSS only, subtle, pausable. Respects prefers-reduced-motion via the global
   rule in sal-premium.css; paused while .sal-entry-motion, like the Earth.
   Biology = gentle bamboo sway (slow drift of the forest photo).
   Environmental = slow falling leaves (sparse leaf tile drifting down over
   the wetland photo). Marine = moving water shimmer (soft light band
   sweeping across the reef photo). No new assets, no flashes. */
body.sal-brand-home .xp-course.bio::before{animation:sal-card-sway 26s ease-in-out infinite alternate}
@keyframes sal-card-sway{from{transform:scale(1.06) translateX(-1.2%)}to{transform:scale(1.06) translateX(1.2%)}}
body.sal-brand-home .xp-course.env::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23bfe6a8' fill-opacity='.28'%3E%3Cpath d='M28 18c10 2 16 10 15 20-9 1-16-5-15-20z'/%3E%3Cpath d='M84 62c10 2 16 10 15 20-9 1-16-5-15-20z'/%3E%3Cpath d='M52 92c8 2 13 8 12 16-7 1-13-4-12-16z'/%3E%3C/g%3E%3C/svg%3E"),url('media/wetland.webp');background-size:120px auto,cover;background-repeat:repeat,no-repeat;animation:sal-leaves-fall 36s linear infinite}
@keyframes sal-leaves-fall{from{background-position:0 -140px,center}to{background-position:0 140px,center}}
body.sal-brand-home .xp-course.mar::before{background-image:linear-gradient(115deg,transparent 0%,transparent 40%,rgba(255,255,255,.09) 50%,transparent 60%,transparent 100%),var(--sal-brand-ocean,linear-gradient(145deg,#0a5e8c,#07243d));background-size:300% 100%,cover;background-repeat:no-repeat,no-repeat;animation:sal-water-shimmer 26s ease-in-out infinite alternate}
@keyframes sal-water-shimmer{from{background-position:0% 0,center}to{background-position:100% 0,center}}
body.sal-brand-home.sal-entry-motion .xp-course::before{animation-play-state:paused}
