
:root {
    --bg:           #080808;
    --white:        #f0f0f0;
    --muted:        #b8b8b8;
    --line:         rgba(255,255,255,0.22);

    /* --accent:       #3dcbf7; */
    --accent:       #179cc5;
    --accent-glow:  rgba(20, 90, 220, 0.32);
    --accent-fade:  rgba(20, 220, 177, 0.1);
    --bg-muted:     rgba(15, 20, 31, 0.5);

    /* RED */
    /* --accent:       rgba(234, 32, 39,1.0);
    --accent-glow:  rgba(220, 100, 20, 0.32);
    --accent-fade:  rgba(220, 190, 20, 0.1);
    --bg-muted:     rgba(31, 22, 15, 0.5); */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* text-transform: uppercase; */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* prevent the right-gap scroll bleed */
}

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: 'SUSE', sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.6;
    overflow-x: clip;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Ambient Glow ───────────────────────────────────── */
.ambient-glow {
    position: fixed;
    top: -80px;
    right: 18%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, var(--accent-fade) 40%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.accent-video {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    object-fit: fill;
    right: 0px;
    bottom: 0px;
}

/* ── Layout ─────────────────────────────────────────── */
.page-wrap { display: flex; min-height: 100vh; position: relative; z-index: 1; width: 100%; max-width: 100vw; overflow-x: clip; }

.main-col {
    flex: 1;
    min-width: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.left-rail,
.right-rail {
    width: 10%;
    min-width: 120px;
    flex-shrink: 0;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path d="M12 8v8M8 12h8" stroke="rgba(255,255,255,0.09)" stroke-width="1"/></svg>');
    background-repeat: repeat;
}

.rail-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 48px 0;
}

.rail-dot { width: 5px; height: 5px; border: 1px solid rgba(255,255,255,0.22); }

/* ── Oxanium on heading-like non-h elements ─────────── */
.hero-headline,
.stat-num,
.pcard-name,
.team-name,
.job-title,
.info-value,
.cap-name,
.modal-title,
.careers-sub,
.contact-sub,
.about-text-col .section-heading h1 {
    font-family: 'Oxanium', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

.rail-label {
    writing-mode: vertical-rl;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 5px;
    color: rgba(255,255,255,0.13);
}

/* ── Nav ────────────────────────────────────────────── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 80px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px) grayscale(1);
    z-index: 100;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--muted);
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
    border: 1px solid var(--white);
    background: transparent;
    color: var(--white);
    padding: 11px 24px;
    font-family: 'SUSE', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.btn:hover { background: var(--white); color: var(--bg); }
.btn.accent { border-color: var(--accent); color: var(--accent); }
.btn.accent:hover { background: var(--accent); color: var(--white); }
.btn.secondary { border-color: var(--line); color: var(--muted); }
.btn.secondary:hover { border-color: var(--white); color: var(--white); background: transparent; }
.btn-icon { font-size: 14px; line-height: 1; }

/* ── Hamburger ──────────────────────────────────────── */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 1px; background: var(--white); }

/* ── Sections ───────────────────────────────────────── */
section { border-bottom: 1px solid var(--line); position: relative; }

.section-inner { padding: 80px 60px; }

.section-heading {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 52px;
    text-transform: uppercase;
}

.section-heading h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    white-space: nowrap;
}

.heading-line { flex: 1; height: 1px; background: var(--line); }

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

.dark-bg {
    /* background-color: var(--bg-muted); */
    /* background-color: transparent !important; */
    backdrop-filter: brightness(0.8) contrast(1.2);
}

/* ── Hero ───────────────────────────────────────────── */
#hero {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 0;
    overflow: hidden;
}

.hero-bg-word {
    position: absolute;
    bottom: 80px;
    right: -20px;
    font-size: 200px;
    font-weight: 700;
    letter-spacing: -4px;
    color: rgba(255,255,255,0.025);
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

.hero-bg-logo {
    position: absolute;
    bottom: 215px;
    right: -20px;
    pointer-events: none;
    opacity: 0.025;
    max-width: 57%;
}

.hero-eyebrow {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--muted);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-transform: uppercase;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: var(--accent);
}

.hero-headline {
    font-size: 92px;
    font-weight: 700;
    line-height: 0.97;
    letter-spacing: 7px;
    margin-bottom: 22px;
}

.hero-sub {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--muted);
    margin-bottom: 52px;
    text-transform: uppercase;
}

.hero-cta-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-footer {
    display: flex;
    border-top: 1px solid var(--line);
    margin-top: 80px;
}

.hero-footer-block {
    flex: 1;
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-footer-block + .hero-footer-block {
    border-left: 1px solid var(--line);
    padding-left: 40px;
}

.info-label { 
    font-size: 10px; font-weight: 400; letter-spacing: 3px; color: var(--muted); 
    text-transform: uppercase;
}
.info-value { font-size: 15px; font-weight: 500; letter-spacing: 1px; }

/* ── Stats Strip ────────────────────────────────────── */
.stats-strip {
    display: flex;
    border-bottom: 1px solid var(--line);
}

.stat {
    flex: 1;
    padding: 36px 60px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat:last-child { border-right: none; }

.stat-num {
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}

.stat-label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2.5px;
    color: var(--muted);
    text-transform: uppercase;
}

/* ── About ──────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.about-text-col {
    padding: 80px 60px;
    border-right: 1px solid var(--line);
}

.about-text-col p {
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 36px;
    max-width: 520px;
}

.about-logo {
    text-align: right;
}

.about-logo img { height: 64px; width: auto; display: inline-block; }

.about-image-col { position: relative; overflow: hidden; }

.about-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.about-image-label {
    position: absolute;
    bottom: 28px;
    left: 28px;
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

/* ── Capabilities strip (within About) ──────────────── */
.capabilities-strip {
    display: flex;
    border-top: 1px solid var(--line);
}

.cap-item {
    flex: 1;
    padding: 28px 60px;
    border-right: 1px solid var(--line);
}

.cap-item:last-child { border-right: none; }

.cap-icon {
    color: var(--accent);
    filter: invert(1) hue-rotate(180deg);
}

.cap-icon img { 
    width: 64px; 
    height: 64px; 
    display: block; 
    margin-bottom: 1em;
}

.cap-name {
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.cap-desc {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--muted);
    line-height: 1.7;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
    PRODUCT BENTO GRID &middot; the main redesign
══════════════════════════════════════════════════════ */

#tech { padding: 0; }

.tech-header {
    padding: 80px 60px 52px;
    border-bottom: 1px solid var(--line);
}

.tech-intro {
    font-weight: 300;
    line-height: 1.9;
    max-width: 620px;
    margin-top: 0;
}

/* ── Super-Resolution Comparison ────────────────────── */
.sr-section {
    padding: 60px 60px 72px;
    border-top: 1px solid var(--line);
}

.sr-label-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.sr-label-row .section-heading { flex-shrink: 0; }

.sr-desc {
    font-weight: 300;
    line-height: 1.9;
    max-width: 560px;
    color: var(--muted);
    font-size: 14px;
    margin: 20px auto 0;
    text-align: center;
}

.sr-compare {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    max-height: 520px;
    cursor: ew-resize;
    user-select: none;
    background: #000;
}

.sr-compare img {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.sr-overlay {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

.sr-overlay img {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    max-width: none;
    /* width set by JS to match container, not the clipping overlay div */
}

.sr-slider-line {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
}

.sr-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 2px solid white;
    color: white;
}

.sr-badge {
    position: absolute;
    top: 16px;
    background: rgba(8, 8, 8, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    padding: 4px 12px;
    color: var(--muted);
    z-index: 5;
}

.sr-badge--left  { left: 16px; }
.sr-badge--right { 
    right: 16px; 
    background: black;
}

/* Grid container: 1px gap acts as gridlines */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
}

/* Base card */
.pcard {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
}

/* Background image layer */
.pcard-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transition: opacity 0.5s ease, transform 0.6s ease, filter 0.5s ease;
    filter: blur(10px);
}

/* Gradient overlay */
.pcard:not(.pcard--expanded):not(.pcard--elite)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        transparent 0%,
        rgba(5,5,5,0.65) 45%,
        rgba(5,5,5,0.85) 100%
    );
    z-index: 1;
}

.pcard:not(.pcard--expanded):hover .pcard-bg {
    opacity: 0.75;
    transform: scale(1.05);
    filter: blur(0px);
}

/* Left accent line on hover */
.pcard::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
    z-index: 3;
}

.pcard:hover::before { transform: scaleY(1); }

/* Size variants */
.pcard--featured { grid-column: span 2; min-height: 480px; }
.pcard--wide     { grid-column: span 2; min-height: 300px; }
.pcard--full     { grid-column: span 3; min-height: 220px; }

/* Ordinal number */
.pcard-ordinal {
    position: absolute;
    top: 28px;
    right: 32px;
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -3px;
    line-height: 1;
    color: rgba(255,255,255,0.06);
    z-index: 2;
    pointer-events: none;
    transition: color 0.3s;
}

.pcard:hover .pcard-ordinal { color: var(--accent-fade); }

/* Card content */
.pcard-body { position: relative; z-index: 2; }

.pcard-cat {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 10px;
}

.pcard-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 14px;
}

.pcard--featured .pcard-name {
    font-size: 42px;
    margin-bottom: 18px;
}

.pcard--full .pcard-name { font-size: 20px; }

.pcard-desc {
    font-weight: 300;
    line-height: 1.8;
    color: rgba(209, 209, 209, 0.9);
    margin-bottom: 22px;
    max-width: 480px;
}

/* Desc hidden on small cards, shown on hover */
.pcard:not(.pcard--featured):not(.pcard--wide) .pcard-desc {
    max-height: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: max-height 0.4s ease, margin-bottom 0.3s ease;
}

.pcard:not(.pcard--featured):not(.pcard--wide):hover .pcard-desc {
    max-height: 120px;
    margin-bottom: 22px;
}

.pcard--full .pcard-desc {
    max-width: 800px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 60px;
}

.pcard-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding-bottom: 3px;
    transition: border-color 0.2s, color 0.2s;
}

.pcard-link:hover { border-color: var(--accent); color: var(--accent); }

/* Hide link on small cards, show on hover */
.pcard:not(.pcard--featured) .pcard-link {
    opacity: 0;
    transition: opacity 0.3s;
}

.pcard:not(.pcard--featured):hover .pcard-link { opacity: 1; }

/* Active card state */
/* ── In-card expand states ──────────────────────────── */

/* Siblings that fade away */
.pcard--collapsing {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.22s ease, transform 0.22s ease !important;
    pointer-events: none;
}

.pcard--hidden { display: none !important; }

/* Compact content fades out when expanded */
.pcard-body,
.pcard-ordinal {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.pcard--expanding .pcard-body,
.pcard--expanding .pcard-ordinal,
.pcard--expanded .pcard-body,
.pcard--expanded .pcard-ordinal {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

/* Expanded card grid behaviour */
.pcard--expanded {
    grid-column: 1 / -1 !important;
    min-height: 540px !important;
    cursor: default;
    
    background-color: transparent !important;
    backdrop-filter: brightness(0.8) contrast(1.2);
}

.pcard--expanded::before { transform: scaleY(1); }

.pcard--expanded .pcard-bg {
    opacity: 0.18;
}

/* ── In-card detail overlay (.pcd) ───────────────────── */
.pcd {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: 42% 1fr;
    opacity: 0;
    pointer-events: none;
}

/* Two-phase entry: layout snap first, then content fades in */
.pcd.pcd--visible {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.35s 0.05s ease;
}

/* Left: full-bleed image */
.pcd-img {
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--line);
}

.pcd-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.06);
    transition: transform 0.7s 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.pcd--visible .pcd-img img { transform: scale(1); }

.pcd-img-num {
    position: absolute;
    bottom: 20px;
    left: 28px;
    font-family: 'Oxanium', sans-serif;
    font-size: 110px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -6px;
    color: rgba(255,255,255,0.06);
    pointer-events: none;
}

/* Right: content */
.pcd-body {
    padding: 44px 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* background: var(--bg-muted); */
    transform: translateX(20px);
    transition: transform 0.45s 0.08s cubic-bezier(0.4, 0, 0.2, 1);
}

.pcd--visible .pcd-body { transform: translateX(0); }

.pcd-top { flex: 1; }

.pcd-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.pcd-tag {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 3px 10px;
}

.pcd-cat {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent);
}

.pcd-name {
    font-family: 'Oxanium', sans-serif;
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.0;
    margin-bottom: 24px;
}

.pcd-desc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.pcd-desc p {
    line-height: 1.9;
    color: var(--muted);
}

/* Footer: nav + actions */
.pcd-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.pcd-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pcd-nav-btn {
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pcd-nav-btn:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.pcd-nav-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.2);
    padding: 0 4px;
}

.pcd-actions { display: flex; gap: 10px; align-items: center; }

.pcd-close {
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
    height: 38px;
    padding: 0 18px;
    font-family: 'SUSE', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, color 0.2s;
}

.pcd-close:hover { border-color: var(--white); color: var(--white); }

@media (max-width: 900px) {
    .pcd { grid-template-columns: 1fr; }
    .pcd-img { min-height: 240px; border-right: none; border-bottom: 1px solid var(--line); }
    .pcd-body { padding: 32px 24px; }
    .pcd-name { font-size: 28px; }
    .pcard--expanded { min-height: 680px !important; }
}

/* ── Team ───────────────────────────────────────────── */
.team-header { padding: 80px 60px 0; }

.team-intro {
    font-weight: 300;
    line-height: 1.9;
    max-width: 680px;
    margin-top: 0;
    padding: 0 60px 52px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
}

.team-card {
    background: var(--bg-muted);
    padding: 36px 32px;
    transition: background 0.2s;
}

.team-card:hover { background: #0a0a0a; }

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    margin-bottom: 22px;
    filter: grayscale(100%) brightness(0.75);
    transition: filter 0.2s;
}

.team-card:hover .team-photo { filter: grayscale(0%) brightness(1); }

.team-name { font-weight: 600; letter-spacing: 3px; margin-bottom: 6px; }

.team-role { font-weight: 400; letter-spacing: 2.5px; color: var(--muted); }

.team-role a { color: var(--accent); }

/* ── Careers ────────────────────────────────────────── */
.careers-intro {
    font-weight: 300;
    line-height: 1.9;
    max-width: 680px;
    margin-bottom: 52px;
}

.careers-sub {
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--muted);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 1px;
}

.job-card {
    background: var(--bg-muted);
    padding: 40px;
    transition: background 0.2s;
}

.job-card:hover { background: #080808; }

.job-num {
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.job-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.job-location {
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--muted);
    margin-bottom: 32px;
}

/* ── Contact ────────────────────────────────────────── */
.contact-intro {
    font-weight: 300;
    max-width: 640px;
    margin-bottom: 52px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.contact-col { padding-right: 60px; }

.contact-col:last-child {
    padding-right: 0;
    padding-left: 60px;
    border-left: 1px solid var(--line);
}

.contact-sub {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.map-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: url(../images/map.webp) no-repeat center center;
    background-size: cover;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.12);
}

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-weight: 300;
    line-height: 1.6;
}

.contact-icon { color: var(--accent); font-size: 8px; margin-top: 5px; flex-shrink: 0; }

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

.contact-list a { color: var(--accent); }

.ending-bg {
    font-family: 'Oxanium', sans-serif;
    position: absolute;
    bottom: 80px;
    left: 0px;
    right: 0px;
    font-size: 11vw;
    text-align: center;
    font-weight: 700;
    color: #d3d0d90d;
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
    padding: 36px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright { font-size: 10px; font-weight: 400; letter-spacing: 2px; color: var(--muted); }

.footer-social { display: flex; gap: 16px; list-style: none; }

.footer-social a { color: var(--muted); transition: color 0.2s; }
.footer-social a:hover { color: var(--white); }

/* ── Modals ─────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px) contrast(1.5);
}

.modal-overlay.open { display: flex; }

.modal-box {
    background: var(--bg-muted);
    border: 1px solid var(--line);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 40px;
    border-bottom: 1px solid var(--line);
}

.modal-title { font-size: 20px; font-weight: 700; color: var(--accent); }

.modal-close {
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}

.modal-close:hover { border-color: var(--white); color: var(--white); }

.modal-body { padding: 40px; }

.modal-body h3 {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--muted);
    margin-bottom: 12px;
}

.modal-body > p {
    font-weight: 300;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 24px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin-bottom: 28px;
}

.skill-tags li {
    border: 1px solid var(--line);
    padding: 5px 14px;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
}

.modal-ul { list-style: none; }

.modal-ul li {
    font-weight: 300;
    line-height: 1.85;
    color: var(--muted);
    padding-left: 18px;
    position: relative;
    margin-bottom: 8px;
}

.modal-ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 10px;
    top: 5px;
}

.modal-footer {
    padding: 24px 40px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
    .left-rail, .right-rail { display: none; }
    .main-col { border-left: none; border-right: none; }
    .hero-headline { font-size: 72px; }
    .hero-bg-word { font-size: 120px; }
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-image-col { min-height: 260px; }
    .about-text-col { border-right: none; border-bottom: 1px solid var(--line); }
    .capabilities-strip { flex-wrap: wrap; }
    .cap-item { flex: 1 0 50%; border-bottom: 1px solid var(--line); }
    .cap-item:nth-child(odd) { border-right: 1px solid var(--line); }
    .cap-item:nth-child(even) { border-right: none; }
    .cap-item:nth-last-child(-n+2) { border-bottom: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .pcard--featured, .pcard--wide { grid-column: span 2; }
    .pcard--full { grid-column: span 2; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-col { padding-right: 0; }
    .contact-col:last-child {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--line);
        padding-top: 40px;
        margin-top: 40px;
    }
    .stat { padding: 28px 32px; }
}

@media (max-width: 768px) {
    nav { padding: 0 20px; }
    section { padding: 0; }
    .section-inner { padding: 48px 20px; }
    footer { padding: 28px 20px; }
    .tech-header { padding: 48px 20px 36px; }
    .team-header { padding: 48px 20px 0; }
    .team-intro { padding: 0 20px 36px; }
    .about-text-col { padding: 48px 20px; }
    .cap-item { padding: 20px; }
    .stat { padding: 24px 20px; }
    #hero { padding: 60px 20px 0 !important; }

    .hero-bg-logo {
        bottom: none;
        max-width: 74%;
        top: 50%;
        translate: 0px -50%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(5,5,5,0.8);
        padding: 24px 20px;
        border-bottom: 1px solid var(--line);
        z-index: 99;
        gap: 20px;
    }

    .nav-links.open { display: flex; }
    .nav-hamburger { display: flex; }
    .btn-cta-nav { display: none; }

    .hero-headline { font-size: 60px; }
    .hero-bg-word { display: none; }
    .hero-sub { font-size: 13px; }
    .hero-footer { flex-direction: column; }
    .hero-footer-block { padding: 20px 0; }
    .hero-footer-block + .hero-footer-block {
        border-left: none;
        border-top: 1px solid var(--line);
        padding-left: 0;
    }
    .hero-cta-bar { flex-direction: column; align-items: flex-start; }

    .section-heading h1 { font-size: 28px; }
    .stat-num { font-size: 28px; }
    .stats-strip { flex-wrap: wrap; }
    .stat { flex: 1 0 50%; }
    .stat:nth-child(odd) { border-right: 1px solid var(--line); }
    .stat:nth-child(even) { border-right: none; }

    .pcard--full .pcard-desc { grid-template-columns: 1fr; gap: 0; }
    .product-grid { grid-template-columns: 1fr; }
    .pcard--featured, .pcard--wide, .pcard--full,
    .pcard--expanded { grid-column: span 1 !important; }
    .pcard--featured { min-height: 340px; }
    .pcard--featured .pcard-name { font-size: 28px; }
    .pcard:not(.pcard--featured):not(.pcard--wide) .pcard-desc {
        max-height: none;
        overflow: visible;
        margin-bottom: 20px;
    }
    .pcard:not(.pcard--featured) .pcard-link { opacity: 1; }

    /* Expanded card on mobile:
        Pull .pcd out of absolute so the card grows with content */
    .pcard--expanded {
        overflow: visible !important;
        min-height: 0 !important;
        padding: 0 !important;
        display: block !important;
    }
    /* Hide the compact face so it doesn't add ghost height */
    .pcard--expanded .pcard-body,
    .pcard--expanded .pcard-ordinal {
        display: none;
    }
    /* Make .pcd flow in the document instead of being clipped */
    .pcard--expanded .pcd {
        position: relative;
        top: auto; left: auto; right: auto; bottom: auto;
        width: 100%;
        grid-template-columns: 1fr;
    }
    .pcard--expanded .pcd-img {
        min-height: 220px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    /* Keep the accent-left line visible on the expanded card */
    .pcard--expanded::before { transform: scaleY(1); height: 100%; }

    .pcd-body { padding: 28px 20px; }
    .pcd-name { font-size: 26px; }

    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .job-grid { grid-template-columns: 1fr; }
    .job-card { padding: 28px 20px; }

    .contact-col { padding-right: 0; padding-left: 0 !important; }

    .sr-section { padding: 48px 20px 56px; }
    .sr-label-row { flex-direction: column; gap: 12px; }
    .sr-compare img { height: 280px; }
    .sr-compare { max-height: 280px; }

    .sr-overlay img {
        /* Adding minute blur to make the SR more prominent on mobile ;) */
        filter: blur(1px);
    }

}

@media (max-width: 480px) {
    nav { height: 64px; }
    .hero-headline { font-size: 34px; letter-spacing: 2px; }
    /* .hero-sub {  } */
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .stat { flex: 1 0 100%; border-right: none !important; }
    .capabilities-strip { flex-direction: column; }
    .cap-item { flex: 1 0 auto; border-right: none !important; }
    .pcd-footer { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ── Elite AI Card ──────────────────────────────────── */
.pcard--elite {
    margin-top: 56px;
    margin-bottom: 56px;
    min-height: 420px !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(23, 156, 197, 0.22);
    background: linear-gradient(120deg, rgba(23,156,197,0.07) 0%, rgba(8,8,8,0) 65%);
    box-shadow: 0 0 80px rgba(23, 156, 197, 0.07), inset 0 1px 0 rgba(23,156,197,0.15);
}

/* Replace left-line hover with top glow line */
.pcard--elite::before {
    top: 0; bottom: auto;
    left: 0; right: 0;
    width: 100%; height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.pcard--elite:hover::before { transform: scaleX(1); }

.pcard--elite .pcard-bg { opacity: 0; }

.pcard--elite .pcard-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 60px 0 56px;
}

.pcard--elite .pcard-cat {
    letter-spacing: 6px;
    margin-bottom: 18px;
}

.pcard--elite .pcard-name {
    font-size: clamp(48px, 3.5vw, 70px) !important;
    letter-spacing: 5px;
    line-height: 0.95;
    margin-bottom: 24px;
}
.pcard--elite .pcard-name a { color: inherit; }

/* Always show desc + link on elite card */
.pcard--elite .pcard-desc {
    display: block !important;
    max-height: none !important;
    max-width: 480px;
    text-align: center;
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 28px !important;
}
.pcard--elite .pcard-link {
    opacity: 1 !important;
    border-bottom-color: var(--accent);
    color: var(--accent);
}

/* Logo panel */
.elite-logo-wrap {
    flex: 0 0 350px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 56px;
}
.elite-logo-wrap img {
    /* width: 220px; */
    opacity: 0.9;
    filter: blur(10px);
    transition: filter 0.3s ease, transform 0.3s ease;
    transform: scale(1.75);
}
.pcard--elite:hover .elite-logo-wrap img {
    transform: scale(2);
    filter: blur(0px);
}

@media (max-width: 900px) {
    .pcard--elite { flex-direction: column; justify-content: center; padding: 48px 24px; }
    .pcard--elite .pcard-body { padding: 0; }
    .elite-logo-wrap { flex: none; padding: 32px 0 0; justify-content: center; max-width: 30%; }
}
