:root {
    --orange: #ff6b1a;
    --orange-deep: #e85000;
    --black: #0d0d0d;
    --dark: #1a1a1a;
    --grey: #6b6b6b;
    --light-grey: #f4f4f2;
    --white: #ffffff;
    --nav-height: 68px;
    --font-display: "Barlow Condensed", sans-serif;
    --font-body: "DM Sans", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
}
img,
svg {
    display: block;
    max-width: 100%;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1160px;
    margin: 0 auto;
}

/* ======= NAV ======= */
header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(13, 13, 13, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 26, 0.15);
    height: var(--nav-height);
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-logo-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.nav-logo-text .abbr {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 4px;
    color: var(--white);
}
.nav-logo-text .full {
    font-size: 0.58rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey);
    margin-top: 3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #aaaaaa;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--orange);
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: var(--white);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-cta {
    background: var(--orange) !important;
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: 2px;
    font-weight: 600 !important;
}
.nav-cta:hover {
    background: var(--orange-deep) !important;
}
.nav-cta::after {
    display: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
    border-radius: 1px;
}
.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ======= HERO ======= */
#hero {
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(
            rgba(255, 107, 26, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(90deg, rgba(255, 107, 26, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-bg-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 107, 26, 0.12) 0%,
        transparent 70%
    );
    right: -80px;
    top: -80px;
    pointer-events: none;
}

/* KEY FIX: hero-inner is CSS grid, not inline style */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 88px 0 72px;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 24px;
}
.hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--orange);
}

h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -1px;
    color: var(--white);
    margin-bottom: 24px;
}
h1 .line-accent {
    color: var(--orange);
    display: block;
}

.hero-sub {
    font-size: 1rem;
    line-height: 1.75;
    color: #888;
    max-width: 480px;
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
    background: var(--orange-deep);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 13px 24px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.cube-container {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}
.cube-svg {
    width: 100%;
    max-width: 340px;
    height: auto;
}

/* Stats — normal flow, not absolute */
.hero-stats {
    background: var(--dark);
    border-top: 1px solid rgba(255, 107, 26, 0.1);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    padding: 24px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.stat-item:last-child {
    border-right: none;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 5px;
}
.stat-label {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #555;
    font-weight: 500;
}

/* ======= SECTIONS ======= */
section {
    padding: 96px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 18px;
}
.section-label::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    background: var(--orange);
}

h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    color: var(--dark);
    margin-bottom: 22px;
}

/* ======= ABOUT ======= */
#about {
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.about-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: #555;
    font-weight: 300;
    margin-bottom: 18px;
}
.about-text p:last-of-type {
    margin-bottom: 0;
}
.about-text strong {
    color: var(--dark);
    font-weight: 600;
}
.about-visual {
    background: var(--light-grey);
    border-radius: 4px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.about-visual::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--orange);
}
.about-pillars-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.about-pillar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.pillar-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--orange);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pillar-icon svg {
    width: 17px;
    height: 17px;
}
.pillar-text h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}
.pillar-text p {
    font-size: 0.82rem;
    color: var(--grey);
    line-height: 1.6;
    margin: 0 !important;
}

/* ======= SERVICES ======= */
#services {
    background: var(--dark);
    color: var(--white);
}
#services h2 {
    color: var(--white);
}
.services-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    align-items: end;
}
.services-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: #888;
    font-weight: 300;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.card {
    background: var(--dark);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.card:hover {
    background: #222;
}
.card:hover::before {
    transform: scaleX(1);
}
.card-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 107, 26, 0.12);
    line-height: 1;
    margin-bottom: 20px;
    transition: color 0.3s;
}
.card:hover .card-num {
    color: rgba(255, 107, 26, 0.25);
}
.card-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 107, 26, 0.1);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: background 0.3s;
}
.card:hover .card-icon {
    background: rgba(255, 107, 26, 0.2);
}
.card-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--orange);
    fill: none;
}
.card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}
.card p {
    font-size: 0.86rem;
    line-height: 1.8;
    color: #777;
    font-weight: 300;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
}
.tag {
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange);
    border: 1px solid rgba(255, 107, 26, 0.25);
    padding: 4px 9px;
    border-radius: 1px;
}

.pipeline {
    margin-top: 56px;
    padding: 40px 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}
.pipeline h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 32px;
    text-align: center;
}
.pipeline-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.pipeline-step {
    text-align: center;
    padding: 0 20px;
    position: relative;
}
.pipeline-step::after {
    content: "→";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange);
    font-size: 1.1rem;
}
.pipeline-step:last-child::after {
    display: none;
}
.step-num {
    font-size: 0.6rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 6px;
}
.step-label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

/* ======= COMMUNITY ======= */
#community {
    background: var(--light-grey);
}
.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}
.community-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: #555;
    font-weight: 300;
    margin-bottom: 18px;
}
.audience-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.audience-card {
    background: var(--white);
    border-radius: 2px;
    padding: 22px;
    border-left: 3px solid var(--orange);
    transition: box-shadow 0.2s, transform 0.2s;
}
.audience-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.audience-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}
.audience-card p {
    font-size: 0.8rem;
    color: var(--grey);
    line-height: 1.6;
    margin: 0;
}
.sectors-strip {
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.sectors-label {
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 14px;
}
.sectors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sector-pill {
    font-size: 0.73rem;
    font-weight: 500;
    color: var(--dark);
    background: var(--white);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s, color 0.2s;
}
.sector-pill:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* ======= CONTACT ======= */
#contact {
    background: var(--black);
    color: var(--white);
}
#contact h2 {
    color: var(--white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}
.contact-info-block p {
    font-size: 1rem;
    color: #777;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 32px;
}
.contact-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: #888;
}
.contact-detail svg {
    width: 17px;
    height: 17px;
    stroke: var(--orange);
    fill: none;
    flex-shrink: 0;
}
.contact-detail a:hover {
    color: var(--orange);
}
form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
label {
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #555;
}
input,
textarea,
select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 12px 14px;
    border-radius: 2px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
}
input::placeholder,
textarea::placeholder {
    color: #3a3a3a;
}
input:focus,
textarea:focus,
select:focus {
    border-color: var(--orange);
    background: rgba(255, 107, 26, 0.04);
}
textarea {
    height: 120px;
    resize: vertical;
}
select option {
    background: var(--dark);
}
.form-submit {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover {
    background: var(--orange-deep);
    transform: translateY(-1px);
}
.form-note {
    font-size: 0.7rem;
    color: #444;
}
.form-success {
    display: none;
    background: rgba(255, 107, 26, 0.08);
    border: 1px solid rgba(255, 107, 26, 0.2);
    border-radius: 2px;
    padding: 18px 20px;
    color: var(--orange);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 8px;
}

/* ======= FOOTER ======= */
footer {
    background: #060606;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 44px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-logo .abbr {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 4px;
    color: var(--white);
}
.footer-logo .full {
    font-size: 0.58rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #3a3a3a;
    margin-top: 3px;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    color: #3a3a3a;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--orange);
}
.footer-copy {
    font-size: 0.7rem;
    color: #2e2e2e;
}

/* ======= REVEAL ======= */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 {
    transition-delay: 0.1s;
}
.reveal-delay-2 {
    transition-delay: 0.2s;
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .cube-container {
        animation: none;
    }
}

/* ======================================================
       RESPONSIVE BREAKPOINTS
       ====================================================== */

/* --- Tablet: 769–960px --- */
@media (max-width: 960px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .services-header {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 36px;
    }
}

/* --- Tablet/Mobile: ≤820px --- */
@media (max-width: 820px) {
    /* Nav */
    .nav-toggle {
        display: flex;
    }
    .nav-logo-text .full {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.99);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 16px 0 40px;
        overflow-y: auto;
        border-top: 1px solid rgba(255, 107, 26, 0.12);
        z-index: 199;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .nav-links a {
        display: block;
        padding: 18px 7%;
        font-size: 1rem;
        letter-spacing: 2px;
        color: #ccc;
    }
    .nav-links a::after {
        display: none;
    }
    .nav-links a:hover {
        color: var(--orange);
        background: rgba(255, 107, 26, 0.04);
    }
    .nav-cta {
        margin: 24px 7% 0;
        display: block;
        text-align: center;
        border-radius: 2px;
    }
    .nav-links li:last-child {
        border-bottom: none;
    }

    /* Hero */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 0 52px;
        gap: 40px;
    }
    .hero-eyebrow {
        justify-content: center;
    }
    .hero-sub {
        margin: 0 auto 36px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
    .cube-svg {
        max-width: 240px;
    }

    /* Sections */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .community-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    section {
        padding: 72px 0;
    }
}

/* --- Mobile: ≤540px --- */
@media (max-width: 540px) {
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2) {
        border-right: none;
    }
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .stat-item:nth-child(4) {
        border-right: none;
    }

    /* Hero actions stacked */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .btn-primary,
    .btn-ghost {
        justify-content: center;
        width: 100%;
    }

    /* About visual padding */
    .about-visual {
        padding: 28px 20px;
    }

    /* Audience cards single column */
    .audience-cards {
        grid-template-columns: 1fr;
    }

    /* Pipeline vertical */
    .pipeline {
        padding: 28px 20px;
    }
    .pipeline-steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .pipeline-step {
        padding: 12px 0;
    }
    .pipeline-step::after {
        content: "↓";
        position: static;
        display: block;
        text-align: center;
        margin-top: 8px;
        transform: none;
        font-size: 1rem;
    }
    .pipeline-step:last-child::after {
        display: none;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }
    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .footer-links {
        justify-content: center;
        gap: 16px;
    }

    section {
        padding: 56px 0;
    }
}
