* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #06080f;
    color: #e8eaf6;
    overflow-x: hidden;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }

/* Animated circuit-grid background for the hero */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96, 165, 250, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 30%, transparent 90%);
    pointer-events: none;
}

/* Slow ambient pulse traces (toned down per Desktop B2B review) */
.trace {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.5), transparent);
    height: 1px;
    animation: trace-flow 14s linear infinite;
    pointer-events: none;
}
.trace.t1 { top: 22%; left: -20%; width: 30%; animation-delay: 0s; }
.trace.t2 { top: 58%; left: -20%; width: 24%; animation-delay: 4.8s; background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.55), transparent); }
.trace.t3 { top: 78%; left: -20%; width: 28%; animation-delay: 8.2s; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45), transparent); }
@keyframes trace-flow {
    0%   { transform: translateX(0%); opacity: 0; }
    10%  { opacity: 0.5; }
    90%  { opacity: 0.5; }
    100% { transform: translateX(500%); opacity: 0; }
}

/* Glass + utilities */
.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cyan-only gradient (pink/purple removed per Desktop B2B review) */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav */
.nav-fixed {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(6, 8, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-link {
    color: #cbd5e1;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    position: relative;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #22d3ee, transparent);
}

/* Section anchor offset for fixed nav */
section[id] { scroll-margin-top: 5rem; }

/* Offering accents */
.accent-ai      { --accent: #22d3ee; --accent-soft: rgba(34, 211, 238, 0.12); }
.accent-cooling { --accent: #f59e0b; --accent-soft: rgba(245, 158, 11, 0.12); }
.accent-defense { --accent: #60a5fa; --accent-soft: rgba(96, 165, 250, 0.12); }
.accent-weapons { --accent: #94a3b8; --accent-soft: rgba(148, 163, 184, 0.12); }
.accent-power    { --accent: #fbbf24; --accent-soft: rgba(251, 191, 36, 0.12); }
.accent-solar    { --accent: #84cc16; --accent-soft: rgba(132, 204, 22, 0.12); }
.accent-turbines { --accent: #ea580c; --accent-soft: rgba(234, 88, 12, 0.12); }

.offering-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    position: relative;
    overflow: hidden;
}
.offering-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent, #60a5fa);
    opacity: 0.85;
}
.offering-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.offering-eyebrow {
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.offering-card h3 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.offering-tagline {
    color: #cbd5e1;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.offering-points {
    list-style: none;
    margin-bottom: 1.5rem;
}
.offering-points li {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
}
.offering-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 8px;
    height: 1px;
    background: var(--accent);
    opacity: 0.7;
}

.hardened-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent, #60a5fa);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
}
.cta-link:hover { gap: 0.75rem; }

/* Stack footnote (AI section) */
.stack-strip {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}
.stack-strip:hover { opacity: 0.55; }
.stack-strip .stack-label {
    color: #64748b;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
}
.stack-strip .stack-tools {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Cooling gallery — full-width strip, 2 → 3 → 6 cols responsive */
.cooling-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .cooling-gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 1280px) {
    .cooling-gallery { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
}
.cooling-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}
.cooling-gallery img:hover {
    transform: scale(1.03);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

/* Lightbox overlay (vanilla JS, opened by clicking any cooling-gallery img) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-img-wrap {
    position: relative;
    max-width: 92vw;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
}
.lightbox img {
    max-width: 92vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-caption {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    max-width: 720px;
    padding: 0 1rem;
}
.lightbox-counter {
    color: #64748b;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    transform: scale(1.05);
}
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev  { top: 50%; left: 1rem;  transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 1rem; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }
@media (max-width: 640px) {
    .lightbox-prev, .lightbox-next { display: none; }
    .lightbox img { max-height: 70vh; }
}
body.lightbox-open { overflow: hidden; }

/* Contact form */
.contact-form {
    text-align: left;
    margin-top: 2rem;
}
.contact-form-row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .contact-form-row.cols-2 { grid-template-columns: 1fr 1fr; }
}
.contact-form label {
    display: block;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.contact-form label .req { color: #38bdf8; margin-left: 2px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.7rem 0.875rem;
    color: #e8eaf6;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(255, 255, 255, 0.06);
}
.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}
.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23cbd5e1' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.25rem;
}
.contact-form select option { background: #06080f; color: #e8eaf6; }
.contact-form .phone-group {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.5rem;
}
.contact-form .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    margin-top: 0.5rem;
}
.contact-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.25);
}
.contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.contact-form .form-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
    text-align: center;
}
.contact-form .form-status {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    text-align: center;
    min-height: 1.2em;
}
.contact-form .form-status.success { color: #86efac; }
.contact-form .form-status.error   { color: #fca5a5; }

/* Cooling gallery wrapper — full-width strip below the bullets/callout grid */
.cooling-gallery-wrap {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.cooling-gallery-wrap .gallery-label {
    color: #f59e0b;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.875rem;
    display: block;
}

/* Maritime vessel-tracks (Claude Design "maritime-hero" bundle) */
.vessel-tracks-wrap {
    margin-top: 1.5rem;
}
.ms-hero {
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #04060c;
    border: 1px solid rgba(148, 163, 184, 0.08);
    aspect-ratio: 600 / 180;
}
.ms-hero svg { display: block; width: 100%; height: 100%; }
.ms-hero .ms-hero-desktop { display: block; }
.ms-hero .ms-hero-mobile  { display: none; }
@media (max-width: 540px) {
    .ms-hero { aspect-ratio: 4 / 5; }
    .ms-hero .ms-hero-desktop { display: none; }
    .ms-hero .ms-hero-mobile  { display: block; }
}
.vessel-tracks-caption {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* Logo SVG sizing (Aperture lockup, viewBox 360x96) */
.logo-nav { display: block; height: 36px; width: auto; color: #ffffff; }
.logo-footer { display: block; height: 44px; width: auto; color: #ffffff; }

/* About section */
.about-section {
    padding: 3.5rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.about-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}
.about-inner h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
}
.about-inner p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}
.about-inner p:last-child { margin-bottom: 0; }

/* Hardened strip */
.hardened-strip {
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(34, 197, 94, 0.06), transparent),
        rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hardened-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .hardened-grid { grid-template-columns: repeat(5, 1fr); }
    .hardened-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.hardened-item { text-align: center; }
.hardened-item i {
    font-size: 1.5rem;
    color: #86efac;
    margin-bottom: 0.5rem;
}
.hardened-item .label {
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
}
.hardened-item .sub {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Division cards (hub) */
.division-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}
.division-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent, #60a5fa);
    opacity: 0.85;
}
.division-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.08);
}
.division-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}
.division-card .division-tag {
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.division-card p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.division-card .division-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Cross-sell related block (bottom of /ai/ and /energy/) */
.related-strip {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(148, 163, 184, 0.03);
    padding: 1.5rem;
    border-radius: 0.5rem;
}
.related-strip .related-eyebrow {
    color: #94a3b8;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.related-strip a {
    color: #38bdf8;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.related-strip a:hover { color: #67e8f9; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #06080f; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* Fade in (tightened stagger per Desktop B2B review) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in   { animation: fadeInUp 0.7s ease-out forwards; }
.fade-in-1 { animation: fadeInUp 0.7s ease-out 0.05s forwards; opacity: 0; }
.fade-in-2 { animation: fadeInUp 0.7s ease-out 0.10s forwards; opacity: 0; }
.fade-in-3 { animation: fadeInUp 0.7s ease-out 0.15s forwards; opacity: 0; }

/* Print + PDF rendering — hide animated traces (Chrome headless catches them mid-cycle as static rectangles overlapping the hero text) */
@media print {
    .trace { display: none !important; }
    .ms-hero svg animate, .ms-hero svg animateTransform { display: none; }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .trace { display: none; }
    .fade-in, .fade-in-1, .fade-in-2, .fade-in-3 {
        opacity: 1;
        transform: none;
    }
    /* SMIL doesn't honour prefers-reduced-motion natively — hide animation elements */
    .ms-hero svg animate,
    .ms-hero svg animateTransform { display: none; }
}
