@font-face {
    font-family: "Sofia Sans Simplexity";
    src: url("Assets/SofiaSans-Italic-VariableFont_wght.ttf") format("truetype");
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --story-navy: #030065;
    --story-blue: #0038ff;
    --story-cyan: #28edff;
    --story-lime: #c6ff8d;
    --story-orange: #fb8500;
    --story-paper: #f7f9ff;
    --story-ink: #080d35;
}

/* The hero is a thesis: readiness first, technology second. */
.maturity-hero.hero-section {
    min-height: 100svh;
    padding: 138px 0 58px;
    display: flex;
    align-items: stretch;
    background: var(--story-navy);
}

.maturity-hero.hero-section::before {
    background:
        radial-gradient(circle at 82% 42%, rgba(40, 237, 255, 0.14), transparent 25%),
        radial-gradient(circle at 72% 76%, rgba(0, 56, 255, 0.26), transparent 34%),
        linear-gradient(130deg, #030065 0%, #061477 48%, #001b91 100%);
}

.maturity-hero.hero-section::after {
    opacity: 0.18;
}

.maturity-hero > .container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.maturity-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(350px, 0.75fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
    min-height: calc(100svh - 230px);
    min-width: 0;
}

.maturity-hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.maturity-hero .hero-meta {
    margin-bottom: 1.35rem;
}

.maturity-hero .hero-kicker {
    border-radius: 4px;
    margin-bottom: 1.55rem;
    background: rgba(3, 0, 101, 0.28);
}

.maturity-hero-title.hero-title {
    max-width: 15ch;
    margin-bottom: 1.8rem;
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: clamp(3rem, 4.75vw, 5.8rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.052em;
}

.maturity-hero-title.hero-title em {
    display: inline;
    font-family: "Sofia Sans Simplexity", "Montserrat", sans-serif;
    font-weight: 500;
    color: var(--story-cyan);
    letter-spacing: -0.035em;
}

.maturity-hero .hero-subtitle {
    max-width: 660px;
    font-size: clamp(1.02rem, 1.35vw, 1.22rem);
}

.maturity-hero-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.hero-scroll-cue {
    align-self: center;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.5rem;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
}

.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
    color: var(--story-lime);
}

.hero-scroll-cue i {
    animation: story-cue 1.8s ease-in-out infinite;
}

@keyframes story-cue {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50% { transform: translateY(5px); opacity: 1; }
}

/* The opening network mirrors the scroll story without pretending to be a product diagram. */
.hero-network {
    --pointer-x: 0px;
    --pointer-y: 0px;
    --hero-turn: 0deg;
    position: relative;
    width: min(100%, 590px);
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    min-width: 0;
    transform: translate3d(var(--pointer-x), var(--pointer-y), 0) rotate(var(--hero-turn));
    transform-style: preserve-3d;
    transition: transform 180ms ease-out;
    will-change: transform;
}

.hero-flow-lines {
    position: absolute;
    inset: -3%;
    z-index: 1;
    width: 106%;
    height: 106%;
    overflow: visible;
}

.flow-paths path {
    fill: none;
    stroke: url(#flowCyan);
    stroke-width: 1.35;
    stroke-dasharray: 5 9;
    opacity: 0.58;
    animation: hero-flow-drift 9s linear infinite;
}

.flow-paths path:nth-child(2n) {
    stroke: url(#flowBlue);
    stroke-dasharray: 2 11;
    animation-duration: 12s;
    animation-direction: reverse;
}

.flow-particle.cyan { fill: var(--story-cyan); }
.flow-particle.lime { fill: var(--story-lime); }
.flow-particle.orange { fill: var(--story-orange); }

@keyframes hero-flow-drift {
    to { stroke-dashoffset: -140; }
}

.hero-network::before,
.hero-network::after {
    content: "";
    position: absolute;
    inset: 11%;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 20deg, rgba(40, 237, 255, 0.18) 0deg 0.8deg, transparent 0.8deg 38deg);
    mask: radial-gradient(circle, transparent 0 46%, #000 47% 49%, transparent 50% 100%);
}

.hero-network::after {
    inset: 25%;
    transform: rotate(19deg);
    opacity: 0.7;
}

.network-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(40, 237, 255, 0.22);
    border-radius: 50%;
}

.orbit-one {
    inset: 16%;
    animation: orbit-spin 26s linear infinite;
}

.orbit-two {
    inset: 31%;
    border-color: rgba(198, 255, 141, 0.24);
    animation: orbit-spin 18s linear infinite reverse;
}

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

.network-core {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 148px;
    height: 148px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 34%;
    color: white;
    background:
        radial-gradient(circle at 32% 24%, rgba(40, 237, 255, 0.12), transparent 38%),
        #ffffff;
    box-shadow:
        0 0 0 18px rgba(40, 237, 255, 0.05),
        0 0 58px rgba(40, 237, 255, 0.34),
        0 22px 48px rgba(0, 0, 70, 0.28);
    backdrop-filter: blur(10px);
    animation: kinetic-core-breathe 4.8s ease-in-out infinite;
}

.network-core::before,
.network-core::after {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: -1;
    border-radius: 38%;
    background: conic-gradient(from 20deg, transparent, rgba(40, 237, 255, 0.78), transparent 18%, transparent 62%, rgba(198, 255, 141, 0.62), transparent 82%);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    padding: 1px;
    animation: kinetic-ring 7s linear infinite;
}

.network-core::after {
    inset: -31px;
    opacity: 0.34;
    animation-duration: 11s;
    animation-direction: reverse;
}

.simplexity-x {
    display: block;
    width: 116px;
    height: 116px;
    object-fit: contain;
    filter:
        brightness(1.18)
        drop-shadow(0 0 10px rgba(0, 56, 255, 0.78))
        drop-shadow(0 0 22px rgba(40, 237, 255, 0.32));
    animation: simplexity-mark-breathe 4.2s ease-in-out infinite;
}

@keyframes kinetic-ring { to { transform: rotate(360deg); } }
@keyframes kinetic-core-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(0.98) rotate(-1deg); }
    50% { transform: translate(-50%, -50%) scale(1.04) rotate(1deg); }
}
@keyframes simplexity-mark-breathe {
    0%, 100% {
        transform: scale(0.94) rotate(-1.5deg);
        filter: brightness(1.08) drop-shadow(0 0 8px rgba(0, 56, 255, 0.7)) drop-shadow(0 0 18px rgba(40, 237, 255, 0.24));
    }
    50% {
        transform: scale(1.04) rotate(1.5deg);
        filter: brightness(1.28) drop-shadow(0 0 13px rgba(0, 56, 255, 0.92)) drop-shadow(0 0 28px rgba(40, 237, 255, 0.42));
    }
}

.network-core small {
    position: absolute;
    left: 50%;
    bottom: -54px;
    width: max-content;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 0.48rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.hero-node {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: max-content;
    padding: 0.58rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(3, 0, 101, 0.72);
    box-shadow: 0 18px 40px rgba(0, 0, 30, 0.18);
    backdrop-filter: blur(10px);
    animation: hero-node-float 5.5s ease-in-out infinite;
}

.hero-node i { color: var(--story-cyan); }
.hero-node b { font-size: 0.72rem; font-weight: 600; }
.node-people { left: 5%; top: 18%; animation-delay: -0.8s; }
.node-process { right: 1%; top: 25%; animation-delay: -2.4s; }
.node-data { right: 4%; bottom: 22%; animation-delay: -3.6s; }
.node-rules { left: 0; bottom: 24%; animation-delay: -1.7s; }
.node-agents { right: 34%; top: 4%; animation-delay: -4.4s; }

@keyframes hero-node-float {
    0%, 100% { translate: 0 0; border-color: rgba(255, 255, 255, 0.18); }
    50% { translate: 0 -8px; border-color: rgba(40, 237, 255, 0.44); }
}

/* Scroll narrative */
.maturity-story {
    position: relative;
    padding: 0;
    color: white;
    background:
        radial-gradient(circle at 68% 38%, rgba(0, 56, 255, 0.19), transparent 26%),
        linear-gradient(180deg, #030065 0%, #07115c 45%, #030065 100%);
    isolation: isolate;
}

.maturity-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.maturity-progress span {
    display: block;
    width: calc(var(--story-progress, 0) * 100%);
    height: 100%;
    background: linear-gradient(90deg, var(--story-cyan), var(--story-lime));
}

.maturity-story-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px;
    gap: 0;
    align-items: start;
}

.maturity-visual-column {
    position: sticky;
    top: 96px;
    height: calc(100vh - 96px);
    height: calc(100svh - 96px);
}

.maturity-visual-column {
    display: grid;
    place-items: center;
}

.maturity-visual {
    --journey-progress: 0%;
    position: relative;
    width: min(100%, 1240px);
    height: min(680px, calc(100svh - 128px));
    min-height: min(540px, calc(100svh - 128px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 22px;
    background:
        radial-gradient(circle at 76% 70%, rgba(0, 56, 255, 0.23), transparent 32%),
        rgba(0, 12, 89, 0.68);
    box-shadow: 0 44px 110px rgba(0, 0, 36, 0.24);
    transform: translateY(var(--story-shift, 0px)) rotate(var(--story-tilt, 0deg));
    transition: background 600ms ease, border-color 600ms ease, transform 180ms ease-out;
    will-change: transform;
}

.visual-grid {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(40, 237, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 237, 255, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, #000, transparent 74%);
}

.journey-heading {
    position: absolute;
    z-index: 2;
    top: 38px;
    left: 50px;
    display: grid;
    gap: 0.45rem;
}

.journey-heading span,
.journey-source small,
.journey-result small {
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--story-cyan);
}

.journey-heading strong {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.maturity-rail {
    position: absolute;
    z-index: 4;
    top: 46px;
    left: 45%;
    right: 46px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.maturity-rail::before,
.maturity-rail::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 10%;
    width: 80%;
    height: 2px;
    border-radius: 2px;
}

.maturity-rail::before { background: rgba(255, 255, 255, 0.14); }
.maturity-rail::after {
    width: var(--journey-progress);
    background: linear-gradient(90deg, var(--story-cyan), var(--story-lime));
    box-shadow: 0 0 14px rgba(40, 237, 255, 0.35);
    transition: width 650ms cubic-bezier(.2,.8,.2,1);
}

.maturity-rail a {
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 350ms ease;
}

.maturity-rail a span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: #061068;
    font-family: var(--mono);
    font-size: 0.62rem;
    transition: color 350ms ease, border-color 350ms ease, background 350ms ease, box-shadow 350ms ease;
}

.maturity-rail a b {
    font-family: var(--mono);
    font-size: 0.53rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.maturity-rail a.is-complete { color: rgba(198, 255, 141, 0.76); }
.maturity-rail a.is-complete span {
    color: var(--story-navy);
    border-color: var(--story-cyan);
    background: var(--story-cyan);
}
.maturity-rail a.is-active { color: white; }
.maturity-rail a.is-active span {
    color: var(--story-navy);
    border-color: var(--story-lime);
    background: var(--story-lime);
    box-shadow: 0 0 0 6px rgba(198, 255, 141, 0.1), 0 0 22px rgba(198, 255, 141, 0.35);
    animation: journey-pulse 2.2s ease-in-out infinite;
}

@keyframes journey-pulse {
    50% { box-shadow: 0 0 0 10px rgba(198, 255, 141, 0.04), 0 0 30px rgba(198, 255, 141, 0.5); }
}

.journey-scenes {
    position: absolute;
    z-index: 3;
    top: 152px;
    right: 46px;
    bottom: 42px;
    left: 51.5%;
}

.journey-scene {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100px) scale(0.94);
    filter: blur(4px);
    transition: opacity 420ms ease, transform 760ms cubic-bezier(.16,1,.3,1), filter 420ms ease;
}

.journey-scene.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.journey-scene.is-before { transform: translateX(-100px) scale(0.94); }
.journey-scene.is-after { transform: translateX(100px) scale(0.94); }

.journey-source,
.journey-result {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 190px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(2, 10, 83, 0.72);
}

.journey-source {
    top: 10%;
    left: 0;
    width: 48%;
}

.journey-result {
    right: 0;
    bottom: 13%;
    width: 55%;
}

.journey-source div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.journey-source div span {
    padding: 0.52rem 0.68rem;
    border: 1px solid rgba(40, 237, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.77);
    font-size: 0.68rem;
    background: rgba(0, 56, 255, 0.12);
    animation: source-chip-float 3.6s ease-in-out infinite;
}

.journey-source div span:nth-child(2) { animation-delay: -1.2s; }
.journey-source div span:nth-child(3) { animation-delay: -2.4s; }

@keyframes source-chip-float { 50% { transform: translateY(-5px); border-color: rgba(40, 237, 255, 0.55); } }

.journey-transfer {
    position: absolute;
    z-index: 4;
    top: 42%;
    left: 44%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    color: var(--story-cyan);
    transform: rotate(-20deg);
}

.journey-transfer::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -42px;
    top: 50%;
    width: 118px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--story-cyan), var(--story-lime), transparent);
    box-shadow: 0 0 18px rgba(40, 237, 255, 0.55);
    transform: translateY(-50%);
    animation: transfer-beam 1.8s ease-in-out infinite;
}

@keyframes transfer-beam { 50% { transform: translate(16px, -50%); opacity: 0.45; } }

.journey-transfer span {
    font-family: var(--mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: rotate(20deg) translateY(-22px);
}

.journey-transfer i {
    font-size: 1.45rem;
    animation: journey-arrow 1.6s ease-in-out infinite;
}

@keyframes journey-arrow { 50% { transform: translateX(9px); color: var(--story-lime); } }

.journey-result {
    border-color: rgba(198, 255, 141, 0.35);
    background:
        radial-gradient(circle at 80% 18%, rgba(40, 237, 255, 0.18), transparent 38%),
        rgba(0, 56, 255, 0.2);
    box-shadow: inset 0 0 42px rgba(0, 56, 255, 0.12);
}

.journey-result > i {
    margin-bottom: 24px;
    color: var(--story-lime);
    font-size: 1.75rem;
}

.journey-result strong {
    margin-top: 9px;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.12rem, 1.8vw, 1.5rem);
    font-weight: 550;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.journey-scene > p {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 15px 18px 15px 42px;
    border-left: 2px solid var(--story-lime);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    line-height: 1.55;
    background: rgba(198, 255, 141, 0.05);
}

.journey-scene > p::before {
    content: "→";
    position: absolute;
    left: 17px;
    top: 17px;
    color: var(--story-lime);
    font-family: var(--mono);
    font-weight: 700;
}

.journey-stage-number {
    position: absolute;
    z-index: 1;
    left: 42%;
    bottom: -0.13em;
    color: rgba(40, 237, 255, 0.045);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(15rem, 29vw, 25rem);
    font-weight: 700;
    line-height: 0.78;
    letter-spacing: -0.12em;
    user-select: none;
    transform: translateX(-50%);
    transition: transform 800ms cubic-bezier(.16,1,.3,1), opacity 500ms ease;
}

.journey-narrative {
    position: absolute;
    z-index: 4;
    top: 155px;
    left: 50px;
    bottom: 48px;
    width: 39.5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: clamp(22px, 3vw, 52px);
}

.journey-narrative .chapter-kicker {
    transform: translateY(0);
}

.journey-narrative h2 {
    max-width: 10.5ch;
    margin-bottom: 1rem;
    font-size: clamp(2.45rem, 4vw, 4.7rem);
    line-height: 0.98;
}

.journey-narrative p {
    max-width: 48ch;
    margin-bottom: 1.35rem;
    font-size: 0.91rem;
    line-height: 1.62;
}

.journey-narrative ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1rem;
}

.journey-narrative li {
    font-size: 0.73rem;
    line-height: 1.4;
}

.journey-narrative > * {
    opacity: 1;
    transform: translateY(0);
}

.journey-narrative.is-entering > * {
    animation: narrative-rise 700ms cubic-bezier(.16,1,.3,1) both;
}

.journey-narrative.is-entering > *:nth-child(2) { animation-delay: 70ms; }
.journey-narrative.is-entering > *:nth-child(3) { animation-delay: 140ms; }
.journey-narrative.is-entering > *:nth-child(4) { animation-delay: 210ms; }

.maturity-visual[data-direction="backward"] .journey-narrative.is-entering > * {
    animation-name: narrative-fall;
}

@keyframes narrative-rise {
    from { opacity: 0; transform: translateY(42px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes narrative-fall {
    from { opacity: 0; transform: translateY(-42px); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.maturity-chapters {
    width: 1px;
}

.maturity-chapters .chapter-copy,
.maturity-chapters .chapter-mobile-visual {
    display: none;
    pointer-events: none;
}

.maturity-chapter {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    opacity: 0;
}

.maturity-chapter.is-active { opacity: 0; }
.chapter-copy { max-width: 540px; }

.chapter-kicker {
    display: block;
    margin-bottom: 1.25rem;
    font-family: var(--mono);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--story-cyan);
}

.chapter-copy h2 {
    margin: 0 0 1.4rem;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.2rem, 3.2vw, 4.1rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.chapter-copy p {
    margin: 0 0 1.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.72;
}

.chapter-copy ul {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chapter-copy li {
    position: relative;
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.87rem;
}

.chapter-copy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--story-lime);
    box-shadow: 0 0 0 4px rgba(198, 255, 141, 0.08);
}

.chapter-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(198, 255, 141, 0.45);
    color: var(--story-lime);
    font-weight: 700;
    text-decoration: none;
}

.chapter-link:hover { color: white; }
.chapter-mobile-visual { display: none; }

@media (max-width: 1199px) {
    .maturity-story-layout {
        grid-template-columns: minmax(0, 1fr) 1px;
        gap: 0;
    }
    .maturity-visual { border-radius: 16px; }
    .journey-heading { left: 30px; }
    .maturity-rail { left: 45%; right: 28px; }
    .journey-narrative { left: 30px; width: 40%; padding-right: 24px; }
    .journey-scenes { left: 50%; right: 30px; }
    .journey-source, .journey-result { padding: 20px; }
}

@media (min-width: 992px) and (max-height: 720px) {
    .journey-heading { top: 25px; }
    .maturity-rail { top: 31px; }
    .journey-narrative { top: 112px; bottom: 24px; }
    .journey-narrative .chapter-kicker { margin-bottom: 0.75rem; }
    .journey-narrative h2 { margin-bottom: 0.75rem; font-size: clamp(2.2rem, 3.5vw, 3.65rem); }
    .journey-narrative p { margin-bottom: 0.9rem; font-size: 0.76rem; line-height: 1.5; }
    .journey-narrative ul { gap: 0.35rem 0.8rem; }
    .journey-narrative li { font-size: 0.64rem; }
    .journey-scenes { top: 112px; bottom: 24px; }
    .journey-source, .journey-result { min-height: 148px; padding: 18px; }
    .journey-result > i { margin-bottom: 13px; }
    .journey-scene > p { padding-top: 11px; padding-bottom: 11px; font-size: 0.62rem; }
    .journey-scene > p::before { top: 13px; }
}

@media (max-width: 991.98px) {
    .maturity-hero.hero-section { padding-top: 114px; }
    .maturity-hero-grid { grid-template-columns: 1fr; min-height: auto; }
    .maturity-hero-title.hero-title { max-width: 14ch; }
    .hero-network { width: min(92vw, 540px); }
    .maturity-story-layout { grid-template-columns: 1fr; }
    .maturity-visual-column { display: none; }
    .maturity-chapters { width: auto; padding: 64px 0; }
    .maturity-chapters .chapter-copy,
    .maturity-chapters .chapter-mobile-visual {
        pointer-events: auto;
    }
    .maturity-chapters .chapter-copy { display: block; }
    .maturity-chapter {
        min-height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
        gap: 2rem;
        padding: 80px 0;
        opacity: 1;
        transform: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
    .maturity-chapter.is-active { opacity: 1; }
    .maturity-chapters .chapter-mobile-visual {
        display: grid;
        align-content: start;
        gap: 0.85rem;
        min-height: 280px;
        padding: 1.1rem;
        border: 1px solid rgba(40, 237, 255, 0.23);
        border-radius: 18px;
        color: var(--story-cyan);
        background:
            radial-gradient(circle at 88% 8%, rgba(40, 237, 255, 0.16), transparent 30%),
            rgba(0, 18, 110, 0.68);
    }
    .mobile-stage-head {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }
    .mobile-stage-head > i {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        flex: 0 0 auto;
        border: 1px solid rgba(40, 237, 255, 0.35);
        border-radius: 11px;
        font-size: 1rem;
        background: rgba(40, 237, 255, 0.08);
    }
    .mobile-stage-head div { display: grid; gap: 0.08rem; }
    .mobile-stage-head small,
    .mobile-stage-source small,
    .mobile-stage-result small,
    .mobile-stage-next span {
        font-family: var(--mono);
        font-size: 0.48rem;
        font-weight: 700;
        letter-spacing: 0.13em;
        color: rgba(255, 255, 255, 0.54);
    }
    .mobile-stage-head strong {
        font-size: 0.92rem;
        line-height: 1.1;
        color: white;
    }
    .mobile-stage-flow { display: grid; gap: 0.45rem; }
    .mobile-stage-source,
    .mobile-stage-result {
        display: grid;
        gap: 0.3rem;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 11px;
        background: rgba(1, 3, 73, 0.48);
    }
    .mobile-stage-source span {
        color: rgba(255, 255, 255, 0.78);
        font-size: 0.66rem;
        line-height: 1.45;
    }
    .mobile-stage-action {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        color: var(--story-cyan);
        font-family: var(--mono);
        font-size: 0.52rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }
    .mobile-stage-action i { font-size: 0.62rem; }
    .mobile-stage-result {
        border-color: rgba(198, 255, 141, 0.3);
        background: linear-gradient(135deg, rgba(0, 56, 255, 0.22), rgba(198, 255, 141, 0.07));
    }
    .mobile-stage-result strong {
        color: white;
        font-size: 0.78rem;
        line-height: 1.25;
    }
    .mobile-stage-next {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        padding-top: 0.65rem;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
    }
    .mobile-stage-next b {
        color: var(--story-lime);
        font-size: 0.61rem;
        font-weight: 700;
    }
    .mobile-stage-next i {
        margin-left: auto;
        color: var(--story-lime);
        font-size: 0.65rem;
    }
}

@media (max-width: 767px) {
    html { scroll-padding-top: 76px; }
    .maturity-hero.hero-section { padding: 110px 0 44px; }
    .maturity-hero-grid { gap: 1.5rem; }
    .maturity-hero-title.hero-title { font-size: clamp(2.55rem, 11vw, 3.6rem); }
    .maturity-hero .hero-actions { margin-bottom: 2rem; }
    .hero-network { width: 100%; margin-left: 0; }
    .network-core { width: 104px; height: 104px; }
    .simplexity-x { width: 84px; height: 84px; }
    .network-core small { display: none; }
    .hero-node { padding: 0.45rem; }
    .hero-node b { display: none; }
    .maturity-hero-foot { justify-content: space-between; gap: 0.7rem; }
    .hero-scroll-cue { display: none; }
    .maturity-chapters {
        position: relative;
        padding: 26px 0 36px 38px;
    }
    .maturity-chapters::before {
        content: "";
        position: absolute;
        top: 84px;
        bottom: 96px;
        left: 14px;
        width: 1px;
        background: linear-gradient(180deg, var(--story-cyan), rgba(198, 255, 141, 0.5), rgba(255, 255, 255, 0.08));
    }
    .maturity-chapter {
        position: relative;
        grid-template-columns: 1fr;
        gap: 1.55rem;
        padding: 38px 0 48px;
        opacity: 1;
        scroll-margin-top: 76px;
        border-bottom-color: rgba(255, 255, 255, 0.09);
    }
    .maturity-chapter::before {
        content: attr(data-code);
        position: absolute;
        z-index: 2;
        top: 54px;
        left: -38px;
        display: grid;
        place-items: center;
        width: 29px;
        height: 29px;
        border: 1px solid var(--story-cyan);
        border-radius: 50%;
        color: var(--story-navy);
        background: var(--story-cyan);
        box-shadow: 0 0 0 6px rgba(40, 237, 255, 0.07);
        font-family: var(--mono);
        font-size: 0.54rem;
        font-weight: 700;
        transition: color 350ms ease, background 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
    }
    .maturity-chapter.is-active::before {
        border-color: var(--story-lime);
        color: var(--story-navy);
        background: var(--story-lime);
        box-shadow: 0 0 0 7px rgba(198, 255, 141, 0.1), 0 0 24px rgba(198, 255, 141, 0.3);
    }
    .chapter-copy h2 { font-size: clamp(2.1rem, 10vw, 3rem); }
    .chapter-copy p { margin-bottom: 1.25rem; font-size: 0.92rem; }
    .chapter-copy li { font-size: 0.8rem; }
    .maturity-chapters .chapter-mobile-visual {
        grid-row: 1;
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.15rem;
        border-radius: 20px;
        opacity: 1;
        transform: none;
        transform-origin: center top;
        transition: border-color 450ms ease, box-shadow 450ms ease;
        background:
            radial-gradient(circle at 86% 18%, rgba(40, 237, 255, 0.2), transparent 30%),
            linear-gradient(155deg, rgba(0, 56, 255, 0.19), rgba(0, 9, 83, 0.82));
    }
    .maturity-chapter.is-active .chapter-mobile-visual {
        opacity: 1;
        border-color: rgba(40, 237, 255, 0.52);
        box-shadow: 0 22px 60px rgba(0, 0, 45, 0.28), 0 0 0 1px rgba(40, 237, 255, 0.05) inset;
    }
    .mobile-stage-head > i { width: 44px; height: 44px; font-size: 1.1rem; }
    .mobile-stage-head small { color: var(--story-cyan); }
    .mobile-stage-head strong { font-size: 1.05rem; }
    .mobile-stage-flow { position: relative; gap: 0.55rem; }
    .mobile-stage-source,
    .mobile-stage-result { padding: 0.9rem; }
    .mobile-stage-source span { font-size: 0.72rem; }
    .mobile-stage-result strong { font-size: 0.88rem; }
    .mobile-stage-action { min-height: 30px; }
    .mobile-stage-action i { animation: mobile-flow-arrow 1.5s ease-in-out infinite; }
    .mobile-stage-next { padding-top: 0.8rem; }
    .mobile-stage-next b { font-size: 0.67rem; }
    .mobile-stage-next.is-impact {
        padding: 0.72rem 0.8rem;
        border: 1px solid rgba(198, 255, 141, 0.22);
        border-radius: 10px;
        background: rgba(198, 255, 141, 0.06);
    }
    .maturity-chapter.is-active .mobile-stage-source { animation: mobile-step-enter 520ms 0ms both cubic-bezier(.16, 1, .3, 1); }
    .maturity-chapter.is-active .mobile-stage-action { animation: mobile-step-enter 520ms 70ms both cubic-bezier(.16, 1, .3, 1); }
    .maturity-chapter.is-active .mobile-stage-result { animation: mobile-step-enter 520ms 140ms both cubic-bezier(.16, 1, .3, 1); }
    .maturity-chapter.is-active .mobile-stage-next { animation: mobile-step-enter 520ms 210ms both cubic-bezier(.16, 1, .3, 1); }
}

@keyframes mobile-step-enter {
    from { opacity: 0.72; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mobile-flow-arrow {
    0%, 100% { transform: translateY(-2px); opacity: 0.5; }
    50% { transform: translateY(3px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-cue i,
    .network-orbit,
    .network-core,
    .network-core::before,
    .network-core::after,
    .simplexity-x,
    .hero-node,
    .flow-paths path,
    .maturity-rail a.is-active span,
    .journey-transfer i {
        animation: none !important;
    }
    .journey-transfer::before,
    .journey-source div span,
    .journey-narrative.is-entering > *,
    .mobile-stage-action i,
    .maturity-chapter.is-active .mobile-stage-source,
    .maturity-chapter.is-active .mobile-stage-action,
    .maturity-chapter.is-active .mobile-stage-result,
    .maturity-chapter.is-active .mobile-stage-next {
        animation: none !important;
    }
    .flow-signals { display: none; }
    .hero-network,
    .maturity-visual { transform: none !important; }
    .maturity-chapter,
    .maturity-rail::after,
    .journey-scene {
        transition-duration: 0.01ms !important;
    }
}
