/* Buttons — sharp, accent fill / ghost outline */
.btn {
    --btn-pad-x: 26px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 var(--btn-pad-x);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: var(--tracking-btn);
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 0.28s var(--ease-out),
        background 0.28s var(--ease-out),
        border-color 0.28s var(--ease-out),
        color 0.28s var(--ease-out),
        box-shadow 0.28s var(--ease-out);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 0 transparent;
}

.btn--primary:hover {
    background: var(--accent-soft);
    transform: translateY(-1px);
    box-shadow: 0 0 28px var(--accent-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn--ghost:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.btn--ghost .btn__chev {
    color: var(--accent);
}

.btn__chev {
    display: inline-flex;
    transition: transform 0.28s var(--ease-out);
}

.btn:hover .btn__chev {
    transform: translateX(4px);
}

.btn--sm {
    min-height: 42px;
    --btn-pad-x: 18px;
    font-size: 0.7rem;
}

/* Red square marker from reference */
.marker {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    background: var(--danger);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--danger-glow);
}

/* Feature / service cards */
.feature-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) 1.15fr;
    min-height: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.feature-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px 40px;
    background: linear-gradient(180deg, #101215 0%, #0c0e11 100%);
}

.feature-card__title {
    font-family: var(--font-display);
    font-size: var(--fs-card);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.feature-card__text {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    margin: 18px 0 28px;
    max-width: 38ch;
    color: var(--text-secondary);
    font-size: 0.94rem;
}

.feature-card__media {
    position: relative;
    overflow: hidden;
}

.feature-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    transition: transform 1.2s var(--ease-expo);
}

.feature-card:hover .feature-card__media img {
    transform: scale(1.1);
}

.feature-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(13, 15, 18, 0.55) 0%,
        rgba(13, 15, 18, 0.12) 42%,
        rgba(13, 15, 18, 0) 100%
    );
    pointer-events: none;
}

.feature-card__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Compact supporting cards */
.support-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 100%;
}

.support-card__media {
    position: relative;
    aspect-ratio: 16 / 10.2;
    overflow: hidden;
}

.support-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease-expo);
}

.support-card:hover .support-card__media img {
    transform: scale(1.08);
}

.support-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 6, 7, 0) 40%, rgba(13, 15, 18, 0.45) 100%);
}

.support-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
    background: #101215;
}

.support-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.support-card__text {
    display: flex;
    gap: 2px;
    margin: 12px 0 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.support-card__body .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Industry cards */
.industry-card {
    position: relative;
    display: block;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.15s var(--ease-expo);
}

.industry-card:hover img {
    transform: scale(1.08);
}

.industry-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(5, 6, 7, 0.08) 0%,
        rgba(5, 6, 7, 0.28) 45%,
        rgba(5, 6, 7, 0.88) 100%
    );
}

.industry-card__meta {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
}

.industry-card__name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.industry-card__tag {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

/* Project cards */
.project-card {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.project-card__media {
    position: relative;
    height: clamp(200px, 28vw, 360px);
    overflow: hidden;
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-expo);
}

.project-card:hover .project-card__media img {
    transform: scale(1.07);
}

.project-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(5, 6, 7, 0.72) 100%);
}

.project-card__body {
    padding: 22px 22px 26px;
    background: #0e1013;
}

.project-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.project-card__loc {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.project-card__tags {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-card__link span {
    transition: transform 0.28s var(--ease-out);
}

.project-card:hover .project-card__link span {
    transform: translateX(5px);
}

/* Brand wall */
.brand-item {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 88px;
    padding: 16px 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.3s var(--ease-out),
        border-color 0.3s var(--ease-out),
        transform 0.3s var(--ease-out),
        text-shadow 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out);
}

.brand-item__logo {
    display: block;
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.brand-item__name {
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
}

.brand-item:hover {
    color: var(--text-primary);
    border-color: var(--border-lime);
    transform: translateY(-4px);
    text-shadow: 0 0 18px var(--accent-glow);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand-item:hover .brand-item__logo {
    opacity: 1;
    transform: scale(1.04);
}

/* Why / capability */
.why-item {
    padding: 28px 24px;
    border: 1px solid var(--border);
    background: var(--surface);
    min-height: 100%;
}

.why-item__index {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.why-item__title {
    margin: 12px 0 10px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.why-item__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Custom cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: width 0.28s var(--ease-out),
        height 0.28s var(--ease-out),
        margin 0.28s var(--ease-out),
        background 0.28s var(--ease-out),
        border-color 0.28s;
    display: none;
}

.cursor__label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-inverse);
    opacity: 0;
}

.cursor.is-hover {
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    background: var(--accent);
    border-color: var(--accent);
    mix-blend-mode: normal;
}

.cursor.is-hover .cursor__label {
    opacity: 1;
}

@media (pointer: fine) {
    .cursor {
        display: block;
    }

    body.has-custom-cursor,
    body.has-custom-cursor a,
    body.has-custom-cursor button {
        cursor: none;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: #050607;
}

.preloader__inner {
    text-align: center;
}

.preloader__name {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.preloader__line {
    position: relative;
    width: min(280px, 70vw);
    height: 1px;
    margin: 22px auto 0;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.preloader__line span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.preloader__count {
    margin-top: 14px;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
}

/* Page veil for transitions */
.page-veil {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: #050607;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}
