/* --- VARIABLES --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-panel: #141414;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent: #c19a6b;
    --accent-hover: #a37f55;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

/* --- RESET & GLOBAL --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* PAGE TRANSITION OVERLAY */
#page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

/* MASSIVE TRANSITION LOGO */
.transition-logo {
    width: 350px;
    max-width: 80vw;
    /* Prevents blowing off screen on small phones */
    opacity: 0;
    animation: logoPulse 1.5s ease-in-out forwards;
}

@keyframes logoPulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(193, 154, 107, 0.4));
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.transition-complete {
    opacity: 0;
}

body.loaded {
    overflow-y: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto;
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 15px 40px;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-nav {
    border: 1px solid var(--accent);
    padding: 8px 25px;
    color: var(--accent) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--accent);
    color: var(--bg-dark) !important;
}

.btn-text {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.btn-text:hover {
    color: var(--accent);
}

/* --- NAVIGATION --- */
.navbar {
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-box {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent);
    transition: all 0.3s ease;
}

/* --- PAGE HEADERS --- */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(to bottom, #050505, var(--bg-dark));
    text-align: center;
    border-bottom: 1px solid #222;
}

.page-header h1 {
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.page-header .sub {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
}

/* --- HOMEPAGE SPECIFIC --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
    overflow: hidden;
}

#intro-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(1.15);
    transform-origin: center;
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

.main-content {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-content.revealed {
    opacity: 1;
    transform: scale(1);
}

body.intro-complete {
    height: auto;
    overflow-y: auto;
}

.hero {
    height: 90vh;
    background: url('theop.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 20px;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
}

.sub-head {
    font-family: var(--font-head);
    color: var(--accent);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.hero-text {
    font-size: 1.7rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* --- SECTIONS & CARDS --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: white;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.card,
.debrief-card,
.cap-card,
.doc-card,
.gear-card {
    background: var(--bg-panel);
    padding: 40px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card {
    border-left: 2px solid #333;
}

.card:hover {
    border-left: 2px solid var(--accent);
    background: #1a1a1a;
    transform: translateY(-5px);
}

.icon-box {
    font-family: var(--font-head);
    font-size: 3rem;
    color: #222;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1;
}

.card:hover .icon-box {
    color: var(--accent);
}

.card h3 {
    font-family: var(--font-head);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Debrief Specific */
.debrief,
.aar-section {
    background: #050505;
}

.debrief-card {
    border: 1px solid #222;
}

.debrief-card:hover {
    border-color: #444;
}

.debrief-card .tag {
    font-size: 0.7rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 4px 8px;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-family: var(--font-head);
    font-weight: 600;
}

.debrief-card h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.debrief-card .stat {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    display: inline-block;
}

/* Case Files */
.case-file {
    background: var(--bg-panel);
    border: 1px solid #333;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.file-header {
    background: #1a1a1a;
    padding: 15px 30px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge {
    background: var(--accent);
    color: black;
    padding: 2px 8px;
    font-weight: 700;
}

.file-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
}

.file-content {
    padding: 50px;
}

.file-content h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.client-ref {
    font-family: var(--font-mono);
    color: #666;
    margin-bottom: 30px;
    display: block;
    font-size: 0.9rem;
}

.mission-brief h3 {
    font-size: 1rem;
    color: white;
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    margin-top: 30px;
}

.mission-brief h3:first-child {
    margin-top: 0;
}

.data-panel {
    background: #111;
    border-left: 1px solid #333;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-block {
    margin-bottom: 40px;
}

.stat-block:last-child {
    margin-bottom: 0;
}

.stat-value {
    font-family: var(--font-head);
    font-size: 3.5rem;
    color: white;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.stat-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Capabilities Specific */
.philosophy {
    padding: 100px 0;
}

.phil-content h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.phil-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 20px;
}

.phil-graphic {
    background: #111;
    height: 400px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.node {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
}

.line {
    position: absolute;
    background: #333;
    height: 1px;
    transform-origin: left;
}

.capabilities {
    padding: 80px 0;
}

.cap-header {
    text-align: center;
    margin-bottom: 60px;
}

.cap-header h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: white;
    text-transform: uppercase;
}

.cap-card {
    border-top: 4px solid #333;
    padding: 50px;
    background: var(--bg-panel);
}

.cap-card:hover {
    border-top-color: var(--accent);
    transform: translateY(-5px);
}

.cap-card:hover .cap-number {
    color: var(--accent);
}

.cap-number {
    font-family: var(--font-head);
    font-size: 4rem;
    color: #222;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1;
    transition: color 0.3s ease;
}

.cap-card h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cap-list {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.cap-list li {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.cap-list li::before {
    content: "►";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.7rem;
    top: 4px;
}

.leadership-module {
    padding: 100px 0;
    position: relative;
    background: url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?q=80&w=2071&auto=format&fit=crop') center/cover fixed;
}

.module-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
}

.module-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.module-content h2 {
    font-family: var(--font-head);
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.module-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
}

.btn-outline {
    display: inline-block;
    border: 2px solid white;
    color: white;
    padding: 15px 40px;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* Leadership Profile Specific */
.profile-section {
    padding: 80px 0;
}

.profile-card {
    background: var(--bg-panel);
    border: 1px solid #333;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.profile-image {
    background: #111;
    border-right: 3px dashed #333;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #444;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.profile-image::before {
    content: "[ IMAGE_DATA_CORRUPT ]";
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
}

.profile-image::after {
    content: "FILE NOT FOUND";
    font-size: 0.8rem;
    opacity: 0.5;
}

.profile-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rank-badge {
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.profile-content h2 {
    font-family: var(--font-head);
    font-size: 3rem;
    color: white;
    margin-bottom: 5px;
    text-transform: uppercase;
    line-height: 1;
}

.profile-title {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
    display: block;
}

.profile-bio p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #ccc;
}

.doctrine-section {
    padding: 80px 0;
    background: #050505;
}

.doc-header {
    text-align: center;
    margin-bottom: 50px;
}

.doc-header h3 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: white;
    text-transform: uppercase;
}

.doc-card {
    border-left: 3px solid #333;
    padding: 40px;
}

.doc-card:hover {
    border-left-color: var(--accent);
    background: #151515;
}

.doc-card h4 {
    color: white;
    font-family: var(--font-head);
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Tradecraft Specific */
.category-section {
    padding: 80px 0;
    border-bottom: 1px solid #1a1a1a;
}

.category-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 4px solid var(--accent);
    text-transform: uppercase;
}

.gear-card {
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gear-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.gear-img {
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #333;
    padding: 30px;
}

.gear-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: 0.3s;
}

.gear-card:hover .gear-img img {
    transform: scale(1.05);
}

.gear-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gear-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.gear-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.gear-btn {
    display: block;
    text-align: center;
    border: 1px solid #444;
    padding: 10px 0;
    color: #ccc;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.gear-btn:hover {
    background: var(--accent);
    color: black;
    border-color: var(--accent);
}

/* Directory Link */
.directory-link {
    background: var(--bg-panel);
    border: 1px solid #333;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.directory-link:hover {
    border-color: var(--accent);
    background: #1a1a1a;
    transform: translateX(5px);
}

.dir-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-right: 15px;
}

.dir-text h4 {
    color: white;
    font-family: var(--font-head);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.dir-text p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0;
}

/* Contact Specific */
.contact-header {
    padding: 120px 0 60px;
    text-align: center;
}

.contact-header h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    color: white;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.secure-form-wrapper {
    background: var(--bg-panel);
    border: 1px solid #333;
    padding: 50px;
    margin-bottom: 100px;
    position: relative;
}

.secure-form-wrapper::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 3px solid var(--accent);
    border-left: 3px solid var(--accent);
}

.secure-form-wrapper::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
}

.priority-alert {
    background: rgba(193, 154, 107, 0.1);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.priority-alert p {
    margin: 0;
    font-size: 0.95rem;
    color: #e0e0e0;
    font-family: var(--font-body);
}

.priority-alert strong {
    color: var(--accent);
    text-transform: uppercase;
    font-family: var(--font-head);
    margin-right: 10px;
    letter-spacing: 1px;
}

.priority-alert a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
}

.priority-alert a:hover {
    color: var(--accent);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 15px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: #111;
}

.full-width {
    grid-column: span 2;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background: var(--accent);
    color: black;
    border: none;
    padding: 15px 50px;
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #d4aa7d;
    transform: translateY(-2px);
}

.btn-submit.success {
    background: #4CAF50 !important;
    color: white !important;
    cursor: default;
}

.btn-submit.success:hover {
    transform: none;
}

.btn-submit.error {
    background: #f44336 !important;
    color: white !important;
    cursor: default;
}

.btn-submit.error:hover {
    transform: none;
}

.contact-intel {
    margin-top: 50px;
    border-top: 1px solid #333;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.intel-block h4 {
    color: white;
    font-family: var(--font-head);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.intel-block p {
    color: #666;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

/* Misc */
.mission-start,
.tradecraft-teaser {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-dark);
    border-top: 1px solid #222;
}

.mission-start h3,
.tradecraft-teaser h3 {
    font-family: var(--font-head);
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.tradecraft-teaser {
    padding: 40px 0;
}

.tradecraft-teaser h3 {
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.tradecraft-teaser p {
    color: var(--text-muted);
}

.tradecraft-teaser a {
    color: white;
    font-weight: 600;
    border-bottom: 1px solid var(--accent);
}

/* 404 Specific */
.error-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #050505;
    padding: 20px;
}

.error-code {
    font-family: var(--font-head);
    font-size: 10rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    position: relative;
}

.error-code::before {
    content: "404";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: var(--accent);
    opacity: 0.5;
    animation: glitch 2s infinite;
}

.error-msg {
    font-family: var(--font-mono);
    color: white;
    font-size: 1.5rem;
    margin-top: -20px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.error-sub {
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* --- FOOTER (STABILIZED) --- */
.footer {
    background: black;
    padding: 60px 0 30px;
    border-top: 4px solid #1a1a1a;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-col.left-col {
    text-align: left;
}

.footer-col.center-col {
    text-align: center;
}

.footer-col.right-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.pjm-logo-img {
    max-width: 90px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.pjm-text {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
}

.footer-triq-logo {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    margin: 0 auto 15px;
}

.copyright {
    color: #555;
    margin-top: 10px;
    font-size: 0.75rem;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: white;
}

.vcl-logo {
    width: 160px;
    height: auto;
    opacity: 0.8;
    transition: 0.3s;
}

.vcl-logo:hover {
    opacity: 1;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 20px;
    }

    .navbar .container-fluid {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-text {
        font-size: 1.2rem;
    }

    /* Footer and layout stacking */
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-col.left-col,
    .footer-col.center-col,
    .footer-col.right-col {
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .form-grid,
    .file-body,
    .profile-card {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .full-width {
        grid-column: span 1;
    }

    /* Image Alignment */
    .logo-img {
        height: 40px;
        margin: 0;
    }

    .vcl-logo,
    .pjm-logo-img {
        margin: 0 auto;
        display: block;
    }

    .footer-triq-logo {
        max-width: 80%;
        height: auto;
        margin: 0 auto 15px;
        display: block;
    }

    .contact-intel {
        flex-direction: column;
        gap: 30px;
    }

    .data-panel {
        border-left: none;
        border-top: 1px solid #333;
        padding: 30px;
        text-align: center;
    }

    .profile-image {
        min-height: 300px;
    }

    .profile-content {
        padding: 40px 20px;
    }

    /* Fix Video on Mobile */
    #intro-video {
        object-fit: contain !important;
        /* Letterbox instead of crop */
        transform: scale(1) !important;
        /* Remove zoom */
        background-color: #000;
    }

    /* HAMBURGER MENU */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        z-index: 1000;
        border-left: 1px solid var(--accent);
        padding: 0 20px;
        box-sizing: border-box;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-links a.btn-nav {
        display: block;
        width: 100%;
        text-align: center;
        white-space: normal !important;
        padding: 15px !important;
        font-size: 1rem;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- EXTRACTED INLINE STYLES --- */

/* Capabilities: NLO watermark */
.nlo-watermark {
    color: #444;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 5rem;
    opacity: 0.2;
}

/* Section modifiers */
.section--compact {
    padding: 40px 0;
}

.section--dark {
    background: #050505;
}

.section-intro {
    text-align: center;
    margin-bottom: 40px;
}

/* Darby: intro description */
.intro-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Darby: screenshot */
.screenshot-frame {
    background: var(--bg-panel);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    position: relative;
}

.screenshot-img {
    width: 100%;
    height: auto;
    border: 1px solid #222;
    border-radius: 4px;
    display: block;
}

/* Icon box variant */
.icon-box--sm {
    font-size: 2rem;
}

/* CTA description */
.cta-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Debrief: mission brief paragraphs */
.mission-brief p {
    color: #ccc;
    margin-bottom: 20px;
}

/* Footer: PJM subtitle */
.pjm-sub {
    font-size: 0.7rem;
    color: #555;
    font-style: italic;
}

/* Privacy page */
.privacy-section {
    padding-top: 150px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.privacy-title {
    font-family: var(--font-head);
    font-size: 3rem;
    color: white;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.privacy-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

/* Last category section no bottom border */
.category-section:last-of-type {
    border-bottom: none;
}

/* Visually hidden (SEO h1) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- SKIP INTRO BUTTON --- */
#skip-intro-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--accent, #c19a6b);
    color: var(--accent, #c19a6b);
    padding: 10px 20px;
    font-family: var(--font-head, 'Montserrat', sans-serif);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#skip-intro-btn:hover {
    background: var(--accent, #c19a6b);
    color: #000;
    box-shadow: 0 0 15px rgba(193, 154, 107, 0.5);
}

@media (max-width: 768px) {
    #skip-intro-btn {
        bottom: 25px;
        right: 25px;
        font-size: 0.75rem;
        padding: 8px 16px;
    }
}