/* ==========================================================================
   FLYFISSION DESIGN SYSTEM — INDUSTRIAL / CAPITAL PROJECT ENGINEERING
   Hard geometry · Signal Orange · Blueprint grid · Monospace annotations
   ========================================================================== */

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

:root {
    /* === PALETTE — Clean Professional Graytone ===
       Light-to-mid gray backgrounds for readability and authority.
       Single Signal Orange accent for CTAs. Minimal decoration. */

    --bg-deep: #3A3F44;
    /* Structural Steel — deepest sections */
    --bg-base: #434950;
    /* Brushed Nickel */
    --bg-raised: #515860;
    /* Weathered Zinc */
    --bg-surface: #5E666E;
    /* Cast Concrete */

    /* Signal Orange — primary accent, CTAs & action elements */
    --accent: #D97B3A;
    --accent-dim: rgba(217, 123, 58, 0.45);
    --accent-glow: rgba(217, 123, 58, 0.12);
    --accent-subtle: rgba(217, 123, 58, 0.06);
    --accent-hover: #E58D4E;

    /* Steel Teal — secondary accent for labels, borders, emphasis */
    --highlight: #5F8A8B;
    --highlight-dim: rgba(95, 138, 139, 0.3);

    /* AscertAIn Brand Cyan — for bright neon pop */
    --ascertain-cyan: #22D3EE;

    /* Operational green — status only */
    --green: #22C55E;

    /* Text hierarchy — clean whites and grays */
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-dim: #94A3B8;
    --text-muted: #64748B;

    /* Panel system */
    --panel-bg: rgba(255, 255, 255, 0.04);
    --panel-bg-hover: rgba(255, 255, 255, 0.07);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-border-hover: rgba(255, 255, 255, 0.16);
    --panel-border-accent: var(--accent);

    /* Grid overlay — extremely subtle */
    --grid-line: rgba(255, 255, 255, 0.025);
    --grid-dot: rgba(255, 255, 255, 0.02);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s ease;
    --transition-med: 0.3s ease;

    /* Geometry */
    --radius: 2px;
    --radius-lg: 2px;
    --radius-xl: 0px;

    /* Layout */
    --max-width: 1200px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;
}

::selection {
    background: var(--accent);
    color: white;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-secondary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
    font-size: 16px;
    position: relative;
}

/* === Blueprint Grid Background === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        /* Major grid lines */
        repeating-linear-gradient(0deg,
            var(--grid-line) 0px,
            var(--grid-line) 1px,
            transparent 1px,
            transparent 80px),
        repeating-linear-gradient(90deg,
            var(--grid-line) 0px,
            var(--grid-line) 1px,
            transparent 1px,
            transparent 80px),
        /* Minor grid dots */
        radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
    background-size: 80px 80px, 80px 80px, 16px 16px;
    opacity: 0.15;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

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

img {
    max-width: 100%;
    display: block;
}

video {
    max-width: 100%;
    display: block;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    width: 0%;
    z-index: 200;
    transition: width 0.1s linear;
}

/* ===== UTILITIES ===== */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    z-index: 9999;
    font-weight: bold;
    font-family: var(--font-mono);
    text-transform: uppercase;
    transition: top 0.2s;
}

.skip-nav:focus {
    top: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

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

.text-highlight {
    color: var(--highlight);
}

.text-ascertain {
    color: var(--ascertain-cyan);
}

/* Section labels — engineering annotation style */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: var(--space-md);
    display: inline-block;
}

.section-label::before {
    content: '// ';
    opacity: 0.5;
}

/* ===== HARD PANELS (replaces glass) ===== */
.hard-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-left: 3px solid var(--panel-border);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hard-panel:hover {
    background: var(--panel-bg-hover);
    border-color: var(--panel-border-hover);
    border-left-color: var(--highlight);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

/* Keep glass-panel as alias for backward compat during transition */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-left: 3px solid var(--panel-border);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    background: var(--panel-bg-hover);
    border-color: var(--panel-border-hover);
    border-left-color: var(--highlight);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

/* ===== NAV ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: transparent;
    transition: all 0.4s var(--ease-out-expo);
}

nav.scrolled {
    padding: 0.5rem 0;
    background: rgba(58, 63, 68, 0.97);
    border-bottom: 1px solid var(--panel-border);
}

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

/* Logo — industrial mark */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 0;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    transition: all var(--transition-med);
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.logo:hover .logo-mark {
    background: var(--accent);
    color: white;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
}

.logo-text span {
    color: var(--accent);
}

.logo-img {
    display: block;
    width: auto;
    transition: opacity var(--transition-fast);
}

.logo-img.nav-logo {
    height: 95px;
}

.logo:hover .logo-img {
    opacity: 0.85;
}

.footer-brand .logo-img {
    height: 65px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
    color: white;
}

.nav-cta {
    padding: 0.5rem 1.25rem !important;
    background: var(--accent) !important;
    color: white !important;
    font-weight: 700 !important;
    border-radius: var(--radius) !important;
    transition: all 0.3s ease !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-mono);
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(33, 36, 39, 0.98);
    border-bottom: 1px solid var(--panel-border);
    padding: 1.5rem;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s var(--ease-out-expo);
    pointer-events: none;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: white;
}

.mobile-menu .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    z-index: 2;
    padding: 10rem 0 5rem;
}

/* Geometric High-Tech Accent Pattern */
.decor-matrix {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.15;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 70%);
}

.hero-content {
    max-width: 100%;
}

/* Engineering tag badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--accent-subtle);
    border-left: 3px solid var(--accent);
    border-radius: 0;
    background: var(--accent-subtle);
    margin-bottom: var(--space-xl);
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 0;
    background: var(--accent);
    animation: indicator-blink 2s step-end infinite;
}

@keyframes indicator-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.06;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.035em;
}

.hero h1 .text-accent {
    position: relative;
}

.hero .hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Hero Bumpout — engineering annotation callout */
.hero-bumpout {
    position: relative;
    margin: var(--space-xl) 0;
    padding: var(--space-md) var(--space-xl);
    border-left: 3px solid var(--highlight);
    background: linear-gradient(135deg, rgba(95, 138, 139, 0.08) 0%, rgba(95, 138, 139, 0.02) 100%);
    border-radius: 0 var(--radius) var(--radius) 0;
    max-width: 100%;
}

.hero-bumpout-tag {
    position: absolute;
    top: -10px;
    left: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--highlight);
    background: var(--bg-deep);
    padding: 2px 8px;
}

.hero-bumpout p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin: 0;
}

.hero-bumpout p+p {
    margin-top: 0.35rem;
}

.hero-bumpout p:last-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-bumpout em {
    color: var(--text-primary);
    font-style: italic;
}

/* ===== BUTTONS — hard, industrial ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-med);
    text-decoration: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 3px solid rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    border-bottom-color: rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius);
    border: 1px solid var(--panel-border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--highlight-dim);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.btn-secondary:hover {
    border-color: var(--highlight);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover::after {
    height: 100%;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    padding: 10rem 0 4rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

.page-hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

hr.divider {
    border: none;
    height: 1px;
    background: var(--panel-border);
    margin: 0;
    position: relative;
    overflow: visible;
}

hr.divider::before,
hr.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--highlight);
    border-radius: 50%;
}

hr.divider::before {
    left: var(--space-lg);
}

hr.divider::after {
    right: var(--space-lg);
}

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ===== CARD GRIDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .card-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--highlight);
    transition: height 0.4s var(--ease-out-expo);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    height: 100%;
}

.service-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: var(--accent-subtle);
    border: 1px solid rgba(232, 89, 12, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--accent);
    font-size: 1.1rem;
    transition: all var(--transition-med);
}

.service-card:hover .service-card-icon {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ===== EXPERTISE CARDS (homepage) ===== */
.expertise-card {
    padding: var(--space-xl) var(--space-lg);
    text-align: left;
}

.expertise-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: var(--accent-subtle);
    border: 1px solid rgba(232, 89, 12, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 1.3rem;
    color: var(--accent);
    transition: all var(--transition-med);
}

.expertise-card:hover .expertise-card-icon {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.expertise-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.expertise-card p {
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ===== TESTIMONIAL BANNER ===== */
.testimonial {
    padding: var(--space-2xl) 0;
    position: relative;
    z-index: 2;
}

.testimonial-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: var(--space-xl);
    border-left: 3px solid var(--accent);
}

.testimonial blockquote {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-style: normal;
    margin-bottom: var(--space-md);
    position: relative;
    padding-left: var(--space-lg);
}

.testimonial blockquote::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 0;
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.4;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-sans);
}

.testimonial-source {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-left: var(--space-lg);
}

.testimonial-stars {
    color: var(--highlight);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    padding-left: var(--space-lg);
}

/* ===== STATS ROW ===== */
.stats-row {
    display: flex;
    justify-content: flex-start;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.stat {
    text-align: left;
    position: relative;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -var(--space-lg);
    width: 1px;
    height: 100%;
    background: var(--panel-border);
}

.stat:first-child::before {
    display: none;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.stat-value .text-accent {
    color: var(--accent);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-mono);
}

/* ===== PLATFORM CROSS-LINK ===== */
.platform-section {
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 2;
}

.platform-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    padding: var(--space-xl);
}

.platform-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.platform-card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--space-lg);
}

.platform-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--accent-subtle);
    border-left: 3px solid var(--accent);
    border-radius: 0;
    display: inline-block;
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .platform-card {
        flex-direction: column;
        text-align: left;
    }
}

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 2;
    text-align: left;
}

.cta-banner h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: var(--space-md);
}

.cta-banner p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-size: 1rem;
    max-width: 600px;
}

/* ===== LIFECYCLE TIMELINE ===== */
.lifecycle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

@media (max-width: 900px) {
    .lifecycle {
        grid-template-columns: 1fr;
    }
}

.lifecycle-phase {
    padding: var(--space-lg);
    position: relative;
}

.lifecycle-phase-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.lifecycle-phase h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.lifecycle-phase ul {
    list-style: none;
    padding: 0;
}

.lifecycle-phase li {
    font-size: 0.825rem;
    color: var(--text-dim);
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lifecycle-phase li::before {
    content: '—';
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* ===== VALUES GRID ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

@media (max-width: 900px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.value-card {
    padding: var(--space-lg);
    border-left: 3px solid transparent;
    transition: all var(--transition-med);
}

.value-card:hover {
    border-left-color: var(--accent);
}

.value-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
}

.value-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ===== FOUNDER SECTION ===== */
.founder {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

@media (max-width: 768px) {
    .founder {
        grid-template-columns: 1fr;
    }
}

.founder-photos {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: sticky;
    top: 100px;
}

.founder-photo {
    width: 100%;
    border-radius: 0;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-left: 3px solid var(--accent);
    overflow: hidden;
    position: relative;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-photo:first-child {
    aspect-ratio: 3/4;
}

.founder-photo-family {
    aspect-ratio: 3/2;
}

.founder-photo-family img {
    object-position: center 55%;
}

.founder-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.founder-bio h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.founder-bio .founder-title {
    font-size: 0.8rem;
    color: var(--accent);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-lg);
}

.founder-bio p {
    margin-bottom: var(--space-md);
    font-size: 0.925rem;
    line-height: 1.8;
}

.founder-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    transition: all var(--transition-fast);
    font-family: var(--font-mono);
}

.founder-link:hover {
    color: var(--accent-hover);
    gap: 0.7rem;
}

/* ===== ETYMOLOGY SECTION ===== */
.etymology {
    padding: var(--space-xl);
}

.etymology-entry {
    margin-bottom: var(--space-xl);
}

.etymology-entry:last-child {
    margin-bottom: 0;
}

.etymology-word {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.etymology-phonetic {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.6rem;
}

.etymology-def {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: var(--space-md);
    border-left: 2px solid var(--accent-subtle);
    margin-bottom: 0.6rem;
}

.etymology-note {
    font-size: 0.825rem;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.6;
}

/* ===== CONTACT PAGE ===== */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: start;
}

@media (max-width: 768px) {
    .contact-split {
        grid-template-columns: 1fr;
    }
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: var(--accent-subtle);
    border: 1px solid rgba(232, 89, 12, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-detail-text {
    font-size: 0.875rem;
}

.contact-detail-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.1rem;
    font-family: var(--font-mono);
}

.contact-detail-text span,
.contact-detail-text a {
    color: var(--text-secondary);
}

.contact-detail-text a:hover {
    color: var(--accent);
}

/* Contact Form — industrial inputs */
.contact-form {
    padding: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-family: var(--font-mono);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 0.875rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    background: rgba(232, 89, 12, 0.03);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group select option {
    background: var(--bg-deep);
    color: var(--text-primary);
}

.btn-submit {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    border-radius: var(--radius);
    border-bottom: 3px solid rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all var(--transition-med);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
}

/* ===== FOOTER ===== */
footer {
    padding: var(--space-xl) 0;
    border-top: 2px solid var(--panel-border);
    position: relative;
    z-index: 2;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .logo-text {
    font-size: 1.05rem;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-dim);
    transition: color var(--transition-fast);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 100%;
    text-align: left;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger .reveal {
    transition-delay: calc(var(--i, 0) * 80ms);
}

/* ===== DIVIDER ===== */
.divider {
    height: 1px;
    background: var(--panel-border);
    margin: 0;
    border: none;
}

/* ===== BOOKING SECTION ===== */
.booking-section {
    text-align: left;
    padding: var(--space-xl);
    margin-top: var(--space-lg);
}

.booking-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-badge .dot {
        animation: none;
    }

    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ===== SECTION BACKGROUND IMAGES (Scroll Parallax) ===== */
.hero,
#section-capabilities,
#section-track-record,
.cta-banner {
    position: relative;
    overflow: hidden;
}

.hero::after,
#section-capabilities::after,
#section-track-record::after,
.cta-banner::after,
#services-hero::after,
#section-services-cards::after,
#section-services-lifecycle::after,
#whoweare-hero::after,
#section-founder::after,
#section-values::after,
#section-etymology::after,
#section-contact-form::after,
#section-contact-booking::after {
    content: '';
    position: absolute;
    inset: -20% 0;
    z-index: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.035;
    filter: grayscale(100%) contrast(1.2);
    transform: translateY(calc(var(--scroll, 0) * -0.05px));
    will-change: transform;
}

.hero::after {
    background-image: url('../images/bg/hero-steel.png');
}

#section-capabilities::after {
    background-image: url('../images/bg/engineering-drawings.png');
    opacity: 0.03;
}

#section-track-record::after {
    background-image: url('../images/bg/facility-aerial.png');
    opacity: 0.03;
}

.cta-banner::after {
    background-image: url('../images/bg/blueprint-review.png');
    opacity: 0.025;
}

/* --- Services Page --- */
#services-hero::after {
    background-image: url('../images/bg/bg-services-hero.png');
}

#section-services-cards::after {
    background-image: url('../images/bg/bg-services-cards.png');
    opacity: 0.03;
}

#section-services-lifecycle::after {
    background-image: url('../images/bg/bg-services-lifecycle.png');
    opacity: 0.03;
}

/* --- Who We Are Page --- */
#whoweare-hero::after {
    background-image: url('../images/bg/bg-whoweare-hero.png');
}

#section-founder::after {
    background-image: url('../images/bg/bg-whoweare-founder.png');
    opacity: 0.03;
}

#section-values::after {
    background-image: url('../images/bg/bg-whoweare-values.png');
    opacity: 0.025;
}

#section-etymology::after {
    background-image: url('../images/bg/bg-whoweare-flyfishing.png');
    opacity: 0.03;
}

/* --- Contact Page --- */
#section-contact-form::after {
    background-image: url('../images/bg/bg-contact-form.png');
    opacity: 0.03;
}

#section-contact-booking::after {
    background-image: url('../images/bg/bg-contact-booking.png');
    opacity: 0.025;
}

/* Ensure content sits above background images */
.hero>.container,
#section-capabilities>*,
#section-track-record>*,
.cta-banner>*,
#services-hero>*,
#section-services-cards>*,
#section-services-lifecycle>*,
#whoweare-hero>*,
#section-founder>*,
#section-values>*,
#section-etymology>*,
#section-contact-form>*,
#section-contact-booking>* {
    position: relative;
    z-index: 1;
}

/* ===== FLOATING ENGINEERING SYMBOLS ===== */
.eng-symbols {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.eng-sym {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    color: var(--highlight);
    opacity: 0.07;
    animation: eng-drift var(--dur, 80s) linear var(--delay, 0s) infinite;
    will-change: transform;
    transition: translate 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    translate: var(--mx, 0px) var(--my, 0px);
}

@keyframes eng-drift {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) translateX(10px) rotate(2deg);
    }

    50% {
        transform: translateY(-15px) translateX(-8px) rotate(-1deg);
    }

    75% {
        transform: translateY(-45px) translateX(5px) rotate(1.5deg);
    }

    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .eng-sym {
        animation: none;
    }

    .hero::after,
    #section-capabilities::after,
    #section-track-record::after,
    .cta-banner::after {
        transform: none;
    }
}

/* Hide symbols on small screens for performance */
@media (max-width: 768px) {
    .eng-symbols {
        display: none;
    }

    .hero::after,
    #section-capabilities::after,
    #section-track-record::after,
    .cta-banner::after {
        opacity: 0.03;
    }
}

/* ===== RESPONSIVE FINE-TUNE ===== */

/* --- Tablet / Large mobile (768px) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .logo-img.nav-logo {
        height: 70px;
    }

    .hero {
        padding: 6.5rem 0 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(2rem, 7vw, 2.75rem);
    }

    .hero .hero-sub {
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
        margin-bottom: var(--space-lg);
    }

    .hero-bumpout {
        margin: var(--space-lg) 0;
        padding: var(--space-md) var(--space-lg);
    }

    .hero-bumpout p {
        font-size: 0.85rem;
    }

    .stats-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .stat-value {
        font-size: 2rem;
    }

    .testimonial-inner {
        padding: var(--space-lg);
    }

    .testimonial blockquote {
        font-size: 0.95rem;
        padding-left: var(--space-md);
    }

    .testimonial blockquote::before {
        font-size: 2.25rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
}

/* --- Small mobile (480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 6rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero .hero-sub {
        font-size: 0.925rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-bumpout {
        padding: var(--space-sm) var(--space-md);
    }

    .stats-row {
        gap: var(--space-lg);
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .cta-banner h2 {
        font-size: 1.4rem;
    }

    .page-hero {
        padding: 7rem 0 2.5rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }
}