/* ============================================================
   HazTech Global — brand styles
   Palette: black / red / white / blue (from brand collateral)
   ============================================================ */

:root {
    --ink:    #0b0b0d;   /* base background            */
    --void:   #050507;   /* deepest panels             */
    --panel:  #111317;   /* raised cards               */
    --line:   #23262d;   /* hairline borders           */
    --red:    #ed1c24;   /* HazTech red                */
    --red-dk: #b8141a;
    --blue:   #1b9de0;   /* HazTech blue               */
    --blue-dk:#1278b0;
    --silver: #d7dce2;   /* metallic light             */
    --muted:  #8a909a;   /* secondary text             */
    --white:  #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--ink);
    color: var(--silver);
    font-family: 'Inter', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .display {
    font-family: 'Saira', Arial, sans-serif;
    color: var(--white);
    letter-spacing: -0.01em;
}

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

/* ---- top progress / flag rule ---- */
.brand-rule {
    height: 3px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 45%, var(--red) 55%, var(--red) 100%);
}

/* ---- eyebrow label with the brand // mark ---- */
.eyebrow {
    font-family: 'Saira', sans-serif;
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}
.eyebrow::before {
    content: "// //";
    color: var(--red);
    letter-spacing: -.05em;
    font-weight: 800;
}

/* ============================================================
   HERO — recreates the red "ribbon" sweep from the collateral
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(120% 90% at 80% 10%, #16181d 0%, var(--ink) 55%, var(--void) 100%);
}

/* the flowing ribbon, built from layered skewed blades */
.ribbon {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.ribbon svg { width: 100%; height: 100%; display: block; }

/* faint tribal/tech dot grid */
.grid-dots {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .5;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(120% 80% at 70% 30%, #000 30%, transparent 75%);
            mask-image: radial-gradient(120% 80% at 70% 30%, #000 30%, transparent 75%);
}

.hero-inner { position: relative; z-index: 2; }

.hero h1 {
    font-weight: 800;
    line-height: .92;
    font-size: clamp(2.8rem, 9vw, 6.5rem);
    margin: 0;
}
.hero h1 .blue { color: var(--blue); }
.hero h1 .red  { color: var(--red); }

.reg-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Saira', sans-serif;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--silver);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    padding: .45rem .85rem;
}
.reg-chip .dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; }

/* ---- buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: 'Saira', sans-serif;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .9rem 1.6rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(237,28,36,.35); }
.btn-ghost { border: 1px solid var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #03161f; transform: translateY(-2px); }

/* ============================================================
   CAPABILITY STRIP — the "// //" marquee from the banner
   ============================================================ */
.cap-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--void);
    overflow: hidden;
}
.cap-track {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
    padding: .9rem 0;
    width: max-content;
    animation: marquee 32s linear infinite;
}
.cap-track span {
    font-family: 'Saira', sans-serif;
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--silver);
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
}
.cap-track span::after {
    content: "//";
    color: var(--red);
    font-weight: 800;
}
.cap-track span:nth-child(even)::after { color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .cap-track { animation: none; }
}

/* ============================================================
   SECTIONS / CARDS
   ============================================================ */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.wrap { width: min(1180px, 92%); margin: 0 auto; }

.section-head h2 {
    font-weight: 800;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    margin: .4rem 0 0;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 1.6rem;
    transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card:hover { border-color: var(--red); transform: translateY(-4px); }

.icon-box {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    color: var(--blue);
    margin-bottom: 1rem;
    transition: color .25s ease, border-color .25s ease;
}
.card:hover .icon-box { color: var(--red); border-color: var(--red); }
.icon-box svg { width: 22px; height: 22px; }

.svc-list { list-style: none; padding: 0; margin: .8rem 0 0; }
.svc-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: .45rem;
    font-size: .92rem;
    color: var(--muted);
}
.svc-list li::before {
    content: "";
    position: absolute; left: 0; top: .55em;
    width: 6px; height: 6px;
    background: var(--blue);
    transform: rotate(45deg);
}

/* partners — the headline collaboration block */
.partner-card {
    background: linear-gradient(135deg, rgba(27,157,224,.10), rgba(237,28,36,.08));
    border: 1px solid var(--line);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.partner-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--red));
}
.partner-card h3 { font-size: 1.5rem; margin: .3rem 0 .2rem; }

/* ============================================================
   PROJECTS — alternating feature rows, screenshots in a frame
   ============================================================ */
.proj { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4.5rem); }

.proj-row {
    display: flex;
    gap: clamp(1.6rem, 4vw, 3.2rem);
    align-items: center;
}
.proj-row:nth-child(even) { flex-direction: row-reverse; }

.proj-media {
    flex: 1 1 56%;
    min-width: 0;
    position: relative;
    background: #f3f5f8;
    border: 1px solid var(--line);
    padding: .55rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.proj-media::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    z-index: 2;
}
.proj-media::after {
    content: "";
    position: absolute; bottom: -1px; right: -1px;
    width: 18px; height: 18px;
    border-bottom: 2px solid var(--red);
    border-right: 2px solid var(--red);
}
.proj-media img { width: 100%; height: auto; display: block; }

.proj-body { flex: 1 1 44%; min-width: 0; }
.proj-meta { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; flex-wrap: wrap; }
.proj-tag {
    display: inline-block;
    font-family: 'Saira', sans-serif;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue);
    border: 1px solid var(--line);
    padding: .3rem .65rem;
}
.proj-year {
    font-family: 'Saira', sans-serif;
    font-size: .68rem;
    letter-spacing: .14em;
    color: var(--muted);
}
.proj-body h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 .5rem; line-height: 1.15; }
.proj-client {
    font-family: 'Saira', sans-serif;
    font-size: .82rem;
    letter-spacing: .04em;
    color: var(--red);
    margin: 0 0 .9rem;
}
.proj-body p { color: var(--muted); line-height: 1.65; margin: 0; }

@media (max-width: 860px) {
    .proj-row, .proj-row:nth-child(even) { flex-direction: column; }
    .proj-media, .proj-body { flex: 1 1 auto; width: 100%; }
}

/* team / alliance rows */
.row-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 1.3rem 1.4rem;
    transition: border-color .25s ease;
}
.row-card:hover { border-color: var(--blue); }

.tag {
    font-family: 'Saira', sans-serif;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red);
}

/* contact */
.field {
    width: 100%;
    background: var(--void);
    border: 1px solid var(--line);
    color: var(--white);
    padding: .95rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    transition: border-color .2s ease;
}
.field::placeholder { color: #5c626b; }
.field:focus { outline: none; border-color: var(--blue); }

.alert {
    padding: .9rem 1rem;
    font-family: 'Saira', sans-serif;
    letter-spacing: .04em;
    margin-bottom: 1.2rem;
}
.alert-ok  { border: 1px solid var(--blue); color: var(--blue); background: rgba(27,157,224,.08); }
.alert-err { border: 1px solid var(--red);  color: #ff6b70; background: rgba(237,28,36,.08); }

/* footer */
footer { background: var(--void); border-top: 1px solid var(--line); }

/* nav */
.nav {
    position: fixed; top: 3px; left: 0; right: 0; z-index: 50;
    background: rgba(8,9,11,.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-bar {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px; position: relative;
}
.nav-brand { display: inline-flex; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-cta { padding: .5rem 1.1rem; }
.nav a.link {
    font-family: 'Saira', sans-serif;
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--silver);
    padding: .4rem 0;
    transition: color .2s ease;
}
.nav a.link:hover { color: var(--blue); }
.nav-logo { height: 42px; width: auto; display: block; }

/* reveal on scroll — only hidden when JS is active (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* mobile nav toggle */
.nav-toggle { display: none; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); color: #fff; padding: .5rem .7rem; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: .2rem;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--ink); border-bottom: 1px solid var(--line);
        padding: 1rem 5%;
    }
    .nav-toggle { display: inline-flex; }
}
