/* =========================================================
   DARREN R. HUDSON — PORTFOLIO
   Technology. Delivery. Intelligence.
   ========================================================= */


/* ---------------------------------------------------------
   01. FOUNDATION
   --------------------------------------------------------- */

:root {
    --bg: #08090c;
    --bg-soft: #0d0f14;
    --bg-card: #11141a;

    --text: #f2f4f7;
    --text-muted: #8d95a3;

    --accent: #58d6ff;
    --accent-soft: rgba(88, 214, 255, 0.12);

    --border: rgba(255, 255, 255, 0.09);

    --max-width: 1200px;

    --font-main:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* ---------------------------------------------------------
   02. RESET
   --------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

button {
    font: inherit;
}


/* ---------------------------------------------------------
   03. GLOBAL ELEMENTS
   --------------------------------------------------------- */

.section {
    width: min(100% - 48px, var(--max-width));
    margin: 0 auto;
    padding: 140px 0;
}

.section-label {
    margin-bottom: 28px;

    color: var(--accent);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.large-text {
    max-width: 800px;
    margin-top: 36px;

    color: var(--text-muted);

    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.7;
}


/* ---------------------------------------------------------
   04. HEADER
   --------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 24px 40px;

    border-bottom: 1px solid var(--border);

    background: rgba(8, 9, 12, 0.78);

    backdrop-filter: blur(14px);

    z-index: 1000;
}

.brand {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.navigation {
    display: flex;
    gap: 32px;
}

.navigation a {
    color: var(--text-muted);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.navigation a:hover {
    color: var(--text);
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   05. HERO
   --------------------------------------------------------- */

.hero {
    position: relative;

    min-height: 100vh;

    width: min(100% - 48px, var(--max-width));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;

    gap: 60px;

    padding: 140px 0 100px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin-bottom: 24px;

    color: var(--accent);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.hero h1 {
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.06em;
}

.hero h2 {
    margin-top: 48px;

    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero-description {
    max-width: 600px;
    margin-top: 28px;

    color: var(--text-muted);

    font-size: 1rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   06. HERO BUTTONS
   --------------------------------------------------------- */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 22px;

    border: 1px solid var(--border);

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    background: var(--accent);
    color: #061016;
    border-color: var(--accent);
}

.button.primary:hover {
    background: #8de4ff;
}

.button.secondary {
    background: transparent;
    color: var(--text);
}

.button.secondary:hover {
    border-color: rgba(88, 214, 255, 0.5);
    background: var(--accent-soft);
}


/* ---------------------------------------------------------
   07. HERO NETWORK
   --------------------------------------------------------- */

.hero-visual {
    position: relative;

    min-height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.network {
    position: relative;

    width: 440px;
    height: 440px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at center,
            rgba(88, 214, 255, 0.13),
            rgba(88, 214, 255, 0.03) 35%,
            transparent 68%
        );

    animation: networkFloat 8s ease-in-out infinite;
}


/* Technical grid */

.network-grid {
    position: absolute;

    inset: 5%;

    border: 1px solid rgba(88, 214, 255, 0.08);

    border-radius: 50%;

    background-image:
        linear-gradient(
            rgba(88, 214, 255, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(88, 214, 255, 0.045) 1px,
            transparent 1px
        );

    background-size: 35px 35px;

    mask-image: radial-gradient(
        circle,
        black 20%,
        transparent 72%
    );
}


/* Orbital rings */

.network::before,
.network::after {
    content: "";

    position: absolute;

    inset: 8%;

    border: 1px solid rgba(88, 214, 255, 0.13);

    border-radius: 50%;
}

.network::after {
    inset: 25%;

    border-color: rgba(88, 214, 255, 0.2);
}


/* Core */

.network-core {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 82px;
    height: 82px;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--accent);

    border-radius: 50%;

    background: rgba(8, 9, 12, 0.9);

    box-shadow:
        0 0 25px rgba(88, 214, 255, 0.2),
        inset 0 0 20px rgba(88, 214, 255, 0.08);

    z-index: 5;
}

.network-core span {
    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}


/* Connection lines */

.network-line {
    position: absolute;

    top: 50%;
    left: 50%;

    height: 1px;

    width: 150px;

    transform-origin: left center;

    background:
        linear-gradient(
            90deg,
            rgba(88, 214, 255, 0.5),
            rgba(88, 214, 255, 0)
        );

    opacity: 0.6;
}

.line-1 {
    transform: rotate(-48deg);
}

.line-2 {
    transform: rotate(-15deg);
}

.line-3 {
    transform: rotate(38deg);
}

.line-4 {
    transform: rotate(145deg);
}

.line-5 {
    transform: rotate(205deg);
}

.line-6 {
    transform: rotate(265deg);
}


/* Nodes */

.node {
    position: absolute;

    width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(88, 214, 255, 0.45);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(88, 214, 255, 0.13),
            rgba(8, 9, 12, 0.92)
        );

    box-shadow:
        0 0 18px rgba(88, 214, 255, 0.08);

    z-index: 4;

    animation: nodePulse 4s ease-in-out infinite;
}

.node span {
    color: var(--text-muted);

    font-size: 0.48rem;
    font-weight: 800;
    letter-spacing: 0.1em;

    text-align: center;
}


/* Node positions */

.node-1 {
    top: 7%;
    left: 42%;
}

.node-2 {
    top: 27%;
    right: 3%;
}

.node-3 {
    bottom: 17%;
    right: 8%;
}

.node-4 {
    bottom: 3%;
    left: 38%;
}

.node-5 {
    bottom: 27%;
    left: 3%;
}

.node-6 {
    top: 25%;
    left: 5%;
}


/* ---------------------------------------------------------
   NETWORK ANIMATION
   --------------------------------------------------------- */

@keyframes networkFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}


/* ---------------------------------------------------------
   08. STATS
   --------------------------------------------------------- */

.stats {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    padding: 42px 30px;

    border-right: 1px solid var(--border);
}

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

.stat strong {
    display: block;

    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
}

.stat span {
    display: block;

    margin-top: 8px;

    color: var(--text-muted);

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}


/* ---------------------------------------------------------
   09. SECTION HEADINGS
   --------------------------------------------------------- */

.section h2,
.game-section h2 {
    max-width: 900px;

    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.05em;
}


/* ---------------------------------------------------------
   10. CAPABILITIES
   --------------------------------------------------------- */

.capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 70px;

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.capability {
    min-height: 250px;

    padding: 32px;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.capability:hover {
    background: var(--bg-card);
    transform: translateY(-4px);
}

.capability > span {
    color: var(--accent);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.capability h3 {
    margin-top: 55px;

    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.capability p {
    margin-top: 18px;

    color: var(--text-muted);

    font-size: 0.9rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   11. DARK SECTION
   --------------------------------------------------------- */

.dark-section {
    width: 100%;
    max-width: none;

    padding-left: max(24px, calc((100vw - var(--max-width)) / 2));
    padding-right: max(24px, calc((100vw - var(--max-width)) / 2));

    background:
        linear-gradient(
            135deg,
            #0b0e13,
            #08090c
        );

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


/* ---------------------------------------------------------
   12. GAME SECTION
   --------------------------------------------------------- */

.game-section {
    width: min(100% - 48px, var(--max-width));
    margin: 0 auto;

    padding: 140px 0;

    text-align: center;
}

.game-section .section-label {
    text-align: center;
}

.game-section h2 {
    margin: 0 auto;
}

.game-section p:not(.section-label) {
    margin-top: 30px;

    color: var(--text-muted);
}

.game-button {
    margin-top: 38px;

    padding: 16px 28px;

    border: 1px solid var(--accent);

    background: transparent;
    color: var(--accent);

    cursor: pointer;

    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.game-button:hover {
    background: var(--accent);
    color: #061016;
    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   13. FOOTER
   --------------------------------------------------------- */

footer {
    padding: 100px 24px 40px;

    text-align: center;

    border-top: 1px solid var(--border);
}

footer h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

footer > p {
    margin-top: 16px;

    color: var(--accent);

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.footer-links {
    margin-top: 45px;
}

.footer-links a {
    color: var(--text-muted);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

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

footer small {
    display: block;

    margin-top: 80px;

    color: #505661;

    font-size: 0.65rem;
    letter-spacing: 0.12em;
}


/* ---------------------------------------------------------
   14. ANIMATIONS
   --------------------------------------------------------- */

@keyframes networkFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

@keyframes nodePulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}


/* ---------------------------------------------------------
   15. RESPONSIVE — TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;

        padding-top: 150px;
    }

    .hero-visual {
        min-height: 350px;
    }

    .network {
        width: 320px;
        height: 320px;
    }

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

}


/* ---------------------------------------------------------
   16. RESPONSIVE — MOBILE
   --------------------------------------------------------- */

@media (max-width: 650px) {

    .site-header {
        padding: 20px 24px;
    }

    .navigation {
        display: none;
    }

    .hero,
    .section,
    .game-section {
        width: min(100% - 32px, var(--max-width));
    }

    .hero {
        padding-top: 130px;
    }

    .hero h1 {
        font-size: clamp(3.5rem, 17vw, 5rem);
    }

    .hero h2 {
        margin-top: 35px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 300px;
    }

    .network {
        width: 270px;
        height: 270px;
    }

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

    .stat {
        padding: 28px 20px;
    }

    .stat:nth-child(2) {
        border-right: none;
    }

    .stat:nth-child(3),
    .stat:nth-child(4) {
        border-top: 1px solid var(--border);
    }

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

    .capability {
        min-height: 220px;
    }

    .section {
        padding: 100px 0;
    }

    .game-section {
        padding: 100px 0;
    }

    footer {
        padding-top: 80px;
    }
}

/* =========================================================
   SELECTED WORK — CASE STUDY
   ========================================================= */

.case-study-section {
    position: relative;
    padding: 140px 0;
    background:
        linear-gradient(
            180deg,
            var(--bg-soft) 0%,
            var(--bg) 45%,
            var(--bg-soft) 100%
        );
    overflow: hidden;
}

/* subtle technical atmosphere */

.case-study-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );
    background-size: 80px 80px;
    mask-image: linear-gradient(
        to bottom,
        transparent,
        black 12%,
        black 88%,
        transparent
    );
    pointer-events: none;
}

.case-study-section > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   CASE STUDY HEADER
   ========================================================= */

.case-study-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px 90px;
}

.case-study-header h2 {
    max-width: 900px;
    margin: 20px 0 30px;
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    line-height: 0.88;
    letter-spacing: -0.055em;
}

.case-study-intro {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}


/* =========================================================
   PROJECT IDENTITY
   ========================================================= */

.case-study-identity {
    max-width: var(--max-width);
    margin: 0 auto 120px;
    padding: 0 30px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.case-study-identity > div {
    min-height: 120px;
    padding: 28px 25px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-right: 1px solid var(--border);
}

.case-study-identity > div:first-child {
    padding-left: 0;
}

.case-study-identity > div:last-child {
    border-right: none;
}

.case-study-identity span {
    margin-bottom: 10px;

    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.case-study-identity strong {
    color: var(--text);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
}


/* =========================================================
   CASE STUDY CONTENT BLOCKS
   ========================================================= */

.case-study-block {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 75px 30px;

    display: grid;
    grid-template-columns: 150px minmax(0, 800px);
    gap: 70px;

    border-top: 1px solid var(--border);
}

.case-study-block.reverse {
    grid-template-columns: minmax(0, 800px) 150px;
}

.case-study-block.reverse .case-study-number {
    order: 2;
    text-align: right;
}

.case-study-block.reverse .case-study-content {
    order: 1;
}

.case-study-number {
    padding-top: 8px;

    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;

    opacity: 0.9;
}

.case-study-content {
    max-width: 800px;
}

.case-study-kicker {
    margin: 0 0 18px;

    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.case-study-content h3 {
    margin: 0 0 30px;

    color: var(--text);
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.case-study-content p {
    max-width: 720px;
    margin: 0 0 22px;

    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.85;
}

.case-study-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ROLE GRID
   ========================================================= */

.role-grid {
    margin-top: 40px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.role-grid span {
    padding: 18px 20px;

    color: var(--text);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: rgba(255,255,255,0.015);

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.role-grid span:hover {
    color: var(--accent);
    background: var(--accent-soft);
}


/* =========================================================
   STAKEHOLDER MAP
   ========================================================= */

.stakeholder-map {
    margin-top: 45px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stakeholder-map div {
    min-height: 90px;
    padding: 20px;

    display: flex;
    align-items: flex-end;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.025),
            rgba(255,255,255,0)
        );

    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.stakeholder-map div:hover {
    transform: translateY(-3px);
    border-color: rgba(88, 214, 255, 0.35);
    background: var(--accent-soft);
}


/* =========================================================
   TECHNICAL BLOCK
   ========================================================= */

.technical-block {
    position: relative;
}

.technical-block::after {
    content: "REQUIREMENTS → SPECIFICATION → DEVELOPMENT → DELIVERY";

    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);

    max-width: 260px;

    color: rgba(88, 214, 255, 0.08);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: 0.16em;
    text-align: right;

    pointer-events: none;
}


/* =========================================================
   DEFECT WORKFLOW
   ========================================================= */

.defect-workflow {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 110px 30px;

    border-top: 1px solid var(--border);
}

.workflow-heading {
    max-width: 650px;
    margin-bottom: 60px;
}

.workflow-heading h3 {
    margin: 0 0 25px;

    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.workflow-heading p:last-child {
    margin: 0;

    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.workflow {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        40px
        minmax(0, 1fr)
        40px
        minmax(0, 1fr)
        40px
        minmax(0, 1fr)
        40px
        minmax(0, 1fr);

    align-items: center;
}

.workflow-step {
    min-height: 145px;
    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.01)
        );

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.workflow-step:hover {
    transform: translateY(-5px);

    border-color: rgba(88, 214, 255, 0.45);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.3),
        0 0 25px rgba(88,214,255,0.06);
}

.workflow-step span {
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.workflow-step strong {
    color: var(--text);
    font-size: 0.72rem;
    line-height: 1.4;
    letter-spacing: 0.1em;
}

.workflow-arrow {
    color: var(--accent);
    font-size: 1.2rem;
    text-align: center;
    opacity: 0.7;
}


/* =========================================================
   OUTCOME
   ========================================================= */

.case-study-outcome {
    max-width: var(--max-width);
    margin: 80px auto 0;
    padding: 80px 30px;

    border-top: 1px solid rgba(88, 214, 255, 0.25);
    border-bottom: 1px solid rgba(88, 214, 255, 0.25);

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(88,214,255,0.08),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            rgba(88,214,255,0.025),
            transparent 60%
        );
}

.case-study-outcome h3 {
    max-width: 850px;
    margin: 0 0 60px;

    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.outcome-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);
}

.outcome-grid > div {
    min-height: 130px;
    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-right: 1px solid var(--border);
}

.outcome-grid > div:first-child {
    padding-left: 0;
}

.outcome-grid > div:last-child {
    border-right: none;
}

.outcome-grid strong {
    margin-bottom: 8px;

    color: var(--accent);
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.outcome-grid span {
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .case-study-section {
        padding: 100px 0;
    }

    .case-study-header {
        padding-bottom: 70px;
    }

    .case-study-identity {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 80px;
    }

    .case-study-identity > div:nth-child(2) {
        border-right: none;
    }

    .case-study-identity > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .case-study-block,
    .case-study-block.reverse {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 35px;
        padding: 75px 30px;
    }

    .case-study-block.reverse .case-study-number {
        order: 1;
        text-align: left;
    }

    .case-study-block.reverse .case-study-content {
        order: 2;
    }

    .technical-block::after {
        display: none;
    }

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

    .workflow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .workflow-arrow {
        display: none;
    }

    .workflow-step {
        min-height: 120px;
    }

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

    .outcome-grid > div:nth-child(2) {
        border-right: none;
    }

    .outcome-grid > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .outcome-grid > div:first-child {
        padding-left: 0;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .case-study-section {
        padding: 80px 0;
    }

    .case-study-header {
        padding: 0 20px 55px;
    }

    .case-study-header h2 {
        font-size: clamp(3rem, 16vw, 5rem);
    }

    .case-study-intro {
        font-size: 1rem;
        line-height: 1.7;
    }

    .case-study-identity {
        margin: 0 20px 60px;
        padding: 0;

        grid-template-columns: 1fr;
    }

    .case-study-identity > div,
    .case-study-identity > div:first-child {
        min-height: 95px;
        padding: 22px 20px;

        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .case-study-identity > div:last-child {
        border-bottom: none;
    }

    .case-study-block,
    .case-study-block.reverse {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 60px 20px;
    }

    .case-study-block.reverse .case-study-number {
        order: 1;
        text-align: left;
    }

    .case-study-block.reverse .case-study-content {
        order: 2;
    }

    .case-study-number {
        padding-top: 0;
    }

    .case-study-content h3 {
        font-size: clamp(2.2rem, 12vw, 3.8rem);
    }

    .case-study-content p {
        font-size: 0.96rem;
        line-height: 1.75;
    }

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

    .stakeholder-map {
        grid-template-columns: 1fr;
    }

    .defect-workflow {
        padding: 70px 20px;
    }

    .workflow-heading h3 {
        font-size: clamp(2.5rem, 13vw, 4rem);
    }

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

    .workflow-step {
        min-height: 110px;
    }

    .case-study-outcome {
        margin: 40px 20px 0;
        padding: 60px 20px;
    }

    .case-study-outcome h3 {
        margin-bottom: 45px;
        font-size: clamp(3rem, 15vw, 5rem);
    }

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

    .outcome-grid > div,
    .outcome-grid > div:nth-child(2) {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .outcome-grid > div:last-child {
        border-bottom: none;
    }

    .outcome-grid > div:first-child {
        padding-left: 0;
    }
}

/* =========================================================
   SYSTEM LANDSCAPE / ARCHITECTURE MAP
   ========================================================= */

.system-landscape {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 110px 30px 120px;

    border-top: 1px solid var(--border);
    overflow: hidden;
}


/* subtle glow behind the architecture */

.system-landscape::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(88, 214, 255, 0.08) 0%,
            rgba(88, 214, 255, 0.025) 35%,
            transparent 70%
        );

    pointer-events: none;
}

.system-landscape > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   LANDSCAPE HEADING
   ========================================================= */

.system-landscape-heading {
    max-width: 760px;
    margin-bottom: 80px;
}

.system-landscape-heading h3 {
    margin: 0 0 25px;

    font-size: clamp(2.5rem, 5vw, 5.2rem);
    line-height: 0.93;
    letter-spacing: -0.045em;
}

.system-landscape-heading p:last-child {
    max-width: 620px;
    margin: 0;

    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}


/* =========================================================
   ARCHITECTURE MAP
   ========================================================= */

.architecture-map {
    position: relative;
    max-width: 950px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* =========================================================
   NODES
   ========================================================= */

.architecture-node {
    position: relative;

    width: min(100%, 480px);
    min-height: 125px;
    padding: 26px 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.01)
        ),
        rgba(9, 11, 15, 0.8);

    backdrop-filter: blur(12px);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.25);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.architecture-node:hover {
    transform: translateY(-4px);

    border-color: rgba(88, 214, 255, 0.45);

    background:
        linear-gradient(
            145deg,
            rgba(88, 214, 255, 0.08),
            rgba(255,255,255,0.015)
        ),
        rgba(9, 11, 15, 0.9);

    box-shadow:
        0 22px 65px rgba(0,0,0,0.35),
        0 0 35px rgba(88,214,255,0.07);
}

.architecture-node span {
    margin-bottom: 10px;

    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.architecture-node strong {
    color: var(--text);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.architecture-node small {
    margin-top: 12px;

    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}


/* small technical marker */

.architecture-node::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    right: 18px;
    top: 18px;

    border-radius: 50%;
    background: var(--accent);

    box-shadow:
        0 0 8px rgba(88, 214, 255, 0.8),
        0 0 18px rgba(88, 214, 255, 0.35);

    animation: architecturePulse 2.6s ease-in-out infinite;
}


/* =========================================================
   SPECIAL NODES
   ========================================================= */

.architecture-customer {
    width: min(100%, 360px);
}

.architecture-jis {
    width: min(100%, 420px);
}


/* central core */

.architecture-core {
    width: min(100%, 570px);
    min-height: 160px;

    border-color: rgba(88, 214, 255, 0.4);

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(88,214,255,0.12),
            transparent 65%
        ),
        linear-gradient(
            145deg,
            rgba(88,214,255,0.06),
            rgba(255,255,255,0.015)
        ),
        rgba(9, 11, 15, 0.95);

    box-shadow:
        0 25px 80px rgba(0,0,0,0.35),
        0 0 45px rgba(88,214,255,0.06);
}

.architecture-core strong {
    color: var(--accent);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}


/* =========================================================
   CONNECTORS
   ========================================================= */

.architecture-connector {
    position: relative;

    min-width: 60px;
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--accent);
}

.architecture-connector span {
    position: relative;
    z-index: 2;

    font-size: 1.35rem;

    animation: connectorGlow 2.2s ease-in-out infinite;
}


/* vertical line */

.architecture-connector.vertical::before {
    content: "";
    position: absolute;

    width: 1px;
    height: 100%;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(88,214,255,0.65),
            transparent
        );
}


/* =========================================================
   BRANCHES
   ========================================================= */

.architecture-branches {
    position: relative;
    width: 100%;
    margin-top: 25px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* horizontal spine leaving the core */

.architecture-branches::before {
    content: "";
    position: absolute;

    left: 16.5%;
    right: 16.5%;
    top: 35px;

    height: 1px;

    background:
        linear-gradient(
            to right,
            transparent,
            rgba(88,214,255,0.5) 10%,
            rgba(88,214,255,0.5) 90%,
            transparent
        );
}

.architecture-branch {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* vertical drop line */

.architecture-branch::before {
    content: "";
    position: absolute;

    top: 0;
    left: 50%;
    width: 1px;
    height: 70px;

    background:
        linear-gradient(
            to bottom,
            rgba(88,214,255,0.65),
            transparent
        );
}

.architecture-branch .architecture-connector {
    min-height: 72px;
}

.architecture-branch .architecture-node {
    width: 100%;
    min-height: 155px;
}


/* =========================================================
   DATA-PULSE EFFECT
   ========================================================= */

.architecture-map::after {
    content: "";
    position: absolute;

    width: 6px;
    height: 6px;

    left: 50%;
    top: 165px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 10px var(--accent),
        0 0 20px rgba(88,214,255,0.6);

    animation: dataTravel 4.2s ease-in-out infinite;

    pointer-events: none;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes architecturePulse {

    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }

}


@keyframes connectorGlow {

    0%,
    100% {
        opacity: 0.35;
        text-shadow: none;
    }

    50% {
        opacity: 1;
        text-shadow:
            0 0 12px rgba(88,214,255,0.8);
    }

}


@keyframes dataTravel {

    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    55% {
        transform: translate(-50%, 310px);
        opacity: 1;
    }

    75% {
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, 470px);
        opacity: 0;
    }

}


/* =========================================================
   REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .architecture-node::before,
    .architecture-connector span,
    .architecture-map::after {
        animation: none;
    }

}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .system-landscape {
        padding: 90px 30px 100px;
    }

    .system-landscape-heading {
        margin-bottom: 60px;
    }

    .architecture-branches {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 15px;
    }

    .architecture-branches::before {
        display: none;
    }

    .architecture-branch::before {
        height: 55px;
    }

    .architecture-branch .architecture-connector {
        min-height: 58px;
    }

    .architecture-branch .architecture-node {
        width: min(100%, 520px);
        min-height: 125px;
    }

    .architecture-map::after {
        display: none;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .system-landscape {
        padding: 70px 20px 85px;
    }

    .system-landscape-heading {
        margin-bottom: 50px;
    }

    .system-landscape-heading h3 {
        font-size: clamp(2.5rem, 13vw, 4rem);
    }

    .architecture-node,
    .architecture-customer,
    .architecture-jis,
    .architecture-core {
        width: 100%;
    }

    .architecture-node {
        min-height: 115px;
        padding: 22px;
    }

    .architecture-core {
        min-height: 140px;
    }

    .architecture-connector {
        min-height: 55px;
    }

}

/* =========================================================
   DELIVERY LAYER
   ========================================================= */

.delivery-layer {
    position: relative;

    width: 100%;
    margin-top: 75px;
    padding-top: 32px;

    border-top: 1px solid rgba(88, 214, 255, 0.22);
}

.delivery-layer::before {
    content: "";

    position: absolute;
    left: 50%;
    top: -75px;

    width: 1px;
    height: 75px;

    background:
        linear-gradient(
            to bottom,
            rgba(88,214,255,0.15),
            rgba(88,214,255,0.65)
        );
}

.delivery-layer-header {
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.delivery-layer-header span {
    color: var(--accent);

    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.delivery-layer-header strong {
    color: var(--text-muted);

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.delivery-layer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);

    background:
        linear-gradient(
            135deg,
            rgba(88,214,255,0.025),
            transparent 50%
        );
}

.delivery-layer-grid > div {
    position: relative;

    min-height: 110px;
    padding: 18px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: rgba(255,255,255,0.01);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.delivery-layer-grid > div:hover {
    transform: translateY(-3px);

    background: var(--accent-soft);

    border-color:
        rgba(88,214,255,0.28);
}

.delivery-layer-grid span {
    color: var(--accent);

    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.delivery-layer-grid strong {
    color: var(--text);

    font-size: 0.67rem;
    line-height: 1.4;
    letter-spacing: 0.09em;
}


/* TABLET */

@media (max-width: 900px) {

    .delivery-layer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* MOBILE */

@media (max-width: 650px) {

    .delivery-layer {
        margin-top: 55px;
    }

    .delivery-layer::before {
        top: -55px;
        height: 55px;
    }

    .delivery-layer-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

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

    .delivery-layer-grid > div {
        min-height: 95px;
        padding: 15px;
    }

}

/* =========================================================
   DELIVERY AT SCALE — EXIGO CASE STUDY
   ========================================================= */

.scale-case-study {
    position: relative;
    padding: 140px 0;
    background:
        linear-gradient(
            180deg,
            var(--bg) 0%,
            #0a0c10 45%,
            var(--bg-soft) 100%
        );
    overflow: hidden;
}

.scale-case-study::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.02) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.02) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 10%,
            black 90%,
            transparent
        );

    pointer-events: none;
}

.scale-case-study > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   HEADER
   ========================================================= */

.scale-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px 85px;
}

.scale-header h2 {
    margin: 20px 0 30px;

    font-size: clamp(4rem, 9vw, 8rem);
    line-height: 0.86;
    letter-spacing: -0.06em;
}

.scale-intro {
    max-width: 760px;
    margin: 0;

    color: var(--text-muted);
    font-size: 1.12rem;
    line-height: 1.8;
}


/* =========================================================
   METRIC DASHBOARD
   ========================================================= */

.scale-metrics {
    max-width: var(--max-width);
    margin: 0 auto 120px;
    padding: 0 30px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.scale-metric {
    position: relative;

    min-height: 220px;
    padding: 30px 25px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--border);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.018),
            transparent
        );

    overflow: hidden;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.scale-metric:last-child {
    border-right: none;
}

.scale-metric:hover {
    transform: translateY(-4px);
    background: var(--accent-soft);
}

.scale-metric > span {
    color: var(--text-muted);

    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.scale-metric strong {
    margin: auto 0 15px;

    color: var(--accent);

    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.scale-metric p {
    margin: 0;

    color: var(--text);

    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.12em;
}


/* =========================================================
   STORY BLOCKS
   ========================================================= */

.scale-story {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 75px 30px;

    display: grid;
    grid-template-columns: 130px minmax(0, 800px);
    gap: 60px;

    border-top: 1px solid var(--border);
}

.scale-story.reverse {
    grid-template-columns: minmax(0, 800px) 130px;
}

.scale-story.reverse .scale-story-number {
    order: 2;
    text-align: right;
}

.scale-story.reverse .scale-story-content {
    order: 1;
}

.scale-story-number {
    padding-top: 7px;

    color: var(--accent);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.scale-story-content h3 {
    margin: 0 0 30px;

    color: var(--text);

    font-size: clamp(2.3rem, 4.5vw, 4.5rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.scale-story-content > p:not(.case-study-kicker) {
    max-width: 720px;

    color: var(--text-muted);

    font-size: 1rem;
    line-height: 1.85;
}


/* =========================================================
   PROJECT DELIVERY NETWORK
   ========================================================= */

.delivery-network {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 110px 30px;

    border-top: 1px solid var(--border);
}

.delivery-network-heading {
    max-width: 760px;
    margin-bottom: 65px;
}

.delivery-network-heading h3 {
    margin: 0;

    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
}

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

.project-column {
    position: relative;

    padding-top: 30px;
}

.project-column::before {
    content: "";

    position: absolute;
    top: 0;
    left: 50%;

    width: 1px;
    height: 30px;

    background: rgba(88,214,255,0.5);
}

.project-column::after {
    content: "";

    position: absolute;
    top: -4px;
    left: calc(50% - 4px);

    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: var(--accent);

    box-shadow:
        0 0 10px rgba(88,214,255,0.8);

    animation: architecturePulse 2.6s ease-in-out infinite;
}

.project-client {
    min-height: 125px;
    padding: 25px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid rgba(88,214,255,0.23);

    background:
        linear-gradient(
            145deg,
            rgba(88,214,255,0.06),
            rgba(255,255,255,0.01)
        );

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.project-client:hover {
    transform: translateY(-4px);

    border-color: rgba(88,214,255,0.5);

    box-shadow:
        0 15px 45px rgba(0,0,0,0.3),
        0 0 28px rgba(88,214,255,0.06);
}

.project-client span {
    color: var(--accent);

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.project-client strong {
    color: var(--text);

    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.project-services {
    margin-top: 12px;

    display: grid;
    gap: 6px;
}

.project-services div {
    padding: 13px 14px;

    border: 1px solid var(--border);

    background: rgba(255,255,255,0.012);

    color: var(--text-muted);

    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.12em;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.project-services div:hover {
    color: var(--accent);

    background: var(--accent-soft);

    border-color:
        rgba(88,214,255,0.25);
}


/* =========================================================
   TECHNICAL CAPABILITIES
   ========================================================= */

.scale-capability-grid {
    margin-top: 45px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.scale-capability-grid > div {
    min-height: 110px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.scale-capability-grid > div:hover {
    transform: translateY(-2px);

    background:
        rgba(88,214,255,0.06);
}

.scale-capability-grid span {
    color: var(--accent);

    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.scale-capability-grid strong {
    color: var(--text);

    font-size: 0.7rem;
    line-height: 1.4;
    letter-spacing: 0.09em;
}


/* =========================================================
   CONTROL LAYER
   ========================================================= */

.scale-control {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 110px 30px;

    border-top: 1px solid var(--border);
}

.scale-control-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.scale-control-heading h3 {
    margin: 0;

    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.scale-control-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.scale-control-grid > div {
    min-height: 180px;
    padding: 25px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.025),
            transparent
        );

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.scale-control-grid > div:hover {
    transform: translateY(-3px);

    background:
        rgba(88,214,255,0.055);
}

.scale-control-grid span {
    color: var(--accent);

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.scale-control-grid strong {
    margin: auto 0 12px;

    color: var(--text);

    font-size: 1rem;
    letter-spacing: 0.08em;
}

.scale-control-grid p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.85rem;
    line-height: 1.55;
}


/* =========================================================
   OUTCOME
   ========================================================= */

.scale-outcome {
    max-width: var(--max-width);
    margin: 50px auto 0;
    padding: 90px 30px;

    border-top:
        1px solid rgba(88,214,255,0.25);

    border-bottom:
        1px solid rgba(88,214,255,0.25);

    background:
        radial-gradient(
            circle at 80% 35%,
            rgba(88,214,255,0.08),
            transparent 35%
        );
}

.scale-outcome h3 {
    max-width: 900px;
    margin: 0 0 35px;

    font-size: clamp(3.2rem, 7vw, 6.5rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.scale-outcome > p:not(.case-study-kicker) {
    max-width: 720px;

    color: var(--text-muted);

    font-size: 1.05rem;
    line-height: 1.8;
}

.scale-outcome-line {
    margin-top: 55px;
    padding: 25px 0;

    border-top: 1px solid var(--border);

    color: var(--accent);

    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: 0.14em;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .scale-case-study {
        padding: 100px 0;
    }

    .scale-metrics {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 85px;
    }

    .scale-metric:nth-child(2) {
        border-right: none;
    }

    .scale-metric:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .scale-story,
    .scale-story.reverse {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 35px;
        padding: 75px 30px;
    }

    .scale-story.reverse .scale-story-number {
        order: 1;
        text-align: left;
    }

    .scale-story.reverse .scale-story-content {
        order: 2;
    }

    .project-network {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
    }

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

}


@media (max-width: 650px) {

    .scale-case-study {
        padding: 80px 0;
    }

    .scale-header {
        padding: 0 20px 60px;
    }

    .scale-header h2 {
        font-size: clamp(3.5rem, 17vw, 5.5rem);
    }

    .scale-metrics {
        margin: 0 20px 60px;
        padding: 0;

        grid-template-columns: 1fr;
    }

    .scale-metric,
    .scale-metric:nth-child(2) {
        min-height: 170px;

        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .scale-metric:last-child {
        border-bottom: none;
    }

    .scale-story,
    .scale-story.reverse {
        grid-template-columns: 1fr;
        gap: 20px;

        padding: 60px 20px;
    }

    .scale-story.reverse .scale-story-number {
        order: 1;
    }

    .scale-story.reverse .scale-story-content {
        order: 2;
    }

    .delivery-network,
    .scale-control {
        padding: 70px 20px;
    }

    .project-network {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .project-column {
        padding-top: 22px;
    }

    .project-column::before {
        height: 22px;
    }

    .scale-capability-grid,
    .scale-control-grid {
        grid-template-columns: 1fr;
    }

    .scale-outcome {
        margin: 35px 20px 0;
        padding: 65px 20px;
    }

    .scale-outcome h3 {
        font-size: clamp(3rem, 15vw, 5rem);
    }

}

/* =========================================================
   UNDER THE HOOD — APIs, SQL & DATA
   ========================================================= */

.technical-work-section {
    position: relative;
    padding: 125px 30px;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(88,214,255,0.045),
            transparent 42%
        ),
        #08090c;

    overflow: hidden;
}

.technical-work-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    pointer-events: none;
}

.technical-work-section > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   HEADER
   ========================================================= */

.technical-work-header {
    max-width: var(--max-width);
    margin: 0 auto 80px;
}

.technical-work-header h2 {
    margin: 20px 0 18px;

    font-size: clamp(3.5rem, 7vw, 6.7rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.technical-work-header h3 {
    margin: 0 0 30px;

    color: var(--accent);

    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1;
    letter-spacing: -0.025em;
}

.technical-work-header > p:last-child {
    max-width: 760px;

    color: var(--text-muted);

    font-size: 1.05rem;
    line-height: 1.8;
}


/* =========================================================
   TECHNICAL PILLARS
   ========================================================= */

.technical-pillars {
    max-width: var(--max-width);
    margin: 0 auto 100px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.technical-pillar {
    position: relative;

    min-height: 560px;
    padding: 32px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.025),
            rgba(255,255,255,0.005)
        );

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.technical-pillar:hover {
    transform: translateY(-5px);

    background:
        linear-gradient(
            145deg,
            rgba(88,214,255,0.07),
            rgba(255,255,255,0.01)
        );

    border-color:
        rgba(88,214,255,0.3);

    box-shadow:
        0 18px 50px rgba(0,0,0,0.28),
        0 0 30px rgba(88,214,255,0.045);
}

.technical-pillar::before {
    content: "";
    position: absolute;

    right: 22px;
    top: 22px;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--accent);

    box-shadow:
        0 0 10px rgba(88,214,255,0.8);

    animation:
        architecturePulse 2.8s ease-in-out infinite;
}

.technical-pillar-number {
    margin-bottom: 70px;

    color: var(--accent);

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.technical-pillar h3 {
    margin: 0 0 28px;

    color: var(--text);

    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.technical-pillar > p:not(.case-study-kicker) {
    margin: 0 0 35px;

    color: var(--text-muted);

    font-size: 0.96rem;
    line-height: 1.75;
}


/* =========================================================
   TECHNICAL TAGS
   ========================================================= */

.technical-tags {
    margin-top: auto;

    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.technical-tags span {
    padding: 10px 11px;

    border: 1px solid var(--border);

    background:
        rgba(255,255,255,0.015);

    color: var(--text-muted);

    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.11em;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.technical-tags span:hover {
    color: var(--accent);

    border-color:
        rgba(88,214,255,0.28);

    background:
        var(--accent-soft);
}


/* =========================================================
   TECHNICAL FLOW
   ========================================================= */

.technical-flow {
    max-width: var(--max-width);
    margin: 0 auto;

    padding: 70px 0 20px;

    border-top:
        1px solid rgba(88,214,255,0.22);
}

.technical-flow-grid {
    margin-top: 35px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        42px
        minmax(0, 1fr)
        42px
        minmax(0, 1fr)
        42px
        minmax(0, 1fr)
        42px
        minmax(0, 1fr);

    align-items: center;
}

.technical-flow-grid > div:not(.technical-flow-arrow) {
    min-height: 125px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.025),
            transparent
        );

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.technical-flow-grid > div:not(.technical-flow-arrow):hover {
    transform: translateY(-4px);

    border-color:
        rgba(88,214,255,0.35);

    background:
        rgba(88,214,255,0.05);
}

.technical-flow-grid span {
    color: var(--accent);

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.technical-flow-grid strong {
    color: var(--text);

    font-size: 0.67rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
}

.technical-flow-arrow {
    color: var(--accent);

    text-align: center;
    font-size: 1.1rem;

    animation:
        connectorGlow 2.4s ease-in-out infinite;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .technical-work-section {
        padding: 95px 30px;
    }

    .technical-pillars {
        grid-template-columns: 1fr;
    }

    .technical-pillar {
        min-height: auto;
    }

    .technical-pillar-number {
        margin-bottom: 40px;
    }

    .technical-flow-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .technical-flow-arrow {
        transform: rotate(90deg);
        min-height: 30px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .technical-work-section {
        padding: 75px 20px;
    }

    .technical-work-header {
        margin-bottom: 55px;
    }

    .technical-work-header h2 {
        font-size:
            clamp(3.2rem, 15vw, 5rem);
    }

    .technical-work-header h3 {
        font-size:
            clamp(1.7rem, 8vw, 2.5rem);
    }

    .technical-pillar {
        padding: 25px;
    }

    .technical-flow {
        padding-top: 55px;
    }

}

/* =========================================================
   EXPERIENCE — CAREER TIMELINE
   ========================================================= */

.experience-timeline-section {
    position: relative;
    padding: 125px 30px 135px;

    background:
        linear-gradient(
            180deg,
            var(--bg-soft) 0%,
            #090b0f 55%,
            var(--bg) 100%
        );

    overflow: hidden;
}

.experience-timeline-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        );

    background-size: 64px 64px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 8%,
            black 92%,
            transparent
        );

    pointer-events: none;
}

.experience-timeline-section > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   TIMELINE HEADER
   ========================================================= */

.experience-timeline-header {
    max-width: var(--max-width);
    margin: 0 auto 90px;
}

.experience-timeline-header h2 {
    margin: 20px 0 30px;

    font-size: clamp(3.8rem, 8vw, 7rem);
    line-height: 0.88;
    letter-spacing: -0.055em;
}

.experience-timeline-header > p:last-child {
    max-width: 760px;

    color: var(--text-muted);

    font-size: 1.08rem;
    line-height: 1.8;
}


/* =========================================================
   TIMELINE WRAPPER
   ========================================================= */

.experience-timeline {
    position: relative;

    max-width: var(--max-width);
    margin: 0 auto;
}


/* master vertical line */

.experience-timeline::before {
    content: "";

    position: absolute;
    left: 49px;
    top: 25px;
    bottom: 25px;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(88,214,255,0.45) 5%,
            rgba(88,214,255,0.45) 95%,
            transparent
        );
}


/* =========================================================
   TIMELINE STAGES
   ========================================================= */

.experience-stage {
    position: relative;

    display: grid;
    grid-template-columns:
        100px
        230px
        minmax(0, 1fr);

    gap: 35px;

    min-height: 230px;
    padding: 45px 0;

    border-top: 1px solid var(--border);
}

.experience-stage:last-child {
    border-bottom: 1px solid var(--border);
}


/* =========================================================
   NUMBER / NODE
   ========================================================= */

.experience-stage-marker {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding-top: 4px;
}

.experience-stage-marker::before {
    content: "";

    position: absolute;

    top: 9px;
    left: 50%;

    width: 13px;
    height: 13px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: var(--bg);

    border: 1px solid var(--accent);

    box-shadow:
        0 0 0 5px rgba(88,214,255,0.04),
        0 0 16px rgba(88,214,255,0.2);
}

.experience-stage-marker span {
    position: relative;
    z-index: 2;

    margin-top: 32px;

    color: var(--accent);

    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}


/* =========================================================
   PERIOD / ERA
   ========================================================= */

.experience-stage-period {
    padding-top: 2px;
}

.experience-stage-period span {
    display: block;

    margin-bottom: 12px;

    color: var(--text-muted);

    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.experience-stage-period strong {
    display: block;

    color: var(--text);

    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.08em;
}


/* =========================================================
   STAGE CONTENT
   ========================================================= */

.experience-stage-content {
    max-width: 760px;
}

.experience-stage-content h3 {
    margin: 0 0 22px;

    color: var(--text);

    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.experience-stage-content p {
    max-width: 690px;
    margin: 0;

    color: var(--text-muted);

    font-size: 0.98rem;
    line-height: 1.8;
}


/* =========================================================
   LINKS
   ========================================================= */

.timeline-link {
    display: inline-block;

    margin-top: 24px;

    color: var(--accent);

    text-decoration: none;

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.timeline-link:hover {
    transform: translateX(5px);
    opacity: 0.8;
}


/* =========================================================
   FEATURED STAGES
   ========================================================= */

.experience-stage.featured {
    background:
        linear-gradient(
            90deg,
            rgba(88,214,255,0.03),
            transparent 55%
        );
}

.experience-stage.featured .experience-stage-marker::before {
    background: var(--accent);

    box-shadow:
        0 0 0 6px rgba(88,214,255,0.055),
        0 0 20px rgba(88,214,255,0.35);
}

.experience-stage.featured .experience-stage-period strong {
    color: var(--accent);
}


/* =========================================================
   FUTURE / AI STAGE
   ========================================================= */

.experience-stage.future {
    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(88,214,255,0.06),
            transparent 35%
        );
}

.experience-stage.future .experience-stage-marker::before {
    animation:
        architecturePulse 2.5s ease-in-out infinite;
}

.experience-stage.future .experience-stage-content h3 {
    color: var(--accent);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .experience-timeline-section {
        padding: 95px 30px 110px;
    }

    .experience-timeline-header {
        margin-bottom: 65px;
    }

    .experience-stage {
        grid-template-columns:
            80px
            190px
            minmax(0, 1fr);

        gap: 25px;
    }

    .experience-timeline::before {
        left: 39px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .experience-timeline-section {
        padding: 75px 20px 90px;
    }

    .experience-timeline-header {
        margin-bottom: 50px;
    }

    .experience-timeline-header h2 {
        font-size:
            clamp(3.1rem, 15vw, 5rem);
    }

    .experience-timeline {
        padding-left: 22px;
    }

    .experience-timeline::before {
        left: 5px;
        top: 20px;
        bottom: 20px;
    }

    .experience-stage {
        grid-template-columns: 1fr;
        gap: 14px;

        min-height: auto;

        padding:
            40px 0
            40px 30px;
    }

    .experience-stage-marker {
        position: absolute;

        left: -31px;
        top: 38px;

        width: 20px;
    }

    .experience-stage-marker::before {
        top: 0;
        left: 50%;
    }

    .experience-stage-marker span {
        display: none;
    }

    .experience-stage-period {
        padding-top: 0;
    }

    .experience-stage-content h3 {
        font-size:
            clamp(2rem, 11vw, 3.3rem);
    }

}

/* =========================================================
   THE NEXT INTERFACE — AI
   ========================================================= */

.ai-section {
    position: relative;
    padding: 130px 30px 140px;

    background:
        radial-gradient(
            circle at 75% 18%,
            rgba(88,214,255,0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 20% 75%,
            rgba(120,90,255,0.05),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #090b0f 0%,
            var(--bg) 55%,
            #0b0d12 100%
        );

    overflow: hidden;
}


/* subtle grid */

.ai-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        );

    background-size: 56px 56px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 8%,
            black 92%,
            transparent
        );

    pointer-events: none;
}


/* soft vertical glow */

.ai-section::after {
    content: "";
    position: absolute;

    top: 280px;
    left: 50%;

    width: 1px;
    height: 65%;

    transform: translateX(-50%);

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(88,214,255,0.16),
            transparent
        );

    pointer-events: none;
}


.ai-section > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   AI HEADER
   ========================================================= */

.ai-header {
    max-width: var(--max-width);
    margin: 0 auto 100px;
}

.ai-header h2 {
    margin: 20px 0 12px;

    font-size: clamp(3.8rem, 8vw, 7.2rem);
    line-height: 0.88;
    letter-spacing: -0.055em;
}

.ai-header h3 {
    margin: 0 0 35px;

    color: var(--accent);

    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
}

.ai-header > p:last-child {
    max-width: 790px;

    color: var(--text-muted);

    font-size: 1.08rem;
    line-height: 1.85;
}


/* =========================================================
   AI WORKFLOW
   ========================================================= */

.ai-workflow {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 0;

    border-top: 1px solid var(--border);
}

.ai-workflow-heading {
    max-width: 760px;
    margin-bottom: 60px;
}

.ai-workflow-heading h3 {
    margin: 0 0 25px;

    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.ai-workflow-heading > p:last-child {
    max-width: 680px;

    color: var(--text-muted);

    font-size: 1rem;
    line-height: 1.8;
}


/* =========================================================
   AI FLOW
   ========================================================= */

.ai-flow-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        36px
        minmax(0, 1fr)
        36px
        minmax(0, 1fr)
        36px
        minmax(0, 1fr)
        36px
        minmax(0, 1fr);

    align-items: center;
}

.ai-flow-grid > div:not(.ai-flow-arrow) {
    position: relative;

    min-height: 165px;
    padding: 22px;

    display: flex;
    flex-direction: column;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.025),
            rgba(88,214,255,0.015)
        );

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.ai-flow-grid > div:not(.ai-flow-arrow)::before {
    content: "";

    position: absolute;
    top: 17px;
    right: 17px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 10px rgba(88,214,255,0.75);

    animation:
        architecturePulse 2.7s ease-in-out infinite;
}

.ai-flow-grid > div:not(.ai-flow-arrow):hover {
    transform: translateY(-4px);

    background:
        rgba(88,214,255,0.055);

    border-color:
        rgba(88,214,255,0.35);

    box-shadow:
        0 16px 40px rgba(0,0,0,0.25),
        0 0 25px rgba(88,214,255,0.04);
}

.ai-flow-grid span {
    color: var(--accent);

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.ai-flow-grid strong {
    margin: auto 0 10px;

    color: var(--text);

    font-size: 0.75rem;
    line-height: 1.35;
    letter-spacing: 0.08em;
}

.ai-flow-grid small {
    color: var(--text-muted);

    font-size: 0.72rem;
    line-height: 1.5;
}

.ai-flow-arrow {
    color: var(--accent);

    text-align: center;
    font-size: 1.15rem;

    animation:
        connectorGlow 2.5s ease-in-out infinite;
}


/* =========================================================
   AI USE CASES
   ========================================================= */

.ai-use-cases {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.ai-use-cases article {
    min-height: 340px;
    padding: 28px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.02),
            transparent
        );

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.ai-use-cases article:hover {
    transform: translateY(-5px);

    background:
        linear-gradient(
            145deg,
            rgba(88,214,255,0.07),
            rgba(255,255,255,0.01)
        );

    border-color:
        rgba(88,214,255,0.28);
}

.ai-use-cases article > span {
    color: var(--accent);

    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.ai-use-cases article h3 {
    margin: auto 0 22px;

    color: var(--text);

    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.ai-use-cases article p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.9rem;
    line-height: 1.7;
}


/* =========================================================
   AI TOOLKIT
   ========================================================= */

.ai-tools {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 105px 0;

    border-top: 1px solid var(--border);
}

.ai-tools-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.ai-tools-heading h3 {
    margin: 0;

    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.ai-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.ai-tool-grid > div {
    position: relative;

    min-height: 190px;
    padding: 24px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background:
        rgba(255,255,255,0.012);

    overflow: hidden;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.ai-tool-grid > div:hover {
    transform: translateY(-3px);

    background:
        rgba(88,214,255,0.055);
}

.ai-tool-grid > div::after {
    content: "";

    position: absolute;
    right: -30px;
    bottom: -30px;

    width: 90px;
    height: 90px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(88,214,255,0.08),
            transparent 70%
        );
}

.ai-tool-grid span {
    color: var(--accent);

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.ai-tool-grid strong {
    margin: auto 0 12px;

    color: var(--text);

    font-size: 1rem;
    letter-spacing: 0.07em;
}

.ai-tool-grid p {
    margin: 0;

    color: var(--text-muted);

    font-size: 0.82rem;
    line-height: 1.55;
}


/* =========================================================
   AI OUTCOME
   ========================================================= */

.ai-outcome {
    position: relative;

    max-width: var(--max-width);
    margin: 40px auto 0;
    padding: 95px 0 30px;

    border-top:
        1px solid rgba(88,214,255,0.26);
}

.ai-outcome::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 180px;
    height: 1px;

    background: var(--accent);

    box-shadow:
        0 0 16px rgba(88,214,255,0.45);
}

.ai-outcome h3 {
    max-width: 950px;
    margin: 0 0 35px;

    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.ai-outcome > p:last-child {
    max-width: 760px;

    color: var(--text-muted);

    font-size: 1.05rem;
    line-height: 1.85;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .ai-flow-grid > div:not(.ai-flow-arrow)::before,
    .ai-flow-arrow {
        animation: none;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ai-section {
        padding: 100px 30px 115px;
    }

    .ai-header {
        margin-bottom: 75px;
    }

    .ai-flow-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ai-flow-arrow {
        min-height: 30px;

        display: flex;
        align-items: center;
        justify-content: center;

        transform: rotate(90deg);
    }

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

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

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .ai-section {
        padding: 75px 20px 90px;
    }

    .ai-header {
        margin-bottom: 55px;
    }

    .ai-header h2 {
        font-size:
            clamp(3.1rem, 15vw, 5rem);
    }

    .ai-header h3 {
        font-size:
            clamp(2rem, 10vw, 3rem);
    }

    .ai-workflow {
        padding: 70px 0;
    }

    .ai-use-cases {
        grid-template-columns: 1fr;
        padding: 70px 0;
    }

    .ai-use-cases article {
        min-height: 280px;
    }

    .ai-tools {
        padding: 75px 0;
    }

    .ai-tool-grid {
        grid-template-columns: 1fr;
    }

    .ai-outcome {
        padding-top: 70px;
    }

    .ai-outcome h3 {
        font-size:
            clamp(3rem, 14vw, 5rem);
    }

}

/* =========================================================
   HOUSEKEEPING — TECHNICAL BLOCK DECORATIVE LABEL
   ========================================================= */

.technical-block::after {
    top: auto;
    bottom: 28px;
    right: 30px;

    transform: none;

    max-width: none;

    color: rgba(88, 214, 255, 0.13);

    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: 0.14em;

    white-space: nowrap;

    text-align: right;
}

/* =========================================================
   HOUSEKEEPING — ARCHITECTURE BRANCH CONNECTORS
   ========================================================= */

/* hide the arrow characters on the three lower branches */
.architecture-branch .architecture-connector span {
    display: none;
}


/* keep the connector space clean */
.architecture-branch .architecture-connector {
    min-height: 72px;
}


/* add a clean glowing junction point */
.architecture-branch::after {
    content: "";

    position: absolute;
    top: 31px;
    left: 50%;

    width: 7px;
    height: 7px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 8px rgba(88,214,255,0.8),
        0 0 18px rgba(88,214,255,0.3);

    animation:
        architecturePulse 2.8s ease-in-out infinite;
}

/* =========================================================
   HOUSEKEEPING — ARCHITECTURE ALIGNMENT
   ========================================================= */

/* tighten branch geometry under IQMS */
.architecture-branches {
    margin-top: 0;
}


/* extend the vertical branch lines upward to meet IQMS */
.architecture-branch::before {
    top: -42px;
    height: 112px;
}


/* move the glowing junction points slightly left */
.architecture-branch::after {
    top: 31px;
    left: calc(50% - 4px);
}


/* keep the horizontal branch line aligned with the junctions */
.architecture-branches::before {
    top: 35px;
}

/* =========================================================
   HOUSEKEEPING — FINAL ARCHITECTURE CONNECTOR TUNING
   ========================================================= */

/* center the junction dots again */
.architecture-branch::after {
    left: 50%;
    transform: translateX(-50%);
}


/* shorten the vertical stems so they meet IQMS cleanly */
.architecture-branch::before {
    top: -6px;
    height: 76px;
}


/* keep the horizontal bus aligned with the dots */
.architecture-branches::before {
    top: 35px;
}


/* ensure the branch area starts immediately below IQMS */
.architecture-branches {
    margin-top: 0;
}

/* =========================================================
   HOUSEKEEPING — CLEAN ARCHITECTURE BUS
   ========================================================= */

/* lower branch stems: only travel DOWN from the bus */
.architecture-branch::before {
    top: 35px;
    height: 48px;
}


/* perfectly center all three junction dots */
.architecture-branch::after {
    top: 31px;
    left: 50%;
    transform: translateX(-50%);
}


/* horizontal systems bus */
.architecture-branches::before {
    top: 35px;
    left: 16.5%;
    right: 16.5%;
}


/* one central trunk from IQMS down to the bus */
.architecture-branches::after {
    content: "";

    position: absolute;

    top: -1px;
    left: 50%;

    width: 1px;
    height: 36px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            to bottom,
            rgba(88,214,255,0.65),
            rgba(88,214,255,0.45)
        );
}


/* keep branch container directly beneath IQMS */
.architecture-branches {
    margin-top: 0;
}

/* =========================================================
   HOUSEKEEPING — REMOVE ARCHITECTURE JUNCTION DOTS
   ========================================================= */

.architecture-branch::after {
    display: none;
}

/* =========================================================
   FOOTER / CONTACT
   ========================================================= */

.site-footer {
    position: relative;

    padding: 130px 30px 40px;

    background:
        radial-gradient(
            circle at 18% 25%,
            rgba(88,214,255,0.07),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #08090c,
            #050608
        );

    border-top:
        1px solid rgba(88,214,255,0.2);

    overflow: hidden;
}


/* subtle technical grid */

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.015) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.015) 1px,
            transparent 1px
        );

    background-size: 64px 64px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 85%
        );

    pointer-events: none;
}

.site-footer > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   FOOTER MAIN CTA
   ========================================================= */

.footer-main {
    max-width: var(--max-width);
    margin: 0 auto 100px;
}

.footer-kicker {
    margin: 0 0 24px;

    color: var(--accent);

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.footer-main h2 {
    margin: 0;

    font-size: clamp(4rem, 9vw, 8rem);
    line-height: 0.86;
    letter-spacing: -0.06em;
}

.footer-main h3 {
    margin: 12px 0 35px;

    color: var(--accent);

    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
}

.footer-intro {
    max-width: 680px;

    margin: 0;

    color: var(--text-muted);

    font-size: 1.05rem;
    line-height: 1.8;
}

.footer-actions {
    margin-top: 40px;

    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}


/* =========================================================
   TERMINAL
   ========================================================= */

.footer-terminal {
    max-width: var(--max-width);
    margin: 0 auto 100px;

    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.025),
            rgba(88,214,255,0.015)
        ),
        #080a0d;

    box-shadow:
        0 25px 70px rgba(0,0,0,0.35);
}


/* terminal top bar */

.terminal-header {
    height: 46px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    background:
        rgba(255,255,255,0.018);
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--text-muted);

    opacity: 0.45;
}

.terminal-dots span:last-child {
    background: var(--accent);

    opacity: 0.9;

    box-shadow:
        0 0 10px rgba(88,214,255,0.45);
}

.terminal-title {
    color: var(--text-muted);

    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}


/* terminal content */

.terminal-body {
    padding: 38px 40px 42px;

    font-family:
        "Courier New",
        Courier,
        monospace;
}

.terminal-body p {
    margin: 20px 0 7px;

    color: var(--text-muted);

    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.terminal-body p:first-child {
    margin-top: 0;
}

.terminal-body strong {
    display: block;

    color: var(--text);

    font-size: 0.83rem;
    line-height: 1.6;
    letter-spacing: 0.06em;
}

.terminal-prompt {
    margin-right: 10px;

    color: var(--accent);
}


/* blinking cursor */

.terminal-cursor {
    color: var(--accent) !important;

    animation:
        terminalBlink 1s steps(1) infinite;
}

@keyframes terminalBlink {

    0%,
    48% {
        opacity: 1;
    }

    49%,
    100% {
        opacity: 0;
    }

}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 30px;

    display: grid;
    grid-template-columns:
        1fr
        auto
        1fr;

    gap: 30px;

    align-items: center;

    border-top: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-brand strong {
    color: var(--text);

    font-size: 0.9rem;
    letter-spacing: 0.18em;
}

.footer-brand span {
    color: var(--text-muted);

    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

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

.footer-links a {
    color: var(--text-muted);

    text-decoration: none;

    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;

    transition:
        color 0.2s ease;
}

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

.footer-copyright {
    justify-self: end;

    color: var(--text-muted);

    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .terminal-cursor {
        animation: none;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .site-footer {
        padding: 100px 30px 35px;
    }

    .footer-main {
        margin-bottom: 75px;
    }

    .footer-terminal {
        margin-bottom: 75px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .footer-copyright {
        justify-self: start;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .site-footer {
        padding: 80px 20px 30px;
    }

    .footer-main h2 {
        font-size:
            clamp(3.4rem, 17vw, 5.5rem);
    }

    .footer-main h3 {
        font-size:
            clamp(2.6rem, 13vw, 4rem);
    }

    .footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-actions .button {
        text-align: center;
    }

    .terminal-body {
        padding: 30px 24px 34px;
    }

    .footer-brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .footer-links {
        gap: 17px;
    }

}

/* =========================================================
   HOUSEKEEPING — AI USE CASE GRID
   ========================================================= */

.ai-use-cases {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.ai-use-cases article {
    min-width: 0;
}

/* =========================================================
   HOUSEKEEPING — AI CARD TYPOGRAPHY
   ========================================================= */

.ai-use-cases article {
    min-width: 0;
    padding: 24px;
}

.ai-use-cases article h3 {
    font-size: clamp(1.55rem, 2.15vw, 2.35rem);
    line-height: 1.02;
    overflow-wrap: normal;
    word-break: normal;
}

.ai-use-cases article p {
    font-size: 0.88rem;
    line-height: 1.65;
}

/* =========================================================
   HOUSEKEEPING — AI CARD ALIGNMENT
   ========================================================= */

/* ---------- AI FLOW: 5-CARD ROW ---------- */

.ai-flow-grid > div:not(.ai-flow-arrow) {
    min-height: 205px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-content: stretch;
}

.ai-flow-grid span {
    align-self: start;
}

.ai-flow-grid strong {
    align-self: center;
    margin: 0;
}

.ai-flow-grid small {
    align-self: end;
}


/* keep long titles from looking oversized */
.ai-flow-grid strong {
    font-size: 0.72rem;
    line-height: 1.35;
}


/* ---------- AI USE CASES: 4 LARGE CARDS ---------- */

.ai-use-cases article {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 360px;
}

.ai-use-cases article > span {
    align-self: start;
}

.ai-use-cases article h3 {
    align-self: center;
    margin: 0;
}

.ai-use-cases article p {
    align-self: end;
}


/* ---------- AI TOOLKIT: 4 CARDS ---------- */

.ai-tool-grid > div {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 210px;
}

.ai-tool-grid span {
    align-self: start;
}

.ai-tool-grid strong {
    align-self: center;
    margin: 0;
}

.ai-tool-grid p {
    align-self: end;
}

/* =========================================================
   THE IMPLEMENTATION QUEST — GAME v0.1
   ========================================================= */

.game-section {
    position: relative;
    padding: 130px 30px 140px;

    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(88, 214, 255, 0.07),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            var(--bg) 0%,
            #090b0f 100%
        );

    overflow: hidden;
}

.game-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        );

    background-size: 56px 56px;

    pointer-events: none;
}

.game-section > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   GAME INTRO
   ========================================================= */

.game-intro {
    max-width: var(--max-width);
    margin: 0 auto 80px;
}

.game-intro h2 {
    margin: 20px 0 25px;

    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 0.88;
    letter-spacing: -0.055em;
}

.game-kicker {
    margin: 0 0 20px;

    color: var(--accent);

    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.game-description {
    max-width: 680px;

    color: var(--text-muted);

    font-size: 1.05rem;
    line-height: 1.8;
}


/* =========================================================
   GAME SHELL
   ========================================================= */

.quest-shell {
    max-width: var(--max-width);
    margin: 0 auto;

    border: 1px solid var(--border);

    background:
        #080a0d;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.35);
}


/* =========================================================
   GAME HEADER
   ========================================================= */

.quest-header {
    min-height: 74px;
    padding: 17px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    border-bottom: 1px solid var(--border);

    background:
        rgba(255,255,255,0.018);
}

.quest-header > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quest-header span {
    color: var(--text-muted);

    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.quest-header strong {
    color: var(--text);

    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.quest-status {
    text-align: right;
}

.quest-status strong {
    color: var(--accent);
    font-size: 1rem;
}


/* =========================================================
   GAME WORLD
   ========================================================= */

.quest-game {
    position: relative;

    width: 100%;
    height: 520px;

    overflow: hidden;

    outline: none;

    background:
        radial-gradient(
            circle at 50% 75%,
            rgba(88,214,255,0.055),
            transparent 45%
        ),
        linear-gradient(
            rgba(88,214,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(88,214,255,0.025) 1px,
            transparent 1px
        ),
        #090b0f;

    background-size:
        auto,
        48px 48px,
        48px 48px,
        auto;
}

.quest-game:focus {
    box-shadow:
        inset 0 0 0 1px rgba(88,214,255,0.2);
}


/* =========================================================
   PLAYER
   ========================================================= */

.quest-player {
    position: absolute;
    z-index: 20;

    left: 28px;
    top: 400px;

    width: 46px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--accent);

    background:
        linear-gradient(
            145deg,
            rgba(88,214,255,0.22),
            rgba(88,214,255,0.055)
        ),
        #0b1014;

    box-shadow:
        0 0 20px rgba(88,214,255,0.12);

    user-select: none;

    will-change: left, top;
}

.quest-player::before {
    content: "";

    position: absolute;
    left: 8px;
    right: 8px;
    top: -7px;

    height: 5px;

    background: var(--accent);

    opacity: 0.75;
}

.quest-player span {
    color: var(--accent);

    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.quest-player.running {
    box-shadow:
        0 0 28px rgba(88,214,255,0.25);
}

.quest-player.hit {
    animation: questHit 0.32s ease;
}


/* =========================================================
   COLLECTIBLES
   ========================================================= */

.quest-item {
    position: absolute;
    z-index: 12;

    min-width: 130px;
    min-height: 58px;
    padding: 12px 14px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    border:
        1px solid rgba(88,214,255,0.4);

    background:
        rgba(9,14,18,0.94);

    box-shadow:
        0 0 20px rgba(88,214,255,0.07);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.quest-item::after {
    content: "";

    position: absolute;
    top: -5px;
    right: -5px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 12px rgba(88,214,255,0.8);

    animation:
        questPulse 1.8s ease-in-out infinite;
}

.quest-item span {
    color: var(--accent);

    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.quest-item strong {
    color: var(--text);

    font-size: 0.66rem;
    letter-spacing: 0.08em;
}

.quest-item.collected {
    opacity: 0;
    transform:
        translateY(-12px)
        scale(0.9);

    pointer-events: none;
}

.quest-requirements {
    left: 11%;
    bottom: 122px;
}

.quest-integration {
    left: 45%;
    bottom: 225px;
}

.quest-golive {
    right: 8%;
    bottom: 128px;
}


/* =========================================================
   PLATFORMS
   ========================================================= */

.quest-platform {
    position: absolute;
    z-index: 8;

    height: 6px;

    background:
        linear-gradient(
            90deg,
            rgba(88,214,255,0.3),
            rgba(88,214,255,0.85),
            rgba(88,214,255,0.3)
        );

    box-shadow:
        0 0 15px rgba(88,214,255,0.08);
}

.quest-platform::before,
.quest-platform::after {
    content: "";

    position: absolute;
    top: -3px;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--accent);
}

.quest-platform::before {
    left: 0;
}

.quest-platform::after {
    right: 0;
}

.platform-one {
    left: 8%;
    bottom: 105px;

    width: 190px;
}

.platform-two {
    left: 42%;
    bottom: 208px;

    width: 210px;
}

.platform-three {
    right: 6%;
    bottom: 111px;

    width: 190px;
}


/* =========================================================
   HAZARDS
   ========================================================= */

.quest-obstacle {
    position: absolute;
    z-index: 10;

    width: 82px;
    height: 66px;

    padding: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255,255,255,0.15);

    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.04) 6px,
            rgba(255,255,255,0.01) 6px,
            rgba(255,255,255,0.01) 12px
        ),
        #101216;
}

.quest-obstacle span {
    color: var(--text-muted);

    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.quest-obstacle strong {
    color: var(--text);

    font-size: 0.66rem;
    letter-spacing: 0.08em;
}

.obstacle-one {
    left: 32%;
    bottom: 56px;
}

.obstacle-two {
    left: 67%;
    bottom: 56px;
}


/* =========================================================
   GROUND
   ========================================================= */

.quest-ground {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 56px;

    display: flex;
    align-items: center;

    padding: 0 20px;

    border-top:
        1px solid rgba(88,214,255,0.3);

    background:
        linear-gradient(
            180deg,
            rgba(88,214,255,0.04),
            rgba(255,255,255,0.01)
        ),
        #07090c;
}

.quest-ground span {
    color: var(--text-muted);

    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}


/* =========================================================
   START / WIN OVERLAYS
   ========================================================= */

.quest-message {
    position: absolute;
    z-index: 100;

    left: 50%;
    top: 50%;

    width: min(430px, calc(100% - 40px));

    padding: 34px;

    transform:
        translate(-50%, -50%);

    text-align: center;

    border:
        1px solid rgba(88,214,255,0.4);

    background:
        rgba(7,9,12,0.96);

    backdrop-filter:
        blur(14px);

    box-shadow:
        0 25px 70px rgba(0,0,0,0.45),
        0 0 40px rgba(88,214,255,0.05);
}

.quest-message[hidden] {
    display: none !important;
}

.quest-message > span {
    display: block;

    margin-bottom: 18px;

    color: var(--accent);

    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.quest-message > strong {
    display: block;

    color: var(--text);

    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
}

.quest-message p {
    margin: 20px 0 0;

    color: var(--text-muted);

    font-size: 0.9rem;
    line-height: 1.6;
}

.quest-message button {
    margin-top: 25px;
    min-height: 46px;

    padding: 0 24px;

    border: 1px solid var(--accent);

    background: var(--accent);

    color: #050709;

    font: inherit;

    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.12em;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.quest-message button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 30px rgba(88,214,255,0.15);
}

.quest-complete {
    border-color:
        rgba(88,214,255,0.7);
}


/* =========================================================
   STATUS TOAST
   ========================================================= */

.quest-toast {
    position: absolute;
    z-index: 90;

    left: 50%;
    top: 22px;

    transform:
        translateX(-50%)
        translateY(-10px);

    padding: 10px 15px;

    border:
        1px solid var(--border);

    background:
        rgba(7,9,12,0.94);

    color: var(--text);

    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.11em;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.quest-toast.show {
    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =========================================================
   CONTROLS
   ========================================================= */

.quest-controls {
    min-height: 76px;
    padding: 16px 22px;

    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    border-top:
        1px solid var(--border);

    background:
        rgba(255,255,255,0.012);
}

.quest-controls > div {
    padding: 5px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-right:
        1px solid var(--border);
}

.quest-controls > div:first-child {
    padding-left: 0;
}

.quest-controls > div:last-child {
    border-right: none;
}

.quest-controls span {
    margin-bottom: 6px;

    color: var(--text-muted);

    font-size: 0.53rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.quest-controls strong {
    color: var(--text);

    font-size: 0.65rem;
    letter-spacing: 0.09em;
}


/* =========================================================
   TOUCH CONTROLS
   ========================================================= */

.quest-touch-controls {
    display: none;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    padding: 14px;

    border-top:
        1px solid var(--border);
}

.quest-touch-controls button {
    min-height: 50px;

    border: 1px solid var(--border);

    background:
        rgba(255,255,255,0.025);

    color: var(--text);

    font-size: 0.8rem;
    font-weight: 800;

    touch-action: manipulation;
}

.quest-touch-controls button:active {
    border-color: var(--accent);

    background:
        var(--accent-soft);
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes questPulse {

    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }

}

@keyframes questHit {

    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-7px);
    }

    50% {
        transform: translateX(7px);
    }

    75% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
    }

}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .game-section {
        padding:
            100px 30px
            115px;
    }

    .quest-game {
        height: 480px;
    }

    .quest-item {
        min-width: 110px;
    }

}


@media (max-width: 650px) {

    .game-section {
        padding:
            75px 20px
            90px;
    }

    .game-intro h2 {
        font-size:
            clamp(3.3rem, 16vw, 5rem);
    }

    .quest-header {
        align-items: flex-start;
    }

    .quest-game {
        height: 460px;
    }

    .quest-item {
        min-width: 92px;
        padding: 10px;
    }

    .quest-item strong {
        font-size: 0.56rem;
    }

    .quest-obstacle {
        width: 66px;
    }

    .quest-controls {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .quest-controls > div,
    .quest-controls > div:first-child {
        padding: 7px 0;

        border-right: none;
        border-bottom:
            1px solid var(--border);
    }

    .quest-controls > div:last-child {
        border-bottom: none;
    }

    .quest-touch-controls {
        display: grid;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .quest-item::after {
        animation: none;
    }

}

/* =========================================================
   IMPLEMENTATION QUEST — PIXEL CHARACTER v0.2
   ========================================================= */

.quest-player {
    width: 44px;
    height: 60px;

    border: none;
    background: transparent;
    box-shadow: none;

    display: block;
}

.quest-player::before {
    display: none;
}

.quest-sprite {
    position: relative;

    width: 44px;
    height: 60px;

    transform-origin: center bottom;
}

.sprite-head {
    position: absolute;

    width: 26px;
    height: 21px;

    left: 9px;
    top: 7px;

    background: #d7b899;

    border: 2px solid #07090c;
}

.sprite-hair {
    position: absolute;
    z-index: 3;

    width: 28px;
    height: 8px;

    left: 8px;
    top: 3px;

    background: #342a23;

    border: 2px solid #07090c;

    box-shadow:
        6px 4px 0 #342a23;
}

.sprite-eye {
    position: absolute;

    width: 3px;
    height: 3px;

    top: 8px;

    background: #07090c;
}

.eye-left {
    left: 6px;
}

.eye-right {
    right: 6px;
}

.sprite-body {
    position: absolute;

    width: 30px;
    height: 25px;

    left: 7px;
    top: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            var(--accent),
            rgba(88,214,255,0.45)
        );

    border: 2px solid #07090c;
}

.sprite-body span {
    color: #050709;

    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.sprite-arm {
    position: absolute;

    width: 7px;
    height: 20px;

    top: 29px;

    background: #d7b899;

    border: 2px solid #07090c;

    transform-origin: top center;
}

.arm-left {
    left: 1px;
}

.arm-right {
    right: 1px;
}

.sprite-leg {
    position: absolute;

    width: 10px;
    height: 14px;

    top: 49px;

    background: #d7dbe0;

    border: 2px solid #07090c;

    transform-origin: top center;
}

.leg-left {
    left: 9px;
}

.leg-right {
    right: 9px;
}


/* running animation */

.quest-player.running .leg-left {
    animation: questLegLeft 0.22s infinite alternate;
}

.quest-player.running .leg-right {
    animation: questLegRight 0.22s infinite alternate;
}

.quest-player.running .arm-left {
    animation: questArmLeft 0.22s infinite alternate;
}

.quest-player.running .arm-right {
    animation: questArmRight 0.22s infinite alternate;
}


/* turn around */

.quest-player.facing-left .quest-sprite {
    transform: scaleX(-1);
}

.quest-player.jumping .quest-sprite {
    transform:
        translateY(-2px)
        rotate(-2deg);
}

.quest-player.facing-left.jumping .quest-sprite {
    transform:
        scaleX(-1)
        translateY(-2px)
        rotate(-2deg);
}


@keyframes questLegLeft {
    from { transform: rotate(12deg); }
    to   { transform: rotate(-12deg); }
}

@keyframes questLegRight {
    from { transform: rotate(-12deg); }
    to   { transform: rotate(12deg); }
}

@keyframes questArmLeft {
    from { transform: rotate(-12deg); }
    to   { transform: rotate(12deg); }
}

@keyframes questArmRight {
    from { transform: rotate(12deg); }
    to   { transform: rotate(-12deg); }
}

/* easier final objective */

.quest-golive {
    right: 10%;
    bottom: 145px;
}

.platform-three {
    right: 8%;
    bottom: 128px;

    width: 210px;
}

.obstacle-two {
    left: 62%;
}

/* =========================================================
   IMPLEMENTATION QUEST v0.3 — OBJECTIVE PICKUPS
   ========================================================= */

.quest-item {
    min-width: 115px;
    min-height: 100px;

    padding: 58px 10px 10px;

    align-items: center;
    justify-content: flex-end;

    text-align: center;

    border: none;
    background: transparent;
    box-shadow: none;
}


/* floating collectible diamond */

.quest-item::before {
    content: "";

    position: absolute;

    top: 6px;
    left: 50%;

    width: 38px;
    height: 38px;

    transform:
        translateX(-50%)
        rotate(45deg);

    border:
        1px solid var(--accent);

    background:
        linear-gradient(
            145deg,
            rgba(88,214,255,0.28),
            rgba(88,214,255,0.05)
        );

    box-shadow:
        0 0 16px rgba(88,214,255,0.18),
        inset 0 0 12px rgba(88,214,255,0.08);

    animation:
        questTokenFloat 1.8s
        ease-in-out infinite;
}


/* little light inside pickup */

.quest-item::after {
    top: 20px;
    left: calc(50% - 3px);
    right: auto;

    width: 6px;
    height: 6px;

    background: var(--text);

    box-shadow:
        0 0 12px var(--accent);

    animation:
        questPulse 1.4s
        ease-in-out infinite;
}


.quest-item span {
    color: var(--accent);

    font-size: 0.52rem;
}

.quest-item strong {
    color: var(--text);

    font-size: 0.64rem;
    letter-spacing: 0.09em;
}


/* individual pickup character */

.quest-requirements::before {
    border-radius: 3px;
}

.quest-integration::before {
    border-radius: 50%;
}

.quest-golive::before {
    border-radius:
        50% 50% 4px 50%;
}


/* float without moving the collision box */

@keyframes questTokenFloat {

    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -7px;
    }

}

/* =========================================================
   MOVING SCOPE CREEP
   ========================================================= */

.obstacle-one {
    will-change: transform;

    animation:
        scopeCreepPatrol
        2.8s
        ease-in-out
        infinite
        alternate;
}

.obstacle-one::before {
    content: "!";

    position: absolute;

    top: -15px;
    left: 50%;

    transform:
        translateX(-50%);

    color: var(--accent);

    font-size: 0.65rem;
    font-weight: 900;

    opacity: 0.7;
}


/* ominous little movement */

@keyframes scopeCreepPatrol {

    from {
        transform:
            translateX(-28px);
    }

    to {
        transform:
            translateX(48px);
    }

}

/* =========================================================
   PICKUP FEEDBACK
   ========================================================= */

.quest-burst {
    position: absolute;
    z-index: 90;

    transform:
        translate(-50%, -50%);

    color: var(--accent);

    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.12em;

    white-space: nowrap;

    pointer-events: none;

    text-shadow:
        0 0 14px
        rgba(88,214,255,0.5);

    animation:
        questPickupBurst
        0.75s
        ease-out
        forwards;
}


@keyframes questPickupBurst {

    0% {
        opacity: 0;

        transform:
            translate(-50%, -25%)
            scale(0.75);
    }

    20% {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1.08);
    }

    100% {
        opacity: 0;

        transform:
            translate(-50%, -110%)
            scale(1);
    }

}


/* objective counter feedback */

.quest-status strong.score-pop {
    animation:
        questScorePop
        0.35s ease;
}


@keyframes questScorePop {

    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
    }

}

@media (prefers-reduced-motion: reduce) {

    .obstacle-one,
    .quest-item::before {
        animation: none;
    }

}