:root {
    color-scheme: dark;
    --color-background: #07100f;
    --color-background-deep: #030908;
    --color-panel: rgba(13, 24, 22, 0.92);
    --color-panel-solid: #0d1816;
    --color-panel-raised: #111f1c;
    --color-border: rgba(190, 221, 208, 0.15);
    --color-border-strong: rgba(190, 221, 208, 0.3);
    --color-text: #eff7f3;
    --color-text-soft: #c0cec8;
    --color-muted: #83938d;
    --color-green: #68efad;
    --color-green-rgb: 104, 239, 173;
    --color-amber: #f2b85b;
    --color-blue: #6c98ff;
    --color-cyan: #57d7e9;
    --color-cyan-rgb: 87, 215, 233;
    --color-violet: #aa91f5;
    --ambient-primary: #68efad;
    --ambient-secondary: #57d7e9;
    --section-accent: #68efad;
    --scroll-energy: 0;
    --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    --font-sans: Inter, "Avenir Next", "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    --container: 1180px;
    --container-wide: 1360px;
    --header-height: 92px;
    --radius-small: 10px;
    --radius-medium: 18px;
    --radius-large: 28px;
    --shadow-panel: 0 30px 80px rgba(0, 0, 0, 0.28);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-system: cubic-bezier(0.22, 0.78, 0.18, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    background: var(--color-background);
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 48% -15%, rgba(var(--color-green-rgb), 0.08), transparent 34rem),
        var(--color-background);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

body[data-active-section="about"] {
    --ambient-primary: #68efad;
    --ambient-secondary: #3cc9bf;
    --section-accent: #3cc9bf;
}

body[data-active-section="projects"] {
    --ambient-primary: #f2b85b;
    --ambient-secondary: #57d7e9;
    --section-accent: #f2b85b;
}

body[data-active-section="stack"] {
    --ambient-primary: #aa91f5;
    --ambient-secondary: #6c98ff;
    --section-accent: #6c98ff;
}

body[data-active-section="experience"] {
    --ambient-primary: #57d7e9;
    --ambient-secondary: #6c98ff;
    --section-accent: #57d7e9;
}

body[data-active-section="education"] {
    --ambient-primary: #6c98ff;
    --ambient-secondary: #aa91f5;
    --section-accent: #6c98ff;
}

body[data-active-section="contact"] {
    --ambient-primary: #68efad;
    --ambient-secondary: #6c98ff;
    --section-accent: #eff7f3;
}

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

button {
    color: inherit;
    font: inherit;
}

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

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

::selection {
    background: rgba(var(--color-green-rgb), 0.28);
    color: var(--color-text);
}

:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--radius-small);
    background: var(--color-text);
    color: var(--color-background);
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

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

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.container-wide {
    width: min(calc(100% - 48px), var(--container-wide));
    margin-inline: auto;
}

.system-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    isolation: isolate;
    background: var(--color-background);
    pointer-events: none;
}

.system-background__ambient,
.system-background__field,
.system-background__grid,
.system-background__rails,
.system-background__coordinates,
.system-background__safe-mask {
    position: absolute;
    inset: 0;
}

.system-background__ambient {
    z-index: 0;
    opacity: calc(0.48 + var(--scroll-energy) * 0.16);
    background:
        radial-gradient(circle at 76% 18%, color-mix(in srgb, var(--ambient-secondary) 11%, transparent), transparent 31rem),
        radial-gradient(circle at 18% 78%, color-mix(in srgb, var(--ambient-primary) 8%, transparent), transparent 37rem);
    transition: background 900ms ease, opacity 400ms ease;
}

.system-background__field {
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.system-background__grid {
    z-index: 2;
    inset: 0;
    opacity: calc(0.56 + var(--scroll-energy) * 0.12);
    background-image:
        linear-gradient(rgba(182, 220, 204, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(182, 220, 204, 0.045) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.7) 80%, transparent 100%);
    transition: opacity 240ms ease;
}

.system-background__rails {
    z-index: 3;
    inset-inline: max(20px, calc((100vw - var(--container-wide)) / 2));
}

.system-background__rails span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    overflow: hidden;
    background: linear-gradient(to bottom, transparent, rgba(182, 220, 204, 0.055) 12%, rgba(182, 220, 204, 0.035) 88%, transparent);
}

.system-background__rails span:nth-child(1) { left: 0; }
.system-background__rails span:nth-child(2) { left: 20%; }
.system-background__rails span:nth-child(3) { left: 40%; }
.system-background__rails span:nth-child(4) { left: 60%; }
.system-background__rails span:nth-child(5) { left: 80%; }
.system-background__rails span:nth-child(6) { right: 0; }

.system-background__coordinates {
    z-index: 4;
}

.coordinate-fragment {
    position: absolute;
    opacity: 0.23;
    color: var(--ambient-secondary);
}

.coordinate-fragment--ring {
    top: 16%;
    right: 7%;
    width: 54px;
    height: 54px;
    border: 1px solid currentColor;
    border-radius: 50%;
    clip-path: polygon(0 0, 58% 0, 58% 100%, 0 100%);
}

.coordinate-fragment--cross {
    top: 64%;
    left: 5%;
    width: 23px;
    height: 23px;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
}

.coordinate-fragment--route {
    right: 13%;
    bottom: 11%;
    width: 84px;
    height: 38px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
}

.coordinate-fragment--square {
    top: 42%;
    left: 79%;
    width: 7px;
    height: 7px;
    border: 1px solid currentColor;
    transform: rotate(45deg);
}

.system-background__burst {
    --burst-x: 70vw;
    --burst-y: 52vh;
    --burst-color: var(--section-accent);
    position: fixed;
    top: var(--burst-y);
    left: var(--burst-x);
    z-index: 5;
    width: 1px;
    height: 1px;
    color: var(--burst-color);
}

.system-background__burst span,
.system-background__burst b,
.system-background__burst i {
    position: absolute;
    opacity: 0;
}

.system-background__burst span {
    top: -38px;
    left: -38px;
    width: 76px;
    height: 76px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.system-background__burst b {
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 18px currentColor;
}

.system-background__burst i {
    top: 0;
    left: 0;
    width: 68px;
    height: 1px;
    background: linear-gradient(90deg, currentColor, transparent);
    transform-origin: left;
}

.system-background__burst i:nth-of-type(1) { --line-rotation: 0deg; }
.system-background__burst i:nth-of-type(2) { --line-rotation: 90deg; }
.system-background__burst i:nth-of-type(3) { --line-rotation: 180deg; }
.system-background__burst i:nth-of-type(4) { --line-rotation: 270deg; }

body.is-section-activating .system-background__burst span {
    animation: section-ring-burst 520ms var(--ease-out);
}

body.is-section-activating .system-background__burst b {
    animation: section-node-burst 420ms var(--ease-out);
}

body.is-section-activating .system-background__burst i {
    animation: section-line-burst 480ms var(--ease-out);
}

.system-background__safe-mask {
    z-index: 6;
    background:
        radial-gradient(ellipse at 30% 19%, rgba(7, 16, 15, 0.48), transparent 33%),
        radial-gradient(ellipse at 50% 54%, rgba(7, 16, 15, 0.18), transparent 54%);
}

@keyframes section-ring-burst {
    0% { opacity: 0; transform: scale(0.28); }
    28% { opacity: 0.55; }
    100% { opacity: 0; transform: scale(1.6); }
}

@keyframes section-line-burst {
    0% { opacity: 0; transform: rotate(var(--line-rotation, 0deg)) scaleX(0); }
    28% { opacity: 0.65; }
    100% { opacity: 0; transform: rotate(var(--line-rotation, 0deg)) scaleX(1); }
}

@keyframes section-node-burst {
    0% { opacity: 0; transform: scale(0.4); }
    35% { opacity: 0.9; transform: scale(1.35); }
    100% { opacity: 0; transform: scale(0.6); }
}

main,
.portfolio-footer {
    position: relative;
    z-index: 1;
}

.route-progress {
    position: fixed;
    top: 50%;
    right: 22px;
    z-index: 40;
    display: grid;
    gap: 0;
    transform: translateY(-50%);
}

.route-progress__track {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 15px;
    width: 1px;
    background: rgba(190, 221, 208, 0.15);
}

.route-progress__fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--color-green), var(--color-cyan));
    transform: scaleY(var(--route-progress, 0));
    transform-origin: top;
}

.route-progress a {
    position: relative;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
}

.route-progress a > span {
    width: 11px;
    height: 11px;
    border: 1px solid rgba(190, 221, 208, 0.28);
    border-radius: 50%;
    background: var(--color-background);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.route-progress a::after {
    position: absolute;
    top: 50%;
    right: 18px;
    padding: 3px 7px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    opacity: 0;
    background: var(--color-panel-solid);
    color: var(--color-text-soft);
    content: attr(aria-label);
    font: 10px/1.2 var(--font-mono);
    white-space: nowrap;
    transform: translate(5px, -50%);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.route-progress a:hover::after,
.route-progress a:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.route-progress a[aria-current="true"] {
    transform: none;
}

.route-progress a[aria-current="true"] > span {
    border-color: var(--color-green);
    background: var(--color-green);
    box-shadow: 0 0 0 5px rgba(var(--color-green-rgb), 0.1);
    transform: scale(1.15);
}

.portfolio-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: height 350ms var(--ease-out), background 350ms ease, border-color 350ms ease, transform 350ms var(--ease-out);
}

.portfolio-header.is-scrolled {
    border-color: rgba(190, 221, 208, 0.09);
    background: rgba(7, 16, 15, 0.96);
}

body.is-resizing .system-background__field {
    animation: none !important;
    opacity: 0.62;
}

body.is-resizing .system-background__ambient,
body.is-resizing .system-background__grid,
body.is-resizing .system-background__coordinates,
body.is-scroll-active .system-background__ambient,
body.is-scroll-active .system-background__grid,
body.is-scroll-active .system-background__coordinates {
    transform: none;
    transition: none;
}

body.is-resizing .architecture-stage,
body.is-resizing .project-card,
body.is-scroll-active .architecture-stage,
body.is-scroll-active .project-card {
    transform: none;
    transition: none;
}

body[data-scroll-direction="down"] .portfolio-header.is-scrolled {
    height: 68px;
}

body[data-scroll-direction="up"] .portfolio-header.is-scrolled {
    height: 82px;
}

.portfolio-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.portfolio-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: max-content;
    padding-left: 19px;
}

.portfolio-brand::before {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 1px;
    content: "";
    background: linear-gradient(transparent, var(--color-green), transparent);
    box-shadow: 0 0 8px rgba(var(--color-green-rgb), 0.22);
}

.portfolio-brand::after {
    position: absolute;
    top: 50%;
    left: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: var(--color-green);
    box-shadow: 0 0 0 5px rgba(var(--color-green-rgb), 0.07);
    transform: translateY(-50%);
    transition: box-shadow 180ms ease;
}

.portfolio-brand:hover::after {
    box-shadow: 0 0 0 8px rgba(var(--color-green-rgb), 0.05);
}

.portfolio-brand__identity {
    display: grid;
    gap: 1px;
}

.portfolio-brand__identity strong {
    font-family: var(--font-display);
    font-size: 15px;
    line-height: 1.2;
}

.portfolio-brand__identity small {
    color: var(--color-muted);
    font: 10px/1.2 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-panel,
.nav-links {
    display: flex;
    align-items: center;
}

.nav-panel {
    gap: 24px;
}

.nav-links {
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    position: relative;
    padding-block: 10px;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 650;
    transition: color 180ms ease;
}

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 1px;
    content: "";
    background: var(--color-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms var(--ease-out);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
    color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-panel);
}

.nav-toggle::before,
.nav-toggle::after {
    position: absolute;
    left: 11px;
    width: 20px;
    height: 1px;
    content: "";
    background: currentColor;
    transition: transform 180ms ease, top 180ms ease;
}

.nav-toggle::before { top: 17px; }
.nav-toggle::after { top: 25px; }
.nav-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 24px;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms var(--ease-out);
}

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

.button:active {
    transform: translateY(0) scale(0.98);
}

.button--primary,
.button--telegram {
    border-color: var(--color-green);
    background: var(--color-green);
    color: #06120e;
}

.button--primary:hover,
.button--telegram:hover {
    background: #8af5c1;
}

.button--secondary:hover {
    border-color: var(--color-text-soft);
    background: rgba(255, 255, 255, 0.035);
}

.button--small {
    min-height: 44px;
    padding-inline: 20px;
}

.button__arrow {
    font-family: var(--font-mono);
    font-size: 17px;
    transition: transform 220ms var(--ease-out);
}

.button:hover .button__arrow {
    transform: translateX(4px);
}

.system-section {
    position: relative;
    min-height: 0;
    scroll-margin-top: 80px;
}

.section-shell {
    padding-block: clamp(100px, 9vw, 150px);
}

.section-coordinate {
    position: absolute;
    top: 46%;
    left: max(16px, calc((100vw - var(--container-wide)) / 2 - 62px));
    color: rgba(190, 221, 208, 0.25);
    font: 10px/1 var(--font-mono);
    letter-spacing: 0.12em;
    writing-mode: vertical-rl;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 60px;
}

.section-heading--split {
    display: grid;
    max-width: none;
    grid-template-columns: 0.8fr 1fr;
    align-items: end;
    gap: 60px;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-family: var(--font-display);
    font-size: clamp(38px, 4.7vw, 68px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.section-heading > p:not(.section-kicker) {
    max-width: 590px;
    margin: 0;
    color: var(--color-text-soft);
    font-size: 18px;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--color-green);
    font: 700 11px/1.2 var(--font-mono);
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

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

.section-bridge {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 3;
    width: 1px;
    height: 74px;
    background: rgba(190, 221, 208, 0.13);
}

.section-bridge::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(var(--color-green), var(--color-cyan));
    transform: scaleY(var(--section-progress, 0));
    transform-origin: top;
}

body[data-scroll-direction="up"] .section-bridge::after {
    transform-origin: bottom;
}

.section-bridge::before {
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: var(--color-green);
    box-shadow: 0 0 0 7px rgba(var(--color-green-rgb), 0.08);
}

.section-bridge > span {
    position: absolute;
    top: 0;
    width: 38px;
    height: 1px;
    opacity: 0.5;
    background: linear-gradient(90deg, transparent, var(--section-accent));
}

.section-bridge > span:first-child {
    right: 1px;
}

.section-bridge > span:last-child {
    left: 1px;
    transform: scaleX(-1);
}

.section-bridge > i {
    position: absolute;
    top: calc(var(--section-progress, 0) * 100%);
    left: 50%;
    z-index: 2;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--section-accent);
    box-shadow: 0 0 10px var(--section-accent);
    transform: translate(-50%, -50%);
}

.choreography-item {
    opacity: 1;
    transition:
        opacity 700ms var(--ease-out),
        transform 760ms var(--ease-out);
}

.motion-ready .choreography-item {
    opacity: 1;
}

[data-enter-direction="down"].choreography-item {
    transform: translate3d(0, 26px, 0);
}

[data-enter-direction="up"].choreography-item {
    transform: translate3d(0, -22px, 0);
}

.choreography-item.is-choreography-visible {
    opacity: 1;
    transform: none;
}

/* Hero */
.hero {
    min-height: max(820px, 100svh);
    padding-top: var(--header-height);
}

.hero::after {
    position: absolute;
    right: 0;
    bottom: 9%;
    width: 32vw;
    height: 32vw;
    border: 1px solid rgba(var(--color-green-rgb), 0.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hero__frame {
    display: grid;
    min-height: calc(max(820px, 100svh) - var(--header-height));
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 0.9fr);
    align-items: center;
    gap: clamp(48px, 5vw, 84px);
    padding-block: 74px 84px;
}

.hero__content {
    position: relative;
    z-index: 4;
}

.identity-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--color-green);
    font: 700 11px/1.3 var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.identity-line__signal {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 0 7px rgba(var(--color-green-rgb), 0.1);
}

.identity-line__code {
    color: var(--color-muted);
}

.hero__title {
    max-width: 760px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(60px, 6.25vw, 108px);
    font-weight: 700;
    line-height: 0.87;
    letter-spacing: -0.068em;
}

.hero__title-line {
    display: block;
}

@media (min-width: 641px) {
    .hero__title-line {
        white-space: nowrap;
    }
}

.hero__title-accent {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-text);
    text-shadow: 0 0 60px rgba(var(--color-green-rgb), 0.07);
}

.hero__lead {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--color-text-soft);
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.technology-modules {
    display: grid;
    max-width: 650px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 32px;
}

.technology-module {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 86px;
    padding: 25px 14px 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    background:
        linear-gradient(90deg, var(--module-color, var(--color-green)) 0 16px, transparent 16px) top left / 26px 1px no-repeat,
        linear-gradient(180deg, var(--module-color, var(--color-green)) 0 16px, transparent 16px) top left / 1px 26px no-repeat,
        rgba(8, 18, 16, 0.74);
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px transparent;
    transform: perspective(500px) translateZ(0);
    transition: border-color 220ms ease, background 220ms ease, transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.technology-module::before {
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -28%;
    width: 24%;
    content: "";
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--module-color) 18%, transparent), transparent);
    transform: skewX(-18deg) translateX(-240%);
    transition: transform 520ms var(--ease-out);
}

.technology-module::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    background: var(--module-color, var(--color-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms var(--ease-out);
}

.technology-module:hover,
.technology-module.is-active {
    border-color: color-mix(in srgb, var(--module-color, var(--color-green)) 48%, transparent);
    background: rgba(17, 31, 28, 0.9);
    box-shadow: inset 0 0 24px color-mix(in srgb, var(--module-color) 5%, transparent);
    transform: perspective(500px) translateY(-3px) rotateX(1.5deg);
}

.technology-module:hover::before,
.technology-module:focus-visible::before {
    transform: skewX(-18deg) translateX(620%);
}

.technology-module.is-active::after {
    transform: scaleX(1);
}

.technology-module:nth-child(1) { --module-color: var(--color-green); }
.technology-module:nth-child(2) { --module-color: var(--color-cyan); }
.technology-module:nth-child(3) { --module-color: var(--color-amber); }
.technology-module:nth-child(4) { --module-color: var(--color-blue); }

.technology-module__index {
    position: absolute;
    top: 11px;
    left: 14px;
    color: var(--color-muted);
    font: 10px/1 var(--font-mono);
}

.technology-module strong {
    display: block;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.technology-module > span:not(.technology-module__index):not(.technology-module__signal) {
    display: block;
    margin-top: 2px;
    color: var(--module-color);
    font: 10px/1.3 var(--font-mono);
}

.technology-module small {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: var(--color-muted);
    font: 9px/1.4 var(--font-mono);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.technology-module__signal {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--module-color);
}

.architecture-stage {
    --stage-rotate-x: 0deg;
    --stage-rotate-y: 0deg;
    --stage-shift-x: 0px;
    --stage-shift-y: 0px;
    position: relative;
    min-height: 580px;
    border: 1px solid rgba(190, 221, 208, 0.16);
    border-radius: var(--radius-large);
    background:
        linear-gradient(135deg, rgba(var(--color-green-rgb), 0.035), transparent 48%),
        rgba(8, 18, 16, 0.66);
    box-shadow: var(--shadow-panel);
    transform: perspective(1100px) rotateX(var(--stage-rotate-x)) rotateY(var(--stage-rotate-y)) translate3d(var(--stage-shift-x), var(--stage-shift-y), 0);
    transform-style: preserve-3d;
    transition: transform 220ms ease-out, border-color 300ms ease;
}

.architecture-stage.is-pointer-active {
    will-change: transform;
}

.motion-ready:not(.is-hero-ready) .system-background__grid,
.motion-ready:not(.is-hero-ready) .identity-line,
.motion-ready:not(.is-hero-ready) .hero__title-line,
.motion-ready:not(.is-hero-ready) .hero__lead,
.motion-ready:not(.is-hero-ready) .hero__actions,
.motion-ready:not(.is-hero-ready) .technology-module,
.motion-ready:not(.is-hero-ready) .architecture-stage {
    opacity: 0;
}

.motion-ready:not(.is-hero-ready) .system-background__grid {
    transform: scale(1.03);
}

.motion-ready:not(.is-hero-ready) .identity-line {
    clip-path: inset(0 100% 0 0);
}

.motion-ready:not(.is-hero-ready) .hero__title-line {
    clip-path: inset(0 100% 0 0);
    transform: translateX(-18px);
}

.motion-ready:not(.is-hero-ready) .architecture-stage {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transform: perspective(1100px) rotateY(-3deg) translateX(18px);
}

.motion-ready.is-hero-ready .system-background__grid {
    transition: opacity 360ms ease, transform 700ms var(--ease-out);
}

.motion-ready.is-hero-ready .identity-line {
    animation: hero-mask-reveal 520ms 120ms var(--ease-out) backwards;
}

.motion-ready.is-hero-ready .hero__title-line {
    animation: hero-title-enter 680ms 220ms var(--ease-out) backwards;
}

.motion-ready.is-hero-ready .hero__title-line:nth-child(2) {
    animation-delay: 330ms;
}

.motion-ready.is-hero-ready .hero__lead,
.motion-ready.is-hero-ready .hero__actions {
    animation: hero-content-enter 620ms var(--ease-out) backwards;
}

.motion-ready.is-hero-ready .hero__lead { animation-delay: 470ms; }
.motion-ready.is-hero-ready .hero__actions { animation-delay: 590ms; }

.motion-ready.is-hero-ready .architecture-stage {
    animation: hero-stage-build 720ms 310ms var(--ease-out) backwards;
}

.motion-ready.is-hero-ready .architecture-node {
    animation: hero-node-enter 500ms var(--ease-out) backwards;
}

.motion-ready.is-hero-ready .architecture-node--client { animation-delay: 500ms; }
.motion-ready.is-hero-ready .architecture-node--api { animation-delay: 570ms; }
.motion-ready.is-hero-ready .architecture-node--spring { animation-delay: 640ms; }
.motion-ready.is-hero-ready .architecture-node--kafka { animation-delay: 710ms; }
.motion-ready.is-hero-ready .architecture-node--postgres { animation-delay: 760ms; }
.motion-ready.is-hero-ready .architecture-node--redis { animation-delay: 810ms; }

.motion-ready.is-hero-ready .circuit-path {
    animation: hero-route-build 760ms 560ms var(--ease-out) backwards;
}

.motion-ready.is-hero-ready .technology-module {
    animation: hero-module-enter 520ms var(--ease-out) backwards;
}

.motion-ready.is-hero-ready .technology-module:nth-child(1) { animation-delay: 790ms; }
.motion-ready.is-hero-ready .technology-module:nth-child(2) { animation-delay: 850ms; }
.motion-ready.is-hero-ready .technology-module:nth-child(3) { animation-delay: 910ms; }
.motion-ready.is-hero-ready .technology-module:nth-child(4) { animation-delay: 970ms; }

@keyframes hero-mask-reveal {
    from { opacity: 0; clip-path: inset(0 100% 0 0); }
    to { opacity: 1; clip-path: inset(0); }
}

@keyframes hero-content-enter {
    from { opacity: 0; transform: translate3d(-14px, 8px, 0); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-title-enter {
    from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-18px); }
    to { opacity: 1; clip-path: inset(0); transform: none; }
}

@keyframes hero-stage-build {
    from { opacity: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transform: perspective(1100px) rotateY(-3deg) translateX(18px); }
    to { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: perspective(1100px) rotateX(var(--stage-rotate-x)) rotateY(var(--stage-rotate-y)); }
}

@keyframes hero-node-enter {
    from { opacity: 0; transform: translateZ(8px) scale(0.9); }
    to { opacity: 1; transform: translateZ(28px) scale(1); }
}

@keyframes hero-route-build {
    from { opacity: 0; stroke-dashoffset: 90; }
    to { opacity: 0.62; stroke-dashoffset: 0; }
}

@keyframes hero-module-enter {
    from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(10px); }
    to { opacity: 1; clip-path: inset(0); transform: none; }
}

.architecture-stage::before {
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(190, 221, 208, 0.07);
    border-radius: 20px;
    content: "";
    transform: translateZ(-18px);
}

.architecture-stage:hover {
    border-color: rgba(var(--color-green-rgb), 0.3);
}

.architecture-stage__plane {
    position: absolute;
    pointer-events: none;
}

.architecture-stage__plane--deep {
    inset: 11% 8%;
    border: 1px solid rgba(var(--color-green-rgb), 0.09);
    border-radius: 50%;
    transform: translateZ(-44px) rotateX(68deg);
}

.architecture-stage__plane--middle {
    inset: 20% 16%;
    border: 1px dashed rgba(var(--color-cyan-rgb), 0.12);
    transform: translateZ(-22px) rotate(15deg);
}

.architecture-circuit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: translateZ(8px);
}

.circuit-frame {
    fill: none;
    stroke: rgba(190, 221, 208, 0.08);
    stroke-width: 1;
}

.circuit-path {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 7 8;
    opacity: 0.62;
    transition: opacity 220ms ease, stroke-width 220ms ease, filter 220ms ease;
}

.circuit-path--request { stroke: var(--color-green); }
.circuit-path--events { stroke: var(--color-amber); }
.circuit-path--data { stroke: var(--color-blue); }
.circuit-path--cache { stroke: var(--color-cyan); }

.architecture-stage[data-active-node="spring"] .circuit-path--request,
.architecture-stage[data-active-node="api"] .circuit-path--request,
.architecture-stage[data-active-node="client"] .circuit-path--request,
.architecture-stage[data-active-node="kafka"] .circuit-path--events,
.architecture-stage[data-active-node="postgres"] .circuit-path--data,
.architecture-stage[data-active-node="redis"] .circuit-path--cache {
    opacity: 1;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 6px currentColor);
}

.data-packet {
    filter: drop-shadow(0 0 5px currentColor);
}

.data-packet--request { fill: var(--color-green); color: var(--color-green); }
.data-packet--event { fill: var(--color-amber); color: var(--color-amber); }
.data-packet--data { fill: var(--color-blue); color: var(--color-blue); }

.architecture-node {
    position: absolute;
    z-index: 4;
    display: grid;
    min-width: 116px;
    min-height: 72px;
    place-content: center;
    gap: 4px;
    padding: 11px 16px;
    border: 1px solid var(--color-border-strong);
    border-radius: 13px;
    background: rgba(11, 24, 21, 0.94);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
    font: 700 13px/1.2 var(--font-mono);
    text-align: left;
    cursor: pointer;
    transform: translateZ(28px);
    transition: border-color 200ms ease, color 200ms ease, transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.architecture-node:hover,
.architecture-node.is-active {
    border-color: var(--node-color, var(--color-green));
    color: var(--node-color, var(--color-green));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px color-mix(in srgb, var(--node-color, var(--color-green)) 16%, transparent);
    transform: translateZ(42px) translateY(-3px);
}

.architecture-node__number {
    color: var(--color-muted);
    font-size: 9px;
    font-weight: 500;
}

.architecture-node--client { top: 7%; left: 40%; --node-color: var(--color-text); }
.architecture-node--api { top: 29%; left: 10%; --node-color: var(--color-green); }
.architecture-node--spring { top: 36%; left: 41%; --node-color: var(--color-green); }
.architecture-node--kafka { bottom: 17%; left: 11%; --node-color: var(--color-amber); }
.architecture-node--postgres { right: 10%; bottom: 17%; --node-color: var(--color-blue); }
.architecture-node--redis { top: 25%; right: 7%; --node-color: var(--color-cyan); }

.architecture-console {
    position: absolute;
    right: 26px;
    bottom: 22px;
    left: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font: 10px/1.4 var(--font-mono);
    letter-spacing: 0.05em;
}

.architecture-console strong {
    color: var(--color-green);
    font-weight: 500;
    text-align: right;
}

/* About */
.about__layout {
    display: grid;
    grid-template-columns: 0.76fr 1.24fr;
    gap: clamp(48px, 6vw, 84px);
    align-items: center;
}

.about__copy {
    max-width: 460px;
    padding: 26px 0 26px 24px;
    border-left: 1px solid var(--color-border-strong);
}

.about__lead {
    margin: 0 0 20px;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.about__copy p:not(.about__lead) {
    margin: 0 0 15px;
    color: var(--color-text-soft);
}

.about__availability {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 18px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.availability-fact {
    display: grid;
    gap: 6px;
}

.availability-fact small {
    color: var(--color-muted);
    font: 9px/1 var(--font-mono);
    letter-spacing: 0.11em;
}

.availability-fact strong {
    color: var(--color-text-soft);
    font-size: 12px;
    font-weight: 700;
}

.availability-fact--status strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-green);
}

.availability-fact--status strong span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 0 6px rgba(var(--color-green-rgb), 0.08);
}

.profile-map {
    --active-profile-color: var(--color-amber);
    position: relative;
    min-height: 0;
    aspect-ratio: 700 / 600;
    align-self: start;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background:
        radial-gradient(circle at 50% 43.33%, color-mix(in srgb, var(--active-profile-color) 8%, transparent), transparent 30%),
        rgba(9, 19, 17, 0.7);
    box-shadow: var(--shadow-panel);
}

.profile-map__connections {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.profile-map__connections path {
    fill: none;
    stroke: rgba(190, 221, 208, 0.2);
    stroke-width: 1.2;
    stroke-dasharray: 6 8;
    opacity: 0.58;
    transition: stroke 260ms ease, stroke-width 260ms ease, opacity 260ms ease, filter 260ms ease;
}

.profile-map[data-active-profile="core"] { --active-profile-color: var(--color-green); }
.profile-map[data-active-profile="spring"] { --active-profile-color: color-mix(in srgb, var(--color-green) 58%, var(--color-cyan)); }
.profile-map[data-active-profile="data"] { --active-profile-color: var(--color-blue); }
.profile-map[data-active-profile="testing"] { --active-profile-color: var(--color-cyan); }
.profile-map[data-active-profile="infra"] { --active-profile-color: color-mix(in srgb, var(--color-violet) 70%, var(--color-cyan)); }
.profile-map[data-active-profile="events"] { --active-profile-color: var(--color-amber); }

.profile-map[data-active-profile="core"] path[data-profile-route="core"] { stroke: var(--color-green); }
.profile-map[data-active-profile="spring"] path[data-profile-route="spring"] { stroke: color-mix(in srgb, var(--color-green) 58%, var(--color-cyan)); }
.profile-map[data-active-profile="data"] path[data-profile-route="data"] { stroke: var(--color-blue); }
.profile-map[data-active-profile="testing"] path[data-profile-route="testing"] { stroke: var(--color-cyan); }
.profile-map[data-active-profile="infra"] path[data-profile-route="infra"] { stroke: color-mix(in srgb, var(--color-violet) 70%, var(--color-cyan)); }
.profile-map[data-active-profile="events"] path[data-profile-route="events"] { stroke: var(--color-amber); }

.profile-map[data-active-profile] path[data-profile-route].is-active {
    stroke-width: 2;
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--active-profile-color));
}

.profile-map__core,
.profile-node {
    position: absolute;
    z-index: 2;
}

.profile-map__core {
    top: 43.33%;
    left: 50%;
    display: grid;
    width: 140px;
    height: 140px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--active-profile-color) 48%, transparent);
    border-radius: 50%;
    background: rgba(11, 26, 21, 0.95);
    box-shadow: 0 0 0 18px color-mix(in srgb, var(--active-profile-color) 3%, transparent), 0 0 34px color-mix(in srgb, var(--active-profile-color) 7%, transparent);
    font: 700 14px/1.3 var(--font-mono);
    text-align: center;
    transform: translate(-50%, -50%);
    transition: border-color 260ms ease, box-shadow 260ms ease;
}

.profile-map__core span {
    color: var(--active-profile-color);
    font-size: 10px;
}

.profile-node {
    --profile-color: var(--color-green);
    display: grid;
    width: 128px;
    min-width: 128px;
    min-height: 52px;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-panel-solid);
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: border-color 200ms ease, transform 220ms var(--ease-out), background 200ms ease, box-shadow 200ms ease;
}

.profile-node span {
    color: var(--color-muted);
    font: 9px/1 var(--font-mono);
}

.profile-node strong {
    font: 700 11px/1 var(--font-mono);
    letter-spacing: 0.04em;
}

.profile-node:hover,
.profile-node.is-active {
    border-color: var(--profile-color);
    background: var(--color-panel-raised);
    box-shadow: inset 0 0 20px color-mix(in srgb, var(--profile-color) 5%, transparent);
    color: var(--profile-color);
    transform: translate(-50%, calc(-50% - 3px));
}

.profile-node.is-active {
    transform: translate(-50%, -50%);
}

.profile-node--core { top: 11.67%; left: 50%; --profile-color: var(--color-green); }
.profile-node--events { top: 25.83%; left: 22.14%; --profile-color: var(--color-amber); }
.profile-node--spring { top: 25.83%; left: 77.86%; --profile-color: color-mix(in srgb, var(--color-green) 58%, var(--color-cyan)); }
.profile-node--infra { top: 60.83%; left: 22.14%; --profile-color: color-mix(in srgb, var(--color-violet) 70%, var(--color-cyan)); }
.profile-node--data { top: 60.83%; left: 77.86%; --profile-color: var(--color-blue); }
.profile-node--testing { top: 75%; left: 50%; --profile-color: var(--color-cyan); }

.profile-map__detail {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    display: grid;
    min-height: 66px;
    grid-template-columns: 124px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 11px 16px;
    border: 1px solid color-mix(in srgb, var(--active-profile-color) 24%, transparent);
    border-radius: 11px;
    background: rgba(7, 16, 15, 0.84);
    color: var(--color-muted);
    font: 11px/1.45 var(--font-mono);
}

.profile-map__detail strong {
    color: var(--active-profile-color);
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.08em;
}

.profile-map__detail p {
    margin: 0;
    color: var(--color-text-soft);
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.project-card {
    --project-accent: var(--color-green);
    --pointer-x: 50%;
    --pointer-y: 50%;
    --card-rotate-x: 0deg;
    --card-rotate-y: 0deg;
    position: relative;
    display: grid;
    min-height: 0;
    grid-template-rows: auto 1fr auto;
    padding: clamp(25px, 3vw, 42px);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: rgba(9, 19, 17, 0.8);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
    transform: perspective(1100px) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y));
    transform-style: preserve-3d;
    transition: border-color 260ms ease, transform 160ms ease-out, box-shadow 260ms ease;
}

.project-card::before {
    position: absolute;
    inset: 0;
    opacity: 0;
    content: "";
    background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--project-accent) 13%, transparent), transparent 34%);
    transition: opacity 260ms ease;
    pointer-events: none;
}

.project-card::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 84px;
    height: 2px;
    content: "";
    background: var(--project-accent);
    transform: scaleX(0.28);
    transform-origin: left;
    transition: transform 360ms var(--ease-out);
}

.project-card:hover,
.project-card:focus-within {
    border-color: color-mix(in srgb, var(--project-accent) 42%, transparent);
    box-shadow: 0 28px 86px rgba(0, 0, 0, 0.26);
}

.project-card:hover::before,
.project-card:focus-within::before {
    opacity: 1;
}

.project-card:hover::after,
.project-card:focus-within::after {
    transform: scaleX(1);
}

.project-card--notifications { --project-accent: var(--color-amber); }
.project-card--event-pulse { --project-accent: var(--color-cyan); }
.project-card--kafka { --project-accent: var(--color-green); }
.project-card--search { --project-accent: var(--color-blue); }

.project-card__topline,
.project-card__footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.project-card__topline {
    margin-bottom: 25px;
    color: var(--project-accent);
    font: 700 10px/1.3 var(--font-mono);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.project-card__topline i {
    width: 28px;
    height: 1px;
    flex: 0 0 auto;
    background: var(--project-accent);
    box-shadow: 0 0 8px color-mix(in srgb, var(--project-accent) 45%, transparent);
}

.project-card__layout {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 0;
    grid-template-rows: minmax(190px, auto) 210px;
    align-items: start;
    gap: 25px;
}

.project-card__content {
    display: grid;
    align-self: start;
    align-content: start;
}

.project-card__type {
    min-height: 1.3em;
    margin: 0 0 8px;
    color: var(--color-muted);
    font: 10px/1.3 var(--font-mono);
    letter-spacing: 0.035em;
}

.project-card__content h3 {
    min-height: 1em;
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: clamp(30px, 2.25vw, 34px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.project-card__content > p:not(.project-card__type) {
    min-height: 4.65em;
    margin: 0;
    color: var(--color-text-soft);
    font-size: 15px;
    line-height: 1.55;
}

.project-highlights {
    display: flex;
    min-height: 58px;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 7px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.project-highlights li {
    padding: 6px 9px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-soft);
    font: 10px/1.2 var(--font-mono);
}

.project-architecture {
    width: 100%;
    height: 210px;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(190, 221, 208, 0.07);
    border-radius: 14px;
    background:
        linear-gradient(rgba(190, 221, 208, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(190, 221, 208, 0.025) 1px, transparent 1px),
        rgba(5, 13, 11, 0.32);
    background-size: 32px 32px;
    align-self: end;
}

.project-architecture text {
    fill: var(--color-text-soft);
    font: 11px var(--font-mono);
    letter-spacing: 0.03em;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}

.project-architecture rect,
.project-architecture circle {
    fill: rgba(13, 28, 24, 0.96);
    stroke: var(--color-border-strong);
    stroke-width: 1;
    transition: stroke 220ms ease, transform 260ms var(--ease-out);
    transform-box: fill-box;
    transform-origin: center;
}

.project-architecture path,
.project-architecture line {
    fill: none;
    stroke: var(--project-accent);
    stroke-width: 1.4;
    stroke-dasharray: 6 6;
    transition: stroke-dashoffset 800ms linear, opacity 200ms ease;
}

.project-card:hover .project-architecture path,
.project-card:hover .project-architecture line,
.project-card:focus-within .project-architecture path,
.project-card:focus-within .project-architecture line,
.project-card.is-flow-active .project-architecture path {
    stroke-dashoffset: -24;
}

.project-pulse {
    fill: var(--project-accent) !important;
    stroke: none !important;
    filter: drop-shadow(0 0 5px var(--project-accent));
}

.project-flow-packet {
    opacity: 0;
    fill: var(--project-accent) !important;
    stroke: none !important;
    filter: drop-shadow(0 0 6px var(--project-accent));
}

.project-destination {
    opacity: 0;
    fill: none !important;
    stroke: var(--project-accent) !important;
    stroke-width: 1.5 !important;
    transform-origin: center;
}

.project-card.is-flow-active .project-flow-packet {
    opacity: 1;
}

.project-card.is-flow-active .project-pulse {
    animation: project-source-pulse 460ms var(--ease-out);
}

.project-card.is-flow-active .project-destination {
    animation: project-destination-pulse 460ms 760ms var(--ease-out);
}

.project-architecture__storage rect,
.project-architecture__storage circle {
    stroke: var(--color-blue) !important;
}

.project-card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-top: 27px;
    padding-top: 19px;
    border-top: 1px solid var(--color-border);
}

.project-card__footer p {
    display: flex;
    min-height: 3em;
    align-items: flex-end;
    margin: 0;
    color: var(--color-muted);
    font: 10px/1.5 var(--font-mono);
    letter-spacing: 0.015em;
}

.project-card__footer a {
    align-self: end;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.project-card__footer a::after {
    display: inline-block;
    margin-left: 8px;
    content: "↗";
    color: var(--project-accent);
    transition: transform 180ms ease;
}

.project-card__footer a:hover::after {
    transform: translate(2px, -2px);
}

.project-card.is-pointer-active {
    will-change: transform;
}

@keyframes project-source-pulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    45% { opacity: 1; transform: scale(1.8); }
}

@keyframes project-destination-pulse {
    0% { opacity: 0; transform: scale(0.55); }
    45% { opacity: 0.9; transform: scale(1.35); }
    100% { opacity: 0; transform: scale(2.1); }
}

/* Technology architecture */
.technology-map {
    --active-domain-color: var(--color-green);
    position: relative;
    display: grid;
    min-height: 820px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "core observability spring"
        "delivery center data"
        "infra testing messaging";
    gap: 16px;
    align-items: stretch;
}

.technology-map[data-active-domain="observability"] { --active-domain-color: var(--color-violet); }
.technology-map[data-active-domain="spring"] { --active-domain-color: var(--color-green); }
.technology-map[data-active-domain="delivery"],
.technology-map[data-active-domain="infra"] { --active-domain-color: var(--color-cyan); }
.technology-map[data-active-domain="data"] { --active-domain-color: var(--color-blue); }
.technology-map[data-active-domain="testing"],
.technology-map[data-active-domain="core"] { --active-domain-color: var(--color-green); }
.technology-map[data-active-domain="messaging"] { --active-domain-color: var(--color-amber); }

.technology-map__routes {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.technology-map__routes path {
    fill: none;
    stroke: rgba(190, 221, 208, 0.15);
    stroke-width: 1.2;
    stroke-dasharray: 7 8;
    transition: stroke 220ms ease, stroke-width 220ms ease, filter 220ms ease;
}

.technology-map__routes circle {
    fill: none;
    stroke: rgba(var(--color-green-rgb), 0.07);
    stroke-width: 1;
}

.technology-map__routes path.is-active {
    stroke: var(--active-domain-color);
    stroke-width: 2.2;
    stroke-dashoffset: -18;
    filter: drop-shadow(0 0 5px var(--active-domain-color));
}

.technology-map__core,
.technology-domain {
    position: relative;
    z-index: 2;
    border: 1px solid var(--color-border);
    background: rgba(10, 21, 18, 0.9);
}

.technology-domain__control {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: inherit;
    outline: 0;
    background: transparent;
    cursor: pointer;
}

.technology-domain__control:focus-visible {
    outline: 2px solid var(--domain-color);
    outline-offset: 4px;
}

.technology-map__core {
    grid-area: center;
    display: grid;
    width: 220px;
    height: 220px;
    place-content: center;
    align-self: center;
    justify-self: center;
    border-color: color-mix(in srgb, var(--active-domain-color) 46%, transparent);
    border-radius: 50%;
    box-shadow: 0 0 0 22px color-mix(in srgb, var(--active-domain-color) 3%, transparent), 0 0 40px color-mix(in srgb, var(--active-domain-color) 7%, transparent);
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    transition: border-color 260ms ease, box-shadow 260ms ease;
}

.technology-map__core span {
    margin-bottom: 9px;
    color: var(--active-domain-color);
    font: 10px/1 var(--font-mono);
    letter-spacing: 0.1em;
}

.technology-map__core small {
    margin-top: 10px;
    color: var(--color-muted);
    font: 9px/1.2 var(--font-mono);
}

.technology-domain {
    --domain-color: var(--color-green);
    min-height: 205px;
    padding: 27px;
    border-radius: 16px;
    opacity: 0.86;
    transition: border-color 220ms ease, background 220ms ease, transform 260ms var(--ease-out), opacity 220ms ease;
}

.technology-domain::before {
    position: absolute;
    top: -1px;
    left: 27px;
    width: 42px;
    height: 2px;
    content: "";
    background: var(--domain-color);
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform 260ms var(--ease-out);
}

.technology-domain:hover,
.technology-domain:focus-within,
.technology-domain.is-active {
    opacity: 1;
    border-color: color-mix(in srgb, var(--domain-color) 44%, transparent);
    background: var(--color-panel-raised);
    transform: translateY(-4px);
}

.technology-domain:hover::before,
.technology-domain:focus-within::before,
.technology-domain.is-active::before {
    transform: scaleX(1);
}

.technology-domain h3 {
    margin: 0 0 17px;
    color: var(--domain-color);
    font-family: var(--font-display);
    font-size: 20px;
}

.technology-domain header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
}

.technology-domain header span {
    color: var(--color-muted);
    font: 9px/1 var(--font-mono);
}

.technology-domain header h3 {
    margin: 0;
}

.technology-domain header i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--domain-color);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--domain-color) 8%, transparent);
}

.technology-domain > p {
    margin: 0;
    color: var(--color-text-soft);
    font: 11px/1.75 var(--font-mono);
}

.technology-domain--core { grid-area: core; }
.technology-domain--observability { grid-area: observability; --domain-color: var(--color-violet); }
.technology-domain--spring { grid-area: spring; --domain-color: var(--color-green); }
.technology-domain--delivery { grid-area: delivery; --domain-color: var(--color-cyan); }
.technology-domain--data { grid-area: data; --domain-color: var(--color-blue); }
.technology-domain--infra { grid-area: infra; --domain-color: var(--color-cyan); }
.technology-domain--testing { grid-area: testing; --domain-color: var(--color-green); }
.technology-domain--messaging { grid-area: messaging; --domain-color: var(--color-amber); }

/* Experience and education */
.experience-grid,
.education-grid {
    position: relative;
    display: grid;
    gap: 18px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.experience-grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
}

.experience-grid::after {
    min-height: 100%;
    border: 1px solid rgba(190, 221, 208, 0.08);
    border-radius: var(--radius-medium);
    content: "";
    background:
        linear-gradient(rgba(190, 221, 208, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(190, 221, 208, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(var(--color-green-rgb), 0.06), transparent 55%);
    background-size: 36px 36px, 36px 36px, auto;
}

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

.route-card {
    --route-color: var(--color-green);
    position: relative;
    min-width: 0;
    padding: clamp(26px, 3.4vw, 42px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: rgba(11, 23, 20, 0.94);
    box-shadow: var(--shadow-panel);
}

.route-card::before {
    position: absolute;
    top: -5px;
    left: clamp(26px, 3.4vw, 42px);
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-background);
    border-radius: 50%;
    content: "";
    background: var(--route-color);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--route-color) 10%, transparent);
}

.route-card--university { --route-color: var(--color-cyan); }
.route-card--college { --route-color: var(--color-blue); }

.route-card__period {
    display: block;
    margin-bottom: 12px;
    color: var(--route-color);
    font: 700 10px/1.4 var(--font-mono);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.route-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.route-card__place {
    margin: 0 0 16px;
    color: var(--color-text-soft);
    font-weight: 650;
}

.route-card p:last-child {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}

.route-card ul {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    color: var(--color-muted);
    font-size: 13px;
    list-style: none;
}

.route-card li {
    position: relative;
    padding-left: 16px;
}

.route-card li::before {
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 6px;
    height: 1px;
    content: "";
    background: var(--route-color);
}

/* Contact */
.contact {
    min-height: 760px;
}

.contact__inner {
    position: relative;
    display: grid;
    min-height: 760px;
    place-items: center;
    padding-block: 140px;
    text-align: center;
    isolation: isolate;
}

.contact__inner::before {
    position: absolute;
    inset: 16% 8%;
    z-index: 0;
    border-radius: 50%;
    content: "";
    background: radial-gradient(ellipse, rgba(7, 16, 15, 0.94) 0%, rgba(7, 16, 15, 0.72) 48%, transparent 76%);
    pointer-events: none;
}

.contact__network {
    position: absolute;
    inset: 7% 0 0;
    width: 100%;
    height: 93%;
    opacity: 0.72;
    pointer-events: none;
}

.contact__network svg {
    width: 100%;
    height: 100%;
}

.contact__network::after {
    position: absolute;
    inset: 10% 18%;
    content: "";
    background: radial-gradient(ellipse, rgba(7, 16, 15, 0.82), transparent 70%);
}

.contact__network path,
.contact__network line {
    fill: none;
    stroke: rgba(var(--color-green-rgb), 0.18);
    stroke-width: 1;
    stroke-dasharray: 7 9;
    stroke-dashoffset: calc(var(--section-progress, 0) * -80px);
}

.contact__network circle {
    fill: var(--color-background);
    stroke: rgba(var(--color-cyan-rgb), 0.35);
    transform-box: fill-box;
    transform-origin: center;
}

.contact.is-contact-active .contact__network path {
    animation: contact-route-crescendo 980ms var(--ease-out) backwards;
}

.contact.is-contact-active .contact__network path:nth-child(2) { animation-delay: 90ms; }
.contact.is-contact-active .contact__network path:nth-child(3) { animation-delay: 170ms; }

.contact.is-contact-active .contact__network circle {
    animation: contact-node-crescendo 520ms var(--ease-out) backwards;
}

.contact.is-contact-active .contact__network circle:nth-of-type(2) { animation-delay: 130ms; }
.contact.is-contact-active .contact__network circle:nth-of-type(3) { animation-delay: 220ms; }
.contact.is-contact-active .contact__network circle:nth-of-type(4) { animation-delay: 300ms; }
.contact.is-contact-active .contact__network circle:nth-of-type(5) { animation-delay: 380ms; }

@keyframes contact-route-crescendo {
    from { opacity: 0; stroke-dashoffset: 70px; }
    to { opacity: 1; stroke-dashoffset: -18px; }
}

@keyframes contact-node-crescendo {
    from { opacity: 0; transform: scale(0.35); }
    55% { opacity: 1; transform: scale(1.45); }
    to { opacity: 1; transform: scale(1); }
}

.contact__inner > .section-kicker,
.contact__inner > h2,
.contact__inner > p:not(.section-kicker),
.contact__inner > .contact-endpoint {
    position: relative;
    z-index: 2;
}

.contact__inner > h2 {
    max-width: 820px;
    margin: 20px auto 0;
    font-family: var(--font-display);
    font-size: clamp(56px, 5vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.contact__inner > p:not(.section-kicker) {
    max-width: 620px;
    margin: 26px auto 42px;
    color: var(--color-text-soft);
    font-size: 18px;
}

.contact-endpoint {
    position: relative;
    z-index: 3;
    display: grid;
    min-width: min(100%, 360px);
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 18px 22px;
    border: 1px solid rgba(var(--color-green-rgb), 0.35);
    border-radius: 14px;
    background: rgba(11, 26, 21, 0.93);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
    text-align: left;
    transition: border-color 220ms ease, transform 240ms var(--ease-out), background 220ms ease;
}

.contact-endpoint::before {
    position: absolute;
    bottom: 100%;
    left: 29px;
    width: 1px;
    height: 74px;
    content: "";
    background: linear-gradient(transparent, var(--color-green));
    transform: scaleY(var(--section-progress, 0));
    transform-origin: bottom;
}

.contact-endpoint:hover {
    border-color: var(--color-green);
    background: var(--color-panel-raised);
    transform: translateY(-4px);
}

.contact-endpoint__signal {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 0 9px rgba(var(--color-green-rgb), 0.08);
}

.contact.is-contact-active .contact-endpoint__signal {
    animation: contact-endpoint-pulse 720ms 260ms var(--ease-out);
}

@keyframes contact-endpoint-pulse {
    0%, 100% { box-shadow: 0 0 0 9px rgba(var(--color-green-rgb), 0.08); }
    55% { box-shadow: 0 0 0 20px rgba(var(--color-green-rgb), 0), 0 0 18px var(--color-green); }
}

.contact-endpoint strong {
    display: block;
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 21px;
}

.contact-endpoint small {
    display: block;
    margin-bottom: 2px;
    color: var(--color-muted);
    font: 9px/1.4 var(--font-mono);
    letter-spacing: 0.08em;
}

.contact-endpoint span:not(.contact-endpoint__signal):not(.contact-endpoint__arrow) {
    display: block;
    color: var(--color-muted);
    font: 10px/1.4 var(--font-mono);
}

.contact-endpoint__arrow {
    color: var(--color-green);
    font-size: 24px;
    transition: transform 200ms ease;
}

.contact-endpoint:hover .contact-endpoint__arrow {
    transform: translate(3px, -3px);
}

.portfolio-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-background-deep);
}

.portfolio-footer__inner {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--color-muted);
    font: 10px/1.4 var(--font-mono);
}

.portfolio-footer a {
    color: var(--color-text-soft);
    transition: color 180ms ease;
}

.portfolio-footer a:hover {
    color: var(--color-green);
}

@media (max-width: 1240px) {
    .route-progress { display: none; }
    .hero__frame { grid-template-columns: minmax(0, 1fr) minmax(460px, 0.8fr); gap: 44px; }
    .architecture-stage { min-height: 570px; }
    .technology-map { min-height: 760px; }
    .technology-domain { min-height: 185px; padding: 22px; }
}

@media (max-width: 1024px) {
    :root { --header-height: 78px; }
    .container,
    .container-wide { width: min(calc(100% - 40px), var(--container)); }
    .section-coordinate { display: none; }
    .hero__frame {
        grid-template-columns: 1fr;
        gap: 74px;
        padding-top: 112px;
    }
    .hero__content { width: 100%; max-width: 780px; margin-inline: auto; }
    .hero__title { font-size: clamp(72px, 12vw, 112px); }
    .architecture-stage { width: min(100%, 760px); min-height: 610px; margin-inline: auto; }
    .about__layout { grid-template-columns: 1fr; }
    .about__copy { max-width: 720px; }
    .profile-map { width: min(100%, 760px); margin-inline: auto; }
    .project-card__layout { grid-template-rows: minmax(190px, auto) 210px; }
    .project-architecture { min-height: 180px; max-height: 220px; }
    .technology-map {
        min-height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "center center"
            "core observability"
            "spring delivery"
            "data infra"
            "testing messaging";
        gap: 12px;
    }
    .technology-map__routes { display: none; }
    .technology-map::before {
        position: absolute;
        top: 224px;
        bottom: 95px;
        left: 50%;
        z-index: 0;
        width: 1px;
        content: "";
        background: linear-gradient(transparent, var(--active-domain-color), transparent);
    }
    .technology-map__core {
        position: relative;
        top: auto;
        width: 180px;
        height: 180px;
        min-height: 180px;
        margin: 10px auto 34px;
    }
    .technology-map__core::after {
        position: absolute;
        top: 100%;
        left: 50%;
        width: 1px;
        height: 34px;
        content: "";
        background: var(--active-domain-color);
    }
    .technology-domain { min-height: 190px; }
    .technology-domain::after {
        position: absolute;
        top: 50%;
        width: 7px;
        height: 1px;
        content: "";
        background: var(--domain-color);
        opacity: 0.18;
        transition: opacity 220ms ease, box-shadow 220ms ease;
    }
    .technology-domain--core::after,
    .technology-domain--spring::after,
    .technology-domain--data::after,
    .technology-domain--testing::after {
        right: -7px;
    }
    .technology-domain--observability::after,
    .technology-domain--delivery::after,
    .technology-domain--infra::after,
    .technology-domain--messaging::after {
        left: -7px;
    }
    .technology-domain.is-active::after {
        opacity: 1;
        box-shadow: 0 0 8px var(--domain-color);
    }
    .experience-grid { grid-template-columns: 1fr; }
    .experience-grid::after { display: none; }
}

@media (min-width: 960px) and (max-width: 1024px) {
    .hero__frame {
        grid-template-columns: minmax(0, 1fr) minmax(440px, 0.86fr);
        gap: 34px;
        padding-top: 88px;
    }
    .hero__content { max-width: none; margin-inline: 0; }
    .hero__title { font-size: clamp(62px, 7vw, 72px); }
    .architecture-stage { width: 100%; min-height: 560px; }
}

@media (max-width: 820px) {
    .portfolio-header,
    body[data-scroll-direction="down"] .portfolio-header.is-scrolled,
    body[data-scroll-direction="up"] .portfolio-header.is-scrolled { height: 70px; }
    .nav-toggle { position: relative; z-index: 3; display: block; }
    .nav-panel {
        position: fixed;
        inset: 0;
        display: grid;
        align-content: center;
        align-content: safe center;
        justify-items: center;
        gap: 32px;
        padding: 88px 24px 36px;
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        opacity: 0;
        background: rgba(4, 11, 9, 0.98);
        transform: translateY(-12px);
        transition: opacity 220ms ease, visibility 220ms ease, transform 300ms var(--ease-out);
    }
    .nav-panel.is-open { visibility: visible; opacity: 1; transform: none; }
    .nav-links { display: grid; gap: 8px; text-align: center; }
    .nav-links a { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
    .portfolio-brand__identity small { display: none; }
    .section-heading--split { grid-template-columns: 1fr; gap: 24px; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card { min-height: auto; }
    .project-card__layout { grid-template-rows: minmax(190px, auto) 210px; }
}

@media (max-width: 820px) and (max-height: 620px) {
    .nav-panel {
        align-content: start;
        gap: 14px;
        padding-block: 72px 20px;
    }
    .nav-links { gap: 0; }
    .nav-links a {
        padding-block: 7px;
        font-size: clamp(22px, 6vh, 27px);
    }
}

@media (max-width: 640px) {
    .container,
    .container-wide { width: min(calc(100% - 28px), var(--container)); }
    .system-background__grid { background-size: 64px 64px; }
    .system-background__rails { inset-inline: 14px; }
    .section-shell { padding-block: 96px; }
    .section-heading { margin-bottom: 42px; }
    .section-heading h2 { font-size: clamp(36px, 10.7vw, 48px); }
    .section-heading > p:not(.section-kicker) { font-size: 16px; }
    .hero { min-height: auto; }
    .hero__frame {
        min-height: auto;
        gap: 64px;
        padding-block: 110px 96px;
    }
    .hero__title { font-size: clamp(55px, 18vw, 82px); }
    .hero__lead { margin-top: 26px; }
    .hero__actions { display: grid; grid-template-columns: 1fr; }
    .technology-modules { grid-template-columns: repeat(2, 1fr); }
    .architecture-stage { min-height: 500px; border-radius: 20px; }
    .architecture-node { min-width: 96px; min-height: 61px; padding: 9px 11px; font-size: 11px; }
    .architecture-node--client { left: 35%; }
    .architecture-node--api { left: 4%; }
    .architecture-node--spring { left: 36%; }
    .architecture-node--kafka { left: 4%; bottom: 21%; }
    .architecture-node--postgres { right: 4%; bottom: 21%; }
    .architecture-node--redis { right: 3%; }
    .architecture-console { right: 15px; bottom: 15px; left: 15px; }
    .about__layout { gap: 48px; }
    .about__copy { padding-left: 18px; }
    .profile-map {
        display: grid;
        min-height: auto;
        aspect-ratio: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 18px;
    }
    .profile-map::before {
        position: absolute;
        top: 146px;
        bottom: 104px;
        left: 50%;
        z-index: 0;
        width: 1px;
        content: "";
        background: linear-gradient(var(--active-profile-color), rgba(190, 221, 208, 0.12));
    }
    .profile-map__connections { display: none; }
    .profile-map__core {
        position: relative;
        top: auto;
        left: auto;
        width: 126px;
        height: 126px;
        grid-column: 1 / -1;
        margin: 12px auto 24px;
        transform: none;
    }
    .profile-node,
    .profile-node--core,
    .profile-node--events,
    .profile-node--spring,
    .profile-node--data,
    .profile-node--testing,
    .profile-node--infra {
        position: relative;
        inset: auto;
        min-width: 0;
        width: 100%;
        transform: none;
    }
    .profile-map .profile-node:hover,
    .profile-map .profile-node.is-active {
        transform: translateY(-2px);
    }
    .profile-map__detail {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 12px;
    }
    .project-card { padding: 24px; }
    .project-card__layout { grid-template-rows: minmax(210px, auto) 200px; gap: 22px; }
    .project-highlights { min-height: 75px; margin-top: 18px; }
    .project-architecture { height: 200px; max-width: 340px; min-height: 165px; margin-inline: auto; }
    .project-card__footer { grid-template-columns: 1fr; align-items: start; gap: 10px; }
    .project-card__footer p { min-height: 0; font-size: 9px; letter-spacing: 0; }
    .technology-map {
        display: grid;
        gap: 10px;
        padding-left: 20px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "center" "core" "observability" "spring" "delivery"
            "data" "infra" "testing" "messaging";
    }
    .technology-map::before { top: 90px; bottom: 20px; left: 0; }
    .technology-map::after {
        position: absolute;
        top: 90px;
        left: 0;
        z-index: 0;
        width: calc(50% - 80px);
        height: 1px;
        content: "";
        background: var(--active-domain-color);
    }
    .technology-map .technology-domain::after {
        display: block;
        right: auto;
        left: -20px;
        width: 20px;
    }
    .technology-map__core { width: 180px; min-height: 180px; }
    .technology-map__core::after { display: none; }
    .technology-domain { min-height: auto; padding: 20px; }
    .education-grid { grid-template-columns: 1fr; }
    .contact,
    .contact__inner { min-height: 660px; }
    .contact__inner { padding-block: 110px; }
    .contact__inner > h2 { max-width: 360px; font-size: clamp(40px, 11.5vw, 48px); }
    .contact__inner > h2 br { display: none; }
    .portfolio-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (max-width: 430px) {
    .portfolio-brand__identity strong { font-size: 13px; }
    .identity-line { align-items: flex-start; font-size: 9px; }
    .identity-line__signal { margin-top: 2px; }
    .hero__title { font-size: clamp(51px, 17.5vw, 72px); }
    .technology-module { min-height: 84px; }
    .technology-module small { white-space: normal; }
    .architecture-stage { min-height: 460px; }
    .architecture-node { min-width: 84px; font-size: 10px; }
    .architecture-node--client { left: 34%; }
    .architecture-node--spring { left: 35%; }
    .architecture-console { font-size: 8px; }
    .profile-map {
        grid-template-columns: 1fr;
        padding-left: 42px;
    }
    .profile-map::before {
        top: 144px;
        bottom: 96px;
        left: 20px;
    }
    .profile-node::before {
        position: absolute;
        top: 50%;
        right: 100%;
        width: 22px;
        height: 1px;
        content: "";
        background: color-mix(in srgb, var(--profile-color) 46%, transparent);
    }
    .profile-map__core,
    .profile-map__detail { grid-column: auto; }
    .project-card__topline { align-items: flex-start; flex-direction: column; gap: 6px; }
    .project-architecture { min-height: 150px; }
    .route-card { padding: 24px; }
    .contact-endpoint { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .choreography-item {
        opacity: 1 !important;
        clip-path: none !important;
        transform: none !important;
    }
    .architecture-stage,
    .project-card,
    .architecture-node,
    .technology-domain,
    .route-card,
    .system-background__ambient,
    .system-background__grid,
    .system-background__coordinates {
        transform: none !important;
    }
    .data-packet,
    .project-flow-packet,
    .system-background__burst,
    .section-bridge > i,
    .route-progress__fill {
        display: none !important;
    }
    .portfolio-header,
    body[data-scroll-direction="down"] .portfolio-header.is-scrolled,
    body[data-scroll-direction="up"] .portfolio-header.is-scrolled {
        height: var(--header-height);
    }
    .section-bridge::after,
    .contact-endpoint::before {
        transform: none !important;
    }
    .circuit-path,
    .project-architecture path,
    .project-architecture line,
    .contact__network path,
    .contact__network line {
        stroke-dashoffset: 0 !important;
    }
}
