:root {
    --bg: #edf2fc;
    --bg-alt: #dce8f9;
    --surface: rgba(237, 244, 255, 0.82);
    --surface-strong: #f0f5ff;
    --surface-muted: rgba(228, 240, 255, 0.92);
    --surface-hover: #f4f8ff;
    --ink: #0e1d3a;
    --ink-soft: #3a5073;
    --ink-muted: #6880a8;
    --border: rgba(30, 55, 140, 0.10);
    --border-strong: rgba(30, 55, 140, 0.18);
    --accent: #3b5bdb;
    --accent-strong: #2f4ccc;
    --teal: #0891b2;
    --indigo: #4f6ef7;
    --gold: #d39b3d;
    --rose: #d95f71;
    --emerald: #22815e;
    --gradient-accent: linear-gradient(135deg, #4f6ef7 0%, #3b4fd4 100%);
    --gradient-soft: linear-gradient(135deg, rgba(79, 110, 247, 0.16), rgba(59, 91, 219, 0.10));
    --shadow-sm: 0 12px 30px rgba(30, 55, 140, 0.08);
    --shadow-md: 0 26px 60px rgba(30, 55, 140, 0.12);
    --shadow-lg: 0 40px 90px rgba(30, 55, 140, 0.16);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --radius-pill: 999px;
    --transition: 300ms cubic-bezier(0.22, 1, 0.36, 1);
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(79, 110, 247, 0.14), transparent 34%),
        radial-gradient(circle at top right, rgba(59, 91, 219, 0.14), transparent 32%),
        linear-gradient(180deg, #eef3fd 0%, #e2edfb 52%, #edf2fc 100%);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(30, 55, 140, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 55, 140, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 85%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent-strong);
    text-decoration: none;
    transition: color var(--transition), transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

a:hover {
    color: var(--ink);
}

::selection {
    background: rgba(59, 91, 219, 0.20);
    color: var(--ink);
}

.page-wrapper {
    position: relative;
    overflow-x: clip;
}

.page-wrapper > :not(.page-particles):not(.site-header) {
    position: relative;
    z-index: 1;
}

.page-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

.page-particles::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(79, 110, 247, 0.12), transparent 24%),
        radial-gradient(circle at 84% 14%, rgba(59, 91, 219, 0.13), transparent 24%),
        radial-gradient(circle at 68% 72%, rgba(9, 145, 178, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(237, 244, 255, 0.06), rgba(220, 232, 255, 0.18));
}

.page-particles canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    opacity: 1;
}

/* Hero-section particles canvas — interactive, more vibrant than the page background */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: auto;   /* allow mouse interaction */
    border-radius: inherit;
    overflow: hidden;
}

.hero-particles canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    opacity: 1;
    border-radius: inherit;
}

/* ── Per-card cursor-tracked surface glow ── */
.card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.35s ease;
    will-change: background, opacity;
}

/* Lifts all card content siblings above the absolute glow layer */
.card-glow ~ * {
    position: relative;
    z-index: 1;
}

/* metric-card needs a stacking context for the injected glow child */
.metric-card {
    position: relative;
    overflow: hidden;
}
.container {
    position: relative;
    z-index: 1;
}

/* ── Merged state at page top ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0;
    transition: padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Detached/floating pill once scrolled ── */
.site-header.scrolled {
    padding: 14px 70px;
}

/* Accent shimmer line pinned to the very top edge when merged */
.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(79, 110, 247, 0.55) 20%,
        rgba(59, 91, 219, 0.80) 50%,
        rgba(79, 110, 247, 0.55) 80%,
        transparent 100%);
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.site-header.scrolled::before {
    opacity: 0;
}

.site-header .navbar {
    margin: 0 auto;
    /* Frosted gradient that blends into the hero */
    background: linear-gradient(180deg,
        rgba(222, 235, 255, 0.96) 0%,
        rgba(232, 242, 255, 0.85) 100%);
    border: none;
    border-bottom: 1px solid rgba(59, 91, 219, 0.10);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-radius: 0 0 28px 28px;
    /* inset top highlight + soft bottom glow */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.70),
        0 8px 28px rgba(30, 55, 140, 0.07);
    transition:
        border-radius  0.6s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow     0.6s cubic-bezier(0.4, 0, 0.2, 1),
        background     0.6s cubic-bezier(0.4, 0, 0.2, 1),
        border         0.6s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.6s ease;
}

.site-header.scrolled .navbar {
    background: rgba(234, 243, 255, 0.88);
    border: 1px solid rgba(59, 91, 219, 0.13);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-radius: var(--radius-pill);
    /* layered shadow: soft ambient + colored glow beneath */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.80),
        0 2px 8px rgba(59, 91, 219, 0.06),
        0 16px 44px rgba(30, 55, 140, 0.14),
        0 0 0 1px rgba(59, 91, 219, 0.07);
}

.brand-logo,
.brand-logo-sm {
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30, 139, 132, 0.1), rgba(82, 96, 199, 0.1));
    padding: 4px;
    border: 1px solid rgba(53, 36, 23, 0.08);
}

.brand-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.navbar-toggler {
    color: var(--ink) !important;
}

.nav-link {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft) !important;
    padding: 0.65rem 0.8rem !important;
    border-radius: var(--radius-pill);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--ink) !important;
    background: rgba(255, 255, 255, 0.58);
}

.btn {
    border-radius: var(--radius-pill);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn-accent {
    color: #fff;
    border: none;
    background: var(--gradient-accent);
    box-shadow: 0 16px 36px rgba(59, 91, 219, 0.28);
}

.btn-accent:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(59, 91, 219, 0.38);
}

.btn-glass {
    color: var(--ink);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-glass:hover {
    color: var(--ink);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-2px);
}

.hero {
    position: relative;
    padding: 112px 0 24px;
    overflow: hidden;   /* clip hero-particles canvas to the section */
}

/* Ensure hero content always renders above the particles canvas */
.hero > .container {
    position: relative;
    z-index: 1;
}

.hero-bg-mesh,
.hero-orb {
    position: absolute;
    pointer-events: none;
}

.hero-bg-mesh {
    inset: 0;
    background:
        radial-gradient(circle at 14% 22%, rgba(215, 102, 73, 0.14), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(82, 96, 199, 0.14), transparent 28%),
        radial-gradient(circle at 66% 70%, rgba(30, 139, 132, 0.12), transparent 26%);
}

.hero-orb {
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.7;
}

.hero-orb-a {
    width: 260px;
    height: 260px;
    top: 90px;
    right: -60px;
    background: radial-gradient(circle, rgba(30, 139, 132, 0.18), transparent 66%);
}

.hero-orb-b {
    width: 220px;
    height: 220px;
    bottom: 30px;
    left: -70px;
    background: radial-gradient(circle, rgba(215, 102, 73, 0.16), transparent 66%);
}

.hero-shell {
    position: relative;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(246, 246, 255, 0.88), rgba(246, 247, 255, 0.9)),
        var(--gradient-soft);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-shell > * {
    position: relative;
    z-index: 1;
}

.hero-shell::after {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 28px;
    border: 1px solid rgba(82, 96, 199, 0.08);
    z-index: 2;
    pointer-events: none;
}

.hero-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.58), transparent 40%),
        radial-gradient(circle at bottom right, rgba(30, 139, 132, 0.08), transparent 28%);
    z-index: 0;
    pointer-events: none;
}

.min-vh-hero {
    min-height: min(76vh, 760px);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(53, 36, 23, 0.08);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.35); }
}

.hero-kicker {
    margin: 1.35rem 0 0;
    color: var(--teal);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-title,
.section-title {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.hero-title {
    /* max-width: 11ch; */
    margin: 0.85rem 0 1rem;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--ink);
}

.hero-subtitle {
    max-width: 620px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.hero-actions .btn {
    padding: 0.9rem 1.35rem;
}

.hero-proof {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(53, 36, 23, 0.1);
}

.hero-proof-label {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-proof p {
    max-width: 480px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.hero-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
    font-weight: 700;
    color: var(--ink);
}

.hero-inline-link:hover {
    transform: translateX(2px);
}

.hero-stage {
    position: relative;
    display: grid;
    gap: 1rem;
    padding-left: 2rem;
}

.hero-stage-tech {
    min-height: auto;
    align-content: start;
    transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 180ms ease-out;
}

.hero-stage::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 0.6rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(200, 86, 63, 0.15), rgba(30, 139, 132, 0.35), rgba(82, 96, 199, 0.15));
}

.hero-tech-grid {
    position: absolute;
    inset: 0.2rem 0 0 1.4rem;
    border-radius: 28px;
    background-image:
        linear-gradient(rgba(82, 96, 199, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 139, 132, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
    opacity: 0.8;
    pointer-events: none;
}

.hero-tech-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(82, 96, 199, 0.08), transparent 72%);
    animation: scan-grid 5.5s linear infinite;
}

@keyframes scan-grid {
    0% { transform: translateY(-30%); }
    100% { transform: translateY(100%); }
}

.hero-tech-orbit {
    position: relative;
    z-index: 1;
    width: 280px;
    height: 280px;
    margin: 0 auto 1.35rem;
}

.orbit-ring {
    position: absolute;
    /* Default: used by hero tech orbit (fills parent). For the value-bubble
       orbit we override below so the ring stays perfectly circular. */
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(82, 96, 199, 0.2);
}

.orbit-ring-a {
    animation: rotate-ring 14s linear infinite;
}

.orbit-ring-b {
    inset: 28px;
    border-color: rgba(30, 139, 132, 0.26);
    border-style: dashed;
    animation: rotate-ring-reverse 10s linear infinite;
}

@keyframes rotate-ring {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-ring-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.orbit-core {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 144px;
    height: 144px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.35rem;
    text-align: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.96), rgba(242, 236, 228, 0.96));
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow:
        0 0 0 18px rgba(255, 255, 255, 0.16),
        0 0 80px rgba(82, 96, 199, 0.16);
}

/* Value-bubble specific orbit ring: keep a fixed square so it's a true circle */
.value-bubble-cluster .orbit-ring {
    inset: auto; /* don't stretch to container */
    left: 50%;
    top: 50%;
    width: 316px; /* diameter = 2 * orbitRadius (matches JS orbitRadius=158) */
    height: 316px;
    transform: translate(-50%, -50%);
    border-color: rgba(79, 110, 247, 0.14);
}

.value-bubble-cluster .orbit-ring.orbit-ring-b {
    width: 272px;
    height: 272px;
    border-style: dashed;
    border-color: rgba(79, 110, 247, 0.10);
}

/* Value-bubble specific orbit rings that must not rotate like hero-tech */
.value-bubble-cluster .value-orbit-ring-a,
.value-bubble-cluster .value-orbit-ring-b {
    animation: none !important;
}

.value-bubble-cluster .value-orbit-ring-a {
    width: 316px;
    height: 316px;
    border-color: rgba(79, 110, 247, 0.14);
}

.value-bubble-cluster .value-orbit-ring-b {
    width: 272px;
    height: 272px;
    border-style: dashed;
    border-color: rgba(79, 110, 247, 0.10);
}

@media (max-width: 767.98px) {
    .value-bubble-cluster .orbit-ring {
        /* width: 240px;
        height: 240px; */
    }
    .value-bubble-cluster .orbit-ring.orbit-ring-b {
        width: 208px;
        height: 208px;
    }
}

.orbit-core-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.orbit-core strong {
    max-width: 8ch;
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.05;
    color: var(--indigo);
}

.orbit-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-sm);
    color: var(--accent);
}

/* node-a: outer ring (14s CW), starts at top (270°) */
.orbit-node-a {
    animation: orbit-cw 14s linear infinite;
    animation-delay: -10.5s;
}
/* node-b: inner ring (10s CCW), starts at right (0°) */
.orbit-node-b {
    animation: orbit-ccw 10s linear infinite;
    color: var(--indigo);
}
/* node-c: outer ring (14s CW), starts at bottom (90°) — opposite node-a */
.orbit-node-c {
    animation: orbit-cw 14s linear infinite;
    animation-delay: -3.5s;
    color: var(--emerald);
}
/* node-d: inner ring (10s CCW), starts at left (180°) — opposite node-b */
.orbit-node-d {
    animation: orbit-ccw 10s linear infinite;
    animation-delay: -5s;
    color: var(--teal);
}

/* rotate, translate to the ring radius, then counter-rotate so icons stay upright */
@keyframes orbit-cw {
    from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}
@keyframes orbit-ccw {
    from { transform: rotate(0deg) translateX(92px) rotate(0deg); }
    to   { transform: rotate(-360deg) translateX(92px) rotate(360deg); }
}

.hero-tech-panels {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}

.hero-stage-card {
    position: relative;
    padding: 1.35rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-sm);
}

.hero-stage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hero-stage-card::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -1.72rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(200, 86, 63, 0.12);
}

.hero-stage-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 32%, transparent 65%, rgba(82, 96, 199, 0.08));
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.hero-stage-card:hover::after {
    opacity: 1;
}

.hero-stage-card-lg h2 {
    margin: 0.45rem 0 0.7rem;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.03;
    color: var(--ink);
}

.hero-stage-card-lg p,
.hero-stage-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.hero-stage-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}

.hero-stage-terminal {
    overflow: hidden;
}

.hero-stage-terminal::before {
    background: linear-gradient(180deg, rgba(82, 96, 199, 0.18), rgba(30, 139, 132, 0.2), rgba(200, 86, 63, 0.15));
}

.hero-terminal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.hero-terminal-state {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: var(--radius-pill);
    background: rgba(34, 129, 94, 0.12);
    color: var(--emerald);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-terminal-state::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 1.8s ease-in-out infinite;
}

.hero-terminal-lines {
    display: grid;
    gap: 0.42rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(53, 36, 23, 0.08);
}

.hero-terminal-lines span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.hero-terminal-lines em {
    font-style: normal;
    color: var(--teal);
}

.hero-stage-card-signal {
    overflow: hidden;
}

.hero-signal-bars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 0.35rem;
    height: 84px;
    margin: 0.85rem 0 1rem;
}

.hero-signal-bars span {
    border-radius: 999px 999px 10px 10px;
    background: linear-gradient(180deg, rgba(82, 96, 199, 0.9), rgba(30, 139, 132, 0.35));
    animation: signal-rise 2.8s ease-in-out infinite;
    transform-origin: bottom;
}

.hero-signal-bars span:nth-child(1) { height: 42%; animation-delay: 0s; }
.hero-signal-bars span:nth-child(2) { height: 68%; animation-delay: 0.18s; }
.hero-signal-bars span:nth-child(3) { height: 92%; animation-delay: 0.32s; }
.hero-signal-bars span:nth-child(4) { height: 74%; animation-delay: 0.46s; }
.hero-signal-bars span:nth-child(5) { height: 58%; animation-delay: 0.6s; }

@keyframes signal-rise {
    0%, 100% { transform: scaleY(0.82); opacity: 0.75; }
    50% { transform: scaleY(1.05); opacity: 1; }
}

.hero-stage-card-stack strong {
    margin-bottom: 1rem;
}

.hero-stack-pulses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hero-stack-pulses span {
    padding: 0.35rem 0.62rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(53, 36, 23, 0.08);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    animation: pulse-chip 2.8s ease-in-out infinite;
}

.hero-stack-pulses span:nth-child(2) { animation-delay: 0.3s; }
.hero-stack-pulses span:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse-chip {
    0%, 100% { box-shadow: 0 0 0 0 rgba(82, 96, 199, 0); }
    50% { box-shadow: 0 0 0 8px rgba(82, 96, 199, 0.08); }
}

.hero-stage-label {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.hero-stage-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.hero-stage-list span,
.hero-marquee span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.72rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(53, 36, 23, 0.09);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--ink);
}

.hero-stage-card-accent {
    background: linear-gradient(180deg, rgba(82, 96, 199, 0.1), rgba(255, 255, 255, 0.55));
}

.hero-stage-card-accent strong {
    display: block;
    margin-top: 0.8rem;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--indigo);
}

.hero-marquee {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-marquee span {
    position: relative;
    overflow: hidden;
}

.hero-marquee span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.65) 48%, transparent 100%);
    transform: translateX(-140%);
    animation: chip-sheen 4.6s ease-in-out infinite;
}

.hero-marquee span:nth-child(2)::after { animation-delay: 0.5s; }
.hero-marquee span:nth-child(3)::after { animation-delay: 1s; }
.hero-marquee span:nth-child(4)::after { animation-delay: 1.5s; }
.hero-marquee span:nth-child(5)::after { animation-delay: 2s; }

@keyframes chip-sheen {
    0%, 70%, 100% { transform: translateX(-140%); }
    25% { transform: translateX(140%); }
}

/* Project carousel styles */
.project-images {
    margin: 0.8rem 0 0.6rem;
}
.project-carousel {
    width: 100%;
    height: 160px; /* reduced to avoid overlapping subtitle */
    border-radius: 12px;
    background: rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}
.project-carousel img,
.project-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.project-carousel-slide {
    will-change: opacity;
}

.project-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    border: none;
    background: rgba(255,255,255,0.7);
    color: var(--ink);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(30,55,140,0.08);
    cursor: pointer;
}
.project-carousel-prev { left: 10px; }
.project-carousel-next { right: 10px; }
.project-carousel-btn:hover { transform: translateY(-50%) scale(1.04); }

@media (min-width: 992px) {
    .project-carousel { height: 180px; }
}

@media (max-width: 576px) {
    .project-carousel { height: 160px; }
}

.hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
}

.hero-stat {
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(53, 36, 23, 0.08);
}

.hero-stat strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--ink);
}

.hero-stat span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.section {
    position: relative;
    padding: 6rem 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(235, 244, 255, 0.55), rgba(214, 232, 255, 0.72));
    border-top: 1px solid rgba(30, 55, 140, 0.06);
    border-bottom: 1px solid rgba(30, 55, 140, 0.06);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    color: var(--ink-muted);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-label span {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(53, 36, 23, 0.08);
    font-family: var(--font-mono);
    color: var(--accent);
}

.section-title {
    /* max-width: 13ch; */
    margin: 0 0 1rem;
    color: var(--ink);
    font-size: 2rem;
    line-height: 1;
}

.section-desc {
    max-width: 660px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 1rem;
}

.about-note {
    margin-top: 1.6rem;
    padding: 1.25rem 1.4rem;
    border-radius: 24px 24px 24px 10px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-sm);
}

.about-note-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
}

.about-note p {
    margin: 0;
    color: var(--ink-soft);
}

.about-highlights {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.about-highlight {
    padding: 1rem 1.15rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.686);
    border: 1px solid rgba(53, 36, 23, 0.08);
}

.about-highlight span {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--ink-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-highlight strong {
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.45;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.skill-card,
.metric-card,
.service-card,
.showcase-card,
.project-card,
.project-brief,
.training-card,
.contact-link,
.contact-form-card,
.project-summary-badge,
.filter-pill {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(53, 36, 23, 0.08);
    color: var(--ink);
    font-weight: 700;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.skill-card i {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 14px;
    background: rgba(30, 139, 132, 0.1);
    color: var(--teal);
    font-size: 1.1rem;
}

.skill-card:hover {
    transform: translateY(-3px) rotate(-0.4deg);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-sm);
}

.metric-card {
    height: 100%;
    padding: 1.45rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.metric-number {
    margin-bottom: 0.55rem;
    font-family: var(--font-mono);
    font-size: clamp(2rem, 3.8vw, 2.8rem);
    line-height: 1;
    color: var(--indigo);
}

.metric-label {
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.metric-desc {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.65rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: auto 1.2rem 1rem auto;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(82, 96, 199, 0.12), transparent 70%);
    pointer-events: none;
}

.service-card::before,
.showcase-card::after,
.project-card::after,
.project-brief::after,
.training-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -100%;
    height: 40%;
    background: linear-gradient(180deg, rgba(82, 96, 199, 0.1), transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before,
.showcase-card:hover::after,
.project-card:hover::after,
.project-brief:hover::after,
.training-card:hover::after {
    opacity: 1;
    animation: scan-card 1.4s ease;
}

@keyframes scan-card {
    from { top: -40%; }
    to { top: 100%; }
}

.service-icon-wrap {
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    place-items: center;
    margin-bottom: 1.15rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(30, 139, 132, 0.14), rgba(82, 96, 199, 0.12));
    color: var(--indigo);
    font-size: 1.25rem;
}

.service-eyebrow,
.showcase-cat,
.project-category,
.project-brief-cat,
.training-cat-badge,
.training-level,
.contact-link small {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-eyebrow {
    color: var(--accent);
}

.service-card h3,
.showcase-card h3,
.project-body h3,
.project-brief h4,
.process-body h3,
.training-card h3 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-card h3 {
    margin: 0.7rem 0;
    font-size: 1.18rem;
}

.service-card p,
.showcase-card p,
.project-long-desc,
.project-brief p,
.process-body p,
.training-desc {
    color: var(--ink-soft);
}

.showcase-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.7rem;
    border-radius: 28px;
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.showcase-media {
    margin: -1.7rem -1.7rem 1rem;
    height: 190px;
    overflow: hidden;
    border-bottom: 1px solid rgba(53, 36, 23, 0.08);
}

.showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 1;
    pointer-events: none;
}

.showcase-card::after,
.project-card::after,
.project-brief::after,
.training-card::after {
    border-radius: inherit;
}

.accent-indigo {
    background: linear-gradient(180deg, rgba(82, 96, 199, 0.12), rgba(255, 255, 255, 0.62));
}

.accent-indigo::before {
    background: radial-gradient(circle at top right, rgba(82, 96, 199, 0.14), transparent 36%);
}

.accent-violet {
    background: linear-gradient(180deg, rgba(121, 101, 184, 0.12), rgba(255, 255, 255, 0.62));
}

.accent-violet::before {
    background: radial-gradient(circle at top right, rgba(121, 101, 184, 0.14), transparent 36%);
}

.accent-cyan {
    background: linear-gradient(180deg, rgba(30, 139, 132, 0.12), rgba(255, 255, 255, 0.62));
}

.accent-cyan::before {
    background: radial-gradient(circle at top right, rgba(30, 139, 132, 0.14), transparent 36%);
}

.accent-emerald {
    background: linear-gradient(180deg, rgba(34, 129, 94, 0.12), rgba(255, 255, 255, 0.62));
}

.accent-emerald::before {
    background: radial-gradient(circle at top right, rgba(34, 129, 94, 0.14), transparent 36%);
}

.showcase-card:hover {
    transform: translateY(-5px) rotate(-0.3deg);
    box-shadow: var(--shadow-md);
}

.showcase-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.showcase-cat {
    color: var(--ink-muted);
}

.showcase-header i {
    font-size: 1.15rem;
    color: var(--ink-muted);
}

.showcase-outcome {
    display: inline-flex;
    align-items: center;
    margin: 1rem 0;
    color: var(--emerald);
    font-size: 0.86rem;
    font-weight: 700;
}

.showcase-tags,
.project-stack,
.project-brief-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.showcase-tags span,
.project-stack span,
.project-brief-stack span {
    padding: 0.32rem 0.62rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(53, 36, 23, 0.09);
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 700;
}

.project-summary-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(53, 36, 23, 0.08);
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.mockup-frame {
    border-bottom: 1px solid rgba(53, 36, 23, 0.08);
}

.mockup-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 247, 235, 0.9);
    border-bottom: 1px solid rgba(53, 36, 23, 0.08);
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(53, 36, 23, 0.15);
}

.mockup-dot:first-child { background: rgba(217, 95, 113, 0.75); }
.mockup-dot:nth-child(2) { background: rgba(211, 155, 61, 0.8); }
.mockup-dot:nth-child(3) { background: rgba(34, 129, 94, 0.78); }

.mockup-url-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.7rem;
    padding: 0.35rem 0.65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(53, 36, 23, 0.08);
    color: var(--ink-muted);
    font-size: 0.68rem;
    flex: 1;
    max-width: 220px;
}

.mockup-url-bar i {
    color: var(--emerald);
    font-size: 0.56rem;
}

.mockup-screen {
    height: 200px;
    padding: 0.85rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--project-accent) 10%, #fff8ef), #f4ebdf 100%);
}

.project-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(53, 36, 23, 0.08);
}

.mockup-ui {
    display: flex;
    gap: 0.55rem;
    height: 100%;
}

.mockup-sidebar,
.mockup-card-block,
.mockup-graph-block {
    border: 1px solid rgba(53, 36, 23, 0.07);
    background: rgba(255, 255, 255, 0.56);
}

.mockup-sidebar {
    width: 54px;
    flex-shrink: 0;
    padding: 0.5rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mockup-line {
    height: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--project-accent) 35%, transparent);
}

.mockup-line-short {
    width: 60%;
}

.mockup-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.55rem;
}

.mockup-header-block,
.mockup-card-block,
.mockup-graph-block {
    border-radius: 14px;
}

.mockup-header-block {
    height: 24px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--project-accent) 26%, transparent), rgba(255, 255, 255, 0.5));
}

.mockup-grid-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    flex: 1;
}

.mockup-card-block {
    position: relative;
    overflow: hidden;
}

.mockup-card-block::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: color-mix(in srgb, var(--project-accent) 50%, transparent);
}

.mockup-graph-block {
    height: 34px;
    position: relative;
    overflow: hidden;
}

.mockup-graph-block::before {
    content: '';
    position: absolute;
    inset: 5px 7px 5px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--project-accent) 14%, transparent), color-mix(in srgb, var(--project-accent) 38%, transparent), color-mix(in srgb, var(--project-accent) 18%, transparent));
    clip-path: polygon(0% 84%, 10% 62%, 22% 74%, 38% 24%, 53% 50%, 70% 18%, 84% 42%, 100% 10%, 100% 100%, 0% 100%);
}

.project-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}

.project-category,
.project-brief-cat {
    color: var(--project-accent, var(--accent));
}

.project-body h3 {
    margin: 0.35rem 0 0.6rem;
    font-size: 1.14rem;
}

.project-long-desc {
    flex: 1;
    margin-bottom: 1rem;
    font-size: 0.84rem;
}

.project-stack {
    margin-bottom: 1rem;
}

.project-stack span {
    color: color-mix(in srgb, var(--project-accent) 70%, var(--ink));
    background: color-mix(in srgb, var(--project-accent) 10%, rgba(255, 255, 255, 0.65));
    border-color: color-mix(in srgb, var(--project-accent) 22%, rgba(53, 36, 23, 0.08));
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.project-links .btn {
    padding: 0.55rem 0.9rem;
}

.other-projects-heading {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--ink-soft);
    font-size: 1rem;
    font-weight: 700;
}

.other-projects-heading i {
    color: var(--accent);
}

.project-brief {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-sm);
}

.project-brief:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-brief-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    margin-bottom: 0.8rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--project-accent) 12%, rgba(255, 255, 255, 0.7));
    color: var(--project-accent, var(--accent));
}

.project-brief h4 {
    margin: 0.35rem 0 0.45rem;
    font-size: 1rem;
}

.project-brief p {
    flex: 1;
    margin-bottom: 0.85rem;
    font-size: 0.82rem;
}

.projects-page {
    padding: 118px 0 3rem;
}

.projects-hero {
    position: relative;
    margin-bottom: 2rem;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(246, 248, 255, 0.92), rgba(240, 246, 255, 0.86)),
        var(--gradient-soft);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.projects-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(59, 91, 219, 0.12), transparent 28%),
        radial-gradient(circle at bottom left, rgba(8, 145, 178, 0.10), transparent 26%);
    pointer-events: none;
}

.projects-hero > * {
    position: relative;
    z-index: 1;
}

.projects-lead {
    max-width: 62rem;
    margin: 1rem 0 0;
    color: var(--ink-soft);
    font-size: 1rem;
}

.projects-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.project-detail-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.4rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-detail-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--project-accent) 65%, #fff), transparent);
    opacity: 0.9;
}

.project-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.project-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.project-detail-icon {
    width: 2.85rem;
    height: 2.85rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 18px;
    background: color-mix(in srgb, var(--project-accent) 12%, rgba(255, 255, 255, 0.7));
    color: var(--project-accent, var(--accent));
    font-size: 1.15rem;
}

.project-detail-card h3 {
    margin: 0.35rem 0 0;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.project-detail-body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.project-detail-body p {
    margin-bottom: 1rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.project-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.project-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(53, 36, 23, 0.08);
    background: rgba(255, 255, 255, 0.58);
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.project-detail-link:hover {
    color: var(--ink);
    border-color: rgba(53, 36, 23, 0.14);
    background: rgba(255, 255, 255, 0.82);
}

.credentials-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.4rem;
}

.credential-card {
    position: relative;
    padding: 1.35rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.credential-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(82, 96, 199, 0.7), transparent);
}

.credential-card h3 {
    margin: 0.45rem 0 0.55rem;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.credential-card p {
    margin: 0 0 0.75rem;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.credential-list--compact .credential-item {
    padding: 0.65rem 0;
}

.credential-list--compact .credential-item h4 {
    font-size: 0.92rem;
}

/* ─── “Where I add value” interactive bubble ─── */
.value-bubble-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 1.5rem;
}

.value-bubble-layout {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.services-focus-heading {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 0.5rem;
}

.value-bubble-layout.is-panel-open {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1rem, 3.5vw, 2rem);
}

.value-bubble-layout:not(.is-panel-open) .value-bubble-cluster {
    margin-left: auto;
    margin-right: auto;
}

/* When open, shift the cluster left to reveal the panel using a flex layout.
   The transform is applied to the cluster so the movement is smooth and GPU-accelerated. */
.value-bubble-layout.is-panel-open .value-bubble-cluster {
    flex: 0 0 auto;
    margin: 0;
    transform: translateX(-36%);
    transition: transform 1s ease;
}

.value-bubble-cluster {
    position: relative;
    width: min(100%, 400px);
    min-height: 300px;
    margin: 0 auto;
}

.value-bubble-core {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 108px;
    height: 108px;
    transform: translate(-50%, -50%);
    margin: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(230, 238, 255, 0.55) 42%, rgba(79, 110, 247, 0.35) 100%);
    box-shadow:
        0 0 0 1px rgba(59, 91, 219, 0.12),
        0 18px 40px rgba(30, 55, 140, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    color: var(--accent-strong);
    transition: transform var(--transition), box-shadow var(--transition);
}

.value-bubble-core:hover {
    /* No transform or shadow on hover: hover effect removed */
}

.value-bubble-core-rings {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(79, 110, 247, 0.22);
    animation: value-bubble-pulse 3.2s ease-in-out infinite;
    pointer-events: none;
}

.value-bubble-core-rings::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px dashed rgba(79, 110, 247, 0.18);
}

@keyframes value-bubble-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.06); opacity: 1; }
}

.value-bubble-core-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    font-size: 1.35rem;
}

.value-bubble-core-label {
    font-family: var(--font-display);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.value-bubble-core-hint {
    position: absolute;
    bottom: -1.65rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    white-space: nowrap;
}

.value-bubble-spheres {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.value-bubble-cluster.is-open .value-bubble-spheres {
    pointer-events: auto;
    opacity: 1;
}

/* Animated orbit for value-sphere-orbit, like hero-tech */
.value-sphere-orbit {
    position: absolute;
    /* center the orbit on the cluster (matches the Focus button at 50%/50%) */
    left: 100%;
    top: 70%;
    width: 316px; /* diameter = 2 * orbitRadius (matches JS default) */
    height: 0px;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    transition: transform 0.65s cubic-bezier(0.33, 1.15, 0.52, 1);
    /* JS animates individual spheres; keep parent static */
    animation: none !important;
}
/* Removed CSS keyframes for orbit rotation so JS controls per-sphere motion. */
@media (prefers-reduced-motion: reduce) {
    .value-sphere-orbit {
        transition: transform 0.2s ease;
    }
}


/* Mobile: stack the services cluster and panel vertically */
@media (max-width: 767.98px) {
    .value-bubble-layout.is-panel-open {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        justify-content: center;
    }

    .value-bubble-layout.is-panel-open .value-bubble-cluster {
        transform: none;
        margin: 0 auto;
        width: min(100%, 360px);
    }

    .value-bubble-panel {
        margin: 0.75rem auto 0;
        width: calc(100% - 2rem);
        max-width: 720px;
        transform-origin: center top;
    }

    .value-bubble-cluster {
        min-height: 240px;
    }

    .value-sphere-orbit {
        /* left: 50%; */
        /* transform: translate(-50%, -50%); */
        top: 65%;
        /* width: 320px; */
    }
}

.value-sphere {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(59, 91, 219, 0.14);
    box-shadow: var(--shadow-sm);
    color: var(--indigo);
    transform: translate(0, 0) scale(0.35);
    opacity: 0;
    transition:
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 260ms ease;
}

.value-bubble-cluster:not(.is-open) .value-sphere-orbit .value-sphere--1,
.value-bubble-cluster:not(.is-open) .value-sphere-orbit .value-sphere--2,
.value-bubble-cluster:not(.is-open) .value-sphere-orbit .value-sphere--3 {
    transform: translate(-50%, -50%) scale(0.35);
    opacity: 0;
}

.value-sphere-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 110, 247, 0.2), transparent 65%);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: -1;
}

.value-sphere:hover .value-sphere-glow {
    opacity: 1;
}

.value-sphere-title {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: var(--ink);
    max-width: 92px;
}

/* JS now controls all orbit positions for value-sphere--1/2/3 in open state. Only opacity is set here. */
.value-bubble-cluster.is-open .value-sphere-orbit .value-sphere--1,
.value-bubble-cluster.is-open .value-sphere-orbit .value-sphere--2,
.value-bubble-cluster.is-open .value-sphere-orbit .value-sphere--3 {
    opacity: 1;
}

.value-sphere.is-active {
    box-shadow:
        0 0 0 2px rgba(79, 110, 247, 0.45),
        var(--shadow-sm);
    background: rgba(255, 255, 255, 0.92);
    z-index: 2;
}

.value-bubble-panel {
    position: relative;
    flex: 1 1 280px;
    min-width: 0;
    max-width: 440px;
    margin: 0;
    padding: 1.25rem 1.35rem;
    margin: 51px 10px 10px 10px;
    border-radius: var(--radius-lg);
    text-align: left;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(237, 244, 255, 0.75) 100%);
    border: 1px solid rgba(79, 110, 247, 0.18);
    box-shadow:
        var(--shadow-sm),
        0 0 40px rgba(79, 110, 247, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform-origin: left center;
}

.value-bubble-panel.value-bubble-panel--zoom-in {
    animation: panel-zoom-from-sphere 0.58s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
}

.value-bubble-panel.value-bubble-panel--orbit-out {
    animation: panel-orbit-out 0.32s ease forwards;
}

@keyframes panel-zoom-from-sphere {
    0% {
        opacity: 0;
        transform: scale(0.2) translateX(-28px);
        filter: blur(0.2rem);
        clip-path: circle(0% at 0% 50%);
    }
    55% {
        filter: blur(0.04rem);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
        filter: blur(0);
        clip-path: circle(150% at 0% 50%);
    }
}

@keyframes panel-orbit-out {
    to {
        opacity: 0;
        transform: scale(0.88) translateX(-12px) rotate(-3deg);
        filter: blur(0.08rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .value-bubble-panel.value-bubble-panel--zoom-in {
        animation: panel-zoom-in-reduced 0.35s ease forwards;
    }
    .value-bubble-panel.value-bubble-panel--orbit-out {
        animation: panel-orbit-out-reduced 0.2s ease forwards;
    }
}

/* Open state for the absolute-positioned panel */
/* panel stays in flow under flex layout; individual panel animations still use
   existing keyframes (value-bubble-panel--zoom-in / orbit-out) when appropriate. */

/* When layout is static (stacked), keep panel relative and full width */
.value-bubble-layout--static .value-bubble-panel,
.value-bubble-layout--static.is-panel-open .value-bubble-panel {
    position: relative;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    max-width: min(100%, 520px);
}

@keyframes panel-zoom-in-reduced {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes panel-orbit-out-reduced {
    to { opacity: 0; }
}

.value-bubble-panel-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.value-bubble-panel-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.value-bubble-panel-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

.value-bubble-cluster--static .value-bubble-core {
    position: relative;
    left: auto;
    top: auto;
    margin: 0 auto 1rem;
    transform: none;
}

.value-bubble-cluster--static .value-bubble-core-hint {
    display: none;
}

.value-bubble-cluster--static {
    min-height: 0;
    width: min(100%, 520px);
}

.value-bubble-cluster--static .value-bubble-spheres {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    pointer-events: auto;
}

.value-bubble-cluster--static .value-sphere {
    position: relative;
    left: auto;
    top: auto;
    margin: 0;
    width: 100%;
    height: auto;
    min-height: 108px;
    transform: none;
    opacity: 1;
}

.value-bubble-layout--static {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-bubble-layout--static.is-panel-open .value-bubble-panel {
    margin-top: 1rem;
    max-width: min(100%, 520px);
    width: 100%;
}

@media (max-width: 767.98px) {
    .value-bubble-layout.is-panel-open {
        /* On small screens keep the cluster in place and stack the panel below */
        transform: none;
    }

    .value-bubble-layout.is-panel-open .value-bubble-cluster {
        transform: none;
        transition: none;
    }

    .value-bubble-layout.is-panel-open .value-bubble-panel {
        /* Make panel relative and full width when stacked */
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        /* margin-top: 1rem; */
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .value-bubble-cluster:not(.value-bubble-cluster--static).is-open .value-sphere-orbit .value-sphere--1 {
        transform: translate(-50%, -50%) translate(0, -132px) scale(0.92);
    }

    .value-bubble-cluster:not(.value-bubble-cluster--static).is-open .value-sphere-orbit .value-sphere--2 {
        transform: translate(-50%, -50%) translate(-108px, 72px) scale(0.92);
    }

    .value-bubble-cluster:not(.value-bubble-cluster--static).is-open .value-sphere-orbit .value-sphere--3 {
        transform: translate(-50%, -50%) translate(108px, 72px) scale(0.92);
    }

    .value-sphere-title {
        font-size: 0.58rem;
    }
}

/* ─── Credentials quick actions (LinkedIn honors + research page) ─── */
.credential-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    justify-content: center;
    min-height: 100%;
}

.btn-credential-honors {
    --honors-shine: rgba(96, 165, 250, 0.22);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.88rem 1.15rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #cfd9e0 !important;
    background: linear-gradient(145deg, #062a44 0%, #0b5f83 50%, #0ea5a4 100%);
    border: 1px solid rgba(14, 165, 164, 0.28);
    box-shadow:
        0 0 0 1px rgba(14,165,164,0.12),
        0 12px 36px rgba(6, 78, 102, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.btn-credential-honors::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0%, var(--honors-shine) 45%, transparent 75%);
    animation: credential-research-shine 3.5s ease-in-out infinite;
    pointer-events: none;
}

.btn-credential-honors:hover {
    color: #fff !important;
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.25),
        0 16px 48px rgba(6, 58, 88, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-credential-research {
    --research-shine: rgba(165, 180, 252, 0.35);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.88rem 1.15rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #eef2ff !important;
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 45%, #312e81 100%);
    border: 1px solid rgba(129, 140, 248, 0.45);
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.25),
        0 12px 40px rgba(30, 58, 138, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.btn-credential-research::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 0%,
        var(--research-shine) 45%,
        transparent 75%
    );
    animation: credential-research-shine 3.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes credential-research-shine {
    0%, 100% { transform: translateX(-120%) skewX(-12deg); opacity: 0.4; }
    50% { transform: translateX(120%) skewX(-12deg); opacity: 0.85; }
}

.btn-credential-research:hover {
    color: #fff !important;
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.65);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.35),
        0 16px 48px rgba(49, 46, 129, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Distinct Certifications button (uses same layout/shine but different palette) */
.btn-certifications {
    --cert-shine: rgba(250, 204, 21, 0.18);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.88rem 1.15rem;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: #f6f5f5 !important;
    background: linear-gradient(145deg, #3b2f00 0%, #b77900 45%, #f59e0b 100%);
    border: 1px solid rgba(245, 158, 11, 0.28);
    box-shadow:
        0 0 0 1px rgba(245,158,11,0.10),
        0 12px 36px rgba(88, 50, 0, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.btn-certifications::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0%, var(--cert-shine) 45%, transparent 75%);
    animation: credential-research-shine 3.5s ease-in-out infinite;
    pointer-events: none;
}

.btn-certifications:hover {
    color: #fff !important;
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.65);
    box-shadow:
        0 0 0 1px rgba(245,158,11,0.28),
        0 16px 48px rgba(83, 44, 0, 0.48),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Specific style for the 'Check all projects' button under credentials */
.btn-check-projects {
    --check-shine: rgba(110, 231, 183, 0.22);
    color: #d7e6e6 !important;
    background: linear-gradient(145deg, #05292b 0%, #0aa68f 55%, #34d399 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow:
        0 0 0 1px rgba(16,185,129,0.10),
        0 12px 36px rgba(6, 78, 88, 0.36),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.btn-check-projects::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 0%, var(--check-shine) 45%, transparent 75%);
    animation: credential-research-shine 3.5s ease-in-out infinite;
    pointer-events: none;
}

.btn-check-projects:hover {
    color: #fff !important;
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow:
        0 0 0 1px rgba(16,185,129,0.28),
        0 16px 48px rgba(8, 78, 61, 0.48),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.credential-meta,
.credential-ref,
.leadership-year {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.credential-meta {
    color: var(--accent);
}

.credential-ref {
    color: var(--ink-soft);
}

.leadership-panel {
    height: 100%;
    padding: 1.55rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-sm);
}

.leadership-panel-head h3 {
    margin: 0.45rem 0 0;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.leadership-list {
    display: grid;
    gap: 0.95rem;
    margin-top: 1.35rem;
}

.leadership-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-top: 1px solid rgba(53, 36, 23, 0.08);
}

.leadership-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.leadership-year {
    color: var(--accent);
}

.leadership-body h4 {
    margin: 0 0 0.35rem;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 700;
}

.leadership-body p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.credential-list {
    display: grid;
    gap: 0.9rem;
}

.credential-item {
    padding-top: 0.9rem;
    border-top: 1px solid rgba\(53, 36, 23, 0.08\);
}

.credential-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.credential-item h4 {
    margin: 0.35rem 0;
    color: var\(--ink\);
    font-size: 0.98rem;
    font-weight: 700;
}

.credential-note {
    color: var\(--ink-soft\);
    font-size: 0.8rem;
    font-weight: 600;
}

.credential-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.credential-skills span {
    padding: 0.28rem 0.6rem;
    border-radius: var\(--radius-pill\);
    background: rgba\(82, 96, 199, 0.08\);
    color: var\(--ink-soft\);
    font-size: 0.72rem;
    font-weight: 700;
}

.credential-archive-grid {
    display: grid;
    grid-template-columns: repeat\(2, minmax\(0, 1fr\)\);
    gap: 1rem;
}

.training-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.68rem 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(53, 36, 23, 0.08);
    background: rgba(255, 255, 255, 0.56);
    color: var(--ink-soft);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.filter-pill:hover,
.filter-pill.active {
    color: var(--pill-color, var(--accent));
    border-color: color-mix(in srgb, var(--pill-color, var(--accent)) 35%, rgba(53, 36, 23, 0.08));
    background: color-mix(in srgb, var(--pill-color, var(--accent)) 10%, rgba(255, 255, 255, 0.8));
    box-shadow: var(--shadow-sm);
}

.pill-count {
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-pill);
    background: rgba(53, 36, 23, 0.06);
    color: inherit;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.training-card {
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.35rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--card-accent, var(--accent));
}

.metric-card,
.service-card,
.showcase-card,
.project-card,
.project-brief,
.training-card,
.contact-form-card {
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.metric-card:hover,
.contact-form-card:hover {
    border-color: rgba(82, 96, 199, 0.16);
}

.training-card.card-hidden {
    display: none;
}

.training-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.training-card-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.training-cat-badge {
    color: var(--card-accent, var(--accent));
}

.training-level {
    margin-left: auto;
    padding: 0.24rem 0.55rem;
    border-radius: var(--radius-pill);
    background: rgba(53, 36, 23, 0.06);
    color: var(--ink-muted);
}

.training-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    line-height: 1.35;
}

.training-desc {
    flex: 1;
    margin-bottom: 0.9rem;
    font-size: 0.83rem;
}

.training-duration {
    color: var(--ink-muted);
    font-size: 0.79rem;
    font-weight: 700;
}

.training-items {
    margin: 0 0 0.95rem;
    padding-left: 1.1rem;
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.training-items li {
    margin-bottom: 0.22rem;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.3rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(200, 86, 63, 0.18), rgba(30, 139, 132, 0.25), rgba(82, 96, 199, 0.18));
}

.process-step {
    position: relative;
    padding-top: 3.7rem;
}

.process-number {
    position: absolute;
    top: 0;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-strong);
    border: 1px solid rgba(53, 36, 23, 0.12);
    box-shadow: var(--shadow-sm);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
}

.process-body {
    padding: 1.05rem 1.05rem 0 0;
}

.process-body h3 {
    margin: 0 0 0.45rem;
    font-size: 1.06rem;
}

.process-body p {
    margin: 0;
    font-size: 0.84rem;
}

.contact-info {
    display: grid;
    gap: 0.8rem;
    margin: 2rem 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 0.9rem 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(53, 36, 23, 0.08);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 7rem 0 3rem;
}

.error-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(1.6rem, 3vw, 2.5rem);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(244, 248, 255, 0.96), rgba(232, 241, 255, 0.88));
    border: 1px solid rgba(59, 91, 219, 0.12);
    box-shadow: var(--shadow-lg);
}

.error-shell::before {
    content: '';
    position: absolute;
    inset: auto -10% 56% 50%;
    height: 220px;
    background: radial-gradient(circle, rgba(79, 110, 247, 0.18), transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

.error-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

.error-copy {
    max-width: 40rem;
}

.error-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    background: rgba(59, 91, 219, 0.08);
    color: var(--indigo);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.error-code {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.error-title {
    margin: 0.75rem 0 1rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.02;
    color: var(--ink);
}

.error-message {
    max-width: 34rem;
    margin: 0 0 1.5rem;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.error-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.error-pill {
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(59, 91, 219, 0.08);
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.error-panel {
    position: relative;
    padding: 1.25rem;
    border-radius: calc(var(--radius-xl) - 8px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 244, 255, 0.86));
    border: 1px solid rgba(59, 91, 219, 0.12);
    box-shadow: var(--shadow-md);
}

.error-panel-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 22px;
    background: var(--gradient-soft);
    color: var(--indigo);
    font-size: 1.8rem;
}

.error-panel h2 {
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    color: var(--ink);
}

.error-panel p {
    margin: 0;
    color: var(--ink-soft);
}

.error-panel dl {
    margin: 1rem 0 0;
}

.error-panel dt {
    margin-bottom: 0.2rem;
    color: var(--ink-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.error-panel dd {
    margin: 0 0 0.9rem;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    word-break: break-word;
}

.contact-link:hover {
    color: var(--ink);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(30, 139, 132, 0.14), rgba(82, 96, 199, 0.12));
    color: var(--indigo);
}

.contact-link small {
    display: block;
    margin-bottom: 0.1rem;
    color: var(--ink-muted);
}

.contact-link span {
    font-size: 0.9rem;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(53, 36, 23, 0.08);
    background: rgba(255, 255, 255, 0.56);
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.contact-form-card {
    padding: 2rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(53, 36, 23, 0.08);
    box-shadow: var(--shadow-md);
}

.form-label {
    margin-bottom: 0.45rem;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.required,
.field-error,
.alert-danger {
    color: var(--rose);
}

.form-control {
    padding: 0.78rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(53, 36, 23, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font-size: 0.9rem;
    box-shadow: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-control:focus {
    color: var(--ink);
    background: #fff;
    border-color: rgba(200, 86, 63, 0.4);
    box-shadow: 0 0 0 4px rgba(200, 86, 63, 0.12);
}

.form-control::placeholder {
    color: var(--ink-muted);
}

.form-control.is-invalid {
    border-color: rgba(217, 95, 113, 0.5);
}

.field-error {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.alert {
    border: none;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 700;
}

.alert-success {
    background: rgba(34, 129, 94, 0.12);
    color: var(--emerald);
}

.alert-danger {
    background: rgba(217, 95, 113, 0.12);
}

.form-success-state {
    text-align: center;
    padding: 3rem 1rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(34, 129, 94, 0.12);
    color: var(--emerald);
    font-size: 1.75rem;
}

.form-success-state h3 {
    margin-bottom: 0.45rem;
    color: var(--ink);
}

.form-success-state p {
    color: var(--ink-soft);
}

.site-footer {
    padding: 1.6rem 0 2rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(53, 36, 23, 0.08);
}

.footer-brand,
.footer-sep,
.footer-top-link {
    font-size: 0.82rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink-muted);
}

.footer-sep,
.footer-top-link {
    color: var(--ink-soft);
}

.footer-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-i, 0) * 60ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger .reveal {
    --reveal-i: 0;
}

/* Section rhythm — short lead under titles */
.section-lead {
    max-width: 38rem;
    margin: 0 0 1.25rem;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

/* Gradient headline (hero + key pages) */
.gradient-text {
    background: linear-gradient(125deg, var(--ink) 0%, var(--accent-strong) 42%, var(--teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@supports not (background-clip: text) {
    .gradient-text {
        color: var(--ink);
    }
}

/* Hero shell — subtle ambient motion */
@keyframes hero-shell-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.002); }
}

.hero-shell {
    animation: hero-shell-float 18s ease-in-out infinite;
}

/* Line clamp + progressive disclosure */
.line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

.line-clamp-4 {
    -webkit-line-clamp: 4;
}

.service-card:has(.text-expand[open]) .line-clamp,
.project-body:has(.text-expand[open]) .line-clamp,
.project-brief:has(.text-expand[open]) .line-clamp,
.training-card:has(.text-expand[open]) .line-clamp,
.project-detail-body:has(.text-expand[open]) .line-clamp {
    display: none;
}

.text-expand {
    border-radius: var(--radius-sm);
}

.text-expand-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    margin: 0;
    width: fit-content;
    max-width: 100%;
    list-style: none;
    cursor: pointer;
    border-radius: var(--radius-pill);
    border: 1px dashed rgba(59, 91, 219, 0.28);
    background: rgba(255, 255, 255, 0.45);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.text-expand-summary::-webkit-details-marker {
    display: none;
}

.text-expand-summary::after {
    content: '';
    width: 0.38rem;
    height: 0.38rem;
    margin-left: 0.1rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.text-expand[open] > .text-expand-summary::after {
    transform: rotate(-135deg);
}

.text-expand-summary:hover {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(59, 91, 219, 0.4);
}

.text-expand-body {
    margin: 0.65rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(53, 36, 23, 0.08);
    background: rgba(255, 255, 255, 0.58);
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.55;
}

.text-expand--dense .text-expand-body {
    padding: 0.65rem 0.85rem;
    font-size: 0.84rem;
}

.training-items--flat {
    margin-top: 0.5rem;
    padding-left: 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(59, 91, 219, 0.15);
    background: rgba(255, 255, 255, 0.45);
}

.service-desc {
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Accent underline sweep on section titles when revealed */
@keyframes title-underline {
    from {
        transform: scaleX(0);
        opacity: 0.65;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.section .section-title.reveal.is-visible {
    position: relative;
}

.section .section-title.reveal.is-visible::after {
    content: '';
    display: block;
    width: 3.5rem;
    height: 3px;
    margin-top: 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    transform-origin: left;
    animation: title-underline 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


@media (prefers-reduced-motion: reduce) {
    .page-particles {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1199.98px) {
    .hero-title {
        max-width: 12ch;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leadership-item {
        grid-template-columns: 72px 1fr;
    }

    .credential-archive-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage-grid {
        grid-template-columns: 1fr;
    }

    .hero-tech-orbit {
        width: 250px;
        height: 250px;
    }

    .hero-stats,
    .process-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .site-header {
        padding-top: 10px;
    }

    .site-header.scrolled {
        padding: 10px 20px;
    }

    .site-header .navbar {
        border-radius: 6px;
    }

    .section {
        padding: 4.75rem 0;
    }

    .hero {
        padding-top: 104px;
    }

    .min-vh-hero {
        min-height: auto;
    }

    .hero-shell {
        padding: 1.6rem;
    }

    .hero-stage-tech {
        min-height: auto;
    }

    .hero-proof {
        align-items: start;
        flex-direction: column;
    }

    .section-title {
        max-width: 14ch;
    }

    .process-timeline {
        gap: 2rem;
    }

    .process-timeline::before {
        display: none;
    }

    .process-step {
        padding-top: 0;
        padding-left: 4.4rem;
    }

    .process-number {
        left: 0;
    }
}

@media (max-width: 767.98px) {
    .page-particles {
        opacity: 0.65;
    }

    .projects-page {
        padding-top: 104px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .leadership-item {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .credential-skills {
        gap: 0.35rem;
    }

    .project-detail-head {
        flex-direction: column;
    }

    .site-header.scrolled {
        padding: 8px 14px;
        border-radius: 22px;
    }

    .site-header.scrolled .navbar {
        border-radius: 22px;
    }

    .site-header .navbar {
        border-radius: 22px;
    }

    .hero {
        padding-top: 92px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tech-grid,
    .hero-stage::before {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats,
    .skills-grid,
    .process-timeline {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 2.7rem);
    }

    .mockup-screen {
        height: 160px;
    }

    .training-grid {
        grid-template-columns: 1fr;
    }

    .filter-pill {
        padding-inline: 0.8rem;
    }

    .pill-label {
        display: none;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .site-header.scrolled {
        padding: 6px 10px;
    }

    .site-header.scrolled .navbar {
        border-radius: 22px;
    }

    .site-header .navbar {
        border-radius: 18px;
    }

    .hero-shell,
    .contact-form-card {
        padding: 1.25rem;
    }

    .hero-stat,
    .metric-card,
    .service-card,
    .showcase-card,
    .project-card,
    .project-brief,
    .training-card,
    .contact-link {
        border-radius: 22px;
    }

    .hero-stage {
        padding-left: 0;
    }

    .hero-stage::before,
    .hero-stage-card::before,
    .hero-tech-orbit {
        display: none;
    }
}

.credential-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.credential-card-head h3 {
    margin-bottom: 0;
}

.credential-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.72rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(82, 96, 199, 0.16);
    background: linear-gradient(180deg, rgba(82, 96, 199, 0.12), rgba(82, 96, 199, 0.06));
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

a.credential-total-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.credential-total-link:hover,
.credential-total-link:focus-visible {
    color: var(--accent-strong);
    border-color: rgba(10, 102, 194, 0.38);
    background: linear-gradient(180deg, rgba(10, 102, 194, 0.12), rgba(82, 96, 199, 0.07));
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(10, 102, 194, 0.14);
}

.credential-total-link:focus-visible {
    outline: 2px solid rgba(10, 102, 194, 0.45);
    outline-offset: 2px;
}

.credential-total-icon {
    font-size: 1.05rem;
    line-height: 1;
    color: #0a66c2;
}

.project-summary-badge--link {
    gap: 0.15rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.project-summary-badge--link:hover,
.project-summary-badge--link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(10, 102, 194, 0.28);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
}

.project-summary-badge--link:focus-visible {
    outline: 2px solid rgba(10, 102, 194, 0.35);
    outline-offset: 2px;
}

.project-summary-badge-li {
    font-size: 1rem;
    color: #0a66c2;
    margin-left: 0.15rem;
}

.credential-item {
    border-top: 1px solid rgba(53, 36, 23, 0.08);
}

.credential-item h4 {
    color: var(--ink);
}

.credential-note {
    color: var(--ink-soft);
}

.credential-skills span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.72rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(82, 96, 199, 0.14);
    background: linear-gradient(180deg, rgba(82, 96, 199, 0.12), rgba(82, 96, 199, 0.05));
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.credential-skills span::before {
    content: '';
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(82, 96, 199, 0.08);
}

@media (max-width: 767.98px) {
    .credential-card-head {
        flex-direction: column;
        align-items: flex-start;
    }
}


.hero-stat-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(82, 96, 199, 0.14), rgba(255, 255, 255, 0.8));
    border-color: rgba(82, 96, 199, 0.2);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.hero-stat-link::after {
    content: '→';
    position: absolute;
    top: 0.95rem;
    right: 1rem;
    color: var(--accent-strong);
    font-size: 2rem;
    font-weight: bolder;
}

.hero-stat-link:hover,
.hero-stat-link:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(82, 96, 199, 0.32);
    background: linear-gradient(135deg, rgba(82, 96, 199, 0.18), rgba(255, 255, 255, 0.9));
}

.hero-stat-link:focus-visible {
    outline: 2px solid rgba(82, 96, 199, 0.28);
    outline-offset: 2px;
}

.hero-stat small {
    display: inline-flex;
    margin-top: 0.55rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    background: rgba(82, 96, 199, 0.12);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
