/* BGPer front page sections. Loaded only on the front page, after bgper-site.css (tokens, header, footer, buttons). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ambient light */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient::before {
  content: ""; position: absolute; width: 900px; height: 900px; left: 55%; top: -300px;
  background: radial-gradient(circle, rgba(31,108,159,0.06), transparent 60%);
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-260px, 220px); } }
main, header, footer { position: relative; z-index: 1; }


h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 400; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 32px 0 0; overflow: hidden; border-bottom: 1px solid var(--line); }
/* desktop: a compact stage (art capped at ~420px) so the next section shows above the fold */
@media (min-width: 901px) {
  .hero { --art-h: clamp(300px, 29vw, 420px); padding: 0; }
  .slide { padding: 44px 0 40px; }
  .hero .display { font-size: clamp(40px, 4.4vw, 60px); max-width: 11em; margin: 18px 0 18px; }
  .hero .net-stage, .hero .shot-collage, .hero .photo { aspect-ratio: auto; height: var(--art-h); }
  .hero .shot-window img { max-height: calc(var(--art-h) - 34px); object-fit: cover; object-position: top left; }
  .hero .hero-actions { margin-top: 28px; }
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .display { margin: 22px 0 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* carousel: slides share one grid cell so height = tallest slide */
.slides { display: grid; touch-action: pan-y; }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center;
  visibility: hidden; pointer-events: none; transition: visibility 0s .6s;
}
.slide.is-active { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.slide .s-in { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.slide.is-active .s-in { opacity: 1; transform: none; transition-duration: .8s; transition-delay: calc(120ms + var(--k) * 90ms); }
.slide .visual { opacity: 0; transform: scale(.97) translateX(24px); transition: opacity .6s var(--ease), transform .8s var(--ease); will-change: transform, opacity; }
.slide.is-active .visual { opacity: 1; transform: none; transition-delay: .1s; }
.slide.leaving .visual { transform: scale(.98) translateX(-24px); }

.shot-collage { position: relative; aspect-ratio: 1531 / 994; }
.shot-collage img { width: 100%; height: 100%; object-fit: contain; }
.shot-window { margin: 0; box-shadow: var(--shadow-rest); }
.shot-window img { width: 100%; }
.photo { margin: 0; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--bone); }
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active .photo img { transform: scale(1); }
.photo figcaption { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 6px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); font: 400 12px/1 var(--mono); color: var(--ink); }

/* tab row: named cells, the active one lifted onto the surface; counter and arrows sit in the last cell */
.slider-ui { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--line); }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* a cell is the tab button with the arrow link over its corner: the button picks the slide, the arrow opens its page */
.tabs .tab { position: relative; display: grid; border-left: 1px solid var(--line); }
.tabs button {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-height: 72px; padding: 16px 48px 16px 20px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: 500 15px/1.3 var(--sans); letter-spacing: -0.01em; color: var(--muted); transition: color .2s, background .2s;
}
.tabs .tab:first-child { border-left: 0; }
.tabs button:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); }
.tab-desc { font: 400 11px/1.4 var(--mono); letter-spacing: 0; color: var(--muted); }
.tab-go { position: absolute; right: 8px; top: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; font-size: 15px; color: var(--accent); opacity: 0; transition: opacity .2s, background .2s; }
.tab-go i { transition: transform .3s var(--ease); }
.tab:hover .tab-go, .tabs button[aria-selected="true"] + .tab-go, .tab-go:focus-visible { opacity: 1; }
.tab-go:hover { background: var(--blue-bg); }
.tab-go:hover i { transform: translate(1px, -1px); }
.tabs .bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; overflow: hidden; }
.tabs .bar b { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.tabs button.done .bar b { transform: scaleX(1); background: var(--line-strong); }
/* autoplay progress: a CSS animation (no per-frame script); its end advances the slide */
.tabs button[aria-selected="true"] .bar b { animation: tabfill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .tabs .bar b { animation-play-state: paused; }
@keyframes tabfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-ctrl { display: flex; align-items: center; gap: 20px; padding-left: 24px; border-left: 1px solid var(--line); }
.slide-count { font: 400 11px/1 var(--mono); color: var(--muted); }
.arrows { display: flex; gap: 8px; }
.arrows .icon-btn { width: 40px; height: 40px; transition: border-color .2s, transform .15s var(--ease); }
.arrows .icon-btn:hover { border-color: var(--line-strong); }
.arrows .icon-btn:active { transform: scale(.96); }
.net-stage { position: relative; aspect-ratio: 1 / 0.92; }
.net-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the welcome-slide globe from the old site (uploads/2023/02/右2.png); the route network draws over it */
.net-stage .globe {
  position: absolute; left: 50%; top: 50%; height: 94%; width: auto; max-width: 100%; object-fit: contain;
  transform: translate(-50%, -50%); opacity: .75;
  animation: globe 14s ease-in-out infinite alternate; will-change: transform;
}
.slide:not(.is-active) .globe { animation-play-state: paused; }
@keyframes globe { to { transform: translate(-50%, -52%) scale(1.03); } }
@media (max-width: 900px) {
  .slide { grid-template-columns: 1fr; gap: 28px; align-content: start; padding-bottom: 32px; }
  .net-stage { aspect-ratio: 1 / 0.8; }
  .tabs button { padding: 14px 40px 14px 14px; font-size: 14px; }
  .tab-go { right: 4px; top: 6px; }
  .slide-count { display: none; }
  .hero-ctrl { padding-left: 14px; }
}
@media (max-width: 640px) {
  .slider-ui { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs button { min-height: 62px; padding: 12px 36px 12px 12px; font-size: 13px; }
  .tabs .tab:nth-child(3) { border-left: 0; }
  .tabs .tab:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tab-go { right: 2px; top: 4px; }
  .hero-ctrl { justify-content: flex-end; padding: 10px 0; border-left: 0; border-top: 1px solid var(--line); }
  .arrows .icon-btn { width: 36px; height: 36px; }
}

/* ---------- tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 9999px; padding: 4px 10px; font: 500 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tag.blue { background: var(--blue-bg); color: var(--accent); }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.green { background: var(--green-bg); color: var(--green); }
.tag.yellow { background: var(--yellow-bg); color: var(--yellow); }

/* ---------- segmented bar (About jump links, Tools jump links, Partners region filter) ----------
   A frosted capsule of links or buttons; the ink .seg-bar-pill slides under the active one. Each page's
   script moves the pill (--x, --w) and marks the active item .is-current or aria-pressed="true". */
.seg-bar {
  position: relative; display: flex; width: max-content; max-width: 100%; gap: 2px; padding: 4px;
  border: 1px solid var(--line); border-radius: 9999px;
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: var(--shadow-rest);
}
.seg-bar > a, .seg-bar > button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border: 0; border-radius: 9999px; background: none; color: var(--muted); font: 500 14px/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: color .3s var(--ease), transform .15s var(--ease);
}
.seg-bar > * i { font-size: 15px; }
.seg-bar > a:hover, .seg-bar > button:hover { color: var(--ink); }
.seg-bar > .is-current, .seg-bar > [aria-pressed="true"] { color: #fff; }
.seg-bar > .is-current:hover, .seg-bar > [aria-pressed="true"]:hover { color: #fff; }
.seg-bar > a:active, .seg-bar > button:active { transform: scale(.96); }
.seg-bar > a:focus-visible, .seg-bar > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-bar-pill {
  position: absolute; left: 0; top: 4px; height: 36px; width: var(--w, 0); transform: translateX(var(--x, 0));
  border-radius: 9999px; background: var(--ink); opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.seg-bar-pill.on { opacity: 1; }
/* .seg-bar-sticky: the bar (or the wrapper around it) sticks under the header while its section scrolls.
   Same gaps on every page: straight after the page hero, 32px (24px on phones) above the content. */
.seg-bar-sticky { position: sticky; top: calc(var(--nav-h) + 10px); z-index: 30; pointer-events: none; }
/* .bgper-ui prefix so it beats the .wrap margin when the sticky element is also a .wrap */
.bgper-ui .seg-bar-sticky { margin-top: 0; margin-bottom: 32px; }
.seg-bar-sticky > .seg-bar, .seg-bar.seg-bar-sticky { pointer-events: auto; }
.admin-bar .seg-bar-sticky { top: calc(var(--nav-h) + 42px); }
@media (max-width: 782px) { .admin-bar .seg-bar-sticky { top: calc(var(--nav-h) + 54px); } }
@media (max-width: 640px) {
  .seg-bar-sticky { top: calc(var(--nav-h) + 8px); }
  .bgper-ui .seg-bar-sticky { margin-bottom: 24px; }
  .seg-bar { overflow-x: auto; scrollbar-width: none; }
  .seg-bar::-webkit-scrollbar { display: none; }
  .seg-bar > a, .seg-bar > button { flex: none; padding: 0 13px; }
}
@media (prefers-reduced-motion: reduce) { .seg-bar-pill { transition: opacity .2s; } }

/* ---------- sections ---------- */
section { padding: 64px 0; }
@media (max-width: 640px) { section { padding: 48px 0; } }
.sec-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.sec-head .h2 { margin-top: 18px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; } }
/* title on the left, a single link on the right (Partners) */
.sec-head-link > .link { justify-self: end; margin-bottom: 8px; }
.sec-head > .h2:first-child { margin-top: 0; }
@media (max-width: 860px) { .sec-head-link > .link { justify-self: start; margin-bottom: 0; } }
.divider { position: relative; }
/* section divider: a line that draws in from the left when the section arrives (bgper-home.js adds .drawn) */
.divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease);
}
.divider.drawn::before { transform: none; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 32px; overflow: hidden;
  transition: box-shadow .2s var(--ease), border-color .2s, transform .3s var(--ease);
}
/* only cards that are links react to hover: the card itself, or one covered by its title's link */
.card-cover { color: inherit; }
.card-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:has(.card-cover) .card-foot .link { position: relative; z-index: 2; }
a.card:hover, .card:has(.card-cover):hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--line-strong); }
.card h3 { font: 600 28px/1.15 var(--display); letter-spacing: -0.035em; margin: 16px 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; max-width: 32em; }
.card .card-foot { margin-top: 24px; }
/* tools: an even 2 x 2 grid; the bottom two are the same card without a screenshot */
.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool { display: flex; flex-direction: column; }
.tool .card-foot { margin-top: auto; padding-top: 24px; }
/* screenshots sit at the same height whatever the description length */
.tool > p { margin-bottom: 24px; }
.tool .window { margin-top: auto; }
.tool .window + .card-foot { margin-top: 0; }
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-sm h3 { margin-top: 20px; }
.tool-sm .ico { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-size: 19px; background: var(--bone); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s, box-shadow .2s; }
a.tool-sm:hover .ico, .tool-sm:has(.card-cover):hover .ico { background: var(--ink); color: #fff; box-shadow: none; }
.tool-sm .domain { font: 400 12px/1 var(--mono); color: var(--muted); }
@media (max-width: 860px) { .bento { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .card { padding: 24px; } }

/* faux window */
.window { margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
/* position + z-index: the parallax translate would otherwise paint the screenshot over the bar */
.window-bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.window-bar b { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.window-bar span { margin-left: 10px; font: 400 11px/1 var(--mono); color: var(--muted); }
/* real product screenshots inside the tool cards */
.window.shot img { width: 100%; height: 260px; object-fit: cover; object-position: top left; }
kbd { font: 400 12px/1 var(--mono); padding: 5px 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--bone); color: var(--text); }

/* ---------- partners marquee ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 16px; }
.track { display: flex; gap: 16px; width: max-content; animation: scroll 60s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - 8px)); } }
.logo {
  flex: none; width: 196px; height: 96px; display: grid; place-items: center; padding: 20px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.logo img { max-height: 46px; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s var(--ease); }
.logo:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.logo:hover img { transform: scale(1.04); }
@media (max-width: 560px) { .logo { width: 152px; height: 80px; padding: 16px 18px; } .logo img { max-height: 38px; } }

/* ---------- news ---------- */
.news { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 56px; }
.news-feature { padding: 0; display: grid; grid-template-rows: auto 1fr; }
.news-feature .media { aspect-ratio: 16/8; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bone); }
.news-feature .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-feature:hover .media img { transform: scale(1.04); }
.news-feature .body { padding: 30px 32px 32px; }
/* the list is exactly as tall as the feature card: four equal rows, thumbnails fill each row, and the
   first/last rows reach past the padding so the outer thumbnails line up with the card's top and bottom edges */
.news-list { display: flex; flex-direction: column; }
.news-item { flex: 1 1 0; display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.news-item:first-child { border-top: 0; margin-top: -36px; }
.news-item:last-child { margin-bottom: -36px; }
.news-item .thumb { position: relative; align-self: stretch; border-radius: 8px; overflow: hidden; background: var(--surface); }
.news-item .thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.1); pointer-events: none; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-item:hover .thumb img { transform: scale(1.04); }
.news-text { display: grid; gap: 8px; }
.news-item .date { font: 400 12px/1 var(--mono); color: var(--muted); }
.news-item h4 { font: 600 18px/1.35 var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item:hover h4 { color: var(--accent); }
.news-item .go { font-size: 15px; color: var(--faint); transition: transform .3s var(--ease), color .2s; }
.news-item:hover .go { color: var(--ink); transform: translate(2px, -2px); }
@media (max-width: 560px) { .news-item { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; } .news-item .go { display: none; } .news-item h4 { font-size: 16px; } }
@media (max-width: 900px) {
  .news { grid-template-columns: 1fr; }
  .news-item, .news-item:first-child, .news-item:last-child { margin: 0; }
  .news-item { padding: 16px 0; }
  .news-item:first-child { padding-top: 0; }
  .news-item .thumb { align-self: center; aspect-ratio: 4 / 3; }
}

/* ---------- sponsors + cta ---------- */
.sponsors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sponsor { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sponsor img { height: 52px; width: auto; mix-blend-mode: multiply; }
.sponsor .name { font: 600 22px/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.sponsor .role { font: 400 12px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }
@media (max-width: 760px) { .sponsors { grid-template-columns: 1fr; } .sponsor img { height: 40px; } }

/* contact: a compact dark banner instead of a full-height section */
/* no top padding: the section above already ends with the 64px (48px phone) section gap; the bottom keeps the site-wide 88px (64px phone) above the footer */
.cta { padding: 0 0 88px; }
.cta-panel {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap;
  padding: 48px 56px; border-radius: 16px; background: var(--accent); color: #fff;
}
.cta-copy { position: relative; z-index: 1; flex: 1 1 0; min-width: min(100%, 20em); } /* takes the row beside the one button, so the line wraps only when it must */
.cta-panel .h2 { color: #fff; }
.cta-copy p { margin: 14px 0 0; color: rgba(255,255,255,0.85); font-size: 16px; }
.cta-copy p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.55); }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-panel .btn-light { background: #fff; color: var(--ink); }
.cta-panel .btn-light:hover { background: var(--blue-bg); color: var(--ink); }
.cta-panel .btn-outline-light { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-panel .btn-outline-light:hover { border-color: rgba(255,255,255,0.8); color: #fff; }
.cta-rings { position: absolute; right: -120px; top: 50%; width: 0; height: 0; pointer-events: none; }
.cta-rings i { position: absolute; left: 0; top: 0; margin: calc(var(--s) * -0.5px) 0 0 calc(var(--s) * -0.5px); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; width: calc(var(--s) * 1px); height: calc(var(--s) * 1px); animation: ring 9s var(--ease) infinite; animation-delay: calc(var(--d) * 1s); opacity: 0; }
@keyframes ring { 0% { transform: scale(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@media (max-width: 640px) { .cta { padding: 0 0 64px; } .cta-panel { padding: 32px 24px; } }


/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
/* cards rise a little further than text */
.card.reveal { transform: translateY(28px); transition-duration: .8s; }
.card.reveal.in { transform: none; }
/* titles: the text slides up from behind a clip instead of fading */
.reveal.reveal-mask { opacity: 1; transform: none; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.reveal-mask > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal-mask.in > span { transform: none; }

/* image parallax: the picture is 40px taller than its frame and drifts up through it as the card
   scrolls past (bgper-home.js adds .parallax only where scroll-linked animation is supported) */
.parallax .window.shot img { height: 300px; margin-bottom: -40px; }
.parallax .news-feature .media img { height: calc(100% + 40px); }


.hero .reveal { transition-duration: 1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-mask > span, .divider::before { transform: none; }
  .track { flex-wrap: wrap; width: auto; justify-content: center; }
  .track [aria-hidden="true"] { display: none; }
}

/* ---------- WordPress ---------- */
/* Long post titles on the "latest event" slide */
.display.display-sm { font-size: clamp(34px, min(4.6vw, 7vh), 60px); line-height: 1.06; }
.bgper-home .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Backstop in case a plugin prints its own body styles */
body.bgper-home { background: var(--bg); background-image: none; color: var(--text); font: 400 16px/1.6 var(--sans); margin: 0; }
