/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Visually hidden, but still read by screen readers and search engines */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --bg:        #0a0a0a;
    --bg-card:   #111111;
    --bg-dark:   #050505;
    --text:      #f0f0f0;
    --text-dim:  #888888;
    --accent:    #ff4d00;
    --accent-g:  linear-gradient(135deg, #ff4d00, #ff8800);
    --radius:    12px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    font-size: 16px;
    overflow-x: hidden;
    /* Lenis handles smooth scroll — no CSS scroll-behavior */
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.accent { color: var(--accent); }
.center { text-align: center; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: var(--bg-dark);
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ============================
   PRELOADER
   ============================ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-inner {
    text-align: center;
    width: clamp(280px, 50vw, 500px);
}

.preloader-word-mask {
    overflow: hidden;
    height: clamp(5rem, 12vw, 8rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-word {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 10vw, 7rem);
    color: var(--accent);
    letter-spacing: 6px;
    display: block;
    line-height: 1;
    text-transform: uppercase;
    will-change: transform, opacity;
}

.preloader-bar-track {
    width: 100%;
    height: 2px;
    background: #222;
    margin-top: 1.5rem;
    border-radius: 1px;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 1px;
}

/* ============================
   NAVBAR
   ============================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    opacity: 0;
    transition: background var(--transition), padding var(--transition);
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.8rem 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 3px;
}
.logo span { color: var(--accent); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }

.btn-nav {
    background: var(--accent-g);
    color: #fff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700 !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
    z-index: 1060;            /* stays above the open menu overlay so it can close it */
}
.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================
   GLOBAL 3D BACKGROUND
   ============================ */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================
   HERO
   ============================ */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 1;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
}

/* Line-reveal mask: each .line-wrap clips its child .line */
.line-wrap {
    display: block;
    overflow: hidden;
}
.line-wrap .line {
    display: block;
    transform: translateY(110%);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    opacity: 0;
}

.hero-cta {
    opacity: 0;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-g);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 40px rgba(255, 77, 0, 0.35);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    margin: 0 auto 0.5rem;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.8s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%   { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 22px; }
}

/* ============================
   SCROLL ANIMATIONS (GSAP)
   ============================ */
.anim-up {
    opacity: 0;
    transform: translateY(60px);
}
.anim-left {
    opacity: 0;
    transform: translateX(-80px);
}
.anim-right {
    opacity: 0;
    transform: translateX(80px);
}
.anim-scale {
    opacity: 0;
    transform: scale(0.7);
}
.anim-clip {
    clip-path: inset(100% 0 0 0);
}
.anim-rotate {
    opacity: 0;
    transform: translateY(50px) rotate(3deg);
}

/* ----------------------------------------------------------------
   Resilience & accessibility for the scroll animations above.
   The hidden states are only safe while JS is running to animate
   them back in. If JS is disabled — or a CDN script fails and the
   inline loader reverts <html> to .no-js on window load — reveal
   everything so the page is never blank. Reduced-motion users always
   get the end state with no entrance movement.
   ---------------------------------------------------------------- */
html:not(.js) .line-wrap .line { transform: none; }
html:not(.js) .hero-sub,
html:not(.js) .hero-cta,
html:not(.js) .scroll-indicator,
html:not(.js) .anim-up,
html:not(.js) .anim-left,
html:not(.js) .anim-right,
html:not(.js) .anim-scale,
html:not(.js) .anim-rotate { opacity: 1; transform: none; }
html:not(.js) .anim-clip { clip-path: none; }

@media (prefers-reduced-motion: reduce) {
    .line-wrap .line { transform: none !important; }
    .hero-sub,
    .hero-cta,
    .scroll-indicator,
    .anim-up,
    .anim-left,
    .anim-right,
    .anim-scale,
    .anim-rotate { opacity: 1 !important; transform: none !important; }
    .anim-clip { clip-path: none !important; }
    .wheel { animation: none !important; }
}

/* ============================
   ABOUT
   ============================ */
.about-text p {
    color: var(--text-dim);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    position: relative;
    aspect-ratio: 1;
}
/* Drop a photo of Harrison into .about-visual (see index.html) and it fills this box */
.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.5rem;
}

.badge {
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================
   SERVICES / CARDS
   ============================ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid #1a1a1a;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(255, 77, 0, 0.1);
}

.card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ============================
   RESULTS / PARALLAX
   ============================ */
.parallax-section {
    overflow: visible;
}

.result-bars {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-bar {
    text-align: left;
}

.bar-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
    display: block;
}

.bar-track {
    width: 100%;
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    background: var(--accent-g);
    border-radius: 4px;
}

/* ============================
   TESTIMONIALS
   ============================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: var(--bg-card);
    border: 1px solid #1a1a1a;
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform var(--transition);
}
.testimonial:hover {
    transform: translateY(-4px);
}

.stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial p {
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 700;
    font-size: 0.9rem;
}

/* ============================
   CONTACT
   ============================ */
.contact-text p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.contact-item span {
    color: var(--text-dim);
}

.contact-form-wrap form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-wrap input,
.contact-form-wrap textarea {
    background: #111;
    border: 1px solid #222;
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
}

.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus {
    border-color: var(--accent);
}

.contact-form-wrap textarea {
    resize: vertical;
}

#form-status {
    font-size: 0.9rem;
    color: var(--accent);
    min-height: 1.4em;
}

/* ============================
   FOOTER
   ============================ */
footer {
    padding: 2rem 0;
    border-top: 1px solid #1a1a1a;
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer p {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        inset: 0;
        height: 100vh;
        z-index: 1050;            /* above all page content so it fully covers it */
        background: var(--bg);    /* solid + opaque — no content bleed-through */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }
    .nav-links.open { transform: translateX(0); }
    body.menu-open { overflow: hidden; }   /* lock background scroll while menu is open */

    .nav-links a {
        font-size: 1.3rem;
        color: var(--text);
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-visual {
        max-height: 300px;
    }

    .stats {
        gap: 1.5rem;
    }

    .stat-num {
        font-size: 2.2rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
