/* =============================================
   ABSOLT Global Stylesheet
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #fff;
    --black: #000;
    --grey: #888;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* ─── Custom Cursor ──────────────────────────── */
/* Hide default cursor everywhere */
*,
*::before,
*::after {
    cursor: none !important;
}

/* Inner dot — snaps to mouse instantly */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: opacity 300ms ease;
    will-change: transform;
}

/* Outer ring — lags behind with lerp in JS */
#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 300ms ease, height 300ms ease,
        border-color 300ms ease, background 300ms ease,
        opacity 300ms ease;
    will-change: transform;
}

/* Hover state — ring expands and gets a faint fill */
#cursor-ring.hovered {
    width: 56px;
    height: 56px;
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

/* On touch devices — hide both (no hover) */
@media (hover: none) {

    #cursor-dot,
    #cursor-ring {
        display: none;
    }

    *,
    *::before,
    *::after {
        cursor: auto !important;
    }
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Page wrapper */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ─── Navbar ─────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 48px;
    background: transparent;
}

.navbar__logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--white);
}

.navbar__links {
    display: flex;
    gap: 36px;
}

.navbar__links a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    color: var(--white);
    position: relative;
    transition: color .25s;
}

.navbar__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width .3s ease;
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
    width: 100%;
}

/* Hamburger */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.navbar__hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: transform .3s ease, opacity .3s ease;
}

/* Mobile overlay */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    transition: opacity .3s ease;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
}

.mobile-menu a {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--white);
    transition: color .2s;
}

.mobile-menu a:hover {
    color: var(--grey);
}

.mobile-menu__close {
    position: absolute;
    top: 24px;
    right: 48px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    line-height: 1;
}

/* ─── Footer ─────────────────────────────── */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--white);
    padding: 28px 48px 16px;
}

.footer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__left {
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--white);
}

.footer__center {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer__center a {
    display: flex;
    align-items: center;
    color: var(--white);
    transition: color .2s;
}

.footer__center a:hover {
    color: var(--grey);
}

.footer__center svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer__right {
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--white);
    display: flex;
    gap: 12px;
}

.footer__right a {
    color: var(--white);
    transition: color .2s;
}

.footer__right a:hover {
    color: var(--grey);
}

.footer__tagline {
    text-align: center;
    margin-top: 18px;
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--grey);
}

/* ─── Reveal Animations ─────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

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

.reveal-group>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.reveal-group.visible>*:nth-child(1) {
    transition-delay: 0ms;
}

.reveal-group.visible>*:nth-child(2) {
    transition-delay: 100ms;
}

.reveal-group.visible>*:nth-child(3) {
    transition-delay: 200ms;
}

.reveal-group.visible>*:nth-child(4) {
    transition-delay: 300ms;
}

.reveal-group.visible>*:nth-child(5) {
    transition-delay: 400ms;
}

.reveal-group.visible>*:nth-child(6) {
    transition-delay: 500ms;
}

.reveal-group.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Lightspeed overlay ─────────────────── */
#hyperspace-canvas {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    display: none;
    opacity: 0;
}

/* ─── Hero ────────────────────────────────── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 120px 48px 80px;
}

.hero__eyebrow {
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--grey);
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(32px, 10vw, 128px);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -.02em;
    margin-bottom: 32px;
}

.hero__subtitle {
    font-size: clamp(12px, 1.5vw, 15px);
    letter-spacing: .18em;
    color: var(--grey);
    max-width: 480px;
    margin-bottom: 56px;
    line-height: 1.9;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--white);
    font-family: inherit;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    cursor: pointer;
    transition: background .3s ease, color .3s ease;
}

.btn:hover {
    background: var(--white);
    color: var(--black);
}

.btn--sm {
    padding: 10px 28px;
    font-size: 11px;
}

/* ─── Section ────────────────────────────── */
.section {
    padding: 120px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.section--full {
    padding: 120px 48px;
}

.section__label {
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--grey);
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    margin-bottom: 32px;
}

.section__body {
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: .04em;
    color: var(--grey);
    max-width: 640px;
}

.divider {
    width: calc(100% - 96px);
    height: 1px;
    background: var(--white);
    opacity: .12;
    margin: 0 auto;
}

/* ─── Cards ──────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    margin-top: 64px;
}

.card {
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 40px 36px;
    transition: border-color .3s, background .3s;
}

.card:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, .04);
}

.card__number {
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--grey);
    margin-bottom: 24px;
}

.card__title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 16px;
}

.card__body {
    font-size: 13px;
    line-height: 1.8;
    color: var(--grey);
    letter-spacing: .04em;
}

/* ─── Marquee ────────────────────────────── */
.marquee-wrapper {
    overflow: hidden;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 22s linear infinite;
}

.marquee-track span {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .25em;
    color: var(--grey);
    padding: 0 40px;
    white-space: nowrap;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ─── Two-col ────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 64px;
}

/* ─── Stats ──────────────────────────────── */
.stat-list {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.stat-item {
    padding: 48px 0 32px;
    border-right: 1px solid rgba(255, 255, 255, .15);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item__number {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
    margin-bottom: 8px;
}

.stat-item__label {
    font-size: 11px;
    letter-spacing: .25em;
    color: var(--grey);
}

/* ─── Services ───────────────────────────── */
.service-list {
    margin-top: 64px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    transition: padding-left .3s ease;
}

.service-item:hover {
    padding-left: 12px;
}

.service-item__index {
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--grey);
    min-width: 40px;
    padding-top: 6px;
}

.service-item__content {
    flex: 1;
}

.service-item__title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 16px;
}

.service-item__body {
    font-size: 13px;
    line-height: 1.8;
    color: var(--grey);
    letter-spacing: .04em;
    max-width: 560px;
}

.service-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    font-size: 10px;
    letter-spacing: .2em;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--grey);
}

/* ─── Projects ───────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2px;
    margin-top: 64px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    aspect-ratio: 4/3;
    background: #0a0a0a;
    cursor: pointer;
    transition: border-color .3s;
}

.project-card:hover {
    border-color: var(--white);
}

.project-card__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, transparent 60%);
    transform: translateY(20px);
    opacity: 0;
    transition: transform .4s ease, opacity .4s ease;
}

.project-card:hover .project-card__inner {
    transform: translateY(0);
    opacity: 1;
}

.project-card__bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: .25em;
    color: rgba(255, 255, 255, .06);
    font-weight: 700;
}

.project-card__label {
    font-size: 10px;
    letter-spacing: .3em;
    color: var(--grey);
    margin-bottom: 8px;
}

.project-card__title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .02em;
}

.project-card__num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 10px;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .18);
}

/* ─── Inquire form ───────────────────────── */
.form-wrapper {
    margin-top: 64px;
    max-width: 640px;
}

.form-field {
    margin-bottom: 32px;
}

.form-field label {
    display: block;
    font-size: 10px;
    letter-spacing: .3em;
    color: var(--grey);
    margin-bottom: 10px;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    padding: 12px 0;
    outline: none;
    letter-spacing: .06em;
    transition: border-color .3s;
    -webkit-appearance: none;
    appearance: none;
}

.form-field select option {
    background: var(--black);
    color: var(--white);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-bottom-color: var(--white);
}

.form-field textarea {
    resize: none;
    height: 120px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, .2);
}

.form-submit {
    margin-top: 16px;
}

/* ─── Responsive ─────────────────────────── */
@media (max-width:900px) {
    .navbar {
        padding: 20px 24px;
    }

    .navbar__links {
        display: none;
    }

    .navbar__hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .section {
        padding: 80px 24px;
    }

    .section--full {
        padding: 80px 24px;
    }

    footer {
        padding: 28px 24px 16px;
    }

    .footer__row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .stat-list {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .15);
        padding: 32px 0;
    }

    .stat-item__number {
        font-size: 48px;
    }

    .service-item {
        flex-direction: column;
        gap: 20px;
    }

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

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

    .mobile-menu__close {
        right: 24px;
        top: 20px;
    }

    .divider {
        width: calc(100% - 48px);
    }

    /* Improve touch targets for accessibility */
    .navbar__hamburger {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
    }

    .mobile-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .navbar__links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

@media (max-width:480px) {
    .hero__title {
        font-size: 44px;
    }

    .section__title {
        font-size: 28px;
    }

    .stat-item__number {
        font-size: 40px;
    }

    /* Prevent iOS auto-zoom on form focus (font-size must be >=16px) */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Stack footer legal links cleanly */
    .footer__right {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .footer__right span {
        display: none;
    }
}