/* Media-first carousel. Site background, theme and other motion stay untouched. */
.home-carousel { position:relative;container-type:inline-size;min-width:0;margin:20px 0 4px;--hb-accent:var(--xc-gold,var(--ac-accent,#edd499)); }
.home-carousel[hidden],.home-carousel [hidden] { display:none!important; }
.hb-stage { position:relative;height:calc(clamp(240px,23cqw,420px) + 24px);overflow:hidden;perspective:1400px;touch-action:pan-y; }
@container(max-width:639px) { .hb-stage { height:calc(clamp(200px,23cqw,420px) + 24px); } }
.home-carousel[aria-busy="true"] .hb-stage::after { content:'';position:absolute;inset:12px 24%;border-radius:14px;background:var(--xc-raised,#202124);opacity:.45; }
.hb-slide { position:absolute;top:50%;left:50%;width:36%;height:calc(100% - 24px);overflow:hidden;border-radius:14px;background:#17191c;color:#fff;transform:translate(-50%,-50%);isolation:isolate;container-type:inline-size; }
.hb-current { z-index:3;box-shadow:0 12px 32px rgb(0 0 0 / .28),0 0 0 1px rgb(255 255 255 / .16); }
.hb-previous,.hb-next { z-index:2;transform:translate(-50%,-50%) scale(.86);cursor:pointer; }
.hb-far-previous,.hb-far-next { z-index:1;transform:translate(-50%,-50%) scale(.72);cursor:pointer; }
.hb-slide:not(.hb-current)::after { content:'';position:absolute;inset:0;background:rgb(7 9 12 / .36);pointer-events:none; }
.hb-slide:not(.hb-current):hover::after { background:rgb(7 9 12 / .27); }
.home-carousel[data-display-style="flat"] .hb-slide { transform:translate(-50%,-50%); }
.home-carousel[data-display-style="flat"] .hb-slide::after { display:none; }
.home-carousel[data-display-style="flat"] .hb-current { outline:2px solid var(--hb-accent);outline-offset:2px; }
.hb-media,.hb-media > img,.hb-media > video { width:100%;height:100%; }
.hb-media { display:grid;place-items:center; }
.hb-media > img,.hb-media > video { display:block;object-fit:contain; }
.hb-media-note { color:#b7b8bc;font-size:14px; }
.hb-caption { position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:42px 18px;text-align:center;background:linear-gradient(transparent,rgb(0 0 0 / .22) 35%,rgb(0 0 0 / .22) 65%,transparent);pointer-events:none; }
.hb-caption h2 { margin:0;max-width:100%;font-family:inherit;font-size:clamp(14px,5cqw,36px);font-weight:650;line-height:1.35;letter-spacing:.01em;color:#fff;text-wrap:balance;overflow-wrap:anywhere;text-shadow:0 2px 12px rgb(0 0 0 / .75); }
.home-carousel[data-title-style="display"] .hb-caption h2 { font-weight:900;font-style:italic;letter-spacing:.03em;text-shadow:1px 2px 0 rgb(0 0 0 / .3),0 3px 14px rgb(0 0 0 / .7); }
.home-carousel[data-title-style="serif"] .hb-caption h2 { font-family:"STKaiti","KaiTi","Noto Serif SC",serif;font-weight:700;letter-spacing:.06em; }
.hb-subtitle { margin:0;color:#fff;font-size:clamp(11px,2.6cqw,16px);line-height:1.5;text-wrap:balance;overflow-wrap:anywhere;text-shadow:0 1px 5px #222; }
.hb-link { flex:none;color:#fff;font-size:12px;text-decoration:none;white-space:nowrap;pointer-events:auto;min-height:32px;display:inline-flex;align-items:center;gap:6px;text-shadow:0 1px 5px #222; }
.hb-brand { position:absolute;top:14px;left:14px;right:14px;display:flex;align-items:center;justify-content:center;gap:8px;color:#fff;font-size:clamp(11px,3cqw,17px);font-weight:700;line-height:1.35;text-align:center;text-shadow:0 1px 6px rgb(0 0 0 / .7);pointer-events:none; }
.hb-brand img { display:block;width:auto;max-width:35%;height:26px;object-fit:contain; }
.hb-brand span { overflow-wrap:anywhere; }
.hb-video:has(video[data-playing="true"]) .hb-caption { opacity:0; }
.hb-arrow,.hb-pause,.hb-dot { border:0;cursor:pointer;font:inherit; }
.hb-arrow { position:absolute;z-index:4;top:calc(var(--hb-stage-height, 280px) / 2 - 22px);display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgb(14 16 19 / .66);color:#fff;font-size:30px;line-height:1; }
.hb-arrow:hover { background:rgb(14 16 19 / .88); }
.hb-back { left:16px; }.hb-forward { right:16px; }
.hb-controls { display:flex;align-items:center;justify-content:center;gap:16px;min-height:36px; }
.hb-dots { display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px; }
.hb-dot { position:relative;width:20px;height:32px;background:none;padding:0; }
.hb-dot::after { content:'';position:absolute;left:4px;right:4px;top:14px;height:3px;border-radius:2px;background:var(--xc-muted,var(--ac-muted,#92938f));opacity:.4; }
.hb-dot[aria-pressed="true"]::after { background:var(--hb-accent);opacity:1; }
.hb-count { color:var(--xc-muted,var(--ac-muted,#92938f));font-size:11px;font-variant-numeric:tabular-nums; }
.hb-pause { width:32px;height:32px;padding:0;background:none;color:var(--xc-muted,var(--ac-muted,#92938f));font-size:13px;border-radius:50%; }
.hb-pause:hover { background:var(--xc-raised,var(--ac-hover,#292a2d)); }
.home-carousel :focus-visible { outline:2px solid var(--hb-accent);outline-offset:3px; }
.hb-sr-only { position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
.hb-promotion-entry { display:flex;justify-content:flex-end;margin:6px 0 12px; }.hb-promotion-entry[hidden] { display:none; }.hb-promotion-entry a { padding:8px 14px;border:1px solid currentColor;border-radius:8px;color:var(--xc-gold,#b1975b);font-size:12px;text-decoration:none; }
.hb-slide:not(.hb-current) .hb-caption { opacity:.55; }
.hb-slide:not(.hb-current) .hb-subtitle { display:none; }
.hb-arrow { width:44px;height:44px;box-shadow:0 2px 10px rgb(0 0 0 / .2); }
.hb-controls { padding:6px 0;min-height:56px;box-sizing:border-box; }
.hb-dot { min-width:24px;min-height:44px; }
.hb-dot::after { top:20px;height:4px; }
.hb-dot[aria-pressed="true"]::after { height:6px;top:19px; }
.hb-pause { width:44px;height:44px; }
.hb-count { white-space:nowrap; }
@media(max-width:1023px) { .hb-link { font-size:11px; } }
@media(max-width:640px) { .home-carousel { margin-top:12px; }.hb-slide { border-radius:10px; }.hb-caption { gap:6px;padding:36px 14px; }.hb-back { left:0; }.hb-forward { right:0; }.hb-arrow { width:44px;height:44px;font-size:24px; }.hb-link { font-size:11px; }.hb-controls { gap:8px; }.hb-dot { width:18px; }.hb-brand { top:10px; }.hb-brand img { height:20px; } }
@media(prefers-reduced-motion:reduce) { .hb-current { animation:none; } }
