:root {
    --bg: #f3efe7;
    --bg-soft: #fcfaf6;
    --surface: rgba(255, 252, 247, 0.88);
    --surface-solid: #fffdf9;
    --surface-alt: #f0ebe2;
    --ink: #1c2833;
    --ink-soft: #2e4354;
    --text: #233241;
    --muted: #5f6d79;
    --line: rgba(28, 40, 51, 0.12);
    --line-strong: rgba(28, 40, 51, 0.2);
    --accent: #1f6d8c;
    --accent-strong: #154f67;
    --accent-soft: #deedf3;
    --warm: #a66d3b;
    --warm-soft: #f3e7d8;
    --shadow-lg: 0 28px 70px rgba(25, 36, 47, 0.12);
    --shadow-md: 0 16px 36px rgba(25, 36, 47, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --section-space: 72px;
    --section-flow-gap: 32px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(31, 109, 140, 0.1), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(166, 109, 59, 0.08), transparent 18%),
        linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(31, 109, 140, 0.35);
    outline-offset: 3px;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 12px;
    z-index: 30;
    padding-top: 18px;
    transition:
        transform 0.22s ease,
        opacity 0.22s ease;
}

.topbar__inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 78px;
    padding: 12px 14px;
    border: 1px solid rgba(28, 40, 51, 0.08);
    border-radius: 22px;
    background: rgba(248, 245, 239, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 12px 28px rgba(25, 36, 47, 0.06);
    transition:
        padding 0.22s ease,
        gap 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        max-height 0.22s ease,
        margin 0.22s ease;
}

.brand__name {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand__meta {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        max-height 0.22s ease,
        margin 0.22s ease;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.96rem;
    font-weight: 700;
    transition:
        background-color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.74);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(28, 40, 51, 0.08);
}

.topbar__cta,
.button,
.mini-link {
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
}

.topbar__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    isolation: isolate;
    overflow: visible;
}

.topbar__cta:hover {
    transform: translateY(-1px);
    background: #15202a;
}

.topbar__cta::after,
.mobile-topbar-dock__cta::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 1px solid rgba(31, 109, 140, 0);
    opacity: 0;
    pointer-events: none;
}

.topbar__cta.is-heartbeat,
.mobile-topbar-dock__cta.is-heartbeat {
    animation: cta-heartbeat 1.2s ease-in-out 1;
}

.topbar__cta.is-heartbeat::after,
.mobile-topbar-dock__cta.is-heartbeat::after {
    animation: cta-heartbeat-ring 1.2s ease-out 1;
}

@keyframes cta-heartbeat {
    0%,
    100% {
        background: var(--ink);
        box-shadow: var(--shadow-md);
    }

    14% {
        background: #111a22;
        box-shadow:
            0 0 0 0 rgba(31, 109, 140, 0),
            0 21px 44px rgba(25, 36, 47, 0.2);
    }

    28% {
        background: var(--ink);
        box-shadow: var(--shadow-md);
    }

    42% {
        background: #111a22;
        box-shadow:
            0 0 0 0 rgba(31, 109, 140, 0),
            0 19px 40px rgba(25, 36, 47, 0.17);
    }

    58% {
        background: var(--ink);
        box-shadow: var(--shadow-md);
    }
}

@keyframes cta-heartbeat-ring {
    0%,
    100% {
        opacity: 0;
        transform: scale(1);
        border-color: rgba(31, 109, 140, 0);
    }

    16% {
        opacity: 0.54;
        transform: scale(1.05);
        border-color: rgba(31, 109, 140, 0.35);
    }

    30% {
        opacity: 0;
        transform: scale(1.085);
        border-color: rgba(31, 109, 140, 0);
    }

    44% {
        opacity: 0.38;
        transform: scale(1.04);
        border-color: rgba(31, 109, 140, 0.27);
    }

    60% {
        opacity: 0;
        transform: scale(1.072);
        border-color: rgba(31, 109, 140, 0);
    }
}

.hero,
.section {
    position: relative;
}

.hero {
    padding: 84px 0 64px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 48px 0 auto;
    height: 560px;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
        radial-gradient(circle at 75% 30%, rgba(31, 109, 140, 0.16), transparent 26%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent);
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.72fr);
    gap: 42px;
    align-items: start;
}

.hero__content,
.hero__rail,
.hero-card,
.project-band,
.consultation-panel {
    min-width: 0;
}

.hero__rail {
    display: grid;
    gap: 22px;
    align-self: stretch;
    align-content: start;
    padding-top: 18px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
    content: "";
    width: 36px;
    height: 1px;
    background: currentColor;
}

.section-kicker--light {
    color: rgba(255, 255, 255, 0.76);
}

.hero h1,
.section-heading h2,
.project-band h2,
.consultation-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.section-heading h2,
.project-band h2,
.consultation-panel h2 {
    font-size: clamp(2rem, 3.8vw, 3.3rem);
}

.hero__lead,
.section-lead,
.project-band__main p,
.consultation-panel__lead,
.hero-card__block p,
.case-card p,
.service-card p,
.project-focus p,
.process-card p,
.contact-card__hint,
.footer p {
    margin: 0;
    color: var(--muted);
}

.hero__lead {
    max-width: 760px;
    margin-top: 22px;
    font-size: 1.14rem;
    line-height: 1.78;
}

.hero-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    max-width: 700px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(28, 40, 51, 0.12);
}

.hero-identity__picture {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--warm-soft);
    box-shadow: inset 0 0 0 1px rgba(28, 40, 51, 0.08);
}

.hero-identity__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-identity__body {
    display: grid;
    gap: 6px;
}

.hero-identity__name {
    margin: 0;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 800;
}

.hero-identity__role,
.hero-identity__note {
    margin: 0;
}

.hero-identity__role {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.55;
}

.hero-identity__note {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.58;
}

.hero__actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero__actions {
    margin-top: 30px;
}

.section-actions {
    margin-top: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.button:hover,
.mini-link:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: var(--ink);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.button--primary:hover {
    background: #15202a;
}

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

.button--secondary:hover {
    background: #ffffff;
    border-color: rgba(28, 40, 51, 0.3);
}

.button--light {
    background: #ffffff;
    color: var(--ink);
}

.button--ghost {
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    background: transparent;
}

.button--ghost:hover {
    border-color: rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.08);
}

.button--wide {
    width: 100%;
}

.hero-card {
    padding: 26px;
    border: 1px solid rgba(28, 40, 51, 0.12);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.signal-stream {
    position: sticky;
    top: 118px;
    align-self: start;
    padding: 8px 2px 0 4px;
}

.signal-stream__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.signal-stream__kicker {
    margin: 0 0 8px;
    color: var(--accent-strong);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.signal-stream__head h2 {
    margin: 0;
    max-width: none;
    color: var(--ink);
    font-size: clamp(1.22rem, 1.7vw, 1.55rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.signal-stream__status {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.signal-stream__status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2f8f69;
    box-shadow: 0 0 0 0 rgba(47, 143, 105, 0.28);
    animation: statusPulse 1.8s ease-out infinite;
}

.signal-stream__switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.signal-stream__tab {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: color 0.22s ease, transform 0.22s ease;
}

.signal-stream__tab:focus-visible {
    outline-offset: 6px;
}

.signal-stream__tab::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 6px;
    border-radius: 999px;
    background: transparent;
    transition: background-color 0.22s ease;
}

.signal-stream__tab:hover,
.signal-stream__tab.is-active,
.signal-stream__tab[aria-selected="true"] {
    color: var(--ink);
}

.signal-stream__tab:hover {
    transform: translateY(-1px);
}

.signal-stream__tab.is-active::after,
.signal-stream__tab[aria-selected="true"]::after {
    background: var(--accent);
}

.signal-stream__panels {
    margin-top: 16px;
}

.signal-stream__panel[hidden] {
    display: none;
}

.signal-stream__log {
    --stream-log-padding: 20px;
    --stream-axis-offset: 5px;
    --stream-dot-size: 9px;
    position: relative;
    display: grid;
    gap: 10px;
    padding-left: var(--stream-log-padding);
}

.signal-stream__log::before {
    content: "";
    position: absolute;
    left: var(--stream-axis-offset);
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(31, 109, 140, 0.28), rgba(31, 109, 140, 0.02));
}

.signal-stream__line {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    animation: streamReveal 0.4s ease both;
    animation-delay: calc(var(--line-index) * 80ms);
}

.signal-stream__line::before {
    content: "";
    position: absolute;
    left: calc(var(--stream-axis-offset) - var(--stream-log-padding) - (var(--stream-dot-size) / 2) + 0.5px);
    top: 0.72em;
    width: var(--stream-dot-size);
    height: var(--stream-dot-size);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(31, 109, 140, 0.22);
}

.signal-stream__line::after {
    content: "";
    position: absolute;
    left: calc(var(--stream-axis-offset) - var(--stream-log-padding) - (var(--stream-dot-size) / 2) + 0.5px);
    top: 0.72em;
    width: var(--stream-dot-size);
    height: var(--stream-dot-size);
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transform: scale(0.12);
    box-shadow: 0 0 0 0 rgba(31, 109, 140, 0.22);
    animation-name: streamDotPulse;
    animation-duration: calc(var(--stream-count, 5) * 1.1s);
    animation-delay: calc(var(--line-index, 0) * 1.1s);
    animation-iteration-count: infinite;
    animation-timing-function: ease-out;
}

.signal-stream__time {
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.signal-stream__event {
    color: var(--text);
    line-height: 1.5;
}

@keyframes streamReveal {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes streamDotPulse {
    0% {
        opacity: 0;
        transform: scale(0.12);
        box-shadow: 0 0 0 0 rgba(31, 109, 140, 0.24);
    }

    8% {
        opacity: 1;
        transform: scale(0.62);
        box-shadow: 0 0 0 0 rgba(31, 109, 140, 0.24);
    }

    15% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(31, 109, 140, 0);
    }

    24% {
        opacity: 0;
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(31, 109, 140, 0);
    }

    100% {
        opacity: 0;
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(31, 109, 140, 0);
    }
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(47, 143, 105, 0.28);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(47, 143, 105, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(47, 143, 105, 0);
    }
}

@keyframes chaosDotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(166, 109, 59, 0.24);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(166, 109, 59, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(166, 109, 59, 0);
    }
}

.hero-card__profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.hero-card__picture {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    overflow: hidden;
    background: var(--warm-soft);
    box-shadow: inset 0 0 0 1px rgba(28, 40, 51, 0.08);
}

.hero-card__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card__name {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 1.28rem;
    font-weight: 800;
}

.hero-card__role {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-card__block {
    padding-top: 22px;
}

.hero-card__block h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 1.08rem;
    letter-spacing: normal;
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    margin-top: 12px;
    padding-left: 20px;
    color: var(--text);
}

.check-list li:first-child {
    margin-top: 0;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warm);
    box-shadow: 0 0 0 6px rgba(166, 109, 59, 0.12);
}

.hero-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 24px;
}

.mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 700;
}

.mini-link:hover {
    border-color: rgba(28, 40, 51, 0.32);
    background: var(--bg-soft);
}

.section {
    padding: var(--section-space) 0;
}

.section > .container {
    display: grid;
    gap: var(--section-flow-gap);
}

.section--muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(240, 235, 226, 0.72));
    border-top: 1px solid rgba(28, 40, 51, 0.06);
    border-bottom: 1px solid rgba(28, 40, 51, 0.06);
}

.section--ink {
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(31, 109, 140, 0.18), transparent 30%),
        linear-gradient(140deg, #1c2833 0%, #243645 62%, #1a242d 100%);
}

.section--ink h2,
.section--ink h3,
.section--ink p {
    color: #ffffff;
}

.section-heading {
    display: grid;
    gap: 18px;
    max-width: 840px;
    margin-bottom: 0;
}

.case-grid,
.service-grid,
.process-grid,
.contact-grid {
    display: grid;
    gap: 18px;
}

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

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.process-route {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding-top: 42px;
}

.process-route::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 11px;
    height: 1px;
    background: linear-gradient(90deg, rgba(31, 109, 140, 0.24), rgba(166, 109, 59, 0.2));
}

.process-route__step {
    position: relative;
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding-right: 10px;
}

.process-route__step::before {
    content: "";
    position: absolute;
    left: 0;
    top: -36px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 0 0 2px rgba(31, 109, 140, 0.28),
        0 0 0 10px rgba(31, 109, 140, 0.08);
}

.process-route__step::after {
    content: "";
    position: absolute;
    top: -38px;
    right: -4px;
    width: 34px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14' fill='none'%3E%3Cpath d='M1 7h28' stroke='%23154f67' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M23 2l8 5-8 5' stroke='%23154f67' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 34px 14px no-repeat;
    opacity: 0.56;
}

.process-route__step:last-child::after {
    display: none;
}

.process-route__step h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.16rem;
    line-height: 1.3;
}

.process-route__step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.case-card,
.service-card,
.process-card,
.contact-card,
.project-focus,
.consultation-panel__card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-md);
}

.case-card,
.service-card,
.process-card,
.contact-card,
.project-focus {
    padding: 24px;
}

.case-card h3,
.service-card h3,
.project-focus h3,
.process-card h3,
.contact-card__value {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 1.24rem;
    line-height: 1.28;
}

.metric {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.85rem;
    font-weight: 800;
}

.case-card__result {
    margin-top: 14px;
    color: var(--ink);
    font-weight: 600;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 24px 76px;
}

.contact-card {
    display: block;
}

.contact-card__top {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.service-card__tag,
.contact-card__label {
    display: inline-flex;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(31, 109, 140, 0.14), rgba(31, 109, 140, 0.06));
    color: var(--accent-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.contact-card__icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.service-card:hover,
.contact-card:hover,
.case-card:hover,
.project-focus:hover,
.process-card:hover {
    transform: translateY(-2px);
    border-color: rgba(28, 40, 51, 0.2);
    box-shadow: 0 22px 42px rgba(25, 36, 47, 0.12);
}

.service-card p:last-child,
.case-card p:last-child,
.project-focus p:last-child,
.process-card p:last-child,
.consultation-panel__card p:last-child,
.contact-card__hint:last-child {
    margin-bottom: 0;
}

.service-card::after {
    content: "";
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(31, 109, 140, 0.16);
    border-radius: 999px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23154f67' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16L16 8'/%3E%3Cpath d='M9 8h7v7'/%3E%3C/svg%3E") center / 18px 18px no-repeat,
        linear-gradient(180deg, rgba(31, 109, 140, 0.12), rgba(31, 109, 140, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}

.service-card:hover::after,
.service-card:focus-visible::after {
    transform: translate(3px, -3px);
    border-color: rgba(31, 109, 140, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 10px 18px rgba(31, 109, 140, 0.12);
}

.service-card--accent {
    background: linear-gradient(180deg, rgba(243, 231, 216, 0.98), rgba(255, 252, 247, 0.98));
}

.chaos-lab,
.state-board {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.chaos-lab {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 24px;
    align-items: stretch;
    padding: 28px;
    background: rgba(255, 255, 255, 0.78);
}

.chaos-lab__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.chaos-lab__intro h3 {
    margin: 0;
    color: var(--ink);
}

.chaos-lab__intro p {
    margin: 6px 0 0;
    color: var(--muted);
}

.chaos-lab__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
}

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

.chaos-chip {
    width: 100%;
    min-height: 116px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    font: inherit;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease;
}

.chaos-chip strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.3;
}

.chaos-chip span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.chaos-chip:hover,
.chaos-chip:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(28, 40, 51, 0.24);
    box-shadow: 0 18px 30px rgba(25, 36, 47, 0.1);
}

.chaos-chip.is-active {
    border-color: rgba(31, 109, 140, 0.72);
    background: linear-gradient(180deg, #edf8fd 0%, #f8fcff 100%);
    box-shadow:
        0 0 0 3px rgba(31, 109, 140, 0.12),
        0 22px 34px rgba(31, 109, 140, 0.18);
}

.chaos-chip.is-active strong {
    color: var(--accent-strong);
}

.chaos-chip.is-active span {
    color: #31586b;
}

.chaos-lab__result {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(28, 40, 51, 0.96), rgba(34, 51, 63, 0.92));
}

.chaos-lab__result::before {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -72px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 109, 140, 0.28), transparent 68%);
    pointer-events: none;
}

.chaos-lab__eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.chaos-lab__match,
.chaos-lab__result p,
.chaos-lab__list li {
    position: relative;
    z-index: 1;
}

.chaos-lab__match {
    margin: 14px 0 0;
    min-height: 1.5em;
    color: #d8e8ef;
    font-weight: 700;
}

.chaos-lab__result h3 {
    position: relative;
    z-index: 1;
    margin: 10px 0 0;
    min-height: 2.25em;
    max-width: none;
    color: #ffffff;
    font-size: clamp(1.5rem, 2.4vw, 1.95rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

[data-diagnostic-text] {
    margin-top: 16px;
    min-height: 5.1em;
    color: rgba(255, 255, 255, 0.76);
}

.chaos-lab__list {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    min-height: 8.8em;
    padding: 0;
    list-style: none;
}

.chaos-lab__list li {
    position: relative;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.chaos-lab__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warm);
    box-shadow: 0 0 0 0 rgba(166, 109, 59, 0.24);
    animation: chaosDotPulse 1.9s ease-out infinite;
}

.chaos-lab__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
}

.state-board {
    padding: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(243, 239, 231, 0.82));
    transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.state-board__top {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: start;
}

.state-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(28, 40, 51, 0.08);
}

.state-switch button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.state-switch button.is-active {
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 10px 18px rgba(25, 36, 47, 0.08);
}

.state-board__mode {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.state-board__summary {
    margin: 16px 0 0;
    min-height: 5.1em;
    max-width: 600px;
    color: var(--muted);
    font-size: 1.04rem;
}

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

.state-stat,
.state-step {
    border: 1px solid var(--line);
    transition:
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        background-color 0.24s ease;
}

.state-stat {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.state-stat span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.state-stat strong {
    display: block;
    margin-top: 10px;
    min-height: 3em;
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.4;
}

.state-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.state-step {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(25, 36, 47, 0.05);
}

.state-step > * {
    position: relative;
    z-index: 1;
}

.state-step::before,
.state-step::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.state-step::before {
    right: 12px;
    bottom: 10px;
    width: 132px;
    height: 84px;
    opacity: 0.32;
    transform: translateZ(0);
}

.state-step::after {
    left: 22px;
    top: 0;
    width: 58px;
    height: 3px;
    border-radius: 999px;
}

.state-step h3 {
    margin: 0 0 12px;
    color: var(--ink);
}

.state-step p {
    margin: 0;
    min-height: 7.6em;
    color: var(--muted);
}

.state-board[data-mode="after"] {
    border-color: rgba(31, 109, 140, 0.2);
    background: linear-gradient(180deg, rgba(234, 245, 250, 0.96), rgba(255, 255, 255, 0.9));
}

.state-board[data-mode="after"] .state-board__mode {
    background: rgba(31, 109, 140, 0.16);
}

.state-board[data-mode="after"] .state-stat,
.state-board[data-mode="after"] .state-step {
    border-color: rgba(31, 109, 140, 0.16);
    box-shadow: 0 16px 28px rgba(31, 109, 140, 0.07);
}

.state-board[data-mode="before"] .state-step {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 243, 235, 0.94));
}

.state-board[data-mode="before"] .state-step::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 96' fill='none'%3E%3Cpath d='M16 50c18-28 40 19 57-6 12-18-12-31-1-44 13-15 41 1 37 20-3 16-27 19-27 37 0 19 23 29 41 18' stroke='%23a66d3b' stroke-opacity='.44' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M22 75c12-13 33-8 44-18 10-10 6-27 21-35 14-8 26 7 38 1 9-5 14-14 20-24' stroke='%23a66d3b' stroke-opacity='.26' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M35 18c10 8 17 23 8 33-10 12-31 3-32 22-1 9 5 15 14 21' stroke='%23a66d3b' stroke-opacity='.22' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.state-board[data-mode="before"] .state-step::after {
    background: linear-gradient(90deg, rgba(166, 109, 59, 0.82), rgba(166, 109, 59, 0.18));
}

.state-board[data-mode="after"] .state-step {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 252, 0.94));
}

.state-board[data-mode="after"] .state-step::before {
    opacity: 0.44;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 96' fill='none'%3E%3Ccircle cx='22' cy='22' r='5' fill='%231f6d8c' fill-opacity='.16' stroke='%231f6d8c' stroke-opacity='.28' stroke-width='2'/%3E%3Cpath d='M22 22h42' stroke='%231f6d8c' stroke-opacity='.34' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M54 16l10 6-10 6' stroke='%231f6d8c' stroke-opacity='.4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='58' cy='48' r='5' fill='%231f6d8c' fill-opacity='.16' stroke='%231f6d8c' stroke-opacity='.28' stroke-width='2'/%3E%3Cpath d='M58 48h54' stroke='%231f6d8c' stroke-opacity='.34' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M102 42l10 6-10 6' stroke='%231f6d8c' stroke-opacity='.4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='94' cy='74' r='5' fill='%231f6d8c' fill-opacity='.16' stroke='%231f6d8c' stroke-opacity='.28' stroke-width='2'/%3E%3Cpath d='M94 74h42' stroke='%231f6d8c' stroke-opacity='.34' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M126 68l10 6-10 6' stroke='%231f6d8c' stroke-opacity='.4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.state-board[data-mode="after"] .state-step::after {
    background: linear-gradient(90deg, rgba(31, 109, 140, 0.88), rgba(31, 109, 140, 0.2));
}

.project-band {
    display: grid;
    gap: 28px;
}

.project-band__main {
    max-width: 800px;
}

.project-band__main p {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.76);
    max-width: 720px;
}

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

.project-focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.project-focus h3 {
    color: #ffffff;
}

.project-focus p {
    color: rgba(255, 255, 255, 0.74);
}

.process-card {
    height: 100%;
}

.process-step {
    margin-bottom: 16px;
}

.consultation-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.consultation-panel__lead {
    margin-top: 18px;
    max-width: 720px;
}

.consultation-panel__card {
    padding: 26px;
}

.consultation-panel__card p + p {
    margin-top: 14px;
}

.consultation-panel__card .button {
    margin-top: 22px;
}

.contact-card__value {
    display: block;
}

.contact-card__hint {
    display: block;
}

.footer {
    padding: 30px 0 46px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid rgba(28, 40, 51, 0.1);
}

.footer a {
    color: var(--ink);
    font-weight: 700;
}

section[id] {
    scroll-margin-top: 104px;
}

@media (max-width: 1080px) {
    .topbar__inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

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

    .nav-links {
        order: 3;
        flex-basis: 100%;
    }

    .hero__grid,
    .consultation-panel,
    .chaos-lab,
    .state-board__top {
        grid-template-columns: 1fr;
    }

    .process-grid,
    .project-focus-grid,
    .state-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-route {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 32px;
        padding-top: 22px;
    }

    .process-route::before,
    .process-route__step::after {
        display: none;
    }

    .process-route__step::before {
        top: -6px;
    }

    .signal-stream {
        position: static;
        top: auto;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 28px), 100%);
    }

    .topbar {
        position: static;
        top: auto;
        transition: none;
    }

    .topbar__inner {
        min-height: 0;
        gap: 14px;
        padding: 12px 10px;
        background: rgba(248, 245, 239, 0.82);
        transition: none;
    }

    .brand,
    .nav-links {
        overflow: hidden;
        transform-origin: top center;
        transition: none;
    }

    .nav-links {
        gap: 10px 14px;
        max-height: 120px;
    }

    .nav-links a {
        font-size: 0.92rem;
    }

    .topbar__cta {
        width: 72%;
        max-width: 100%;
        flex-basis: 72%;
        min-height: 46px;
        margin: 0 auto;
        transition: none;
    }

    .brand {
        max-height: 64px;
        transform: none;
        opacity: 1;
    }

    .topbar.is-condensed .brand,
    .topbar.is-condensed .nav-links {
        pointer-events: none;
    }

    .mobile-topbar-dock {
        position: fixed;
        top: 10px;
        left: 0;
        right: 0;
        z-index: 80;
        opacity: 0;
        transform: translateY(-18px);
        pointer-events: none;
    }

    .mobile-topbar-dock.is-visible {
        pointer-events: auto;
    }

    .mobile-topbar-dock__inner {
        width: min(calc(100% - 28px), 100%);
        margin: 0 auto;
        min-height: 66px;
        padding: 10px;
        border: 1px solid transparent;
        border-radius: 22px;
        background: transparent;
        box-shadow: none;
    }

    .mobile-topbar-dock__cta {
        display: inline-flex;
        position: fixed;
        align-items: center;
        justify-content: center;
        width: auto;
        min-height: 46px;
        padding: 0 18px;
        border-radius: 999px;
        background: var(--ink);
        color: #ffffff;
        font-weight: 700;
        white-space: nowrap;
        box-shadow: var(--shadow-md);
        margin: 0;
        transition: none;
        isolation: isolate;
        overflow: visible;
    }

    .hero {
        padding: 54px 0 44px;
    }

    .hero h1,
    .section-heading h2,
    .project-band h2,
    .consultation-panel h2 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .hero__lead {
        font-size: 1rem;
    }

    .hero__rail {
        padding-top: 0;
    }

    .case-grid,
    .service-grid,
    .process-grid,
    .contact-grid,
    .project-focus-grid,
    .chaos-lab__grid,
    .state-stats,
    .state-flow {
        grid-template-columns: 1fr;
    }

    .process-route {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0 0 0 28px;
    }

    .process-route::before {
        display: block;
        left: 5px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, rgba(31, 109, 140, 0.24), rgba(166, 109, 59, 0.18));
    }

    .process-route__step {
        padding-right: 0;
    }

    .process-route__step::before {
        left: -28px;
        top: 0.48em;
    }

    .hero-card,
    .case-card,
    .service-card,
    .process-card,
    .contact-card,
    .project-focus,
    .consultation-panel__card {
        padding: 20px;
        border-radius: 20px;
    }

    .signal-stream {
        padding: 4px 0 0;
    }

    .hero-identity {
        grid-template-columns: 68px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        margin-top: 22px;
        padding-top: 18px;
    }

    .hero-identity__picture {
        width: 68px;
        height: 68px;
    }

    .signal-stream__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .signal-stream__log {
        --stream-log-padding: 18px;
    }

    .signal-stream__line {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
    }

    .chaos-lab,
    .state-board {
        padding: 20px;
        border-radius: 20px;
    }

    .state-board__summary,
    .state-stat strong,
    .state-step p {
        min-height: 0;
    }

    .state-step::before {
        width: 108px;
        height: 68px;
        opacity: 0.26;
    }

    .service-card {
        padding: 20px 20px 68px;
    }

    .service-card::after {
        left: 20px;
        bottom: 20px;
    }

    .chaos-chip {
        min-height: 0;
    }

    .chaos-lab__result {
        padding: 22px;
        border-radius: 20px;
    }

    .state-switch {
        width: 100%;
    }

    .state-switch button {
        padding: 0 12px;
    }

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

    .hero-card__picture {
        width: 88px;
        height: 88px;
    }

    :root {
        --section-space: 56px;
        --section-flow-gap: 24px;
    }

    .footer__inner {
        flex-direction: column;
    }

    section[id] {
        scroll-margin-top: 142px;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
