:root {
    --bg: #060706;
    --surface: #0d0f0d;
    --surface-2: #121512;
    --text: #f5f7f2;
    --muted: #9a9f96;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --lime: #c8ff00;
    --orange: #ff4a1c;
    --display: "Unbounded", sans-serif;
    --body: "Manrope", sans-serif;
    --mono: "IBM Plex Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
}

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

h1,
h2,
h3,
p,
figure {
    margin: 0;
}

h1,
h2,
h3 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-160%);
    padding: 10px 16px;
    background: var(--lime);
    color: #000;
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.reading-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 999;
    height: 3px;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--lime), var(--orange));
}

.case-shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.case-nav {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 3vw;
    border-bottom: 1px solid var(--line);
}

.brand-link,
.nav-actions,
.nav-link {
    display: flex;
    align-items: center;
}

.brand-link {
    gap: 12px;
    color: var(--text);
    font-family: var(--display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--lime);
}

.nav-actions {
    gap: 24px;
}

.nav-label,
.nav-link,
.eyebrow,
.hero-meta,
.hero-role > span,
.main-visual figcaption {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-label {
    color: var(--muted);
}

.nav-link {
    min-height: 44px;
    color: var(--lime);
    text-decoration: none;
}

.case-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 148px 0 80px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 12% 82%, rgba(200, 255, 0, 0.12), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(255, 74, 28, 0.1), transparent 32%),
        var(--bg);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

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

.hero-meta {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 16px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.hero-meta span:first-child {
    color: var(--lime);
}

.hero-title {
    margin: 38px 0 46px;
    font-family: var(--display);
    font-size: clamp(3.4rem, 11vw, 9.2rem);
    font-weight: 600;
    line-height: 0.88;
    letter-spacing: -0.075em;
}

.hero-title::after {
    content: ".RU";
    color: var(--lime);
    font-size: 0.18em;
    letter-spacing: 0.05em;
    vertical-align: top;
}

.hero-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: 64px;
    align-items: start;
}

.hero-lead {
    max-width: 740px;
    font-size: clamp(1.25rem, 2.3vw, 2rem);
    font-weight: 500;
    line-height: 1.35;
}

.hero-role {
    padding-left: 24px;
    border-left: 1px solid var(--line-strong);
}

.hero-role > span {
    color: var(--orange);
}

.hero-role p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-primary {
    background: var(--lime);
    color: #050505;
}

.button-secondary {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.button-secondary:hover {
    border-color: var(--lime);
}

.media-stage {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    padding: 72px 0 0;
}

.main-visual {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.4);
}

.main-visual img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.main-visual.main-visual-live img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.main-visual figcaption {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.metrics-section,
.modules-section,
.engineering-section,
.evolution-section,
.next-section {
    padding-block: 128px;
}

.section-intro {
    display: grid;
    grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1.1fr) minmax(260px, 0.55fr);
    gap: 32px;
    align-items: start;
    margin-bottom: 56px;
}

.eyebrow {
    color: var(--lime);
}

.section-intro h2,
.split-panel h2,
.stack-copy h2,
.control-card h2,
.outcome-copy h2,
.next-copy h2,
.case-cta h2 {
    font-family: var(--display);
    font-size: clamp(1.7rem, 3.4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-intro p,
.split-panel p,
.stack-copy p,
.outcome-copy p,
.next-copy p,
.case-cta p {
    color: var(--muted);
    font-size: 16px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.metric-card {
    min-width: 0;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent);
}

.metric-card strong {
    color: var(--lime);
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.metric-card span {
    max-width: 210px;
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 128px;
}

.split-panel {
    min-width: 0;
    padding: 56px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.split-panel + .split-panel {
    border-left: 0;
}

.split-panel h2 {
    margin: 24px 0 32px;
}

.split-panel p + p,
.outcome-copy p + p,
.next-copy p + p {
    margin-top: 18px;
}

.split-panel-accent {
    background:
        radial-gradient(circle at 100% 0, rgba(200, 255, 0, 0.09), transparent 44%),
        var(--surface-2);
}

.architecture-section,
.stack-section,
.control-section,
.outcome-section,
.case-cta {
    border-block: 1px solid var(--line);
    background: var(--surface);
}

.architecture-section {
    padding-block: 128px;
}

.flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr) 20px) minmax(0, 1fr);
    align-items: stretch;
}

.flow-step {
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    background: var(--bg);
}

.flow-step > span,
.module-index,
.decision > span,
.timeline-item time {
    color: var(--lime);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
}

.flow-step h3 {
    margin: 42px 0 14px;
    font-family: var(--display);
    font-size: 15px;
    font-weight: 500;
}

.flow-step p {
    color: var(--muted);
    font-size: 13px;
}

.flow-arrow {
    display: grid;
    place-items: center;
    color: var(--muted);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.module-card {
    min-width: 0;
    min-height: 270px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    transition: border-color 180ms ease, transform 180ms ease;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(200, 255, 0, 0.45);
}

.module-card h3 {
    margin: 72px 0 18px;
    font-family: var(--display);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.module-card p {
    color: var(--muted);
    font-size: 14px;
}

.stack-section {
    padding-block: 112px;
    background:
        radial-gradient(circle at 0 100%, rgba(255, 74, 28, 0.08), transparent 38%),
        var(--surface);
}

.stack-layout,
.outcome-grid,
.next-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 72px;
    align-items: center;
}

.stack-copy h2,
.outcome-copy h2,
.next-copy h2 {
    margin: 22px 0 26px;
}

.outcome-title-compact {
    font-size: calc(clamp(1.7rem, 3.4vw, 3.2rem) - 1px);
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stack-list span {
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.05em;
}

.decision-list {
    border-top: 1px solid var(--line);
}

.decision {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.decision div {
    display: grid;
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
    gap: 32px;
}

.decision h3 {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 500;
}

.decision p {
    max-width: 700px;
    color: var(--muted);
}

.control-section {
    padding-block: 112px;
}

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

.control-card {
    min-width: 0;
    padding: 48px;
    border: 1px solid rgba(200, 255, 0, 0.28);
    border-radius: 24px;
    background: rgba(200, 255, 0, 0.035);
}

.control-card-human {
    border-color: rgba(255, 74, 28, 0.32);
    background: rgba(255, 74, 28, 0.035);
}

.control-card-human .eyebrow {
    color: var(--orange);
}

.control-card h2 {
    margin: 20px 0 28px;
}

.control-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.control-card li {
    position: relative;
    padding: 13px 0 13px 24px;
    border-top: 1px solid var(--line);
}

.control-card li::before {
    content: "↳";
    position: absolute;
    left: 0;
    color: var(--lime);
}

.control-card-human li::before {
    color: var(--orange);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.timeline-item {
    min-width: 0;
    padding: 32px 28px 0 0;
    border-right: 1px solid var(--line);
}

.timeline-item + .timeline-item {
    padding-left: 28px;
}

.timeline-item:last-child {
    border-right: 0;
}

.timeline-item h3 {
    margin: 48px 0 14px;
    font-family: var(--display);
    font-size: 16px;
    font-weight: 500;
}

.timeline-item p {
    color: var(--muted);
    font-size: 14px;
}

.outcome-section {
    padding-block: 120px;
}

.outcome-visual {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.outcome-visual img {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
}

.outcome-grid-stacked {
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

.outcome-grid-stacked .outcome-visual img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.outcome-grid-stacked .outcome-copy {
    max-width: 820px;
}

.next-layout {
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1.25fr);
}

.achievement-image {
    width: min(100%, 320px);
    margin-inline: auto;
    filter: drop-shadow(0 22px 50px rgba(200, 255, 0, 0.15));
}

.case-cta {
    padding-block: 140px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 100%, rgba(200, 255, 0, 0.12), transparent 44%),
        var(--surface);
}

.case-cta h2 {
    max-width: 900px;
    margin: 28px auto 22px;
    font-size: clamp(2.2rem, 6vw, 5.2rem);
}

.case-cta p {
    max-width: 620px;
    margin-inline: auto;
}

.cta-actions {
    justify-content: center;
}

.case-footer {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.case-footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

.case-footer a:hover {
    color: var(--lime);
}

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1000px) {
    .section-intro {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .section-intro p {
        grid-column: 2;
    }

    .metric-grid,
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .flow-arrow {
        display: none;
    }

    .stack-layout,
    .outcome-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .timeline-item:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 760px) {
    .case-shell {
        width: min(100% - 32px, 1180px);
    }

    .case-nav {
        padding: 16px;
    }

    .brand-link > span:last-child,
    .nav-label {
        display: none;
    }

    .case-hero {
        min-height: auto;
        padding: 126px 0 64px;
    }

    .hero-meta,
    .main-visual figcaption,
    .case-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-title {
        margin: 34px 0;
        font-size: clamp(3rem, 17vw, 5.4rem);
    }

    .hero-bottom,
    .split-section,
    .control-grid,
    .next-layout {
        grid-template-columns: 1fr;
    }

    .hero-bottom {
        gap: 30px;
    }

    .hero-role {
        padding: 20px 0 0;
        border-top: 1px solid var(--line-strong);
        border-left: 0;
    }

    .button {
        width: 100%;
    }

    .main-visual {
        border-radius: 18px;
    }

    .metrics-section,
    .modules-section,
    .engineering-section,
    .evolution-section,
    .next-section,
    .architecture-section {
        padding-block: 88px;
    }

    .section-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 38px;
    }

    .section-intro p {
        grid-column: auto;
    }

    .metric-grid,
    .module-grid,
    .flow,
    .timeline {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 160px;
    }

    .split-section {
        padding-bottom: 88px;
    }

    .split-panel,
    .control-card {
        padding: 32px 24px;
    }

    .split-panel + .split-panel {
        border-top: 0;
        border-left: 1px solid var(--line);
    }

    .module-card {
        min-height: 240px;
    }

    .decision {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .decision div {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .control-section,
    .stack-section,
    .outcome-section {
        padding-block: 88px;
    }

    .timeline {
        row-gap: 0;
    }

    .timeline-item,
    .timeline-item + .timeline-item {
        padding: 28px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .timeline-item h3 {
        margin-top: 28px;
    }

    .case-cta {
        padding-block: 96px;
    }

    .case-footer {
        padding-block: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
