/* Digital business card — page #060606, hero gradient inside frame, IBM Plex Mono */

:root {
    --bc-page-bg: #060606;
    --bc-hero-gradient:
        linear-gradient(
            155deg,
            #090a0f 0%,
            #090a0f 42%,
            color-mix(in srgb, #090a0f 78%, #ffffff) 100%
        );
    --bc-font: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
    --bc-name: #d8dfdc;
    --bc-title: #80837d;
    --bc-contact: #80837d;
    --bc-accent: #ea7402;
    --bc-cta-text: #d8dfdc;
    --bc-artboard-w: 320px;
    --bc-artboard-h: 568px;
    --bc-pad-top: 48px;
    --bc-pad-left: 40px;
    --bc-pad-bottom: 80px;
    --bc-pad-right: 40px;
}

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

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    min-height: 100dvh;
    font-family: var(--bc-font);
    font-weight: 400;
    background: var(--bc-page-bg);
    color: var(--bc-name);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bc {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
}

.bc-frame {
    position: relative;
    width: var(--bc-artboard-w);
    max-width: 100%;
    height: var(--bc-artboard-h);
    max-height: min(var(--bc-artboard-h), calc(100dvh - 24px));
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
    background: var(--bc-hero-gradient);
    border: 1px solid color-mix(in srgb, #d8dfdc 10%, transparent);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: var(--bc-pad-top) var(--bc-pad-right) var(--bc-pad-bottom) var(--bc-pad-left);
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    animation: bc-frame-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

/* Soft orange rim pulse — hierarchy without noise */
.bc-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #ea7402 0%, transparent);
    animation: bc-rim-glow 5.5s ease-in-out infinite;
}

.bc-logo-link {
    position: relative;
    display: inline-block;
    line-height: 0;
    flex-shrink: 0;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(8px);
    animation: bc-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

/* Logo sheen (same idea as site-nav) */
.bc-logo-link::after {
    content: '';
    position: absolute;
    inset: -2px -8px;
    background: linear-gradient(
        105deg,
        transparent 35%,
        color-mix(in srgb, #ea7402 0%, transparent) 42%,
        color-mix(in srgb, #fd9f05 55%, transparent) 50%,
        color-mix(in srgb, #ea7402 0%, transparent) 58%,
        transparent 65%
    );
    background-size: 220% 100%;
    animation: bc-logo-sheen 5.2s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

.bc-logo-link:focus {
    outline: none;
}

.bc-logo-link:focus-visible {
    outline: 1px solid color-mix(in srgb, #d8dfdc 45%, transparent);
    outline-offset: 4px;
    border-radius: 2px;
}

.bc-logo {
    display: block;
    height: 20px;
    width: auto;
}

.bc-body {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bc-name {
    margin: 0;
    font-family: var(--bc-font);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--bc-name);
    opacity: 0;
    transform: translateY(10px);
    animation: bc-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

.bc-role {
    margin: 0.35rem 0 0;
    font-family: var(--bc-font);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bc-title);
    opacity: 0;
    transform: translateY(10px);
    animation: bc-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.bc-links {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.bc-links li {
    opacity: 0;
    transform: translateY(8px);
    animation: bc-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bc-links li:nth-child(1) { animation-delay: 0.48s; }
.bc-links li:nth-child(2) { animation-delay: 0.54s; }
.bc-links li:nth-child(3) { animation-delay: 0.6s; }
.bc-links li:nth-child(4) { animation-delay: 0.66s; }

.bc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--bc-font);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--bc-contact);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.bc-link:hover,
.bc-link:focus-visible {
    color: var(--bc-name);
}

.bc-link:focus {
    outline: none;
}

.bc-link:focus-visible {
    outline: 1px solid color-mix(in srgb, #d8dfdc 45%, transparent);
    outline-offset: 2px;
    border-radius: 2px;
}

.bc-link__icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    color: var(--bc-accent);
    stroke: currentColor;
}

.bc-vcard-wrap {
    margin: 1rem 0 0;
    opacity: 0;
    transform: translateY(8px);
    animation: bc-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.74s forwards;
}

/* Same pill as site-nav Inquire CTA */
.bc-vcard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(234, 116, 2, 0.85);
    background: transparent;
    color: #eef3f0;
    font-family: var(--bc-font);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.bc-vcard:hover {
    background: var(--bc-accent, #ea7402);
    border-color: var(--bc-accent, #ea7402);
    color: #060606;
}

.bc-vcard:focus {
    outline: none;
}

.bc-vcard:focus-visible {
    outline: 1px solid color-mix(in srgb, #d8dfdc 45%, transparent);
    outline-offset: 4px;
}

@keyframes bc-frame-in {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes bc-rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes bc-logo-sheen {
    0%,
    55%,
    100% {
        background-position: 120% 0;
    }
    70%,
    85% {
        background-position: -40% 0;
    }
}

@keyframes bc-rim-glow {
    0%,
    100% {
        box-shadow: inset 0 0 0 1px color-mix(in srgb, #ea7402 0%, transparent);
    }
    50% {
        box-shadow: inset 0 0 0 1px color-mix(in srgb, #ea7402 28%, transparent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bc-frame,
    .bc-frame::after,
    .bc-logo-link,
    .bc-logo-link::after,
    .bc-name,
    .bc-role,
    .bc-links li,
    .bc-vcard-wrap {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .bc-frame::after,
    .bc-logo-link::after {
        display: none;
    }
}
