:root {
    --bg: transparent;
    --surface: #ffffff;
    --stroke: rgba(255, 255, 255, 0.14);
    --stroke-strong: rgba(255, 255, 255, 0.82);
    --text: #000000;
    --muted: rgba(65, 65, 65, 0.74);
    --accent: #c8ff1a;
    --panel-glow: radial-gradient(circle at var(--glow-x, 72%) var(--glow-y, 32%), rgba(202, 255, 0, 0.95) 0%, rgba(130, 255, 0, 0.55) 18%, rgba(50, 120, 10, 0.3) 38%, rgba(10, 10, 10, 0) 68%);
    --container: min(1320px, calc(100vw - 40px));
    --radius-xl: 38px;
    --radius-lg: 28px;
    --radius-md: 22px;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
    --glass-fill: rgba(99, 99, 99, 0.062);
    --glass-stroke: rgba(179, 179, 179, 0.7);
    --glass-shadow: inset -1px -2px 3px rgba(119, 119, 119, 0.171), inset 1px 2px 3px rgba(255, 255, 255, 0.575);
    --glass-blur: 20px;
    --glass-saturate: 118%;
    --glass-sheen:
        linear-gradient(135deg, rgba(101, 255, 127, 0), rgba(255, 255, 255, 0) 50%),
        linear-gradient(315deg, rgba(244, 255, 84, 0.137), rgba(124, 124, 124, 0) 26%);
    --glass-depth:
        linear-gradient(180deg, rgba(0, 255, 213, 0), rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(253, 253, 253, 0));
    --glass-scrim: rgba(5, 12, 6, 0.58);
    --glass-backdrop-blur: 20px;
    --flow-1-x: 72%;
    --flow-1-y: 26%;
    --flow-2-x: 18%;
    --flow-2-y: 46%;
    --flow-3-x: 78%;
    --flow-3-y: 78%;
    --dev-page-color: #b3ccb3;
    --dev-text-color: #161a13;
    --dev-muted-color: #4f5949;
    --dev-accent-color: #c8ff1a;
    --dev-accent-rgb: 200 255 26;
    --dev-glass-color: 255, 255, 255;
    --dev-glass-alpha: 0.13;
    --dev-glass-stroke: rgba(255, 255, 255, 0.62);
    --dev-control-bg: rgba(244, 247, 235, 0.86);
    --dev-control-text: #20251c;
    --dev-panel-bg: rgba(20, 28, 17, 0.82);
    --dev-panel-text: #f3f7eb;
    --hero-glow-opacity: 0.62;
    --hero-glow-size: 40vmax;
    --hero-glow-secondary-size: 30vmax;
    --hero-glow-blur: 6px;
    --hero-glow-x: 72%;
    --hero-glow-y: 26%;
    --hero-glow-secondary-x: 23%;
    --hero-glow-secondary-y: 54%;
}

.version-return {
    display: block;
    width: max-content;
    margin: 18px 0 28px auto;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(12, 12, 12, 0.34);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.version-return:hover {
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    background: var(--bg);
    color: var(--dev-text-color);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    isolation: isolate;
}

#shader-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100%;
    height: 100vh;
    display: block;
    overflow: clip;
    contain: strict;
    z-index: -3;
    pointer-events: none;
}

.page-shell {
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow-x: clip;
}

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

button,
input {
    font: inherit;
}

.page-shell {
    width: var(--container);
    margin: 0 auto;
    padding: 8px 0 28px;
}

.site-header {
    position: sticky;
    top: 8px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 24px;
    border-radius: 0 0 26px 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: 60px;
    font-size: 0.95rem;
    font-weight: 700;
}

.brand-mark {
    width: 24px;
    height: 28px;
    background: linear-gradient(180deg, #fff 0%, #d6d6d6 100%);
    clip-path: polygon(50% 0, 84% 24%, 60% 24%, 50% 100%, 40% 24%, 16% 24%);
}

.site-nav {
    display: flex;
    gap: 72px;
    font-size: 0.95rem;
    font-weight: 600;
}

.pill-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid var(--stroke-strong);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.pill-button--light {
    background: #f8f8f8;
    color: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.95);
}

.pill-button--disabled {
    background: #2a2a2a;
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    cursor: default;
    transform: none;
}

.pill-button--small {
    min-height: 38px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 700;
}

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

.section {
    margin-top: 28px;
    padding-inline: 4px;
    content-visibility: auto;
    contain-intrinsic-size: 780px;
}

.section h2 {
    margin: 0 0 28px;
    font-size: clamp(2.6rem, 6vw, 4rem);
    line-height: 0.95;
    margin-top: 15px;
}

.section-badge,
.card-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 28px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(244, 247, 235, 0.98);
    color: #494736;
    font-size: 0.82rem;
}

.section-title-box,
.reviews-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 16px 68px;
    border-radius: 28px;
    color: var(--accent);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
}

.panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.panel::before {
    display: none;
}

.hero {
    position: relative;
    min-height: 760px;
    padding-top: 18px;
}

.hero::before,
.hero::after {
    content: none;
    display: none;
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
}

.hero::before {
    inset: -18vmax -16vmax -14vmax;
    background:
        radial-gradient(circle var(--hero-glow-size) at var(--hero-glow-x) var(--hero-glow-y), rgb(var(--dev-accent-rgb) / 0.68), rgb(var(--dev-accent-rgb) / 0.38) 28%, rgb(var(--dev-accent-rgb) / 0.12) 52%, rgb(var(--dev-accent-rgb) / 0) 74%);
    filter: blur(calc(var(--hero-glow-blur) * 0.4)) saturate(120%);
    opacity: var(--hero-glow-opacity);
    animation: hero-flow 24s ease-in-out infinite alternate;
    z-index: 0;
}

.hero::after {
    inset: -16vmax -14vmax -18vmax;
    background:
        radial-gradient(circle var(--hero-glow-secondary-size) at var(--hero-glow-secondary-x) var(--hero-glow-secondary-y), rgb(var(--dev-accent-rgb) / 0.4), rgb(var(--dev-accent-rgb) / 0.2) 34%, rgb(var(--dev-accent-rgb) / 0.06) 56%, rgb(var(--dev-accent-rgb) / 0) 76%);
    filter: blur(calc(var(--hero-glow-blur) * 0.5)) saturate(118%);
    opacity: calc(var(--hero-glow-opacity) * 0.78);
    animation: hero-flow-secondary 30s ease-in-out infinite alternate;
    z-index: 0;
}

.hero-frame {
    position: relative;
    z-index: 1;
    min-height: 760px;
    border-radius: 36px;
    overflow: hidden;
    padding: 142px 40px 38px;
}

.hero-label {
    position: absolute;
    top: 32px;
    left: 42px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 42px 18px 38px;
    border-radius: 24px;
    font-size: clamp(2rem, 3.1vw, 3.2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
}

.hero-panel {
    position: absolute;
    border-radius: 32px;
    overflow: hidden;
}

.hero-copy {
    position: relative;
    inset: auto;
    z-index: 2;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 54px 54px 60px;
    border-radius: 32px;
    clip-path: inset(0 round 32px);
}

.hero-copy > * {
    position: relative;
    z-index: 1;
}

.hero-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(5rem, 10vw, 9.4rem);
    line-height: 0.88;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.hero-copy p {
    margin: 28px 0 0;
    max-width: 62%;
    font-size: clamp(1.15rem, 2vw, 2.15rem);
    line-height: 1.2;
    font-weight: 600;
}

.hero-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 520px;
}

.outline-cta {
    width: min(100%, 460px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 82px;
    padding: 18px 42px;
    border-radius: 30px;
    font-size: clamp(1.4rem, 2.3vw, 2.2rem);
    font-weight: 500;
}

.lab-teaser-row {
    position: absolute;
    right: clamp(18px, 4vw, 58px);
    top: clamp(92px, 9vw, 132px);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lab-teaser,
.lab-palette-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dev-glass-stroke);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgb(var(--dev-accent-rgb) / 0.24), rgb(var(--dev-accent-rgb) / 0.06) 48%),
        rgba(var(--dev-glass-color), var(--dev-glass-alpha));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    color: var(--dev-text-color);
    box-shadow:
        var(--glass-shadow),
        0 14px 34px rgb(var(--dev-accent-rgb) / 0.18);
}

.lab-teaser {
    min-width: 184px;
    max-width: min(260px, calc(100% - 36px));
    min-height: 58px;
    padding: 14px 26px;
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    animation: lab-teaser-sway 4.8s ease-in-out infinite;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.lab-palette-next {
    width: 50px;
    height: 50px;
    padding: 0;
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.lab-teaser:hover {
    animation-play-state: paused;
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        var(--glass-shadow),
        0 20px 48px rgb(var(--dev-accent-rgb) / 0.28);
}

.lab-palette-next:hover {
    transform: translateY(-2px) rotate(24deg);
    box-shadow:
        var(--glass-shadow),
        0 18px 42px rgb(var(--dev-accent-rgb) / 0.26);
}

.service-grid,
.approach-grid,
.team-grid,
.project-grid,
.reviews-grid {
    display: grid;
    gap: 18px;
}

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

.site-header,
.section-title-box,
.reviews-title,
.panel,
.hero-panel,
.glass-card,
.review-card,
.contact-card,
.project-card,
.portrait-card,
.outlined-card,
.timeline-card,
.hero-label,
.outline-cta,
.project-modal__sheet,
.review-modal__sheet {
    border: 1px solid var(--glass-stroke);
    background: var(--glass-fill);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    box-shadow: var(--glass-shadow);
}

.glass-card,
.review-card,
.contact-card,
.project-card,
.portrait-card {
    border-radius: var(--radius-md);
}

.site-header,
.section-title-box,
.reviews-title,
.panel,
.hero-panel,
.glass-card,
.review-card,
.contact-card,
.project-card,
.portrait-card,
.outlined-card,
.timeline-card,
.hero-label,
.outline-cta,
.project-modal__sheet,
.review-modal__sheet {
    position: relative;
    overflow: hidden;
}

.hero-panel,
.panel,
.glass-card,
.review-card,
.contact-card,
.project-card,
.portrait-card,
.outlined-card,
.timeline-card {
    position: relative;
    isolation: isolate;
}

.hero-panel::after,
.panel::after,
.glass-card::after,
.review-card::after,
.contact-card::after,
.project-card::after,
.portrait-card::after,
.outlined-card::after,
.timeline-card::after,
.project-modal__sheet::after,
.review-modal__sheet::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: var(--glass-depth);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}

.site-header::before,
.section-title-box::before,
.reviews-title::before,
.panel::before,
.hero-panel::before,
.glass-card::before,
.review-card::before,
.contact-card::before,
.project-card::before,
.portrait-card::before,
.outlined-card::before,
.timeline-card::before,
.hero-label::before,
.outline-cta::before,
.project-modal__sheet::before,
.review-modal__sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--glass-sheen);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.hero-panel > *,
.panel > *,
.glass-card > *,
.review-card > *,
.contact-card > *,
.project-card > *,
.portrait-card > *,
.outlined-card > *,
.timeline-card > *,
.project-modal__sheet > *,
.review-modal__sheet > * {
    position: relative;
    z-index: 2;
}

.glass-card {
    min-height: 220px;
    padding: 16px 18px 22px;
}

.glass-card h3 {
    margin: 40px 0 12px;
    font-size: clamp(1.8rem, 2.7vw, 2.8rem);
    line-height: 0.95;
}

.glass-card p {
    margin: 0;
    max-width: 28ch;
    color: var(--muted);
    font-size: 1.08rem;
}

.glass-card--cta {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 34px 0 18px;
    content-visibility: auto;
    contain-intrinsic-size: 220px;
}

.stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
}

.stats div:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.48);
}

.stats strong {
    font-size: clamp(4rem, 8vw, 6.8rem);
    line-height: 0.9;
}

.stats span {
    font-size: 1.2rem;
    color: var(--muted);
}

.panel--approach {
    padding: 34px 24px 32px;
}

.approach-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.outlined-card {
    min-height: 220px;
    padding: 22px;
    border-radius: 28px;
}

.step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 42px;
    padding: 6px 24px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: var(--dev-accent-color);
    color: #20251c;
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 12px 34px rgb(var(--dev-accent-rgb) / 0.2);
}

.outlined-card h3 {
    margin: 0 0 10px;
    max-width: 10ch;
    font-size: 2rem;
    line-height: 0.95;
}

.outlined-card p {
    margin: 0;
    max-width: 20ch;
    color: var(--muted);
    font-size: 1.04rem;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    padding-top: 24px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 74px;
    left: 90px;
    right: 90px;
    height: 2px;
    background: linear-gradient(90deg, rgba(200, 255, 26, 0.28), rgba(200, 255, 26, 0.95), rgba(200, 255, 26, 0.28));
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
    gap: 20px;
    text-align: center;
    min-width: 0;
}

.timeline-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--accent);
    color: #090909;
    font-size: 3rem;
    font-weight: 800;
    box-shadow: 0 0 0 10px rgba(200, 255, 26, 0.08);
}

.timeline-card {
    width: 100%;
    min-height: 190px;
    min-width: 0;
    height: 100%;
    padding: 22px 18px 20px;
    border-radius: 24px;
}

.timeline-card h3 {
    margin: 0 0 12px;
    font-size: 1.55rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.timeline-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

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

.team-grid--scroll,
.project-grid--scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 255, 26, 0.55) rgba(255, 255, 255, 0.08);
}

.team-grid--scroll > *,
.project-grid--scroll > * {
    flex: 0 0 min(300px, 84vw);
    scroll-snap-align: start;
}

.portrait-card,
.project-card {
    overflow: hidden;
}

.portrait {
    aspect-ratio: 0.76;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
        radial-gradient(circle at 60% 30%, rgba(255, 240, 211, 0.9), rgba(255, 228, 176, 0.08) 24%, transparent 26%),
        linear-gradient(145deg, rgba(70, 70, 70, 0.86), rgba(24, 24, 24, 1));
}

.portrait-image,
.project-image {
    display: block;
    width: 100%;
    object-fit: cover;
}

.portrait-image {
    aspect-ratio: 0.76;
}

.accent-a { background-color: #434343; }
.accent-b { background-color: #5a6d5b; }
.accent-c { background-color: #343b57; }
.accent-d { background-color: #574135; }

.portrait-body,
.project-body {
    padding: 18px 18px 20px;
}

.portrait-body h3,
.project-body h3 {
    margin: 0 0 8px;
    font-size: 1.9rem;
}

.portrait-body p,
.project-body p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.08rem;
}

.specialization {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 20px;
    align-items: center;
    padding: 26px 26px 0;
}

.specialization-copy h2 {
    margin-bottom: 20px;
    font-size: clamp(3rem, 6vw, 5.2rem);
}

.code-cube {
    position: relative;
    min-height: 400px;
}

.code-cube__inner {
    width: 100%;
}

.tag-marquee {
    overflow: hidden;
    max-width: 100%;
    contain: paint;
    margin-top: 18px;
}

.tag-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee-left 22s linear infinite;
    will-change: transform;
}

.tag-marquee--right .tag-track {
    animation-name: marquee-right;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 176px;
    min-height: 64px;
    padding: 12px 26px;
    border: 2px solid rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    background: #080808;
    font-size: 1.15rem;
}

.tech-tag--light {
    background: #f2f2f0;
    color: #0c0c0c;
}

.project-poster {
    aspect-ratio: 0.8;
    background-size: cover;
}

.project-image {
    aspect-ratio: 0.8;
}

.project-a {
    background:
        radial-gradient(circle at 18% 18%, rgba(200, 255, 26, 0.85), transparent 10%),
        linear-gradient(145deg, #111 0%, #2b2b2b 44%, #080808 100%);
}

.project-b {
    background:
        linear-gradient(135deg, rgba(216, 216, 216, 0.95), rgba(22, 22, 22, 0.92)),
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(0, 0, 0, 0.12) 18px 20px);
}

.project-c {
    background:
        radial-gradient(circle at 60% 42%, rgba(255, 81, 190, 0.86), transparent 10%),
        linear-gradient(145deg, #1b1b1b 0%, #5a2848 46%, #121212 100%);
}

.project-d {
    background:
        linear-gradient(180deg, rgba(255, 244, 220, 0.14), transparent 36%),
        linear-gradient(145deg, #2f2a21, #0f0f0f);
}

.reviews-title {
    float: right;
    margin-bottom: 20px;
}

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

.review-card {
    padding: 22px 24px;
}

.review-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.review-card h3 {
    margin: 0;
    font-size: 1.8rem;
}

.stars {
    color: #ffcc2a;
    letter-spacing: 0.08em;
}

.review-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.5;
}

.review-card a {
    color: rgba(255, 255, 255, 0.54);
}

.review-open {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.54);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.review-open:hover {
    color: var(--text);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.project-meta span,
.project-short {
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.project-short {
    display: inline-flex;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.project-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.project-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgb(var(--dev-accent-rgb) / 0.12), transparent 34%),
        var(--glass-scrim);
    backdrop-filter: blur(var(--glass-backdrop-blur));
    -webkit-backdrop-filter: blur(var(--glass-backdrop-blur));
}

.project-modal__sheet {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100vw - 56px));
    max-height: calc(100dvh - 56px);
    display: grid;
    grid-template-columns: minmax(360px, 58%) minmax(320px, 1fr);
    align-items: start;
    gap: clamp(22px, 3vw, 34px);
    padding: 22px;
    border-radius: 30px;
    transform: translateY(26px) scale(0.98);
    transition: transform 0.3s ease;
    overflow: auto;
}

.project-modal.is-open .project-modal__sheet {
    transform: translateY(0) scale(1);
}

.project-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: currentColor;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.project-modal__close::before,
.project-modal__close::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.project-modal__close::before {
    transform: rotate(45deg);
}

.project-modal__close::after {
    transform: rotate(-45deg);
}

.project-modal__close:hover {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 28px rgb(var(--dev-accent-rgb) / 0.18);
}

.project-modal__media {
    min-height: 360px;
    max-height: calc(100dvh - 112px);
    aspect-ratio: 4 / 3;
    align-self: start;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 42%, rgb(var(--dev-accent-rgb) / 0.14), transparent 44%),
        linear-gradient(145deg, rgba(42, 42, 42, 0.92), rgba(14, 14, 14, 0.94));
}

.project-modal__media img,
.project-modal__placeholder {
    width: 100%;
    height: 100%;
}

.project-modal__media img {
    display: block;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.16);
}

.project-modal__placeholder {
    object-fit: cover;
}

.project-modal__placeholder {
    background:
        radial-gradient(circle at 30% 20%, rgba(200, 255, 26, 0.48), transparent 18%),
        linear-gradient(145deg, rgba(38, 38, 38, 1), rgba(12, 12, 12, 1));
}

.project-modal__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 18px 52px 8px 8px;
}

.project-modal__eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(200, 255, 26, 0.12);
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-modal__content h3 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.95;
}

.project-modal__content p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.project-modal__meta,
.project-modal__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-modal__meta span,
.project-modal__short,
.project-modal__thumb {
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.project-modal__short {
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.86);
}

.project-modal__thumb {
    width: 76px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.project-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal__thumb.is-active {
    border-color: rgba(200, 255, 26, 0.8);
    box-shadow: inset 0 0 0 1px rgba(200, 255, 26, 0.24);
}

.review-modal {
    position: fixed;
    inset: 0;
    z-index: 81;
    display: grid;
    place-items: center;
    padding: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.review-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--glass-scrim);
    backdrop-filter: blur(var(--glass-backdrop-blur));
    -webkit-backdrop-filter: blur(var(--glass-backdrop-blur));
}

.review-modal__sheet {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: 28px 28px 30px;
    border-radius: 30px;
    transform: translateY(26px) scale(0.98);
    transition: transform 0.3s ease;
}

.review-modal.is-open .review-modal__sheet {
    transform: translateY(0) scale(1);
}

.review-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.review-modal__eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(200, 255, 26, 0.12);
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.review-modal__sheet h3 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.95;
}

.review-modal__role {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 1rem;
}

.review-modal__stars {
    margin: 18px 0 14px;
    font-size: 1.1rem;
}

.review-modal__sheet p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.site-nav a,
.brand-text,
.pill-button,
.outline-cta,
.section-badge,
.card-index {
    font-weight: 600;
}

.contact-intro h2 {
    font-size: clamp(3.1rem, 6vw, 5.4rem);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 1.1fr;
    gap: 22px;
    align-items: stretch;
}

.contact-card {
    padding: 26px;
}

.contact-card h3 {
    margin: 0 0 26px;
    font-size: 2rem;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.field-wrap input {
    width: 100%;
    padding: 14px 0 10px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.44);
    background: transparent;
    color: var(--text);
    outline: none;
}

.field-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.field-error,
.message {
    margin-top: 8px;
    color: #d8ff7b;
    font-size: 0.95rem;
}

.messages {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.contact-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.18rem;
}

.contact-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #fff;
    position: relative;
}

.contact-icon::before {
    content: "";
    position: absolute;
    inset: 5px;
    background: #101010;
}

.contact-icon--phone::before { clip-path: polygon(28% 18%, 42% 10%, 54% 22%, 46% 30%, 58% 46%, 70% 58%, 78% 50%, 90% 62%, 80% 74%, 68% 84%, 44% 70%, 24% 48%, 16% 28%); }
.contact-icon--mail::before { clip-path: polygon(8% 24%, 92% 24%, 92% 76%, 8% 76%, 8% 24%, 50% 54%, 92% 24%, 50% 54%, 8% 24%); }
.contact-icon--telegram::before { clip-path: polygon(12% 50%, 86% 18%, 62% 82%, 47% 58%, 28% 66%); }
.contact-icon--vk::before { clip-path: polygon(16% 24%, 32% 24%, 46% 46%, 56% 24%, 70% 24%, 56% 48%, 70% 76%, 56% 76%, 46% 58%, 32% 76%, 16% 76%, 30% 50%); }

.contact-illustration {
    display: flex;
    position: relative;
    min-height: 420px;
    justify-content: flex-end;
}

.logo_footer {
    display: block;
    width: min(243px, 64vw);
    height: auto;
    max-height: 448px;
    object-fit: contain;
}

.sail,
.boat-base,
.wave {
    position: absolute;
    background: #f1f1f0;
}

.sail {
    top: 74px;
    width: 90px;
    height: 220px;
    border-radius: 18px 18px 8px 8px;
}

.sail--left {
    left: 108px;
    clip-path: polygon(52% 0, 100% 100%, 0 100%);
}

.sail--right {
    left: 212px;
    height: 244px;
    clip-path: polygon(14% 0, 100% 100%, 42% 100%);
}

.boat-base {
    left: 80px;
    bottom: 96px;
    width: 230px;
    height: 58px;
    border-radius: 12px;
    clip-path: polygon(0 20%, 100% 0, 84% 100%, 18% 100%);
}

.contact_icon {
    width: 50px;
}

.wave {
    left: 112px;
    bottom: 18px;
    width: 170px;
    height: 22px;
    border-radius: 999px;
    background: var(--accent);
}

.wave--offset {
    left: 128px;
    bottom: 52px;
}

.site-footer {
    padding: 34px 0 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.34);
    font-size: 0.82rem;
    content-visibility: auto;
    contain-intrinsic-size: 90px;
}

.flash-stack {
    position: fixed;
    top: 92px;
    left: 50%;
    z-index: 90;
    width: min(680px, calc(100vw - 28px));
    display: grid;
    gap: 10px;
    transform: translateX(-50%);
    pointer-events: none;
}

.flash {
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(16, 18, 12, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.14);
    color: #f7f7f7;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.flash--success {
    border-color: rgba(200, 255, 26, 0.55);
    background: rgba(36, 48, 18, 0.94);
    color: #f5ffd0;
}

@keyframes marquee-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes marquee-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (max-width: 1180px) {
    .site-nav {
        gap: 30px;
    }

    .specialization,
    .contact-grid,
    .team-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 680px;
    }

    .hero-frame {
        min-height: 680px;
        padding: 130px 24px 30px;
    }

    .hero-copy {
        padding: 42px 40px 48px;
    }

    .section {
        padding-inline: 8px;
    }

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

    .timeline {
        grid-template-columns: repeat(5, minmax(180px, 1fr));
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 14px;
    }

    body::before,
    body::after,
    .hero::before,
    .hero::after {
        animation: none;
    }

    .tag-track {
        animation-duration: 34s;
    }
}

@media (max-width: 820px) {
    .page-shell {
        width: min(100vw - 20px, 100%);
    }

    .section {
        padding-inline: 6px;
    }

    .site-header {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 24px;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        gap: 22px;
        flex-wrap: wrap;
    }

    .flash-stack {
        top: 126px;
        width: min(100vw - 20px, 100%);
    }

    .hero {
        min-height: auto;
        padding-top: 12px;
    }

    .hero-frame {
        min-height: auto;
        padding: 88px 12px 12px;
    }

    .hero-label {
        top: 18px;
        left: 18px;
        padding: 12px 20px;
        font-size: 1.45rem;
        border-radius: 20px;
    }

    .hero-copy {
        display: flex;
        min-height: 440px;
        position: relative;
        inset: auto;
        padding: 34px 18px 30px;
        border-radius: 24px;
        clip-path: inset(0 round 24px);
        margin-bottom: 12px;
        align-items: stretch;
        justify-content: stretch;
    }

    .hero-copy h1 {
        font-size: clamp(3.2rem, 17vw, 5.2rem);
    }

    .hero-copy p {
        max-width: 100%;
        font-size: 1.08rem;
    }

    .hero-inner {
        position: relative;
        inset: auto;
        padding: 0;
        background: transparent;
        animation: none;
        opacity: 1;
    }

    .outline-cta {
        min-height: 70px;
        font-size: 1.2rem;
    }

    .lab-teaser-row {
        position: relative;
        right: auto;
        top: auto;
        bottom: auto;
        margin: 2px 4px 0 auto;
        max-width: 100%;
    }

    .lab-teaser {
        min-width: 0;
    }

    .section h2,
    .specialization-copy h2,
    .contact-intro h2 {
        font-size: clamp(2rem, 9vw, 3.3rem);
    }

    .service-grid,
    .approach-grid,
    .reviews-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .stats div:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 6px;
    }

    .timeline::before {
        top: 28px;
        bottom: 28px;
        left: 31px;
        right: auto;
        width: 3px;
        height: auto;
    }

    .timeline-item {
        display: grid;
        grid-template-columns: 62px 1fr;
        gap: 14px;
        align-items: center;
        text-align: left;
        justify-items: stretch;
    }

    .timeline-item span {
        width: 62px;
        height: 62px;
        font-size: 1.9rem;
        box-shadow: 0 0 0 5px rgba(200, 255, 26, 0.05);
    }

    .timeline-card {
        min-height: auto;
        padding: 16px 16px 15px;
        border-radius: 18px;
    }

    .timeline-card h3 {
        margin-bottom: 8px;
        font-size: 1.12rem;
    }

    .timeline-card p {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .section-title-box,
    .reviews-title {
        width: 100%;
        padding-inline: 20px;
    }

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

    .project-modal {
        align-items: end;
        padding: 0;
    }

    .review-modal {
        align-items: end;
        padding: 0;
    }

    .project-modal__sheet {
        width: 100%;
        max-height: min(88vh, 860px);
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 16px 22px;
        border-radius: 28px 28px 0 0;
        transform: translateY(100%);
        overflow: auto;
    }

    .project-modal.is-open .project-modal__sheet {
        transform: translateY(0);
    }

    .project-modal__media {
        min-height: 240px;
    }

    .project-modal__content {
        padding: 0 2px 6px;
    }

    .project-modal__content h3 {
        font-size: 1.8rem;
    }

    .project-modal__content p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .review-modal__sheet {
        width: 100%;
        padding: 20px 18px 24px;
        border-radius: 28px 28px 0 0;
        transform: translateY(100%);
    }

    .review-modal.is-open .review-modal__sheet {
        transform: translateY(0);
    }

    .review-modal__sheet h3 {
        font-size: 1.7rem;
    }

    .review-modal__sheet p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .team-grid--scroll > *,
    .project-grid--scroll > * {
        flex-basis: min(268px, 78vw);
    }

    .portrait-body h3,
    .project-body h3,
    .review-card h3,
    .contact-card h3 {
        font-size: 1.45rem;
    }

    .portrait-body p,
    .project-body p,
    .review-card p,
    .contact-item,
    .glass-card p,
    .outlined-card p {
        font-size: 0.96rem;
    }

    .glass-card h3,
    .outlined-card h3 {
        font-size: 1.6rem;
    }

    .stats strong {
        font-size: 3.2rem;
    }

    .stats span {
        font-size: 1rem;
    }

    .section-title-box,
    .reviews-title {
        min-height: 72px;
        font-size: 2rem;
    }

    .contact-illustration {
        min-height: 280px;
        height: 280px;
        justify-content: center;
    }

    .logo_footer {
        width: min(190px, 58vw);
        max-height: 280px;
    }

    .sail--left {
        left: 52px;
    }

    .sail--right {
        left: 136px;
    }

    .boat-base {
        left: 26px;
        width: 190px;
    }

    .wave {
        left: 58px;
        width: 136px;
    }

    .wave--offset {
        left: 74px;
    }
}

@media (max-width: 560px) {
    .site-header {
        gap: 14px;
        padding: 12px 14px 16px;
    }

    .brand {
        width: 35px;
        justify-content: center;
    }

    .site-nav {
        gap: 14px 20px;
        font-size: 0.82rem;
    }

    .flash-stack {
        top: 136px;
        width: min(100vw - 14px, 100%);
    }

    .flash {
        font-size: 0.9rem;
        padding: 12px 14px;
    }

    .pill-button--light {
        width: 100%;
    }

    .service-grid,
    .approach-grid,
    .reviews-grid,
    .stats {
        gap: 14px;
    }

    .page-shell {
        width: min(100vw - 14px, 100%);
    }

    .section {
        padding-inline: 3px;
    }

    .hero-copy p,
    .outline-cta,
    .site-nav {
        font-size: 0.98rem;
    }

    .timeline-card h3 {
        font-size: 1.02rem;
    }

    .timeline-card p {
        font-size: 0.86rem;
    }

    .glass-card {
        min-height: 180px;
    }

    .glass-card h3 {
        margin-top: 28px;
        font-size: 1.45rem;
    }

    .outlined-card {
        min-height: 180px;
        padding: 18px;
    }

    .step-index {
        margin-bottom: 14px;
        font-size: 2.4rem;
    }

    .specialization-copy h2,
    .contact-intro h2 {
        font-size: 1.9rem;
    }

    .project-meta,
    .project-short {
        font-size: 0.82rem;
    }

    .project-modal__content h3 {
        font-size: 1.45rem;
    }

    .project-modal__meta,
    .project-modal__thumbs {
        gap: 8px;
    }

    .project-modal__meta span,
    .project-modal__short {
        font-size: 0.82rem;
    }

    .project-modal__thumb {
        width: 62px;
        height: 62px;
    }

    .review-modal__sheet h3 {
        font-size: 1.42rem;
    }

    .review-modal__role,
    .review-modal__sheet p {
        font-size: 0.88rem;
    }

    .glass-card,
    .review-card,
    .contact-card,
    .project-card,
    .portrait-card,
    .outlined-card {
        border-radius: 18px;
    }
}


@media (max-width: 500px) {
    .reviews-title, .section-title-box {
        margin-top: 30px;
        min-height: 30px;
        font-size: 1.5rem;
        margin-bottom: 40px;
        padding: 13px 68px;
        border: 2px solid rgba(255, 255, 255, 0.94);
    }

    .contact_icon {
        width: 40px;
    }
}

@keyframes ambient-shimmer {
    from {
        transform: translate3d(-1.5%, -1%, 0) scale(1);
        opacity: 0.35;
    }
    to {
        transform: translate3d(1.5%, 1%, 0) scale(1.04);
        opacity: 0.56;
    }
}

@keyframes ambient-flow {
    from {
        transform: translate3d(-2.6%, -1.8%, 0) scale(1.01);
        background-position: 24% 26%;
    }
    to {
        transform: translate3d(2.8%, 2%, 0) scale(1.05);
        background-position: 76% 70%;
    }
}

@keyframes hero-flow {
    from {
        transform: translate3d(-2.8%, -1.6%, 0) scale(1);
        background-position: 22% 24%;
    }
    to {
        transform: translate3d(3%, 1.8%, 0) scale(1.04);
        background-position: 78% 72%;
    }
}

@keyframes hero-flow-secondary {
    from {
        transform: translate3d(2%, 2.4%, 0) scale(1.04);
    }
    to {
        transform: translate3d(-2.8%, -1.8%, 0) scale(1.08);
    }
}

@keyframes lab-teaser-sway {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(-0.5deg);
    }
    50% {
        transform: translate3d(0, -5px, 0) rotate(0.8deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .hero::before,
    .hero::after,
    .lab-teaser {
        animation: none !important;
    }

    .tag-track {
        animation-duration: 42s !important;
    }
}

@media (update: slow) {
    body::before,
    body::after,
    .hero::before,
    .hero::after {
        animation: none;
    }

    .site-header,
    .section-title-box,
    .reviews-title,
    .panel,
    .hero-panel,
    .glass-card,
    .review-card,
    .contact-card,
    .project-card,
    .portrait-card,
    .outlined-card,
    .timeline-card,
    .hero-label,
    .outline-cta,
    .project-modal__sheet,
    .review-modal__sheet {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Dev-only theme layer and shader playground. */
:root {
    --site-header-height: 72px;
    --site-header-gutter: 40px;
}

.site-header {
    position: fixed;
    top: 8px;
    left: 50%;
    z-index: 100;
    width: min(1320px, calc(100vw - var(--site-header-gutter)));
    transform: translateX(-50%);
}

.page-shell > main {
    padding-top: calc(var(--site-header-height) + 16px);
}

.flash-stack {
    top: calc(var(--site-header-height) + 24px);
}

html[data-theme="dark"] {
    color-scheme: dark;
}

body,
.site-header,
.panel,
.hero-panel,
.glass-card,
.outlined-card,
.timeline-card,
.portrait-card,
.project-card,
.review-card,
.contact-card,
.project-modal__sheet,
.review-modal__sheet,
input,
button {
    transition:
        color 240ms ease,
        background-color 240ms ease,
        border-color 240ms ease,
        box-shadow 240ms ease;
}

.site-header,
.panel,
.hero-panel,
.glass-card,
.outlined-card,
.timeline-card,
.portrait-card,
.project-card,
.review-card,
.contact-card {
    border-color: var(--dev-glass-stroke);
    background-color: rgba(var(--dev-glass-color), var(--dev-glass-alpha));
}

.glass-card,
.outlined-card,
.timeline-card,
.portrait-card,
.project-card,
.review-card,
.contact-card,
.hero-panel,
.panel {
    color: var(--dev-text-color);
}

.glass-card p,
.outlined-card p,
.timeline-card p,
.portrait-body p,
.project-body p,
.review-card p,
.contact-card p,
.project-meta,
.project-short,
.review-modal__role,
.review-modal__sheet p {
    color: var(--dev-muted-color);
}

.section-title-box,
.reviews-title,
.project-modal__eyebrow,
.review-modal__eyebrow,
.project-modal__short {
    color: var(--dev-accent-color);
}

.card-index {
    background: var(--dev-accent-color);
}

.section-badge,
.pill-button--light,
.tech-tag--light,
.contact-form input {
    background: var(--dev-control-bg);
    color: var(--dev-control-text);
}

.contact-form input {
    border-color: var(--dev-glass-stroke);
}

.project-modal__sheet,
.review-modal__sheet {
    background: rgba(var(--dev-glass-color), 0.92);
    color: var(--dev-text-color);
}

html[data-theme="dark"] .brand img,
html[data-theme="dark"] .contact_icon {
    filter: none;
}

html[data-theme="dark"] .logo_footer {
    filter: brightness(1.15);
}

html[data-theme="dark"] .project-modal__close,
html[data-theme="dark"] .review-modal__close {
    color: #ffffff;
}

.dev-lab {
    position: relative;
    z-index: 2;
    margin: 30px 4px 10px;
    padding: clamp(20px, 3vw, 38px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 32px;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.14), transparent 38%),
        var(--dev-panel-bg);
    color: var(--dev-panel-text);
    box-shadow: 0 26px 80px rgba(12, 18, 9, 0.24);
    backdrop-filter: blur(22px) saturate(125%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
}

.dev-lab::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--dev-accent-color);
    opacity: 0.12;
    filter: blur(70px);
    pointer-events: none;
}

.dev-lab__heading,
.dev-lab__actions,
.dev-lab__layout,
.dev-lab__switches,
.dev-lab__theme-switch,
.dev-lab__noise-switch,
.dev-lab__cursor-switch,
.dev-lab__colors,
.dev-lab__sliders {
    display: flex;
}

.dev-lab__heading {
    position: relative;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.dev-lab__heading h2 {
    margin: 6px 0 0;
    font-size: clamp(2rem, 4.5vw, 4.2rem);
    line-height: 0.95;
}

.dev-lab__eyebrow {
    color: var(--dev-accent-color);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dev-lab__actions {
    flex-wrap: wrap;
    gap: 8px;
}

.dev-lab__button,
.dev-lab__theme-switch button,
.dev-lab__noise-switch button,
.dev-lab__cursor-switch button {
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    cursor: pointer;
}

.dev-lab__button:hover,
.dev-lab__theme-switch button:hover,
.dev-lab__noise-switch button:hover,
.dev-lab__cursor-switch button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.dev-lab__button--quiet {
    color: rgba(255, 255, 255, 0.7);
}

.dev-lab__switches {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin: 24px 0;
}

.dev-lab__switch-label {
    display: block;
    margin: 0 0 7px 8px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dev-lab__theme-switch,
.dev-lab__noise-switch,
.dev-lab__cursor-switch {
    width: fit-content;
    padding: 4px;
    gap: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
}

.dev-lab__theme-switch button,
.dev-lab__noise-switch button,
.dev-lab__cursor-switch button {
    min-width: 116px;
    border-color: transparent;
}

.dev-lab__noise-switch button,
.dev-lab__cursor-switch button {
    min-width: 72px;
}

.dev-lab__theme-switch button[aria-pressed="true"],
.dev-lab__noise-switch button[aria-pressed="true"],
.dev-lab__cursor-switch button[aria-pressed="true"] {
    background: var(--dev-accent-color);
    color: #10130c;
}

.dev-lab__layout {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 14px;
}

.dev-lab__group {
    min-width: 0;
    margin: 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.14);
}

.dev-lab__group:first-child {
    flex: 0 0 min(360px, 34%);
}

.dev-lab__group:last-child {
    flex: 1 1 auto;
}

.dev-lab__group:nth-child(2) {
    flex: 1 1 520px;
}

.dev-lab__group--hero {
    flex: 1 0 100%;
}

.dev-lab__group--hero .dev-lab__sliders {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.dev-lab__group legend {
    padding: 0 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dev-lab__colors {
    flex-wrap: wrap;
    gap: 10px;
}

.dev-lab__colors label {
    flex: 1 1 96px;
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
}

.dev-lab__colors input[type="color"] {
    width: 100%;
    height: 48px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.dev-lab__sliders {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: 18px 20px;
}

.dev-lab__sliders label {
    min-width: 0;
}

.dev-lab__sliders label > span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
}

.dev-lab output {
    color: var(--dev-accent-color);
    font-variant-numeric: tabular-nums;
}

.dev-lab input[type="range"] {
    width: 100%;
    accent-color: var(--dev-accent-color);
    cursor: ew-resize;
}

.dev-lab__note {
    margin: 18px 2px 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.76rem;
}

.dev-lab code {
    color: var(--dev-accent-color);
}

@media (max-width: 900px) {
    :root {
        --site-header-gutter: 20px;
    }

    .dev-lab__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dev-lab__layout {
        flex-direction: column;
    }

    .dev-lab__group:first-child {
        flex-basis: auto;
    }

    .dev-lab__sliders {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .dev-lab__group--hero .dev-lab__sliders {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 560px) {
    :root {
        --site-header-gutter: 14px;
    }

    .dev-lab {
        margin-inline: 0;
        padding: 18px 14px;
        border-radius: 24px;
    }

    .dev-lab__actions,
    .dev-lab__actions button,
    .dev-lab__switches,
    .dev-lab__switches > div,
    .dev-lab__theme-switch,
    .dev-lab__noise-switch,
    .dev-lab__cursor-switch {
        width: 100%;
    }

    .dev-lab__actions button,
    .dev-lab__theme-switch button,
    .dev-lab__noise-switch button,
    .dev-lab__cursor-switch button {
        flex: 1 1 0;
    }

    .dev-lab__sliders {
        grid-template-columns: 1fr;
    }

    .dev-lab__group--hero .dev-lab__sliders {
        grid-template-columns: 1fr;
    }
}
