:root {
    --bg: #000000;
    --surface: #141414;
    --stroke: rgba(255, 255, 255, 0.14);
    --stroke-strong: rgba(255, 255, 255, 0.82);
    --text: #f3f3f0;
    --muted: rgba(255, 255, 255, 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: linear-gradient(140deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06) 42%, rgba(255, 255, 255, 0.02) 100%);
    --glass-stroke: rgba(255, 255, 255, 0.24);
    --glass-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    --flow-1-x: 72%;
    --flow-1-y: 26%;
    --flow-2-x: 18%;
    --flow-2-y: 46%;
    --flow-3-x: 78%;
    --flow-3-y: 78%;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body::before,
body::after {
    content: "";
    position: fixed;
    inset: -15vmax;
    z-index: -2;
    pointer-events: none;
}

body::before {
    background:
        radial-gradient(circle 34vmax at var(--flow-1-x) var(--flow-1-y), rgba(188, 255, 78, 0.18), rgba(188, 255, 78, 0) 64%),
        radial-gradient(circle 30vmax at var(--flow-2-x) var(--flow-2-y), rgba(174, 255, 96, 0.11), rgba(174, 255, 96, 0) 62%),
        radial-gradient(circle 26vmax at var(--flow-3-x) var(--flow-3-y), rgba(143, 247, 112, 0.09), rgba(143, 247, 112, 0) 64%),
        radial-gradient(circle at 50% 50%, rgba(8, 13, 7, 0.88), rgba(2, 4, 2, 0.98) 62%);
    filter: blur(1px) saturate(104%);
    transform: translate3d(0, 0, 0);
    background-size: 120% 120%;
    background-position: 32% 34%;
    animation: ambient-flow 24s ease-in-out infinite alternate;
    will-change: transform;
}

body::after {
    z-index: -1;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 36%),
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.06), transparent 28%);
    mix-blend-mode: normal;
    opacity: 0.16;
    animation: ambient-shimmer 16s ease-in-out infinite alternate;
}

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: 1px solid var(--glass-stroke);
    border-radius: 0 0 26px 26px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.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: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(128%);
    -webkit-backdrop-filter: blur(20px) saturate(128%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 30px rgba(0, 0, 0, 0.2);
    color: var(--accent);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
}

.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-stroke);
    border-radius: var(--radius-xl);
    background: var(--glass-fill);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    box-shadow: var(--glass-shadow);
}

.panel::before {
    display: none;
}

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

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 40vmax at var(--flow-1-x) var(--flow-1-y), rgba(198, 255, 56, 0.64), rgba(166, 255, 0, 0.4) 32%, rgba(101, 198, 0, 0.12) 54%, rgba(101, 198, 0, 0) 72%),
        radial-gradient(circle 30vmax at var(--flow-2-x) var(--flow-2-y), rgba(176, 255, 66, 0.28), rgba(176, 255, 66, 0) 64%);
    filter: blur(6px) saturate(112%);
    pointer-events: none;
    opacity: 0.62;
    background-size: 120% 120%;
    background-position: 34% 34%;
    animation: hero-flow 20s ease-in-out infinite alternate;
    will-change: transform;
}

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

.hero-label {
    position: absolute;
    top: 32px;
    left: 42px;
    z-index: 3;
    padding: 18px 42px 18px 38px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    font-size: clamp(2rem, 3.1vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-panel {
    position: absolute;
    border: 1px solid var(--glass-stroke);
    border-radius: 32px;
    background: var(--glass-fill);
    backdrop-filter: blur(26px) saturate(140%);
    -webkit-backdrop-filter: blur(26px) saturate(140%);
    box-shadow: var(--glass-shadow);
    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;
    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: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-size: clamp(1.4rem, 2.3vw, 2.2rem);
    font-weight: 500;
}

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

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

.glass-card,
.review-card,
.contact-card,
.project-card,
.portrait-card {
    border: 1px solid var(--glass-stroke);
    border-radius: var(--radius-md);
    background: var(--glass-fill);
    backdrop-filter: blur(24px) saturate(132%);
    -webkit-backdrop-filter: blur(24px) saturate(132%);
    box-shadow: var(--glass-shadow);
}

/* Performance: reduce heavy glass blur stack for smoother fast scrolling. */
.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 {
    backdrop-filter: blur(12px) saturate(118%);
    -webkit-backdrop-filter: blur(12px) saturate(118%);
}

.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 {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 46%);
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
}

.hero-panel > *,
.panel > *,
.glass-card > *,
.review-card > *,
.contact-card > *,
.project-card > *,
.portrait-card > *,
.outlined-card > *,
.timeline-card > * {
    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: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.step-index {
    display: block;
    margin-bottom: 20px;
    font-size: 3.2rem;
    line-height: 1;
}

.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: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px) saturate(124%);
    -webkit-backdrop-filter: blur(18px) saturate(124%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.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;
    margin-top: 18px;
}

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

.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: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
}

.project-modal__sheet {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 22px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(26px) scale(0.98);
    transition: transform 0.3s ease;
}

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

.project-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;
}

.project-modal__media {
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(42, 42, 42, 1), rgba(14, 14, 14, 1));
}

.project-modal__media img,
.project-modal__placeholder {
    width: 100%;
    height: 100%;
    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;
    padding: 18px 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: 0 0 0 2px rgba(200, 255, 26, 0.18);
}

.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: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(12px);
}

.review-modal__sheet {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: 28px 28px 30px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    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;
}

.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;
}

@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 {
        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;
    }

    .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;
    }

    .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 7px rgba(200, 255, 26, 0.08);
    }

    .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;
    }

    .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;
    }

    .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.01);
        background-position: 22% 24%;
    }
    to {
        transform: translate3d(3%, 1.8%, 0) scale(1.04);
        background-position: 78% 72%;
    }
}

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

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

@media (update: slow) {
    body::before,
    body::after,
    .hero::before {
        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 {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
