/* ============================================
   SOLVED - Modern One Page Website
   Brand Colors: Blue #0d05f2, Black #0d0d0d, White #F2F2F2
   Fonts: JetBrains Mono
   ============================================ */

/* --- CSS Variables --- */
:root {
    --blue: #0d05f2;
    --blue-dark: #030A8C;
    --blue-mid: #040FD9;
    --blue-light: #3D58F2;
    --green: #05F20D;
    --black: #0d0d0d;
    --white: #F2F2F2;
    --gray: #888;
    --gray-dark: #1a1a1a;
    --gray-border: #222;
    --font: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--green) var(--blue-dark);
}

body {
    font-family: var(--font);
    background: var(--blue);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--blue-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--green);
    border-radius: 3px;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 242, 13, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1010;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    padding: 12px 0;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.nav.scrolled .nav-logo {
    opacity: 1;
    pointer-events: auto;
}

.logo-img {
    height: 32px;
    width: auto;
    transition: opacity 0.3s;
}

.nav-logo:hover .logo-img {
    opacity: 0.7;
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.6);
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green);
    transition: width 0.3s var(--ease);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    color: rgba(242, 242, 242, 0.6);
}

.nav-link--cta:hover {
    color: var(--white);
}

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 50%, var(--black) 100%);
}

.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-logo-wrapper {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.hero-logo {
    height: 110px;
    width: auto;
    display: block;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 32px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(5, 242, 13, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(5, 242, 13, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    overflow: hidden;
}

.hero-word {
    display: inline-block;
}

.hero-word--accent {
    color: var(--green);
    position: relative;
}

.cursor-blink {
    color: var(--green);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-sub {
    font-size: 16px;
    color: rgba(242, 242, 242, 0.5);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: none;
    letter-spacing: 0.5px;
}

.btn--primary {
    background: var(--green);
    color: var(--black);
}

.btn--primary:hover {
    background: #04d90b;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(5, 242, 13, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(242, 242, 242, 0.2);
}

.btn--ghost:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* --- Partner Marquee --- */
.partner-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    padding: 16px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    z-index: 2;
}

.partner-label {
    display: block;
    text-align: center;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.35);
    margin-bottom: 12px;
}

.partner-track {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 0 40px;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.partner-track img {
    height: 44px;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.partner-track img:hover {
    opacity: 1;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Scroll Indicator --- */
.hero-scroll {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.hero-scroll span {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.3);
}

.scroll-indicator {
    width: 20px;
    height: 32px;
    border: 1px solid rgba(242, 242, 242, 0.2);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-line {
    width: 2px;
    height: 8px;
    background: var(--green);
    border-radius: 1px;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- Ticker --- */
.ticker {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.ticker-track {
    display: flex;
    animation: ticker-scroll 20s linear infinite;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 40px;
    white-space: nowrap;
    padding-right: 40px;
}

.ticker-item {
    font-size: 14px;
    font-weight: 400;
    color: rgba(242, 242, 242, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ticker-num {
    color: var(--green);
    font-weight: 700;
}

.ticker-divider {
    color: var(--green);
    font-size: 18px;
    opacity: 0.4;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Sections --- */
.section {
    padding: 120px 0;
    position: relative;
}

/* --- Alternating Section Backgrounds: blue → black → blue → black --- */
.work {
    background:
        linear-gradient(180deg, transparent 60%, var(--black) 100%),
        linear-gradient(135deg, var(--blue-dark) 0%, var(--black) 100%);
}

.section-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--green);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 15px;
    color: rgba(242, 242, 242, 0.5);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 60px;
}

.section-text {
    font-size: 15px;
    color: rgba(242, 242, 242, 0.5);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

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

/* --- About Section --- */
.about {
    background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 80px 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    display: block;
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
}

.stat-label {
    font-size: 12px;
    color: rgba(242, 242, 242, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 8px;
    display: block;
}

/* --- Services --- */
.services {
    background: linear-gradient(180deg, var(--blue-dark) 0%, var(--black) 100%);
}

.services-grid {
    position: relative;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.service-card {
    background: #0a0a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: #111128;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--green);
    transition: all 0.3s;
}

.service-card:hover .service-icon {
    background: var(--green);
    color: var(--black);
}

.service-num {
    position: absolute;
    top: 32px;
    right: 32px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(242, 242, 242, 0.1);
    letter-spacing: 1px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: rgba(242, 242, 242, 0.4);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.service-tags span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(242, 242, 242, 0.5);
    transition: all 0.3s;
}

.service-card:hover .service-tags span {
    border-color: rgba(5, 242, 13, 0.3);
    color: var(--green);
}

/* --- Work / Projects --- */
.work {
    padding-top: 60px;
    padding-bottom: 60px;
}

.work-showcase {
    position: relative;
    margin-top: 30px;
    height: calc(72vh + 40px);
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}

.work-showcase:active {
    cursor: grabbing;
}

.work-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 72vh;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #0a0a1a;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.work-showcase .work-card.reveal {
    opacity: 1;
}

/* Carousel dots — horizontal, bottom */
.work-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.work-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}

.work-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.work-dot.active {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 8px rgba(5, 242, 13, 0.4);
}

/* Screenshot / visual area */
.work-card-screenshot {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.work-card-screenshot-logo {
    max-width: 40%;
    height: auto;
    opacity: 0.5;
}

.work-card-screenshot-label {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

/* Info overlay at bottom */
.work-card-info {
    position: relative;
    z-index: 2;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85) 30%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.work-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 8px;
    display: block;
}

.work-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.work-desc {
    font-size: 14px;
    color: rgba(242, 242, 242, 0.6);
    line-height: 1.8;
    margin-bottom: 16px;
    max-width: 600px;
}

.work-tech {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.work-tech span {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(242, 242, 242, 0.7);
}

.work-btn {
    align-self: flex-start;
}

/* --- Split card variant (Option A) --- */
.work-card--split {
    flex-direction: row;
    justify-content: stretch;
    border: 1px solid rgba(164, 210, 165, 0.15);
}

.work-card--split .work-card-visual {
    position: relative;
    flex: 1.2;
    background: linear-gradient(135deg, #0a0a0a 0%, #0d1a0e 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.work-card--split .work-card-info {
    flex: 0.8;
    background: #0a0a1a;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.work-card-logo {
    width: 160px;
    height: auto;
    margin-bottom: 20px;
}

/* Browser frame mockup */
.browser-frame {
    width: 90%;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a2e;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(164, 210, 165, 0.06);
    position: relative;
    z-index: 2;
}

.browser-frame--small {
    width: 55%;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(164, 210, 165, 0.08);
}

.browser-frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #111125;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.browser-url {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 10px;
    letter-spacing: 0.5px;
}

.browser-frame-body {
    position: relative;
    line-height: 0;
}

.browser-frame-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* --- TestYourself card color overrides --- */
.work-card--ty {
    border-color: rgba(78, 205, 196, 0.2);
}

.work-card--ty .work-card-visual {
    background: linear-gradient(135deg, #0a1240 0%, #0d2a1e 100%);
}

.work-card--ty .work-card-info {
    background: linear-gradient(180deg, #0d1a3d 0%, #0a1240 100%);
}

/* --- ExaMate card color overrides --- */
.work-card--em {
    border-color: rgba(61, 88, 242, 0.2);
}

.work-card--em .work-card-visual {
    background: linear-gradient(135deg, #0a0d2e 0%, #1a1e4a 100%);
}

.work-card--em .work-card-info {
    background: linear-gradient(180deg, #0d1030 0%, #0a0d2e 100%);
}

/* Logo-centric visual */
.work-card-visual--logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-card-hero-logo {
    max-width: 65%;
    height: auto;
}

/* --- Process --- */
.process {
    background: linear-gradient(180deg, var(--black) 0%, var(--blue) 100%);
}

.process-timeline {
    position: relative;
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.process-line {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.process-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: var(--green);
    transition: width 0.8s var(--ease);
}

.process-step {
    position: relative;
    text-align: center;
    cursor: pointer;
}

.process-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--black);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease);
}

.process-dot span {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    transition: color 0.4s;
}

.process-step:hover .process-dot,
.process-step.current .process-dot {
    border-color: var(--green);
    background: var(--green);
}

.process-step:hover .process-dot span,
.process-step.current .process-dot span {
    color: var(--black);
}

.process-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.4s;
}

.process-content p {
    font-size: 13px;
    color: var(--green);
    line-height: 1.7;
    opacity: 0.6;
    transition: opacity 0.4s;
}

.process-step.current .process-content h3,
.process-step.current .process-content p {
    opacity: 1;
}

/* --- Team --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.team-card {
    background: var(--gray-dark);
    border: 1px solid var(--gray-border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s var(--ease);
}

.team-card:hover {
    border-color: rgba(13, 5, 242, 0.3);
    transform: translateY(-4px);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

.team-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(13, 5, 242, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    border-radius: 50%;
}

.team-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    font-size: 12px;
    color: rgba(242, 242, 242, 0.4);
    display: block;
    margin-bottom: 16px;
}

.team-links a {
    color: rgba(242, 242, 242, 0.3);
    transition: color 0.3s;
}

.team-links a:hover {
    color: var(--blue);
}

/* --- Contact --- */
.contact {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--black);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(242, 242, 242, 0.5);
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--green);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(242, 242, 242, 0.4);
}

.form-group input,
.form-group textarea {
    font-family: var(--font);
    font-size: 14px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--white);
    outline: none;
    transition: all 0.3s;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(242, 242, 242, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(5, 242, 13, 0.15);
}

/* --- Footer --- */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--black);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(242, 242, 242, 0.3);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

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

.footer-links a {
    font-size: 13px;
    color: rgba(242, 242, 242, 0.4);
    transition: color 0.3s;
}

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

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

.footer-social a {
    color: rgba(242, 242, 242, 0.3);
    transition: all 0.3s;
}

.footer-social a:hover {
    color: var(--green);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(242, 242, 242, 0.2);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
    .section-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .work-showcase {
        width: 98%;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-line {
        display: none;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(13, 5, 242, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links .nav-link {
        font-size: 18px;
        color: var(--white);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        height: 100dvh;
        min-height: unset;
        flex-direction: column;
        justify-content: space-between;
        padding-top: 80px;
        padding-bottom: 0;
    }

    .hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .partner-marquee {
        position: relative;
        bottom: unset;
        flex-shrink: 0;
    }

    .hero-logo {
        height: 90px;
    }

    .hero-logo-wrapper {
        margin-bottom: 36px;
    }

    .hero-badge {
        margin-bottom: 28px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 20px;
    }

    .hero-sub {
        font-size: 14px;
        margin-bottom: 0;
    }

    .section {
        padding: 80px 0;
    }

    .work-showcase {
        width: 100%;
        height: 80vh;
    }

    .work-card {
        min-height: unset;
    }

    .work-card--split {
        flex-direction: column;
    }

    .work-card--split .work-card-visual {
        flex: none;
        min-height: 180px;
        padding: 20px;
    }

    .work-card--split .work-card-info {
        flex: 1;
        padding: 24px;
    }

    .work-card-logo {
        width: 120px;
    }

    .work-card-hero-logo {
        max-width: 50%;
    }

    .work-title {
        font-size: 1.5rem;
    }

    .work-desc {
        font-size: 14px;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-right {
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-scroll {
        display: none;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ============================================
   Sub-pages (Opportunities / Job detail)
   Light-mode brand palette
   ============================================ */

:root {
    --sub-bg: #f2f2f2;
    --sub-bg-elev: #ffffff;
    --sub-fg: #0d0d0d;
    --sub-fg-muted: #3d3d3d;
    --sub-fg-subtle: #7a7a7a;
    --sub-border: #d9d9d9;
    --sub-border-strong: #0d0d0d;
    --sub-accent: #0d05f2;
    --sub-accent-hover: #3D58F2;
}

/* Sub-page body flips to the light brand canvas */
.page-sub {
    background: var(--sub-bg);
    color: var(--sub-fg);
    min-height: 100vh;
    position: relative;
}

/* Faint blue washes + side rails echoing the brand doc */
.page-sub::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 900px 600px at 0% 0%, rgba(13, 5, 242, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 800px 600px at 100% 100%, rgba(61, 88, 242, 0.06) 0%, transparent 60%);
}

.page-sub .container,
.page-sub .nav-inner,
.page-sub footer .container {
    position: relative;
    z-index: 1;
}

/* Light-themed nav on sub-pages */
.nav--solid {
    background: rgba(242, 242, 242, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sub-border);
}

.nav--solid .nav-link {
    color: rgba(13, 13, 13, 0.55);
}

.nav--solid .nav-link:hover,
.nav--solid .nav-link--active {
    color: var(--sub-fg);
}

.nav--solid .nav-link::after {
    background: var(--sub-accent);
}

.nav--solid .nav-link--active::after {
    width: 100%;
}

.nav--solid .nav-toggle span {
    background: var(--sub-fg);
}

.nav-logo--always {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Light-themed footer on sub-pages */
.page-sub .footer {
    background: var(--sub-bg);
    border-top: 1px solid var(--sub-border);
    color: var(--sub-fg);
}

.page-sub .footer-tagline,
.page-sub .footer-bottom p {
    color: var(--sub-fg-subtle);
}

.page-sub .footer-links a {
    color: var(--sub-fg-muted);
}

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

.page-sub .footer-social a {
    color: var(--sub-fg-subtle);
}

.page-sub .footer-social a:hover {
    color: var(--sub-accent);
}

.page-sub .footer-bottom {
    border-top: 1px solid var(--sub-border);
}

/* Logo flips to blk logo (already is) — ensure no invert */
.page-sub .logo-img,
.page-sub .footer-logo {
    filter: none;
}

/* Section label override (blue dot + blue // on light bg) */
.page-sub .section-label {
    color: var(--sub-accent);
}

/* Cursor blink accent */
.page-sub .cursor-blink {
    color: var(--sub-accent);
}

/* Generic text colors */
.page-sub .section-title {
    color: var(--sub-fg);
}

/* Narrow container variant for readable prose */
.container--narrow {
    max-width: 860px;
}

/* --- Generic page hero (used by Opportunities listing) --- */
.page-hero {
    padding: 160px 0 40px;
    position: relative;
}

.page-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 28px;
    color: var(--sub-fg);
}

.page-hero-sub {
    font-size: 17px;
    color: var(--sub-fg-muted);
    line-height: 1.8;
    max-width: 640px;
}

/* --- Opportunities list --- */
.positions {
    padding-top: 60px;
    padding-bottom: 140px;
}

.positions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 48px;
}

.position-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px;
    background: var(--sub-bg-elev);
    border: 1px solid var(--sub-border);
    border-radius: 16px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.position-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sub-accent), var(--sub-accent-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.position-card:hover {
    border-color: rgba(13, 5, 242, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(13, 5, 242, 0.1);
    background: #ffffff;
}

.position-card:hover::before {
    transform: scaleX(1);
}

.position-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.position-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--sub-accent);
    text-transform: uppercase;
}

.position-title {
    font-size: 26px;
    font-weight: 700;
    margin: 8px 0 10px;
    color: var(--sub-fg);
    letter-spacing: -0.3px;
}

.position-desc {
    font-size: 14px;
    color: var(--sub-fg-muted);
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 18px;
}

.position-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.position-meta-item {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-fg-subtle);
    padding: 4px 12px;
    border: 1px solid var(--sub-border);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s var(--ease);
}

.position-card:hover .position-meta-item {
    border-color: rgba(13, 5, 242, 0.25);
    color: var(--sub-fg-muted);
}

.position-meta-divider {
    display: none;
}

.position-card-cta {
    flex-shrink: 0;
}

.position-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--sub-border);
    background: var(--sub-bg-elev);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sub-fg-muted);
    transition: all 0.3s var(--ease);
}

.position-card:hover .position-arrow {
    background: var(--sub-accent);
    border-color: var(--sub-accent);
    color: var(--sub-bg-elev);
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(13, 5, 242, 0.25);
}

.positions-empty {
    margin-top: 40px;
    padding: 28px 32px;
    border: 1px dashed var(--sub-border);
    border-radius: 4px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
}

.positions-empty p {
    font-size: 14px;
    color: var(--sub-fg-muted);
    line-height: 1.7;
    margin: 0;
}

.positions-empty a {
    color: var(--sub-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.positions-empty a:hover {
    color: var(--sub-accent-hover);
}

/* --- Job detail page --- */
.job-hero {
    padding: 140px 0 50px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sub-fg-muted);
    margin-bottom: 40px;
    transition: color 0.3s;
}

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

.job-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.job-tag,
.job-tag-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--sub-border);
    color: var(--sub-fg-muted);
    background: var(--sub-bg-elev);
}

.job-tag-dot {
    color: var(--sub-fg);
}

.job-tag-dot .badge-dot {
    background: var(--sub-accent);
    animation: pulse-dot-blue 2s infinite;
}

@keyframes pulse-dot-blue {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(13, 5, 242, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(13, 5, 242, 0); }
}

.job-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 28px;
    color: var(--sub-fg);
}

.job-lede {
    font-size: 17px;
    line-height: 1.8;
    color: var(--sub-fg-muted);
    max-width: 720px;
    margin-bottom: 48px;
}

.job-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 24px 0;
    border-top: 1px solid var(--sub-border);
    border-bottom: 1px solid var(--sub-border);
    background: rgba(255, 255, 255, 0.5);
}

.job-spec {
    padding: 0 24px;
    border-right: 1px solid var(--sub-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-spec:first-child {
    padding-left: 24px;
}

.job-spec:last-child {
    border-right: none;
}

.job-spec-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-fg-subtle);
}

.job-spec-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--sub-fg);
}

/* Body sections */
.job-body {
    padding-top: 40px;
    padding-bottom: 120px;
}

.job-section {
    margin-bottom: 72px;
}

.job-section:last-of-type {
    margin-bottom: 56px;
}

.job-section .section-label {
    display: inline-block;
    margin-bottom: 14px;
}

.job-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin: 4px 0 24px;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--sub-fg);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--sub-fg);
}

.job-section p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--sub-fg);
    margin-bottom: 16px;
    max-width: 66ch;
}

/* Responsibility grid */
.job-resp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--sub-border);
    border: 1px solid var(--sub-border);
    margin-top: 8px;
}

.job-resp-card {
    background: var(--sub-bg-elev);
    padding: 24px 26px;
    transition: background 0.2s var(--ease);
}

.job-resp-card:hover {
    background: rgba(13, 5, 242, 0.03);
}

.job-resp-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-accent);
    margin-bottom: 12px;
}

.job-resp-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 0.3px;
    color: var(--sub-fg);
    text-transform: uppercase;
}

.job-resp-card p {
    font-size: 14px;
    color: var(--sub-fg-muted);
    line-height: 1.65;
    margin: 0;
    max-width: none;
}

/* Requirements */
.job-req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-top: 8px;
}

.job-req {
    font-size: 13px;
    padding: 14px 18px;
    background: var(--sub-bg-elev);
    border: 1px solid var(--sub-border);
    color: var(--sub-fg);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s var(--ease);
}

.job-req::before {
    content: '>';
    color: var(--sub-accent);
    font-weight: 700;
}

.job-req:hover {
    border-color: var(--sub-accent);
    background: rgba(13, 5, 242, 0.03);
}

/* Offer list */
.job-offer-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.job-offer-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--sub-border);
    font-size: 15px;
    line-height: 1.7;
    color: var(--sub-fg);
}

.job-offer-list li:last-child {
    border-bottom: none;
}

.job-offer-list li::before {
    content: '//';
    color: var(--sub-accent);
    font-weight: 700;
    font-size: 15px;
}

/* Apply CTA */
.job-apply {
    margin-top: 32px;
    padding: 40px;
    border: 2px solid var(--sub-border-strong);
    background: var(--sub-bg-elev);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.job-apply::before {
    content: '//';
    position: absolute;
    right: -20px;
    bottom: -60px;
    font-size: 180px;
    font-weight: 700;
    line-height: 1;
    color: var(--sub-accent);
    opacity: 0.06;
    pointer-events: none;
}

.job-apply-copy {
    flex: 1;
    max-width: 56ch;
    position: relative;
}

.job-apply-copy h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0 12px;
    letter-spacing: -0.2px;
    color: var(--sub-fg);
}

.job-apply-copy p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--sub-fg-muted);
    margin: 0;
}

.btn--apply {
    flex-shrink: 0;
    padding: 18px 28px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--sub-accent);
    color: var(--sub-bg);
    border-radius: 0;
}

.btn--apply:hover {
    background: var(--sub-accent-hover);
    color: var(--sub-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 5, 242, 0.2);
}

/* Number + // combo heading (e.g. "01 // ABOUT THE ROLE") */
.page-sub .section-label {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-accent);
}

/* ============================================
   Document-style job detail page (brand doc 1:1)
   ============================================ */

.page-sub--doc {
    background: var(--sub-bg);
    padding-top: 0;
}

/* Remove the generic .page-sub::before radials; doc page uses watermarks instead */
.page-sub--doc::before {
    display: none;
}

/* Doc page reuses the same solid nav as the listing page (no overrides needed) */

/* Oversized Solved-mark watermarks — top-right and bottom-left */
.doc-watermark {
    position: fixed;
    width: 460px;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    opacity: 0.07;
}

.doc-watermark--a {
    right: -100px;
    top: 14vh;
}

.doc-watermark--b {
    left: -140px;
    top: 58vh;
    width: 380px;
    opacity: 0.05;
}

/* Centered 880px document column */
.doc-page {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 56px;
    position: relative;
    z-index: 1;
}

/* First .doc-page carries the header padding (below the fixed nav) */
.doc-page--top {
    padding-top: 140px;
}

.doc-page--bottom {
    padding-bottom: 120px;
}

/* Top meta row: back link + "careers · 2026" */
.doc-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--sub-border);
}

.doc-meta {
    font-family: var(--font);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-fg-muted);
}

/* Back link (lives inside .doc-meta-row) */
.doc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-fg-muted);
    transition: color 0.25s;
}

.doc-back:hover {
    color: var(--sub-accent);
}

/* Pills row — rounded hairline chips, status pill has a blue dot */
.doc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.doc-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-fg);
    padding: 8px 18px;
    border: 1px solid var(--sub-border);
    border-radius: 999px;
    background: #ffffff;
}

.doc-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sub-accent);
    display: inline-block;
    animation: pulse-dot-blue 2s infinite;
}

/* Giant title with blinking blue underscore */
.doc-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: clamp(40px, 5.5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--sub-fg);
    margin: 0 0 28px;
    text-transform: none;
}

.doc-title-cursor {
    color: var(--sub-accent);
    animation: blink 1s step-end infinite;
}

.doc-lede {
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.6;
    color: var(--sub-fg);
    max-width: 68ch;
    margin: 0 0 32px;
}

/* Full-bleed specs bar (breaks out of 880px column) */
.doc-specs-wrap {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 72px;
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid var(--sub-border);
    border-bottom: 1px solid var(--sub-border);
    z-index: 1;
}

.doc-specs {
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    font-family: var(--font);
}

.doc-spec {
    padding: 0 20px;
    border-right: 1px solid var(--sub-border);
}

.doc-spec:first-child {
    padding-left: 0;
}

.doc-spec:last-child {
    border-right: none;
    padding-right: 0;
}

.doc-spec-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-fg-subtle);
    margin-bottom: 6px;
}

.doc-spec-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--sub-fg);
}

/* Sections */
.doc-section {
    margin-bottom: 72px;
}

.doc-section-title {
    font-family: var(--font);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-fg);
    margin: 0 0 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--sub-fg);
    line-height: 1.2;
}

.doc-num {
    color: var(--sub-accent);
    margin-right: 16px;
    font-weight: 700;
}

.doc-intro p {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--sub-fg);
    max-width: 66ch;
    margin: 0 0 16px;
}

/* Responsibility grid */
.doc-resp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--sub-border);
    border: 1px solid var(--sub-border);
}

.doc-resp-card {
    background: #ffffff;
    padding: 24px;
    transition: background 0.2s var(--ease);
}

.doc-resp-card:hover {
    background: rgba(13, 5, 242, 0.03);
}

.doc-resp-tag {
    font-family: var(--font);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-accent);
    margin-bottom: 10px;
}

.doc-resp-card h4 {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-fg);
    margin: 0 0 8px;
}

.doc-resp-card p {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    color: var(--sub-fg-muted);
    margin: 0;
}

/* Requirements */
.doc-req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.doc-req {
    font-family: var(--font);
    font-size: 13px;
    padding: 12px 16px;
    border: 1px solid var(--sub-border);
    background: #ffffff;
    color: var(--sub-fg);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.doc-req::before {
    content: ">";
    color: var(--sub-accent);
    font-weight: 700;
}

.doc-req:hover {
    border-color: var(--sub-accent);
    background: rgba(13, 5, 242, 0.03);
}

/* Offer (tasks) list */
.doc-tasks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-tasks li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--sub-border);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--sub-fg);
}

.doc-tasks li:last-child {
    border-bottom: none;
}

.doc-tasks li::before {
    content: "//";
    color: var(--sub-accent);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.55;
}

/* Closing note — whole card is a link, styled like the position card */
.doc-closing {
    display: block;
    margin-top: 80px;
    padding: 40px;
    border: 1px solid var(--sub-border);
    border-radius: 16px;
    background: var(--sub-bg-elev);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--ease);
}

.doc-closing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sub-accent), var(--sub-accent-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.doc-closing:hover {
    border-color: rgba(13, 5, 242, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(13, 5, 242, 0.1);
    background: #ffffff;
}

.doc-closing:hover::before {
    transform: scaleX(1);
}

.doc-closing-tag {
    font-family: var(--font);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-accent);
    margin-bottom: 14px;
}

.doc-closing h3 {
    font-family: var(--font);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-fg);
    margin: 0 0 16px;
    line-height: 1.25;
}

.doc-closing p {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--sub-fg);
    max-width: 62ch;
    margin: 0 0 14px;
}

.doc-closing-cta {
    color: var(--sub-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.doc-closing:hover .doc-closing-cta {
    color: var(--sub-accent-hover);
}

.doc-closing-arrow {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    border: 1px solid var(--sub-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sub-fg-muted);
    background: var(--sub-bg-elev);
    transition: all 0.3s var(--ease);
}

.doc-closing:hover .doc-closing-arrow {
    background: var(--sub-accent);
    border-color: var(--sub-accent);
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(13, 5, 242, 0.25);
}

.doc-sign {
    margin-top: 20px;
    font-family: var(--font);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--sub-fg-muted);
}

.doc-sign strong {
    color: var(--sub-accent);
    font-weight: 700;
}

/* Footer line */
.doc-foot {
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid var(--sub-border);
    display: flex;
    justify-content: space-between;
    font-family: var(--font);
    font-size: 12px;
    color: var(--sub-fg-subtle);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mobile doc page */
@media (max-width: 768px) {
    .doc-page {
        padding: 0 24px;
    }

    .doc-page--top {
        padding-top: 110px;
    }

    .doc-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .doc-closing-arrow {
        display: none;
    }

    .doc-specs {
        grid-template-columns: 1fr 1fr;
        padding: 20px 24px;
        gap: 16px 0;
    }

    .doc-spec {
        padding: 0 16px;
    }

    .doc-spec:nth-child(2) {
        border-right: none;
        padding-right: 0;
    }

    .doc-spec:nth-child(3) {
        padding-left: 0;
        border-top: 1px solid var(--sub-border);
        padding-top: 16px;
    }

    .doc-spec:nth-child(4) {
        border-top: 1px solid var(--sub-border);
        padding-top: 16px;
    }

    .doc-resp-grid,
    .doc-req-grid {
        grid-template-columns: 1fr;
    }

    .doc-closing {
        padding: 32px 24px;
    }

    .doc-foot {
        flex-direction: column;
        gap: 8px;
    }
}

/* --- Responsive overrides for sub-pages --- */
@media (max-width: 1024px) {
    .job-resp-grid,
    .job-req-grid {
        grid-template-columns: 1fr;
    }

    .job-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 0;
    }

    .job-spec {
        padding: 8px 20px;
    }

    .job-spec:nth-child(2) {
        border-right: none;
        padding-right: 0;
    }

    .job-spec:nth-child(3) {
        padding-left: 24px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 20px;
    }

    .job-hero {
        padding: 120px 0 40px;
    }

    .back-link {
        margin-bottom: 28px;
    }

    .position-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px;
    }

    .position-card-cta {
        align-self: flex-end;
    }

    .job-apply {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }

    .btn--apply {
        width: 100%;
        justify-content: center;
    }

    .job-specs {
        grid-template-columns: 1fr;
        padding: 16px 0;
    }

    .job-spec {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 12px 0;
    }

    .job-spec:last-child {
        border-bottom: none;
    }
}
