/* ==========================================================================
   PrivateBox — Hiring Funnel stylesheet
   Design language mirrors the main marketing site (assets/css/style.css):
   Inter typography, #0f172a navy ink, #2563eb blue accent, airy white canvas,
   floating navbar, fade-up reveals, pill badges, risk/secure contrasts, dark
   accent panels. Self-contained so it renders identically in isolation or when
   dropped alongside the live site.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --navy: #0f172a;
    --ink: #0f172a;
    --blue: #2563eb;
    --blue-600: #2563eb;
    --blue-400: #60a5fa;
    --blue-light: #60a5fa;
    --red: #ef4444;
    --green: #22c55e;
    --white: #ffffff;

    --ink-70: rgba(15, 23, 42, 0.70);
    --ink-55: rgba(15, 23, 42, 0.55);
    --ink-40: rgba(15, 23, 42, 0.40);

    /* Headline emphasis: the second clause renders in brand blue, italic. */
    --accent-ink: #2563eb;

    --line: rgba(15, 23, 42, 0.08);
    --line-strong: rgba(15, 23, 42, 0.12);
    --blue-tint: rgba(37, 99, 235, 0.06);
    --blue-tint-2: rgba(37, 99, 235, 0.12);

    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --bg-softer: #f1f5f9;

    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -14px rgba(15, 23, 42, 0.16);
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 40px -20px rgba(15, 23, 42, 0.22);
    --shadow-lg: 0 30px 70px -28px rgba(15, 23, 42, 0.35);
    --shadow-blue: 0 18px 40px -16px rgba(37, 99, 235, 0.45);

    --maxw: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

p { margin: 0; }

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

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

button { font-family: inherit; }

::selection {
    background: rgba(37, 99, 235, 0.18);
    color: var(--navy);
}

/* Brand signature: the emphasis half of a title renders gray + italic. */
.accent-text {
    color: var(--accent-ink);
    font-style: italic;
    font-weight: 700;
}

.desktop-only { display: revert; }
.mobile-only { display: none; }

/* Consistent, visible keyboard focus on every interactive control. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible,
.file-drop:focus-within,
[tabindex]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}
.nav-cta:focus-visible { outline-offset: 4px; }

/* ---------- Layout ---------- */
.shell {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

.section {
    position: relative;
    padding: clamp(72px, 11vw, 140px) 0;
}

.section-tight { padding: clamp(56px, 8vw, 96px) 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1.5px;
    background: var(--blue);
    display: inline-block;
}

.eyebrow.is-centered { justify-content: center; }

/* Section-divider eyebrow: blue label trailed by a long hairline rule,
   matching the live site's "SECURITY SHELL ─────────" treatment. */
.eyebrow--rule {
    display: flex;
    width: 100%;
    gap: 0;
}
.eyebrow--rule::before { display: none; }
.eyebrow--rule::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 1.1em;
    align-self: center;
    background: linear-gradient(90deg, var(--line-strong) 0%, var(--line-strong) 30%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s var(--ease) 0.2s;
}
.eyebrow--rule.is-visible::after { transform: scaleX(1); }

.section-title {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    letter-spacing: -0.035em;
    line-height: 1.04;
}

.section-lead {
    margin-top: 22px;
    max-width: 60ch;
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    color: var(--ink-70);
    line-height: 1.62;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55em;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: 0.95em 1.6em;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
    white-space: nowrap;
}

.btn svg { width: 1.05em; height: 1.05em; }

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 22px 46px -16px rgba(37, 99, 235, 0.6);
}

.btn-primary .arrow { transition: transform 0.25s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
    background: #fff;
    color: var(--navy);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.4);
    color: var(--blue);
}

.btn-lg {
    padding: 1.08em 2em;
    font-size: 1.04rem;
}

.btn-on-dark {
    background: #fff;
    color: var(--navy);
}
.btn-on-dark:hover {
    background: #fff;
    color: var(--blue);
    transform: translateY(-2px);
}

/* ---------- Navbar (standalone funnel only; integrated pages use careers-integration.css) ---------- */
body:not(.careers-page) .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

body:not(.careers-page) .navbar.scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 34px -24px rgba(15, 23, 42, 0.5);
}

body:not(.careers-page) .nav-inner {
    pointer-events: auto;
    width: 100%;
    max-width: calc(var(--maxw) + 80px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    transition: padding 0.3s var(--ease);
}
body:not(.careers-page) .navbar.scrolled .nav-inner { padding: 13px 40px; }

/* Brand mark: ⌜Private Box⌟ — corner-bracket framing, "Private" blue, "Box" ink. */
body:not(.careers-page) .nav-logo {
    position: relative;
    font-weight: 800;
    font-size: 1.42rem;
    letter-spacing: -0.04em;
    color: var(--navy);
    display: inline-flex;
    align-items: baseline;
    padding: 6px 12px;
    line-height: 1;
}
body:not(.careers-page) .nav-logo::before,
body:not(.careers-page) .nav-logo::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border: 2px solid var(--navy);
}
body:not(.careers-page) .nav-logo::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
body:not(.careers-page) .nav-logo::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
body:not(.careers-page) .logo-private { color: var(--blue); }
body:not(.careers-page) .logo-box { color: var(--navy); margin-left: 0.3em; }

body:not(.careers-page) .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

body:not(.careers-page) .nav-text-links {
    display: flex;
    align-items: center;
}
body:not(.careers-page) .nav-text-links a {
    position: relative;
    padding: 6px 17px;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--ink-70);
    transition: color 0.2s var(--ease);
}
body:not(.careers-page) .nav-text-links a:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: var(--line-strong);
}
body:not(.careers-page) .nav-text-links a:hover { color: var(--navy); }
body:not(.careers-page) .nav-text-links a.is-current { color: var(--blue); font-weight: 600; }

body:not(.careers-page) .nav-cta {
    background: var(--blue);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.96rem;
    padding: 11px 22px;
    border-radius: 11px;
    box-shadow: 0 12px 26px -12px rgba(37, 99, 235, 0.55);
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
body:not(.careers-page) .nav-cta:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -12px rgba(37, 99, 235, 0.7);
}
/* Current-page indicator for the CTA (used on apply.html). */
body:not(.careers-page) .nav-cta.is-current {
    background: #1d4ed8;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4), 0 12px 26px -12px rgba(37, 99, 235, 0.55);
}

body:not(.careers-page) .menu-toggle {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

body:not(.careers-page) .menu-toggle .bar {
    position: absolute;
    left: 11px;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
body:not(.careers-page) .menu-toggle .top { top: 15px; }
body:not(.careers-page) .menu-toggle .mid { top: 21px; }
body:not(.careers-page) .menu-toggle .bot { top: 27px; }

body:not(.careers-page) .navbar.menu-open .menu-toggle .top { transform: translateY(6px) rotate(45deg); }
body:not(.careers-page) .navbar.menu-open .menu-toggle .mid { opacity: 0; }
body:not(.careers-page) .navbar.menu-open .menu-toggle .bot { transform: translateY(-6px) rotate(-45deg); }

body:not(.careers-page) .mobile-menu {
    pointer-events: auto;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    /* display is governed by the .mobile-only utility (none on desktop, block
       on mobile) so the responsive override can't clobber a flex value here.
       Links are set to display:block below so they always stack. */
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    visibility: hidden;
}

body:not(.careers-page) .navbar.menu-open .mobile-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

body:not(.careers-page) .mobile-menu a {
    display: block;
    padding: 13px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    border-radius: 12px;
}
body:not(.careers-page) .mobile-menu a + a { margin-top: 2px; }
body:not(.careers-page) .mobile-menu a:hover { background: rgba(15, 23, 42, 0.04); }
body:not(.careers-page) .mobile-menu a.nav-cta {
    margin-top: 6px;
    text-align: center;
    justify-content: center;
    color: #fff !important;
}

/* ---------- Scroll reveals ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(32px) scale(0.99);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
}
.fade-up.is-visible {
    opacity: 1;
    transform: none;
}
.fade-up.delay-1 { transition-delay: 0.09s; }
.fade-up.delay-2 { transition-delay: 0.18s; }
.fade-up.delay-3 { transition-delay: 0.27s; }
.fade-up.delay-4 { transition-delay: 0.36s; }

/* Directional / scale reveal variants (add-on classes on .fade-up). */
.fade-up.fade-scale { transform: scale(0.92); }
.fade-up.fade-right { transform: translateX(48px); }
.fade-up.fade-left { transform: translateX(-48px); }
.fade-up.fade-scale.is-visible,
.fade-up.fade-right.is-visible,
.fade-up.fade-left.is-visible { transform: none; }

/* Reading-progress bar pinned to the very top of the viewport. */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--blue), var(--blue-400));
    z-index: 1200;
    pointer-events: none;
    will-change: transform;
}

/* ==========================================================================
   HERO (careers landing)
   ========================================================================== */
.hero {
    position: relative;
    padding: clamp(140px, 20vh, 220px) 0 clamp(72px, 10vw, 120px);
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #fefefe;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(100% 70% at 50% 28%, #000 35%, transparent 78%);
    mask-image: radial-gradient(100% 70% at 50% 28%, #000 35%, transparent 78%);
}

#hero-mesh {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.hero-inner {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    margin-top: 22px;
    font-size: clamp(2.7rem, 6.4vw, 5.1rem);
    line-height: 1.0;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.hero-sub {
    margin: 26px auto 0;
    max-width: 60ch;
    font-size: clamp(1.1rem, 1.9vw, 1.4rem);
    line-height: 1.5;
    color: var(--ink-70);
    font-weight: 400;
}

.hero-sub strong { color: var(--navy); font-weight: 600; }

.hero-actions {
    margin-top: 38px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badges {
    margin-top: 46px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 9px 16px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-70);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.hero-foot-note {
    margin-top: 34px;
    font-size: 0.92rem;
    color: var(--ink-55);
}

/* ==========================================================================
   "What we're building"
   ========================================================================== */
.build-section { background: var(--bg); }

/* Stacked header: eyebrow, headline, supporting copy, sectors. */
.build-header { max-width: 880px; }
.build-header .section-title { margin-top: 18px; }
.build-header .section-lead { margin-top: 20px; max-width: 70ch; }
.build-header .section-lead + .section-lead { margin-top: 14px; }
.build-header .section-lead strong { color: var(--navy); font-weight: 700; }
.build-header .sector-row { margin-top: 24px; }

/* Two deployment options as equal panels. */
.deploy-grid {
    margin-top: clamp(30px, 3.5vw, 40px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.deploy-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 22px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.deploy-card .media-frame { aspect-ratio: 16 / 8.2; }
.deploy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.35);
}

.deploy-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.deploy-ico {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--blue-tint);
    color: var(--blue);
}
.deploy-ico svg { width: 24px; height: 24px; }

.deploy-card h3 {
    font-size: 1.22rem;
    letter-spacing: -0.02em;
}
.deploy-card .tag {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 3px;
}
.deploy-card p {
    color: var(--ink-70);
    font-size: 0.99rem;
    line-height: 1.6;
}

.sector-row {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.sector-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--navy);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.sector-note {
    color: var(--ink-55);
    font-size: 0.96rem;
}

/* ==========================================================================
   "Who thrives here" — trait grid
   ========================================================================== */
.thrive-section { background: var(--bg); }

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

.trait-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.trait-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.3);
}

.trait-ico {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--blue-tint);
    color: var(--blue);
    margin-bottom: 18px;
}
.trait-ico svg { width: 26px; height: 26px; }

.trait-card h3 {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.trait-card p {
    color: var(--ink-70);
    font-size: 0.96rem;
    line-height: 1.58;
}

/* attract / repel contrast */
.fit-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.fit-card {
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.fit-card.is-yes {
    border-color: rgba(34, 197, 94, 0.35);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.05), rgba(255, 255, 255, 0) 60%), #fff;
}
.fit-card.is-no {
    border-color: rgba(239, 68, 68, 0.28);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.045), rgba(255, 255, 255, 0) 60%), #fff;
}

.fit-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
}
.fit-badge {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.is-yes .fit-badge { background: rgba(34, 197, 94, 0.14); color: var(--green); }
.is-no .fit-badge { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.fit-badge svg { width: 17px; height: 17px; }
.fit-head h3 { font-size: 1.18rem; letter-spacing: -0.02em; }

.fit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.fit-list li {
    position: relative;
    padding-left: 28px;
    color: var(--ink-70);
    font-size: 0.99rem;
    line-height: 1.5;
}
.fit-list li::before {
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.95rem;
    font-weight: 700;
}
.is-yes .fit-list li::before { content: "✓"; color: var(--green); }
.is-no .fit-list li::before { content: "✕"; color: var(--red); }

/* ==========================================================================
   "The deal, honestly" — dark panel
   ========================================================================== */
.deal-section {
    background: var(--bg);
    padding: clamp(64px, 9vw, 110px) 0;
}

.deal-panel {
    position: relative;
    overflow: hidden;
    border-radius: clamp(22px, 3vw, 32px);
    background:
        radial-gradient(120% 130% at 100% 0%, rgba(37, 99, 235, 0.35), transparent 55%),
        radial-gradient(90% 100% at 0% 100%, rgba(37, 99, 235, 0.18), transparent 50%),
        #0b1220;
    color: #fff;
    padding: clamp(40px, 5.5vw, 72px);
    box-shadow: var(--shadow-lg);
}

.deal-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Dot-grid texture, matching the live site's dark outcome cards. */
    background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(130% 100% at 80% 0%, #000, transparent 72%);
    mask-image: radial-gradient(130% 100% at 80% 0%, #000, transparent 72%);
    pointer-events: none;
}
/* Hairline accent across the top edge of the panel. */
.deal-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.6), transparent);
    pointer-events: none;
}

.deal-grid {
    position: relative;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: clamp(36px, 5vw, 70px);
    align-items: stretch;
}
.deal-intro { display: flex; flex-direction: column; }

/* Team-preview teaser, pinned to the bottom of the intro column. */
.deal-team-teaser {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 9px 18px 9px 9px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.deal-team-teaser:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-2px);
}
.deal-avatars { display: inline-flex; }
.deal-av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 2px solid #0b1220;
    margin-left: -11px;
}
.deal-av:first-child { margin-left: 0; }
.deal-teaser-text { font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; }
.deal-teaser-text .arrow { color: var(--blue-400); display: inline-block; transition: transform 0.25s var(--ease); }
.deal-team-teaser:hover .arrow { transform: translateX(4px); }

.deal-panel .eyebrow { color: rgba(255, 255, 255, 0.6); }
.deal-panel .eyebrow::before { background: var(--blue-400); }

.deal-title {
    margin-top: 18px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: -0.035em;
    line-height: 1.04;
}
.deal-title .accent-text { color: var(--blue-400); }

.deal-lead {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.08rem;
    line-height: 1.62;
    max-width: 46ch;
}

.deal-terms {
    display: grid;
    gap: 14px;
}

.term {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.term:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateX(3px);
}

.term-ico {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.22);
    color: var(--blue-400);
}
.term-ico svg { width: 21px; height: 21px; }

.term-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-400);
    margin-bottom: 4px;
}
.term-text {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.5;
}
.term-text strong { color: #fff; font-weight: 700; }

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.cta-section {
    background: var(--bg);
    text-align: center;
    padding: clamp(80px, 12vw, 150px) 0;
}

.cta-section .section-title {
    max-width: 17ch;
    margin: 0 auto;
}

.cta-section .section-lead {
    margin: 22px auto 0;
    text-align: center;
}

.cta-actions {
    margin-top: 38px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-meta {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--ink-55);
}
.cta-meta span { display: inline-flex; align-items: center; gap: 7px; }
.cta-meta svg { width: 15px; height: 15px; color: var(--green); }

.cta-direct {
    margin-top: 24px;
    font-size: 0.96rem;
    color: var(--ink-70);
}
.cta-direct a { color: var(--blue); font-weight: 600; }
.cta-direct a:hover { text-decoration: underline; }

/* ==========================================================================
   What you'll own — sample-projects grid
   ========================================================================== */
.own-head { max-width: 760px; }
.own-grid {
    margin-top: clamp(36px, 5vw, 52px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Premium feature card: icon, ghost index, accent line, cursor-spotlight. */
.own-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 32px 32px 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
/* Shared cursor-following spotlight (sits above bg, below content). */
.spotlight { position: relative; overflow: hidden; isolation: isolate; }
.spotlight > * { position: relative; z-index: 1; }
.own-card::before,
.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -30%),
            rgba(37, 99, 235, 0.10), transparent 62%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}
.own-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow), 0 34px 64px -34px rgba(37, 99, 235, 0.5);
}
.own-card:hover::before,
.spotlight:hover::before { opacity: 1; }

.own-card-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, var(--blue), var(--blue-400));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s var(--ease);
}
.own-card:hover .own-card-line { transform: scaleX(1); }

.own-card-num {
    position: absolute;
    top: 14px;
    right: 24px;
    z-index: 1;
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--blue);
    opacity: 0.09;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
    pointer-events: none;
}
.own-card:hover .own-card-num { opacity: 0.16; transform: translateY(-2px); }

.own-ico {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(96, 165, 250, 0.14));
    margin-bottom: 24px;
    transition: transform 0.45s var(--ease), background 0.45s var(--ease), color 0.45s var(--ease),
        box-shadow 0.45s var(--ease);
}
.own-ico svg { width: 27px; height: 27px; }
.own-card:hover .own-ico {
    transform: translateY(-2px) scale(1.07) rotate(-4deg);
    background: linear-gradient(135deg, var(--blue), #1d4ed8);
    color: #fff;
    box-shadow: 0 14px 26px -10px rgba(37, 99, 235, 0.6);
}

.own-card-desc {
    position: relative;
    z-index: 1;
    color: var(--ink-70);
    font-size: 1.02rem;
    line-height: 1.62;
}
.own-card-desc strong {
    color: var(--navy);
    font-weight: 700;
}

/* ==========================================================================
   Who you'd build with — team grid + highlighted chairman card
   ========================================================================== */
.team-section { background: var(--bg); }
.team-head { max-width: 780px; }

.team-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.founder-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.founder-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.3);
}
.team-avatar {
    width: 66px;
    height: 66px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--blue);
    background: var(--blue-tint);
    margin-bottom: 18px;
    overflow: hidden;
}
.team-avatar { position: relative; }
.team-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-card h3 { font-size: 1.18rem; letter-spacing: -0.02em; }
.founder-role {
    margin-top: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
}
.founder-bio {
    margin-top: 15px;
    color: var(--ink-70);
    font-size: 0.95rem;
    line-height: 1.62;
}
/* Bulleted founder bios. */
.founder-bullets {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.founder-bullets li {
    position: relative;
    padding-left: 24px;
    color: var(--ink-70);
    font-size: 0.93rem;
    line-height: 1.5;
}
.founder-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--blue);
    transform: rotate(45deg);
    transition: transform 0.3s var(--ease);
}
.founder-card:hover .founder-bullets li::before { transform: rotate(135deg); }

.chairman-card {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(26px, 4vw, 48px);
    align-items: start;
    background:
        radial-gradient(120% 170% at 100% 0%, rgba(37, 99, 235, 0.28), transparent 55%),
        #0b1220;
    color: rgba(255, 255, 255, 0.74);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 46px);
    box-shadow: var(--shadow-lg);
}
/* When the chairman leads the section (above the founder row). */
.chairman-card-lead { margin-top: clamp(36px, 5vw, 52px); }
.chairman-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.6), transparent);
    pointer-events: none;
}
.chairman-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(130% 110% at 85% 0%, #000, transparent 72%);
    mask-image: radial-gradient(130% 110% at 85% 0%, #000, transparent 72%);
    pointer-events: none;
}
.chairman-media { position: relative; }
.chairman-avatar {
    width: 140px;
    height: 140px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
}
.chairman-avatar { position: relative; }
.chairman-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.chairman-body { position: relative; }
.chairman-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-400);
    margin-bottom: 10px;
}
.chairman-card h3 {
    color: #fff;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    letter-spacing: -0.025em;
}
.chairman-role {
    margin-top: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
.chairman-bio {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.97rem;
    line-height: 1.65;
    max-width: 72ch;
}
.team-pull {
    margin-top: 30px;
    max-width: 780px;
    color: var(--ink-70);
    font-size: 1.05rem;
    line-height: 1.6;
}
.team-pull strong { color: var(--navy); font-weight: 600; }

/* ==========================================================================
   How hiring works — process strip
   ========================================================================== */
.process-head { max-width: 760px; }
.process-head-grid {
    max-width: none;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: clamp(30px, 5vw, 64px);
    align-items: end;
}
.process-statement {
    margin-top: 18px;
    max-width: 28ch;
    color: var(--navy);
    font-weight: 500;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.32;
    letter-spacing: -0.02em;
}
.process-stats {
    display: flex;
    gap: clamp(22px, 3vw, 40px);
    justify-content: flex-start;
    padding-bottom: 6px;
}
.pstat strong {
    display: block;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--navy);
    line-height: 1;
}
.pstat span {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--ink-55);
    letter-spacing: 0.01em;
}
.process-intro {
    margin-top: 16px;
    max-width: 62ch;
    color: var(--ink-70);
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    line-height: 1.6;
}
.process-steps {
    position: relative;
    margin-top: clamp(34px, 4.5vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 880px;
    padding-left: 64px;
}
.process-rail {
    position: absolute;
    left: 19px;
    top: 26px;
    bottom: 26px;
    width: 2px;
    background: var(--line-strong);
    border-radius: 2px;
    overflow: hidden;
}
.process-rail-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--blue), var(--blue-400));
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.12s linear;
}
.process-step {
    position: relative;
    transition: transform 0.3s var(--ease);
}
.process-num {
    position: absolute;
    left: -64px;
    top: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.98rem;
    font-weight: 700;
    box-shadow: 0 0 0 5px var(--bg);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
    z-index: 1;
}
.process-step-body {
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.process-step:hover .process-step-body {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-color: rgba(37, 99, 235, 0.3);
}
.process-step:hover .process-num {
    background: var(--blue);
    transform: scale(1.08);
}
.process-step-body h3 { font-size: 1.1rem; letter-spacing: -0.015em; }
.process-step-body p {
    margin-top: 7px;
    color: var(--ink-70);
    font-size: 0.97rem;
    line-height: 1.58;
}
.process-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    margin-top: 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--blue);
    transition: gap 0.25s var(--ease);
}
.process-link .arrow { transition: transform 0.25s var(--ease); }
.process-link:hover { color: #1d4ed8; }
.process-link:hover .arrow { transform: translateX(4px); }
.process-subline {
    margin-top: 26px;
    max-width: 820px;
    color: var(--ink-70);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* ==========================================================================
   Media frames (image / video / diagram slots) + designed empty states
   ========================================================================== */
.media-frame {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        radial-gradient(120% 130% at 82% 0%, rgba(37, 99, 235, 0.10), transparent 60%),
        var(--bg-softer);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    isolation: isolate;
}
.media-frame[data-ratio="16-9"] { aspect-ratio: 16 / 9; }
.media-frame[data-ratio="4-3"] { aspect-ratio: 4 / 3; }
.media-frame[data-ratio="21-9"] { aspect-ratio: 21 / 9; }
.media-frame > img,
.media-frame > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* faint brand corner ticks on empty frames */
.media-frame::before,
.media-frame::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(37, 99, 235, 0.35);
    z-index: 1;
}
.media-frame::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.media-frame::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.media-frame:has(> img)::before,
.media-frame:has(> img)::after,
.media-frame:has(> video)::before,
.media-frame:has(> video)::after { display: none; }
.media-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    padding: 26px;
    text-align: center;
}
.media-ph .media-ico {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--blue-tint);
    color: var(--blue);
    display: grid;
    place-items: center;
}
.media-ph .media-ico svg { width: 24px; height: 24px; }
.media-ph strong {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-70);
    max-width: 40ch;
    line-height: 1.45;
}
.media-ph small {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--blue);
}
/* Deploy-card media: show the whole graphic, never an awkward crop */
/* When a real image is present, hide the placeholder behind it (it leaks past a contained image) */
.media-frame:has(> img) .media-ph { display: none; }
.deploy-card .media-frame:has(> .deploy-img--appliance) {
    background:
        radial-gradient(120% 130% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 62%),
        #ffffff;
}
.deploy-card .media-frame > .deploy-img--appliance {
    object-fit: contain;
    padding: 10px 14px;
}
.deploy-card .media-frame > .deploy-img--cloud {
    object-fit: cover;
}

/* ==========================================================================
   Hover micro-interactions (icons + glow)
   ========================================================================== */
.deploy-card:hover,
.trait-card:hover,
.own-item:hover,
.founder-card:hover {
    box-shadow: var(--shadow), 0 0 0 1px rgba(37, 99, 235, 0.12), 0 24px 50px -28px rgba(37, 99, 235, 0.5);
}
.deploy-ico,
.trait-ico,
.own-num {
    transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.deploy-card:hover .deploy-ico,
.trait-card:hover .trait-ico {
    transform: translateY(-2px) scale(1.07) rotate(-3deg);
    background: var(--blue);
    color: #fff;
}
.own-item:hover .own-num {
    transform: scale(1.1);
    background: var(--blue);
    color: #fff;
}
.team-avatar { transition: transform 0.35s var(--ease); }
.founder-card:hover .team-avatar { transform: scale(1.06) rotate(-2deg); }
/* Buttons get a moving sheen on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s var(--ease);
    pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

.deploy-card .media-frame { margin-bottom: 20px; }

/* ==========================================================================
   Premium polish: trait/fit cards, founder/chairman hover, pills, trust strip
   ========================================================================== */
/* Trait cards: top accent line that draws in (icon-fill handled above). */
.trait-card { border-radius: var(--radius-lg); }
.trait-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, var(--blue), var(--blue-400));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s var(--ease);
}
.trait-card:hover::after { transform: scaleX(1); }

/* Fit cards: spotlight + accent line tinted to the card's own colour. */
.fit-card.is-yes::before {
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -30%),
            rgba(34, 197, 94, 0.12), transparent 62%);
}
.fit-card.is-no::before {
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -30%),
            rgba(239, 68, 68, 0.10), transparent 62%);
}
.fit-card { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); }
.fit-card.is-yes:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: var(--shadow), 0 30px 60px -32px rgba(34, 197, 94, 0.45);
}
.fit-card.is-no:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: var(--shadow), 0 30px 60px -32px rgba(239, 68, 68, 0.4);
}
.fit-card .fit-badge { transition: transform 0.35s var(--ease); }
.fit-card:hover .fit-badge { transform: scale(1.12) rotate(-4deg); }

/* Chairman card: subtle lift + glow (keeps its hairline/dot texture). */
.chairman-card { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.chairman-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 40px 80px -36px rgba(37, 99, 235, 0.6);
}
.chairman-card .chairman-avatar { transition: transform 0.4s var(--ease); }
.chairman-card:hover .chairman-avatar { transform: scale(1.05) rotate(-3deg); }

/* Pills (hero badges + sector chips): animated lift on hover. */
.pill {
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
        background 0.3s var(--ease), color 0.3s var(--ease);
    cursor: default;
}
.pill .dot { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.pill:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.45);
    color: var(--navy);
    box-shadow: 0 12px 26px -14px rgba(37, 99, 235, 0.55);
}
.pill:hover .dot { transform: scale(1.5); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }

.sector-chip {
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
    cursor: default;
}
.sector-chip:hover {
    transform: translateY(-3px) scale(1.03);
    background: var(--blue);
    box-shadow: 0 14px 28px -12px rgba(37, 99, 235, 0.6);
}

/* ==========================================================================
   Early-traction trust strip
   ========================================================================== */
.trust-strip {
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: clamp(44px, 6vw, 68px) 0;
}
.trust-eyebrow {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: clamp(26px, 3.5vw, 40px);
}
.trust-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 4vw, 48px);
    align-items: start;
}
.trust-stat {
    position: relative;
    text-align: center;
    padding: 0 12px;
}
.trust-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: calc(-1 * clamp(10px, 2vw, 24px));
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: var(--line-strong);
}
.trust-num {
    display: block;
    font-size: clamp(2.8rem, 5.5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
}
.trust-label {
    display: block;
    margin: 12px auto 0;
    max-width: 24ch;
    font-size: 0.96rem;
    color: var(--ink-70);
    line-height: 1.45;
}

/* ==========================================================================
   Footer (mirrors site markup/classes)
   ========================================================================== */
.footer {
    background: #0b1220;
    color: rgba(255, 255, 255, 0.6);
    padding: clamp(56px, 7vw, 84px) 0 30px;
}

.footer-inner {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    gap: 48px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .nav-logo,
.footer-brand .footer-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
}
/* Light corner brackets so the ⌜Private Box⌟ mark reads on the dark footer. */
.footer-brand .nav-logo::before,
.footer-brand .nav-logo::after { border-color: rgba(255, 255, 255, 0.85); }
.footer-brand .logo-private { color: var(--blue-400); }
.footer-brand .logo-box { color: #fff; }

.footer-brand p {
    margin-top: 16px;
    max-width: 34ch;
    font-size: 0.96rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.58);
    transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
    padding-top: 26px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.42);
}

/* ==========================================================================
   APPLICATION FORM PAGE
   ========================================================================== */
.apply-main { padding-top: clamp(118px, 16vh, 168px); }

.apply-hero {
    padding-bottom: clamp(8px, 2vw, 20px);
}

.apply-layout {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
    padding-top: clamp(28px, 4vw, 44px);
    padding-bottom: clamp(72px, 10vw, 130px);
}

.apply-rail {
    position: sticky;
    top: 120px;
}

.apply-rail .hero-title {
    margin-top: 18px;
    font-size: clamp(2.1rem, 3.6vw, 3rem);
    text-align: left;
    line-height: 1.04;
}

.apply-rail .lead {
    margin-top: 20px;
    color: var(--ink-70);
    font-size: 1.06rem;
    line-height: 1.62;
}

.apply-steps {
    margin-top: 30px;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.apply-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.apply-steps .num {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-tint);
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.apply-steps .step-txt {
    color: var(--ink-70);
    font-size: 0.98rem;
    line-height: 1.45;
}
.apply-steps .step-txt strong { color: var(--navy); font-weight: 600; }

.apply-reassure {
    margin-top: 30px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    display: flex;
    gap: 13px;
    align-items: flex-start;
}
.apply-reassure svg { flex: none; width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }
.apply-reassure p { font-size: 0.93rem; color: var(--ink-70); line-height: 1.5; }
.apply-reassure strong { color: var(--navy); }

/* form card */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: clamp(26px, 3.4vw, 42px);
}

.form-section + .form-section {
    margin-top: 34px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.form-section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}
.form-section-num {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--blue);
    border-radius: var(--radius-pill);
    padding: 3px 11px;
}
.form-section-num.is-optional {
    color: var(--ink-55);
    background: transparent;
    border: 1px solid var(--line-strong);
}
.form-section-head h2 {
    font-size: 1.28rem;
    letter-spacing: -0.02em;
}
.form-optional {
    margin-left: 9px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-55);
    background: var(--bg-softer);
    border-radius: var(--radius-pill);
    padding: 3px 9px;
    vertical-align: middle;
}
.form-section-sub {
    color: var(--ink-70);
    font-size: 0.95rem;
    margin-bottom: 22px;
    line-height: 1.5;
}

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

label.field-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
label .req { color: var(--blue); margin-left: 2px; }
label .hint {
    display: block;
    margin-top: 3px;
    font-size: 0.86rem;
    font-weight: 400;
    color: var(--ink-70);
    line-height: 1.45;
}

.input,
.textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--navy);
    background: var(--bg-soft);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.textarea {
    min-height: 128px;
    resize: vertical;
    line-height: 1.55;
}
.input::placeholder,
.textarea::placeholder { color: var(--ink-40); }

.input:focus,
.textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.input.has-prefix { padding-left: 40px; }
.input-wrap { position: relative; }
.input-wrap .prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-40);
    font-size: 0.98rem;
    pointer-events: none;
}

.char-count {
    margin-top: 6px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--ink-40);
    font-variant-numeric: tabular-nums;
}

/* Optional CV attach — styled drop zone over a hidden file input. */
.file-drop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.file-drop:hover,
.file-drop.is-dragover {
    border-color: var(--blue);
    background: rgba(37, 99, 235, 0.04);
}
.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.file-drop-ico {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--blue-tint);
    color: var(--blue);
    display: grid;
    place-items: center;
}
.file-drop-ico svg { width: 21px; height: 21px; }
.file-drop-text { line-height: 1.4; }
.file-drop-text strong { display: block; font-size: 0.96rem; font-weight: 600; color: var(--navy); }
.file-drop-text span { font-size: 0.85rem; color: var(--ink-55); }

.file-chosen {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.18);
}
.file-chosen.is-shown { display: flex; }
.file-chosen-ico {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
}
.file-chosen-ico svg { width: 16px; height: 16px; }
.file-chosen-name {
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    color: var(--navy);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-chosen-name small { display: block; font-weight: 400; color: var(--ink-55); }
.file-remove {
    flex: none;
    border: none;
    background: transparent;
    color: var(--ink-55);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.file-remove:hover { background: rgba(239, 68, 68, 0.1); color: var(--red); }
.file-remove svg { width: 16px; height: 16px; }

.field-error {
    display: none;
    margin-top: 7px;
    font-size: 0.85rem;
    color: var(--red);
}
.field.invalid .input,
.field.invalid .textarea {
    border-color: var(--red);
    background: rgba(239, 68, 68, 0.03);
}
.field.invalid .field-error { display: block; }

.form-foot {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.form-foot .note {
    font-size: 0.88rem;
    color: var(--ink-55);
    max-width: 34ch;
}
.form-card .btn-primary { min-width: 168px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* success state */
.form-success {
    display: none;
    text-align: center;
    padding: clamp(34px, 5vw, 56px) clamp(20px, 3vw, 40px);
}
.form-success.is-shown { display: block; animation: rise 0.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.success-check {
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    display: grid;
    place-items: center;
}
.success-check svg { width: 38px; height: 38px; color: var(--green); }
.success-check svg path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: draw 0.6s var(--ease) 0.2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.form-success h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -0.03em;
}
.form-success p {
    margin: 16px auto 0;
    max-width: 44ch;
    color: var(--ink-70);
    font-size: 1.05rem;
    line-height: 1.6;
}
.form-success .btn { margin-top: 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 920px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: revert; }
    body:not(.careers-page) .nav-links.desktop-only { display: none !important; }

    body:not(.careers-page) .nav-inner { padding: 16px 22px; }
    body:not(.careers-page) .navbar.scrolled .nav-inner { padding: 12px 22px; }

    .build-header { grid-template-columns: 1fr; gap: 22px; align-items: start; }
    .deal-grid { grid-template-columns: 1fr; gap: 34px; }
    .deal-team-teaser { margin-top: 30px; }
    .trait-grid { grid-template-columns: 1fr 1fr; }
    .own-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; max-width: 460px; }
    .chairman-card { grid-template-columns: 1fr; gap: 22px; }
    .apply-layout { grid-template-columns: 1fr; gap: 40px; }
    .apply-rail { position: static; }
    .footer-top { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 640px) {
    .shell { padding: 0 20px; }
    .footer-inner { padding: 0 20px; }
    .trait-grid { grid-template-columns: 1fr; }
    .deploy-grid { grid-template-columns: 1fr; }
    .fit-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .form-foot { flex-direction: column-reverse; align-items: stretch; }
    .form-card .btn-primary { width: 100%; }
    .team-grid { max-width: none; }
    .chairman-avatar { width: 96px; height: 96px; font-size: 1.5rem; }
    .process-step { padding: 18px 18px; gap: 16px; }
    .trust-inner { grid-template-columns: 1fr; gap: 30px; }
    .trust-stat { padding: 0; }
    .trust-stat:not(:last-child)::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: calc(-1 * 15px);
        transform: translateX(-50%);
        width: 40px;
        height: 1px;
    }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .fade-up { opacity: 1; transform: none; }
    #hero-mesh { display: none; }
}
