/* ==========================================================================
   VARUN HITECH — Vastspace.com Design System (Pixel-Perfect)
   Exact tokens extracted from live vastspace.com via Chrome DevTools
   ========================================================================== */

/* --- Self-hosted Fonts ---
   Instrument Sans is a variable font (wght axis 400–700).
   Two declarations: latin-ext subset + latin subset, both covering the full weight range.
   This lets the browser use the exact weight requested (500, 600, 700…) via the wght axis. */
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;   /* variable font weight range */
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/instrument-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;   /* variable font weight range */
    font-stretch: 100%;
    font-display: swap;
    src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/space-mono-latin-ext-400.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/space-mono-latin-400-2.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/space-mono-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-mono-latin-700-2.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-mono-latin-700-3.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-mono-latin-ext-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   RESET & DESIGN TOKENS — exact vastspace.com values
   ========================================================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Exact vastspace.com palette — extracted via Chrome DevTools computed styles */
    --bg:          #24211e;   /* rgb(36,33,30)   — Warm Charcoal */
    --bg-light:    #ece8e3;   /* rgb(236,232,227) — Warm Cream (light sections) */
    --sep:         #776e62;   /* rgb(119,110,98)  — Section border separator */
    --text:        #e8e6e3;   /* rgb(232,230,227) — Warm White */
    --text-dim:    #a09890;   /* dimmed body text */
    --text-on-light: #181a1b; /* dark text on cream sections */
    --text-dim-on-light: #5a534b;
    --accent:      #ff5623;   /* Solar Orange */

    /* Typography — exact vastspace measurements */
    --font:        'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:   'Space Mono', monospace;

    /* Container */
    --container-max: 1700px;
    --container-pad: 80px;

    /* Spacing */
    --pad-xl:  240px;   /* statement + CTA sections */
    --pad-std: 120px;   /* standard section padding */
    --pad-sm:  80px;    /* smaller sections */

    /* Easing */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: dark; /* Prevent Chrome Auto Dark Mode from inverting light sections */
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
    transition: opacity 0.35s ease;
}

body.page-leaving { opacity: 0; }

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

::selection { background: rgba(255,86,35,0.25); color: var(--text); }

/* ==========================================================================
   LOADER
   ========================================================================== */

.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner { text-align: center; }

.loader-logo {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--text);
    display: block;
    margin-bottom: 28px;
}

.loader-bar {
    width: 120px;
    height: 1px;
    background: rgba(232,230,227,0.12);
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--text);
    animation: loaderFill 1.4s var(--ease) forwards;
}

@keyframes loaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ==========================================================================
   CONTAINER — max-width 1700px, 80px padding (exact vastspace)
   ========================================================================== */

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

/* ==========================================================================
   NAVIGATION — 108px height, transparent → solid on scroll
   ========================================================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 108px;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(24, 26, 27, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--sep);
}

.nav.scrolled .nav-links a {
    text-shadow: none;
    color: var(--text-dim);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    transition: color 0.25s ease;
}

.nav-links a:hover { color: var(--text); }

/* Services dropdown */
.nav-has-dropdown { position: relative; }

/* Invisible hover bridge — fills the gap so mouse can reach the dropdown */
.nav-has-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 20px;
}

.nav-has-dropdown > a::after {
    content: '▾';
    margin-left: 4px;
    font-size: 0.75em;
    opacity: 0.6;
    vertical-align: 1px;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(24, 26, 27, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--sep);
    border-top: 2px solid var(--accent);
    padding: 8px 0;
    min-width: 210px;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.nav-has-dropdown:hover .nav-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown li + li { border-top: 1px solid rgba(119, 110, 98, 0.3); }

.nav-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav-dropdown a:hover {
    color: var(--accent) !important;
    padding-left: 26px;
}

.nav-cta {
    padding: 10px 22px;
    border: 1px solid var(--sep);
    color: var(--text) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.04em !important;
    transition: background 0.25s ease, border-color 0.25s ease !important;
}

.nav-cta:hover {
    background: var(--text) !important;
    color: var(--bg) !important;
    border-color: var(--text) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

.nav-toggle.active span:first-child { transform: rotate(45deg) translate(2px, 3px); }
.nav-toggle.active span:last-child  { transform: rotate(-45deg) translate(2px, -3px); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-links { text-align: center; }

.mobile-menu-links li { margin-bottom: 20px; }

.mobile-menu-links a {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.25s ease;
    letter-spacing: -0.02em;
}

.mobile-menu-links a:hover { color: var(--text); }

.mobile-has-sub > a::after {
    content: ' ▾';
    font-size: 0.6em;
    opacity: 0.5;
    display: inline-block;
    transition: transform 0.3s ease;
    vertical-align: 2px;
}

.mobile-has-sub.is-open > a::after { transform: rotate(180deg); }

.mobile-sub {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    border-top: 1px solid rgba(119, 110, 98, 0.3);
    padding-top: 10px;
}

.mobile-has-sub.is-open .mobile-sub { display: flex; }

.mobile-sub a {
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em !important;
    color: var(--text-dim) !important;
}

.mobile-sub a:hover { color: var(--accent) !important; }

/* ==========================================================================
   HERO — full-bleed video, title BOTTOM-LEFT (exact vastspace layout)
   ========================================================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(24, 26, 27, 0.92) 0%,
        rgba(24, 26, 27, 0.60) 35%,
        rgba(24, 26, 27, 0.20) 60%,
        rgba(24, 26, 27, 0.70) 100%
    );
    z-index: 1;
}

/* Content anchored BOTTOM-LEFT — exactly like vastspace */
.hero-content {
    position: absolute;
    bottom: 80px;
    left: var(--container-pad);
    right: var(--container-pad);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(232, 230, 227, 0.65);
    margin-bottom: 20px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* 76px title, weight 500, line-height 0.86 — exact vastspace hero */
.hero-title {
    font-size: clamp(3rem, 5.8vw, 76px);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 32px;
    max-width: 900px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-title span { display: block; }

.hero-desc {
    font-size: 1rem;
    color: rgba(232, 230, 227, 0.78);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 36px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Scroll indicator — bottom right */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: var(--container-pad);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    writing-mode: horizontal-tb;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--sep);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%   { left: -100%; }
    50%  { left: 0%; }
    100% { left: 100%; }
}

@keyframes heroPanMobile {
    0%   { object-position: 45% center; }
    50%  { object-position: 80% center; }
    100% { object-position: 45% center; }
}

/* ==========================================================================
   BUTTONS — flat, no border-radius (vastspace style)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--sep);
}

.btn-outline:hover {
    border-color: var(--text);
    background: rgba(232,230,227,0.06);
}

/* Text-only arrow link — vastspace style */
.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text);
    padding: 0;
    transition: gap 0.3s var(--ease), color 0.25s ease;
}

.btn-text:hover {
    gap: 14px;
    color: var(--accent);
}

.btn-text svg { flex-shrink: 0; }

/* ==========================================================================
   REVEAL ANIMATION — scroll-triggered fade+slide up
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ==========================================================================
   STATEMENT SECTION — 240px padding, large flowing text
   Mirrors vastspace's mission statement section exactly
   ========================================================================== */

.statement {
    padding: var(--pad-xl) 0;
    background: #ffffff;
    border-top: none;
    border-bottom: none;
}

.statement-text {
    font-size: clamp(1.6rem, 2.8vw, 48px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: 0.01em;
    color: var(--text-on-light);
    max-width: 1200px;
}

.statement-text em {
    color: var(--text-dim-on-light);
    font-style: normal;
}

/* ==========================================================================
   SERVICE SECTIONS — 3 panels side by side on desktop, carousel on mobile
   ========================================================================== */

/* Desktop: 3 columns */
#services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--sep);
}

.service-section {
    position: relative;
    z-index: 0;
    border-right: 1px solid var(--sep);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-section:last-child { border-right: none; }

/* Full-card cover link — makes entire card clickable */
.service-section-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Keep 'Learn More' independently clickable above the cover */
.service-section .btn-text {
    position: relative;
    z-index: 2;
}

/* Desktop: lift hovered card above siblings */
@media (min-width: 769px) {
    .service-section:hover {
        transform: translateY(-12px);
        box-shadow: 0 24px 64px rgba(0,0,0,0.5);
        z-index: 2;
    }
}

/* Container inside each panel — no max-width needed in columns */
.service-section .container {
    max-width: none;
    padding: 40px 32px 60px;
}

/* Single-column content layout within each panel */
.service-section .service-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
}

.service-section .service-heading { padding-right: 0; }

.service-section .service-heading h2 {
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    margin-bottom: 20px;
}

/* Image — portrait ratio suits column card layout */
.service-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0d0d0d;
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(25%) brightness(0.85);
    transition: filter 1.2s ease, transform 8s ease;
}

.service-section:hover .service-img-wrap img {
    filter: grayscale(0%) brightness(0.95);
    transform: scale(1.02);
}

/* Content row below image */
.service-content {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 0;
    padding: 64px 0 80px;
    align-items: start;
}

.service-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    padding-top: 6px;
}

.service-heading {
    padding-right: 60px;
}

.service-heading h2 {
    font-size: clamp(1.8rem, 2.5vw, 40px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 28px;
}

.service-body p {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 16px;
    max-width: 520px;
}

.service-body p:last-of-type { margin-bottom: 32px; }

/* Capabilities list */
.service-caps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.service-cap {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    border: 1px solid var(--sep);
    padding: 6px 14px;
}

/* Mobile swipe hint — hidden on desktop */
.services-swipe-hint {
    display: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--text-dim);
    text-align: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--sep);
}

/* ==========================================================================
   ABOUT SECTION — light cream background (#ece8e3), dark text
   Mirrors vastspace's light manufacturing/about section
   ========================================================================== */

.about-section {
    background-color: var(--bg-light);
    background-image:
        linear-gradient(180deg, rgba(236,232,227,0.91) 0%, rgba(236,232,227,0.91) 100%),
        url('../images/sections/about.jpg');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    border-top: 1px solid #c8c2ba;
    padding: var(--pad-std) 0;
}

.about-section .section-label {
    color: var(--text-dim-on-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim-on-light);
    margin-bottom: 24px;
}

.about-title {
    font-size: clamp(2rem, 2.8vw, 48px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-on-light);
    margin-bottom: 0;
}

.about-body p {
    font-size: 1rem;
    color: var(--text-dim-on-light);
    line-height: 1.75;
    margin-bottom: 20px;
}

.about-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #c8c2ba;
    font-size: 0.8rem;
    color: var(--text-dim-on-light);
    background: rgba(255,255,255,0.4);
}

.badge-icon {
    color: var(--accent);
    font-size: 0.85rem;
}

/* ==========================================================================
   STATS SECTION — dark bg, 3 large numbers
   ========================================================================== */

.stats-section {
    padding: var(--pad-std) 0;
    background: #5c5248;
    border-top: none;
    border-bottom: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.stat-item {
    padding: 0 60px 0 0;
    border-right: 1px solid rgba(236,232,227,0.22);
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; padding-right: 0; padding-left: 60px; }
.stat-item:nth-child(2) { padding-left: 60px; }

.stat-number {
    font-size: clamp(3rem, 5vw, 72px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 12px;
}

.stat-number .plus {
    font-size: 0.65em;
    color: var(--accent);
    vertical-align: super;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
    line-height: 1.4;
}

/* ==========================================================================
   CLIENTS SECTION — logo strip
   ========================================================================== */

.clients-strip {
    padding: var(--pad-std) 0;
    background: #f5f1ec;
    border-top: 1px solid #d4cfc9;
}

.clients-strip-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 60px;
}

.clients-strip-title {
    font-size: clamp(1.4rem, 2vw, 32px);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-on-light);
}

.clients-strip .btn-text {
    color: var(--text-dim-on-light);
}

.clients-strip .btn-text:hover {
    color: var(--text-on-light);
}

.clients-strip .clients-logo-strip {
    border-top-color: #c8c2ba;
    border-left-color: #c8c2ba;
}

.clients-strip .client-logo-cell {
    border-bottom-color: #c8c2ba;
    border-right-color: #c8c2ba;
}

.clients-strip-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.clients-logo-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    border-top: 1px solid var(--sep);
    border-left: 1px solid var(--sep);
}

.client-logo-cell {
    border-bottom: 1px solid var(--sep);
    border-right: 1px solid var(--sep);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    min-height: 120px;
    background: #ffffff;
    transition: background 0.3s ease;
}

.client-logo-cell:hover {
    background: #f0efed;
}

.client-logo-cell img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

/* ==========================================================================
   CONTACT / CTA SECTION — 240px padding like vastspace "Join our team"
   ========================================================================== */

.contact-cta {
    padding: var(--pad-xl) 0;
    background: var(--accent);
    border-top: none;
}

.contact-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-cta-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 24px;
}

.contact-cta-title {
    font-size: clamp(2rem, 3vw, 52px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 0;
}

.contact-cta-right {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
}

.contact-cta-text {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    max-width: 440px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

.contact-detail a { color: rgba(255,255,255,0.85); transition: color 0.25s ease; }
.contact-detail a:hover { color: #ffffff; }

/* Inverted button inside orange contact section */
.contact-cta .btn-primary {
    background: #ffffff;
    color: var(--accent);
    border-color: #ffffff;
}

.contact-cta .btn-primary:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border-color: rgba(255,255,255,0.4);
}

.contact-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--sep);
    flex-shrink: 0;
    color: var(--text);
}

/* ==========================================================================
   FOOTER — flat, dark, simple
   ========================================================================== */

.footer {
    border-top: 1px solid var(--sep);
    padding: 64px 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    margin-bottom: 64px;
    align-items: start;
}

.footer-logo-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    color: var(--text);
    margin-bottom: 16px;
    display: block;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.65;
    max-width: 380px;
}

.footer-links-grid {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 12px;
    transition: color 0.25s ease;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--sep);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.01em;
}

.footer-brand-flag {
    height: 44px;
    width: auto;
    margin-top: 20px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* ==========================================================================
   INNER PAGES — Page Hero with ambient video
   ========================================================================== */

.page-hero {
    position: relative;
    padding: 180px var(--container-pad) 110px;
    overflow: hidden;
    border-bottom: 1px solid var(--sep);
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--bg);
    overflow: hidden;
}

.page-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(24,26,27,0.90) 0%,
        rgba(24,26,27,0.55) 50%,
        rgba(24,26,27,0.25) 100%
    );
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 44px;
    transition: color 0.25s ease;
}

.back-link:hover { color: var(--text); }

.section-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 20px;
    display: block;
}

.page-hero-title {
    font-size: clamp(2.8rem, 5.5vw, 68px);
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 28px;
}

.page-hero-desc {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 560px;
    line-height: 1.7;
}

/* Full-width image strip between sections (inner pages) */
.page-image-strip {
    width: 100%;
    height: clamp(240px, 32vw, 480px);
    overflow: hidden;
    background: #0d0d0d;
}

.page-image-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) brightness(0.75);
    display: block;
    transition: filter 1.2s ease;
}

.page-image-strip:hover img {
    filter: grayscale(0%) brightness(0.88);
}

/* ==========================================================================
   INNER PAGE — Services Section
   ========================================================================== */

.section {
    padding: var(--pad-std) 0;
}

/* Overview sections on inner pages — cream background like the homepage about panel */
.section.about {
    background: var(--bg-light);
    border-top: 1px solid #c8c2ba;
    border-bottom: 1px solid #c8c2ba;
}

.section.about .section-label {
    color: var(--text-dim-on-light);
}

.section.about .section-title {
    color: var(--text-on-light);
}

.section.about .section-text {
    color: var(--text-dim-on-light);
}

.section.about .badge {
    border-color: #c8c2ba;
    color: var(--text-dim-on-light);
    background: rgba(255,255,255,0.45);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.section-title {
    font-size: clamp(1.8rem, 2.5vw, 40px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-top: 16px;
}

.section-text {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.75;
    margin-bottom: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--sep);
    border: 1px solid var(--sep);
    margin-top: 48px;
}

.service-card {
    background: var(--bg);
    padding: 36px 32px;
    transition: background 0.3s ease;
}

.service-card:hover {
    background: rgba(232,230,227,0.035);
}

.service-card-num {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
}

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

/* ==========================================================================
   CLIENTS PAGE — full logo grid
   ========================================================================== */

.clients-page { background: var(--bg); }

.clients-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--sep);
    border-left: 1px solid var(--sep);
    margin-top: 48px;
}

.client-logo-card {
    border-bottom: 1px solid var(--sep);
    border-right: 1px solid var(--sep);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 160px;
    background: #ffffff;
    transition: background 0.3s ease;
}

.client-logo-card:hover {
    background: #f0efed;
}

.client-logo-card img {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

.client-logo-card span {
    font-size: 0.72rem;
    color: #555;
    letter-spacing: 0.08em;
    text-align: center;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.clients-divider {
    border: none;
    border-top: 1px solid var(--sep);
    margin: 60px 0;
}

.clients-testimony {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0;
}

.clients-testimony p {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 500;
    color: var(--text);
    line-height: 1.55;
    margin-bottom: 20px;
}

.clients-testimony cite {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-style: normal;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   CAREERS PAGE
   ========================================================================== */

.careers-section { padding: var(--pad-std) 0; }

.careers-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 64px;
}

.careers-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--sep);
    border: 1px solid var(--sep);
    margin-bottom: 64px;
}

.career-pillar {
    background: var(--bg);
    padding: 40px 32px;
}

.career-pillar-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: block;
}

.career-pillar h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 10px;
}

.career-pillar p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.65;
}

.roles-section { border-top: 1px solid var(--sep); padding-top: 60px; }

.role-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    border-bottom: 1px solid var(--sep);
    transition: background 0.25s ease;
    gap: 24px;
}

.role-card:first-child { border-top: 1px solid var(--sep); }

.role-info { display: flex; flex-direction: column; gap: 6px; }

.role-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.role-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.role-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 4px 10px;
    border: 1px solid var(--sep);
}

.role-tag.accent { border-color: var(--accent); color: var(--accent); }

.role-apply {
    font-size: 0.82rem;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color 0.25s ease;
    flex-shrink: 0;
}

.role-card:hover .role-apply { color: var(--accent); }

.careers-cta-box {
    margin-top: 60px;
    padding: 48px;
    border: 1px solid var(--sep);
    background: rgba(232,230,227,0.02);
}

.careers-cta-box h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
}

.careers-cta-box p {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 28px;
    max-width: 480px;
    line-height: 1.7;
}

/* ==========================================================================
   CONTACT CTA BOX (inner pages)
   ========================================================================== */

.contact-cta-box {
    padding: 48px;
    border: 1px solid var(--sep);
    background: rgba(232,230,227,0.02);
}

.contact-cta-box h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
}

.contact-cta-box p {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Contact items (inner pages) */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.contact-item-link { transition: color 0.25s ease; }
.contact-item-link:hover { color: var(--text); }

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--sep);
    flex-shrink: 0;
    color: var(--text);
}

/* ==========================================================================
   RESPONSIVE — Tablet (≤1024px)
   ========================================================================== */

@media (max-width: 1200px) {
    :root {
        --container-pad: 48px;
        --pad-xl:  160px;
        --pad-std: 100px;
    }

    .service-content {
        grid-template-columns: 120px 1fr;
        gap: 40px;
    }

    .service-body { grid-column: 2; }

    .clients-logo-strip { grid-template-columns: repeat(4, 1fr); }

    .about-grid { gap: 60px; }

    .stats-grid { gap: 0; }
}

@media (max-width: 1024px) {
    :root {
        --container-pad: 40px;
        --pad-xl:  120px;
        --pad-std: 80px;
    }

    /* Reset explicit grid placement from the 1200px query */
    .service-body { grid-column: auto; }
    .service-heading { grid-column: auto; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .stats-grid { grid-template-columns: 1fr 1fr; }

    .stat-item { border-right: none; border-bottom: 1px solid var(--sep); padding: 40px 0 40px; }
    .stat-item:last-child { border-bottom: none; grid-column: 1/3; }
    .stat-item:nth-child(2) { padding-left: 0; }

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

    .contact-cta-inner { grid-template-columns: 1fr; gap: 48px; }

    .section-grid { grid-template-columns: 1fr; gap: 40px; }

    .services-grid { grid-template-columns: 1fr; }
    .careers-pillars { grid-template-columns: 1fr; }
    .careers-intro { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root {
        --container-pad: 24px;
        --pad-xl:  80px;
        --pad-std: 64px;
    }

    /* Nav */
    .nav { height: 80px; padding: 0 24px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    /* Hero */
    .hero-content { bottom: 60px; left: 24px; right: 24px; }
    .hero-video { animation: heroPanMobile 12s ease-in-out infinite; }

    .hero-title { font-size: clamp(2.2rem, 8vw, 3.2rem); }

    .hero-scroll-indicator { display: none; }

    /* Statement */
    .statement-text { font-size: clamp(1.4rem, 5vw, 1.8rem); }

    /* Swipe hint visible on mobile */
    .services-swipe-hint { display: block; }

    /* Homepage service sections — full-width swipe carousel */
    #services {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #services::-webkit-scrollbar { display: none; }
    .service-section {
        flex: 0 0 100vw;
        scroll-snap-align: start;
    }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .footer-links-grid { gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer { padding-bottom: 56px; }

    /* Inner pages */
    .page-hero { padding: 130px 24px 80px; }
    .page-image-strip { height: 220px; }

    /* Stats — single column, left-aligned so all numbers start at same edge */
    .stats-grid { grid-template-columns: 1fr; text-align: left; }
    .stat-number { justify-content: flex-start; }
    .stat-item:last-child { grid-column: auto; padding-left: 0; }

    /* Clients */
    .clients-strip-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .clients-logo-strip { grid-template-columns: repeat(2, 1fr); }
    /* Client logo grid — horizontal scroll carousel */
    .clients-logo-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border: none;
        border-top: 1px solid var(--sep);
        gap: 0;
    }
    .clients-logo-grid::-webkit-scrollbar { display: none; }
    .client-logo-card {
        flex: 0 0 48%;
        scroll-snap-align: start;
    }

    /* Service cards — horizontal scroll carousel */
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: transparent;
        border: none;
        gap: 12px;
    }
    .services-grid::-webkit-scrollbar { display: none; }
    .service-card {
        flex: 0 0 88%;
        scroll-snap-align: start;
        border: 1px solid var(--sep);
    }

    /* Contact */
    .contact-cta-inner { grid-template-columns: 1fr; }
    .careers-cta-box { padding: 32px 24px; }
    .contact-cta-box { padding: 32px 24px; }
}

@media (max-width: 480px) {
    :root {
        --container-pad: 20px;
    }

    .hero-title { font-size: 2rem; line-height: 1.0; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .statement-text { font-size: 1.3rem; }
    .about-title { font-size: 1.8rem; }
    .clients-logo-strip { grid-template-columns: repeat(2, 1fr); }
.footer-links-grid { gap: 24px; }
    .stat-item:last-child { grid-column: auto; }
    .stats-grid { grid-template-columns: 1fr; }
    .service-img-wrap { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   INNER PAGE SERVICE CARDS — capabilities grid on service pages
   ========================================================================== */

.service-index {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 14px;
}

.service-card .service-title,
.service-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-card .service-desc,
.service-desc {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 18px;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-list li {
    font-size: 0.85rem;
    color: var(--text-dim);
    padding-left: 16px;
    position: relative;
}

.service-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--sep);
    font-size: 0.75rem;
}

/* Inner page CTA section */
.section.cta {
    padding: var(--pad-std) 0;
    background: var(--accent);
    border-top: none;
    border-bottom: none;
}

.cta-inner {
    padding: 56px 48px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 640px;
}

.cta-title {
    font-size: clamp(1.6rem, 2.5vw, 36px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.cta-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

/* Inverted button inside orange CTA — white bg, orange text */
.section.cta .btn-primary {
    background: #ffffff;
    color: var(--accent);
}

.section.cta .btn-primary:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}

/* about-section badges used on defence inner page */
.section-right .about-badges {
    margin-top: 28px;
}

.footer-brand .nav-logo {
    margin-bottom: 14px;
}

/* ==========================================================================
   CAREERS — Openings Table
   ========================================================================== */

.section-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.75;
    margin-top: 12px;
    max-width: 640px;
}

/* Section with a top border separator */
.section.border-top {
    border-top: 1px solid var(--sep);
}

/* Openings table wrapper */
.openings-wrap {
    margin-top: 48px;
}

.openings-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--sep);
}

/* Header row */
.openings-table thead tr {
    border-bottom: 1px solid var(--sep);
}

.openings-table thead th {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 14px 24px;
    text-align: left;
    white-space: nowrap;
}

/* Body rows */
.openings-table tbody tr {
    border-top: 1px solid var(--sep);
    transition: background 0.2s ease;
}

.openings-table tbody tr:hover {
    background: rgba(232,230,227,0.04);
}

/* Cells */
.openings-table td {
    padding: 20px 24px;
    vertical-align: middle;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Role name — prominent */
.openings-table .td-role {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

/* Sector, Location, Type — dimmed mono tag */
.openings-table .td-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    white-space: nowrap;
}

/* (td-apply removed — no Apply button in table rows) */

/* Openings footer note */
.openings-note {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--sep);
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.openings-note a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.openings-note a:hover {
    color: var(--accent);
}

/* Responsive: stack table on small screens */
@media (max-width: 640px) {
    .openings-table,
    .openings-table thead,
    .openings-table tbody,
    .openings-table tr,
    .openings-table th,
    .openings-table td {
        display: block;
    }

    .openings-table thead tr {
        display: none; /* hide header row on mobile */
    }

    .openings-table tbody tr {
        padding: 20px 24px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        border-top: 1px solid var(--sep);
    }

    .openings-table td {
        padding: 0;
    }

    /* Re-hide detail rows — .openings-table tr { display: block } above would
       otherwise override the base .opening-detail { display: none } rule */
    .openings-table .opening-detail { display: none; }
    .openings-table .opening-detail.is-open { display: block; }

}


/* Expandable row — chevron toggle */
.opening-row.has-desc {
    cursor: pointer;
}

.row-chevron {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.85rem;
    color: var(--sep);
    transition: transform 0.25s var(--ease), color 0.2s ease;
    vertical-align: middle;
    line-height: 1;
    user-select: none;
}

.opening-row.is-open .row-chevron {
    transform: rotate(90deg);
    color: var(--accent);
}

.opening-row.is-open {
    background: rgba(232,230,227,0.04);
}

/* Detail / JD row — hidden by default, revealed on click */
.opening-detail {
    display: none;
}

.opening-detail.is-open {
    display: table-row;
}

.opening-detail > td {
    padding: 0 !important;
    border-top: none !important;
}

.detail-inner {
    padding: 28px 24px 36px;
    background: rgba(232,230,227,0.03);
    border-bottom: 1px solid var(--sep);
    animation: detailSlideDown 0.22s var(--ease) both;
}

@keyframes detailSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.detail-jd {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.8;
    max-width: 760px;
    white-space: pre-wrap;
}

/* Contact note inside the expanded JD panel */
.detail-contact {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    text-transform: uppercase;
}

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

.detail-contact a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Loading / empty / error states inside the table */
.openings-table .td-loading,
.openings-table .td-empty {
    padding: 40px 24px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    text-align: center;
    text-transform: uppercase;
}

.openings-table .td-loading::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 1px solid var(--sep);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.openings-table .td-empty a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Mailto clipboard fallback toast --- */
#mail-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(36, 33, 30, 0.95);
    color: var(--text);
    border: 1px solid var(--sep);
    border-left: 3px solid var(--accent);
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: var(--font-mono);
    letter-spacing: 0.01em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
#mail-toast.mail-toast-in {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
#mail-toast.mail-toast-out {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}
