/* ==========================================================================
   UTILITIES — small, reusable, layout-agnostic classes shared across
   several components/sections (ITCSS "objects" layer).
   ========================================================================== */

.text-gradient {
    background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradientDrift 8s ease-in-out infinite;
}
@keyframes gradientDrift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.glass {
    background: var(--panel);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: inset 0 1px 0 var(--highlight), var(--shadow-sm);
}

.section-label {
    display: inline-block;
    color: var(--accent);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: .78rem;
    font-family: var(--font-mono);
    margin-bottom: 1.1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.02em;
    margin-bottom: 1.1rem;
    max-width: 20ch;
}

.section-sub {
    color: var(--text-dim);
    max-width: 46ch;
    margin-bottom: 3.2rem;
    font-size: 1.08rem;
    line-height: 1.65;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(var(--accent-rgb), .12);
    border: 1px solid rgba(var(--accent-rgb), .3);
    padding: .3rem .7rem;
    border-radius: 100px;
    margin-bottom: .9rem;
}

/* interaction-effect hooks (see components/scroll-reveal.css and js/modules/pointer-effects.js) */
.magnetic, .tilt { will-change: transform; }

/* words produced by js/utils/split-text.js for the word-by-word headline reveal */
.reveal-word {
    display: inline-block;
    will-change: transform, opacity, filter;
}

/* shimmering placeholder shown behind any image while it loads
   (js/modules/image-loading.js toggles .is-loaded once it fires) */
.skeleton-img {
    background: linear-gradient(100deg, var(--panel) 30%, var(--panel-strong) 50%, var(--panel) 70%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s ease-in-out infinite;
    opacity: 0;
    transition: opacity .6s var(--ease-soft);
}
.skeleton-img.is-loaded {
    opacity: 1;
    animation: none;
    background: none;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
