/* Hero card deck. All overrides belong to the hero. */
.hero { overflow: clip; padding-top: 128px; padding-bottom: 86px; }
.hero .hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 54px; }
.hero .hero-copy { min-width: 0; }
.hero .hero-title { display: block; width: 100%; font-size: clamp(34px, 3.3vw, 46px); line-height: 1.15; text-wrap: balance; }
.hero .hero-actions { margin-top: 38px; }
.hero-deck { min-width: 0; width: 100%; max-width: 272px; justify-self: end; padding-top: 72px; outline: none; }
.hero-deck:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 12px; border-radius: 30px; }
.hero-deck-stage { --deck-bleed-x: clamp(16px, calc((100vw - var(--container)) / 2 - 8px), 70px); --deck-edge-fade: min(24px, calc(var(--deck-bleed-x) - 6px)); position: relative; width: 100%; aspect-ratio: 0.8; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hero-deck-stage.is-dragging { cursor: grabbing; }
.hero-deck-stage, .hero-deck-stage * { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
/* Expand the paint area so the resting cards and shadows stay fully visible.
   Only the outermost pixels fade; the card has no timed opacity animation. */
.hero-deck-viewport { position: absolute; inset: -110px calc(-1 * var(--deck-bleed-x)) -35px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black var(--deck-edge-fade), black calc(100% - var(--deck-edge-fade)), transparent), linear-gradient(to bottom, transparent, black var(--deck-edge-fade), black calc(100% - var(--deck-edge-fade)), transparent);
  mask-image: linear-gradient(to right, transparent, black var(--deck-edge-fade), black calc(100% - var(--deck-edge-fade)), transparent), linear-gradient(to bottom, transparent, black var(--deck-edge-fade), black calc(100% - var(--deck-edge-fade)), transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-deck-canvas { position: absolute; inset: 110px var(--deck-bleed-x) 35px; perspective: 1100px; pointer-events: auto; }
.deck-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 28px; padding: 22px; overflow: hidden; transform-origin: 50% 80%; background: var(--color-surface-inverse); color: var(--color-text-inverse); border: 1px solid var(--color-border-inverse-subtle); box-shadow: var(--shadow-brand-md); will-change: transform; }
.deck-card[data-card="1"] { background: var(--color-surface-brand-subtle); color: var(--color-text-primary); border-color: var(--color-border-brand-subtle); }
.deck-card[data-card="2"] { background: var(--color-action-primary-subtle-hover); color: var(--color-text-primary); border-color: var(--color-border-brand-subtle); }
.deck-card[data-card="3"] { background: var(--color-expertise-surface); color: var(--color-expertise-content); border-color: var(--color-expertise-border); }
.deck-card[data-card="4"] { background: var(--color-surface-subtle); color: var(--color-text-primary); border-color: var(--color-border-subtle); }
.deck-card::before, .deck-card::after { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; border: 1px solid currentColor; opacity: .15; right: -10%; bottom: 15%; pointer-events: none; }
.deck-card::after { width: 100%; right: -24%; bottom: 6%; }
.deck-card-bottom { position: relative; z-index: 1; padding-bottom: 19px; }
.deck-card:has(.deck-card-link) .deck-card-bottom { padding-bottom: 70px; }
.deck-card p { margin: 0; max-width: 100%; font-size: 24px; font-weight: var(--fw-regular); line-height: 1.3; letter-spacing: normal; hyphens: manual; overflow-wrap: anywhere; }
.deck-card-link { display: grid; place-items: center; text-decoration: none; position: absolute; bottom: 26px; right: 26px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--color-action-primary); color: var(--color-action-primary-content); font: inherit; font-size: 25px; cursor: pointer; z-index: 2; }
:root:not([data-theme="dark"]) .deck-card[data-card="4"] .deck-card-link {
  background: var(--color-surface-default);
  color: var(--color-action-primary);
  border: 1px solid var(--color-border-subtle);
}
.hero-deck-controls { display: flex; justify-content: center; align-items: center; margin-top: 22px; gap: 6px; }
.deck-dots { display: flex; align-items: center; }
.deck-dot { flex: 0 0 auto; width: 24px; height: 44px; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; transition: width 180ms ease; }
.deck-dot-track { position: relative; display: block; width: 7px; height: 7px; overflow: hidden; border-radius: 999px; background: var(--color-text-tertiary); opacity: .4; transition: width 180ms ease, transform 180ms ease; }
.deck-dot-fill { position: absolute; inset: 0; background: var(--color-action-primary); transform: scaleX(0); transform-origin: left; opacity: 0; }
.deck-dot[aria-current="true"] .deck-dot-track { background: var(--color-action-primary); opacity: 1; transform: scale(1.3); }
.hero-deck[data-autoplay="true"] .deck-dot[aria-current="true"] { width: 52px; }
.hero-deck[data-autoplay="true"] .deck-dot[aria-current="true"] .deck-dot-track { width: 40px; background: var(--color-action-primary-subtle-hover); transform: none; }
.hero-deck[data-autoplay="true"] .deck-dot[aria-current="true"] .deck-dot-fill { opacity: 1; }
.deck-toggle { flex: 0 0 36px; width: 36px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 22px; color: var(--color-text-secondary); background: transparent; cursor: pointer; }
.deck-toggle svg { width: 14px; height: 14px; }
.deck-toggle:hover { background: var(--color-action-primary-subtle-hover); }
.hero-deck :is(button, a):focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 3px; }
.hero-deck :is(button, a):hover { filter: brightness(.94); }
.hero-deck .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 980px) {
 .hero .hero-grid { gap: 32px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
 .hero .hero-actions { flex-direction: column; align-items: flex-start; }
 .deck-card { padding: 22px; }
}
@media (max-width: 720px) {
 .hero { padding-top: 110px; padding-bottom: 54px; }
 .hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
 .hero .hero-copy { grid-row: 2; }
 .hero .hero-title { font-size: clamp(32px, 7vw, 48px); }
 .hero .hero-actions { flex-direction: row; align-items: stretch; margin-top: 28px; }
 .hero .hero-actions .button { width: auto; padding: 13px 18px; font-size: 14px; }
 .hero-deck { grid-row: 1; width: min(100% - 24px, 272px); justify-self: center; padding-top: 64px; }
 .hero-deck-controls { margin-top: 18px; }
 .hero-deck-stage { min-height: 360px; --deck-edge-fade: 16px; --deck-bleed-x: clamp(20px, calc((100vw - 272px) / 2 - 8px), 70px); }
}
@media (prefers-reduced-motion: reduce) {
 .deck-dot, .deck-dot-track { transition: none; }
 .deck-card { will-change: auto; }
}

.hero-deck .deck-ghost { pointer-events: none; }
