@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap");

:root {
    --bg: #070707;
    --panel: rgba(16, 16, 18, 0.88);
    --line: rgba(255, 255, 255, 0.10);
    --line-strong: rgba(255, 255, 255, 0.20);
    --text: #f2f2f0;
    --muted: #9a9a9f;
    --faint: #66666b;
    --red: #c71920;
    --red-bright: #ee2f36;
    --green: #58d68d;
    --header-height: 78px;
    --shell: 1280px;
    --heading: "Barlow Condensed", sans-serif;
    --body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    line-height: 1.65;
}

body.menu-open,
body.lightbox-open { overflow: hidden; }

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-noise {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.026;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.cursor-glow {
    position: fixed;
    z-index: 0;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(199, 25, 32, 0.085), transparent 67%);
    transform: translate(-50%, -50%);
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--header-height);
    padding: 0 clamp(22px, 4vw, 66px);
    border-bottom: 1px solid transparent;
    transition: 220ms ease;
}

.site-header.scrolled {
    height: 68px;
    background: rgba(7, 7, 8, 0.90);
    border-color: var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 12px;
    width: max-content;
    font-family: var(--heading);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: .15em;
}
.brand img { width: 38px; height: 38px; object-fit: contain; }

.site-navigation {
    display: flex;
    gap: clamp(20px, 2.7vw, 42px);
}
.site-navigation a {
    position: relative;
    color: #d7d7d9;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.site-navigation a::after {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}
.site-navigation a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-action {
    justify-self: end;
    min-width: 108px;
    padding: 11px 18px;
    border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.03);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    cursor: pointer;
    transition: 180ms ease;
}
.header-action:hover { border-color: var(--red-bright); background: var(--red); transform: translateY(-2px); }

.mobile-menu-button {
    display: none;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}
.hero-image,
.hero-shade,
.hero-grid,
.hero-scanline {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-image {
    z-index: -5;
    background: url("assets/banner.webp") center 42% / cover no-repeat;
    transform: scale(1.035);
}
.hero-shade {
    z-index: -4;
    background:
        linear-gradient(90deg, rgba(5,5,6,.97) 0%, rgba(5,5,6,.80) 38%, rgba(5,5,6,.38) 69%, rgba(5,5,6,.82) 100%),
        linear-gradient(180deg, rgba(6,6,7,.34), rgba(6,6,7,.15) 55%, #070707 100%);
}
.hero-grid {
    z-index: -3;
    opacity: .17;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 58px 58px;
}
.hero-scanline {
    z-index: -2;
    opacity: .18;
    background: linear-gradient(to bottom, transparent 49%, rgba(255,255,255,.08) 50%, transparent 51%);
    background-size: 100% 7px;
}

.hero-shell {
    width: min(var(--shell), calc(100% - 44px));
    margin: 0 auto;
    padding: calc(var(--header-height) + 68px) 0 92px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .62fr);
    gap: clamp(50px, 8vw, 118px);
    align-items: end;
}

.eyebrow {
    margin: 0 0 18px;
    color: #d7d7d8;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .19em;
    text-transform: uppercase;
}
.eyebrow span {
    display: inline-block;
    width: 24px;
    height: 2px;
    margin: 0 10px 3px 0;
    background: var(--red);
}

.hero h1 {
    margin: 0;
    font-family: var(--heading);
    font-size: clamp(5rem, 11.5vw, 10.5rem);
    font-weight: 900;
    line-height: .73;
    letter-spacing: -.035em;
}
.hero-line { display: block; }
.hero-line.outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,.58);
}
.hero-line.accent { color: var(--red-bright); }

.hero-tagline {
    margin: 35px 0 0;
    font-family: var(--heading);
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-weight: 600;
}
.hero-tagline strong { color: var(--red-bright); }

.hero-description {
    max-width: 680px;
    margin: 16px 0 0;
    color: #b8b8bc;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 25px;
    border: 1px solid transparent;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: 190ms ease;
}
.button svg { width: 18px; }
.button-primary { background: var(--red); border-color: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-bright); transform: translateY(-3px); }
.button-secondary { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.24); }
.button-secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-3px); }

.hero-status {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(9,9,10,.77);
    backdrop-filter: blur(15px);
    box-shadow: 0 28px 80px rgba(0,0,0,.36);
}
.hero-status::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 74px;
    height: 3px;
    content: "";
    background: var(--red);
}
.status-topline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}
.status-topline p {
    margin: 0;
    color: var(--faint);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .17em;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
}
.status-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 13px rgba(88,214,141,.65);
}
.status-badge.offline i { background: var(--red-bright); }

.server-address { padding: 28px 22px 25px; }
.server-address span,
.status-grid span {
    display: block;
    margin-bottom: 7px;
    color: var(--faint);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .16em;
}
.server-address strong {
    display: block;
    font-family: var(--heading);
    font-size: clamp(1.7rem, 3vw, 2.65rem);
    line-height: 1;
    word-break: break-all;
}
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.status-grid article { padding: 18px 22px; }
.status-grid article:nth-child(odd) { border-right: 1px solid var(--line); }
.status-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.status-grid strong {
    font-family: var(--heading);
    font-size: 1.25rem;
}
.status-message {
    min-height: 68px;
    margin: 0;
    padding: 18px 22px;
    color: var(--muted);
    font-size: .76rem;
}
.status-connect {
    width: 100%;
    min-height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
    border: 0;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.025);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}
.status-connect:hover { background: var(--red); }
.status-connect svg { width: 19px; }

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #8d8d91;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .18em;
    transform: translateX(-50%);
}
.scroll-cue i {
    display: block;
    width: 1px;
    height: 42px;
    background: linear-gradient(var(--red), transparent);
}

.signal-strip {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: #0b0b0c;
}
.marquee {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 15px 0;
    font-family: var(--heading);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .17em;
    animation: marquee 28s linear infinite;
}
.marquee i {
    width: 5px;
    height: 5px;
    transform: rotate(45deg);
    background: var(--red);
}

.section { position: relative; padding: clamp(90px, 10vw, 150px) 0; }
.section-shell { width: min(var(--shell), calc(100% - 44px)); margin: 0 auto; }

.section-intro,
.gallery-heading {
    display: grid;
    grid-template-columns: 1.2fr .72fr;
    gap: 70px;
    align-items: end;
    margin-bottom: 72px;
}
.section-intro h2,
.doctrine-heading h2,
.gallery-heading h2,
.intel-copy h2 {
    margin: 0;
    font-family: var(--heading);
    font-size: clamp(3.3rem, 7vw, 6.6rem);
    font-weight: 900;
    line-height: .88;
    letter-spacing: -.02em;
}
.section-intro > p,
.gallery-heading > p {
    margin: 0;
    color: var(--muted);
}

.experience-section {
    background:
        radial-gradient(circle at 80% 12%, rgba(199,25,32,.08), transparent 30%),
        var(--bg);
}
.showcase-list { display: grid; gap: clamp(80px, 11vw, 155px); }
.showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .72fr);
    gap: clamp(42px, 7vw, 105px);
    align-items: center;
}
.showcase.reverse { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.4fr); }
.showcase.reverse .showcase-image { order: 2; }
.showcase.reverse .showcase-copy { order: 1; }

.showcase-image {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #111;
}
.showcase-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    filter: saturate(.78) contrast(1.08);
    transition: 650ms ease;
}
.showcase:hover .showcase-image img { transform: scale(1.035); filter: saturate(1); }
.image-label {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 10px 15px;
    background: rgba(7,7,8,.84);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .15em;
}
.showcase-index {
    display: block;
    margin-bottom: 18px;
    color: var(--red);
    font-family: var(--heading);
    font-weight: 800;
}
.showcase-copy h3 {
    margin: 0 0 24px;
    font-family: var(--heading);
    font-size: clamp(2.8rem, 5.2vw, 5rem);
    font-weight: 900;
    line-height: .9;
}
.showcase-copy > p:last-child { margin: 0; color: var(--muted); }

.doctrine-section {
    border-block: 1px solid var(--line);
    background: #0b0b0c;
}
.doctrine-heading { max-width: 900px; margin-bottom: 62px; }
.doctrine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.doctrine-card {
    min-height: 285px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(7,7,8,.68);
    transition: 220ms ease;
}
.doctrine-card:hover { background: rgba(199,25,32,.09); transform: translateY(-5px); }
.doctrine-card > span {
    display: block;
    color: var(--red);
    font-family: var(--heading);
    font-weight: 800;
}
.doctrine-card h3 {
    margin: 72px 0 12px;
    font-family: var(--heading);
    font-size: 1.7rem;
    text-transform: uppercase;
}
.doctrine-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    grid-template-rows: repeat(2, 290px);
    gap: 14px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    background: #111;
    cursor: zoom-in;
}
.gallery-item.large { grid-row: 1 / span 2; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.78);
    transition: 500ms ease;
}
.gallery-item::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(transparent 56%, rgba(0,0,0,.82));
}
.gallery-item:hover img { transform: scale(1.045); filter: saturate(1); }
.gallery-item > span {
    position: absolute;
    right: 20px;
    bottom: 17px;
    left: 20px;
    z-index: 2;
    display: flex;
    gap: 11px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.gallery-item b { color: var(--red-bright); }

.intel-section { padding-top: 40px; }
.intel-panel {
    min-height: 360px;
    display: grid;
    grid-template-columns: .45fr 1.25fr .65fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
    padding: clamp(36px, 6vw, 72px);
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(100deg, rgba(8,8,9,.98), rgba(8,8,9,.86)),
        url("assets/banner.webp") center / cover;
}
.intel-mark img { width: min(220px, 100%); }
.intel-copy p:last-child { color: var(--muted); }
.intel-actions { display: grid; gap: 12px; }

.site-footer {
    width: min(var(--shell), calc(100% - 44px));
    margin: 90px auto 0;
    padding: 32px 0 38px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: .72rem;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 36px; height: 36px; object-fit: contain; }
.footer-brand strong {
    display: block;
    color: #eee;
    font-family: var(--heading);
    font-size: 1rem;
    letter-spacing: .14em;
}
.site-footer > p { margin: 0; text-align: center; }
.footer-links { justify-self: end; display: flex; gap: 22px; }

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200;
    min-width: 240px;
    padding: 15px 18px;
    border: 1px solid var(--line-strong);
    background: rgba(12,12,13,.94);
    transform: translateY(25px);
    opacity: 0;
    pointer-events: none;
    transition: 220ms ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 48px;
    background: rgba(3,3,4,.94);
    opacity: 0;
    visibility: hidden;
    transition: 220ms ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: min(1400px, 94vw);
    max-height: 86vh;
    border: 1px solid var(--line-strong);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 45px;
    height: 45px;
    border: 1px solid var(--line-strong);
    background: rgba(255,255,255,.03);
    font-size: 1.7rem;
    cursor: pointer;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.visible { opacity: 1; transform: none; }

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

@media (max-width: 1050px) {
    .site-header { grid-template-columns: 1fr auto; }
    .site-navigation {
        position: fixed;
        top: 68px;
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        padding: 14px 22px 22px;
        background: rgba(7,7,8,.97);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: 220ms ease;
    }
    .site-navigation.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .site-navigation a { padding: 15px 0; border-bottom: 1px solid var(--line); }
    .site-navigation a::after { display: none; }
    .mobile-menu-button { display: block; }
    .header-action { display: none; }
    .hero-shell { grid-template-columns: 1fr; }
    .hero-status { max-width: 620px; }
    .doctrine-grid { grid-template-columns: 1fr 1fr; }
    .intel-panel { grid-template-columns: .4fr 1fr; }
    .intel-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    :root { --header-height: 68px; }
    .cursor-glow { display: none; }
    .site-header { padding: 0 20px; background: rgba(7,7,8,.74); backdrop-filter: blur(12px); }
    .brand span { font-size: 1.08rem; }
    .brand img { width: 32px; height: 32px; }
    .hero-shell { width: min(100% - 36px, var(--shell)); padding-top: 128px; gap: 55px; }
    .hero h1 { font-size: clamp(4.2rem, 22vw, 7rem); }
    .hero-actions { display: grid; }
    .button { width: 100%; }
    .scroll-cue { display: none; }
    .section { padding: 90px 0; }
    .section-shell { width: min(100% - 36px, var(--shell)); }
    .section-intro,
    .gallery-heading { grid-template-columns: 1fr; gap: 28px; margin-bottom: 52px; }
    .showcase,
    .showcase.reverse { grid-template-columns: 1fr; gap: 34px; }
    .showcase.reverse .showcase-image,
    .showcase.reverse .showcase-copy { order: initial; }
    .showcase-image,
    .showcase-image img { min-height: 280px; }
    .doctrine-grid { grid-template-columns: 1fr; }
    .doctrine-card { min-height: auto; }
    .doctrine-card h3 { margin-top: 42px; }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 280px);
    }
    .gallery-item.large { grid-row: auto; }
    .intel-panel { grid-template-columns: 1fr; }
    .intel-mark img { width: 110px; }
    .intel-actions { grid-column: auto; grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; }
    .site-footer > p { text-align: left; }
    .footer-links { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
