.intro-subtitle-content {
    max-width: 56rem;
}

.services-bento__serif,
[data-serif] {
    font-family: Georgia, "Times New Roman", Times, serif;
}

.services-bento__body {
    min-width: 0;
}

.services-bento__corner {
    position: absolute;
    top: -0.5rem;
    right: 1.5rem;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    transform: rotate(45deg);
    pointer-events: none;
}

.services-bento__chevron {
    transition: transform 200ms ease;
}
.services-bento__toggle[aria-expanded="true"] .services-bento__chevron {
    transform: rotate(180deg);
}

/* process storybook — gallery height, image crop, active nav, BS row overflow fix (no colors) */
.process-cdpr__root {
    max-width: 100%;
}
.process-cdpr__gallery-wrap {
    max-width: 100%;
    overflow: hidden;
}
.process-cdpr__gallery {
    height: 16rem;
    max-width: 100%;
}
.process-cdpr__gallery.row {
    margin-left: 0;
    margin-right: 0;
}
.process-cdpr__gallery > * {
    min-width: 0;
}
.process-cdpr__img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-width: 100%;
}
.process-cdpr__nav-btn {
    transition: border-color 200ms ease, color 200ms ease;
}
.process-cdpr__nav-btn.is-active {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.features-hud-panel__decor--pulse {
    top: -5rem;
    left: 33.333333%;
    animation: features-hud-panel-pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.features-hud-panel__decor--spin {
    bottom: -6rem;
    right: 25%;
    animation: features-hud-panel-spin-kf 1s linear infinite;
}

.features-hud-panel__decor--bounce {
    top: 50%;
    right: 33.333333%;
    transform: rotate(45deg);
    animation: features-hud-panel-bounce-kf 1s infinite;
}

.features-hud-panel__decor--line {
    top: 33.333333%;
    right: 25%;
    transform: rotate(-12deg);
}

.features-hud-panel__grid-overlay {
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* ── BS-mode: panel shell (colors live in template bg-dark) ── */
.features-hud-panel__bs-panel {
    min-width: 0;
}

.features-hud-panel__bs-accent-top {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--bs-primary), transparent);
}

.features-hud-panel__bs-accent-bottom {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(var(--bs-primary-rgb), 0.4), transparent);
}

.features-hud-panel__bs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.features-hud-panel__bs-grid > figure {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.features-hud-panel__bs-grid > figure:nth-child(2n) {
    border-right: none;
}

.features-hud-panel__bs-grid > figure:nth-last-child(-n+2):nth-child(2n+1),
.features-hud-panel__bs-grid > figure:nth-last-child(-n+2):nth-child(2n+1) ~ figure {
    border-bottom: none;
}

@media (max-width: 575.98px) {
    .features-hud-panel__bs-grid {
        grid-template-columns: 1fr;
    }
    .features-hud-panel__bs-grid > figure {
        border-right: none;
    }
    .features-hud-panel__bs-grid > figure:last-child {
        border-bottom: none;
    }
}

/* ── BS-mode decorative shapes ── */
.features-hud-panel__decor--bs-blob {
    background-color: var(--bs-primary-bg-subtle);
    opacity: 0.3;
    filter: blur(48px);
}

.features-hud-panel__decor--bs-shape {
    opacity: 0.12;
}

.features-hud-panel__decor--bs-line {
    border-left: 1px solid var(--bs-primary-border-subtle);
    opacity: 0.18;
}

.features-hud-panel__item {
    min-width: 0;
}

.features-hud-panel__dot--pulse {
    animation: features-hud-panel-pulse-kf 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes features-hud-panel-pulse-kf {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@keyframes features-hud-panel-spin-kf {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes features-hud-panel-bounce-kf {
    0%, 100% { transform: translateY(-25%) rotate(45deg); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

/* -- Feature card hover -- */
.feat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* -- Icon box sizing -- */
.feat-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
}
.feat-icon-box--lg {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
}
.feat-icon-box--xl {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
}
.feat-icon-box--circle {
    border-radius: 50%;
}

/* -- Nav/filmstrip button hover -- */
.feat-btn-nav {
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.feat-btn-nav:hover {
    transform: scale(1.1);
}

/* -- Table row hover -- */
.feat-table-row-hover {
    transition: background-color 0.15s ease;
}
.feat-table-row-hover:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
}

/* -- Accordion item hover -- */
.feat-accordion-hover summary:hover {
    background-color: var(--bs-primary-bg-subtle);
    border-radius: 0.75rem;
}

/* -- DL item hover -- */
.feat-dl-item-hover {
    transition: background-color 0.15s ease;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.feat-dl-item-hover:hover {
    background-color: var(--bs-primary-bg-subtle);
}

/* -- Deck button hover -- */
.feat-deck-btn {
    transition: filter 0.2s ease, transform 0.15s ease;
}
.feat-deck-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.polar-frame-quote__portrait {
    width: 7rem;
    height: 7rem;
}

