:root {
    --bg: #03070b;
    --surface: rgba(5, 17, 22, 0.78);
    --surface-strong: rgba(5, 17, 22, 0.94);
    --line: rgba(68, 224, 223, 0.18);
    --line-strong: rgba(68, 224, 223, 0.42);
    --text: #edf7ff;
    --muted: #a9c3c8;
    --accent: #44e0df;
    --cyan: #44e0df;
    --gold: #44e0df;
    --ink: #05080d;
    --radius: 24px;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(68, 224, 223, 0.82);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 9999;
    transform: translateY(-140%);
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    padding: 10px 16px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease;
}

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

.page-glow {
    display: none;
}

header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 18px 28px;
    background: rgba(5, 8, 13, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

nav {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.logo-mark {
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid rgba(68, 224, 223, 0.34);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 80%, rgba(11, 58, 70, 0.28), transparent 62%),
        rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 1px rgba(68, 224, 223, 0.12), 0 0 28px rgba(11, 58, 70, 0.2);
}

.logo-mark-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.logo-copy {
    display: grid;
    gap: 2px;
}

.logo-copy strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
}

.logo-copy small {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.nav-links a {
    display: block;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 9px 12px;
    color: rgba(247, 251, 255, 0.76);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 800;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
    border-color: rgba(68, 224, 223, 0.2);
    background:
        linear-gradient(135deg, rgba(68, 224, 223, 0.11), rgba(11, 58, 70, 0.26)),
        rgba(7, 31, 38, 0.58);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(11, 58, 70, 0.18);
}

.hamburger {
    display: none;
    width: 46px;
    height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.hamburger span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

main {
    background:
        radial-gradient(circle at 50% -8%, rgba(68, 224, 223, 0.08), transparent 28%),
        radial-gradient(circle at 82% 8%, rgba(11, 58, 70, 0.28), transparent 26%),
        linear-gradient(120deg, #05080d 0%, #071f26 52%, #0b3a46 100%);
}

main > section {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 112px 0;
    scroll-margin-top: 96px;
}

.hero {
    width: 100%;
    min-height: 100dvh;
    padding: 128px 24px 72px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 58% 8%, rgba(68, 224, 223, 0.1), transparent 28%),
        radial-gradient(circle at 76% 34%, rgba(11, 58, 70, 0.38), transparent 36%),
        linear-gradient(128deg, #05080d 0%, #071f26 48%, #0b3a46 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -22%;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(118deg, transparent 0 22%, rgba(11, 58, 70, 0.22) 31%, rgba(68, 224, 223, 0.1) 38%, transparent 50%),
        linear-gradient(118deg, transparent 0 52%, rgba(7, 31, 38, 0.3) 60%, rgba(169, 195, 200, 0.08) 68%, transparent 80%);
    filter: blur(14px);
    opacity: 0.72;
    transform: translate3d(-4%, 0, 0);
    animation: none;
}

.hero-beams-canvas,
.hero-beams-vignette {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-beams-canvas {
    z-index: 1;
    display: none;
    opacity: 1;
    filter: saturate(1.18);
}

.hero-beams-vignette {
    z-index: 2;
    background:
        radial-gradient(circle at 50% 44%, transparent 0 28%, rgba(5, 8, 13, 0.12) 54%, rgba(5, 8, 13, 0.74) 100%),
        linear-gradient(180deg, rgba(5, 8, 13, 0.42), rgba(5, 8, 13, 0.02) 38%, rgba(5, 8, 13, 0.36) 100%),
        linear-gradient(90deg, rgba(5, 8, 13, 0.72), transparent 18%, transparent 82%, rgba(5, 8, 13, 0.72));
}

.shader-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.hero-shell {
    position: relative;
    z-index: 3;
    width: min(1180px, 100%);
}

@keyframes heroBeamsFloat {
    0%,
    100% {
        transform: translate3d(-4%, 0, 0) scale(1);
        opacity: 0.72;
    }

    50% {
        transform: translate3d(4%, -3%, 0) scale(1.05);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    text-align: center;
}

.hero-panel {
    display: none;
}

.eyebrow {
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-availability {
    width: fit-content;
    min-height: 46px;
    margin: 20px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 20px;
    border: 1px solid rgba(68, 224, 223, 0.22);
    border-radius: 999px;
    background: rgba(5, 8, 13, 0.42);
    color: #e9fbff;
    font-size: 0.9rem;
    font-weight: 800;
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.2);
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.12);
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.02;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 18ch;
    margin: 24px auto 0;
    background: linear-gradient(90deg, #edf7ff 0%, #c8fbff 28%, #44e0df 55%, #0b3a46 84%, #edf7ff 100%);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(3rem, 6vw, 5.6rem);
    font-weight: 700;
    line-height: 1;
    text-wrap: balance;
    filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.34));
    animation: none;
}

@keyframes heroGradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-lead {
    max-width: 760px;
    margin: 22px auto 0;
    color: rgba(237, 247, 255, 0.84);
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    font-weight: 500;
    line-height: 1.72;
    text-wrap: balance;
}

.hero-actions,
.hero-process,
.hero-social-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-actions {
    margin-top: 38px;
}

.hero-process,
.hero-social-proof {
    margin-top: 20px;
}

.btn,
.download-button,
.submit-btn,
.hero-social-proof a {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 22px;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
.download-button:hover,
.download-button:focus-visible,
.submit-btn:hover,
.submit-btn:focus-visible,
.hero-social-proof a:hover,
.hero-social-proof a:focus-visible {
    transform: translateY(-2px);
}

.btn-primary,
.download-button,
.submit-btn {
    background:
        linear-gradient(135deg, rgba(237, 247, 255, 0.1), rgba(68, 224, 223, 0.32)),
        #05080d;
    border: 1px solid rgba(68, 224, 223, 0.42);
    color: #edf7ff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 34px rgba(11, 58, 70, 0.24);
}

.btn-secondary,
.hero-social-proof a {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(5, 8, 13, 0.38);
    color: var(--text);
    backdrop-filter: blur(18px);
}

.hero-process span,
.skill,
.tech {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(68, 224, 223, 0.16);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(247, 251, 255, 0.88);
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-metrics {
    width: min(900px, 100%);
    margin: 48px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    min-height: 124px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(5, 8, 13, 0.44);
    backdrop-filter: blur(18px);
}

.metric-value {
    display: block;
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
}

.metric-label {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.84rem;
}

.section-heading,
.experience-heading {
    max-width: 820px;
    margin-bottom: 42px;
    position: relative;
}

.section-heading::after,
.experience-heading::after {
    content: "";
    display: block;
    width: 96px;
    height: 3px;
    margin-top: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, #44e0df, #0b3a46, transparent);
    box-shadow: 0 0 24px rgba(68, 224, 223, 0.2);
}

.section-title {
    max-width: 13ch;
    margin-top: 10px;
    font-size: clamp(2.45rem, 4.7vw, 4.6rem);
    font-weight: 700;
    line-height: 0.96;
    text-wrap: balance;
}

.section-subtitle {
    max-width: 66ch;
    margin-top: 14px;
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.7;
}

.section-subtitle,
p,
li {
    color: var(--muted);
}

.services-grid,
.projects-grid,
.capability-grid,
.cv-container,
.contact-layout,
.footer-content {
    display: grid;
    gap: 18px;
}

.services-grid,
.projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.about-content,
.contact-layout,
.cv-container,
.project-featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.about-content {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
    align-items: start;
}

.about-text {
    max-width: 72ch;
}

.about-side {
    display: grid;
    gap: 18px;
}

.portrait-card {
    max-height: 520px;
}

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

.service-card,
.project-card,
.capability-card,
.cv-document,
.cv-skills,
.contact-copy,
.contact-form,
.work-together-shell,
.portrait-card,
.experience-slider-shell,
.branding-feature,
.branding-copy,
.branding-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.service-card:hover,
.project-card:hover,
.capability-card:hover,
.cv-document:hover,
.cv-skills:hover {
    transform: translateY(-4px);
    border-color: rgba(68, 224, 223, 0.28);
    background: rgba(10, 18, 30, 0.84);
}

.service-card,
.project-body,
.capability-card,
.cv-document,
.cv-skills,
.contact-copy,
.contact-form,
.work-together-shell,
.branding-copy {
    padding: 28px;
}

.service-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card i,
.capability-card i {
    font-size: 1.35rem;
}

.service-card h3,
.capability-card h3,
.project-title,
.cv-document h3,
.cv-skills h3 {
    margin-top: 16px;
    color: var(--text);
    font-size: 1.38rem;
    font-weight: 700;
    line-height: 1.08;
}

.service-card p,
.capability-card p,
.project-description,
.cv-document p,
.contact-copy p,
.about-text p {
    margin-top: 12px;
    color: #c4cfda;
    font-size: 1.06rem;
    font-weight: 500;
    line-height: 1.78;
}

.service-card .btn {
    margin-top: auto;
}

.service-card i,
.capability-card i,
.document-mark {
    color: var(--accent);
}

.project-featured {
    grid-column: 1 / -1;
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
}

.project-image {
    min-height: 320px;
    background: rgba(255, 255, 255, 0.04);
}

.project-image img,
.portrait-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-card img {
    object-position: center top;
}

.project-tech,
.skills,
.skills-list,
.cv-details,
.contact-points,
.work-together-actions,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.skills-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
    list-style: none;
}

.skills-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: start;
    gap: 12px;
    color: #c8d3df;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
}

.skills-list i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(68, 224, 223, 0.08);
    color: var(--accent);
    font-size: 0.9rem;
}

.contact-points a,
.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #eaf4ff;
    font-weight: 700;
    text-decoration-color: rgba(68, 224, 223, 0.4);
    text-underline-offset: 4px;
}

.skills {
    max-width: 760px;
}

.branding-section {
    position: relative;
    width: min(1340px, calc(100% - 48px));
    padding-top: 72px;
    padding-bottom: 72px;
}

.branding-section .section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.branding-section .section-title {
    max-width: 16ch;
    font-size: clamp(2rem, 3.6vw, 3.4rem);
}

.branding-section .section-subtitle {
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.55;
}

.branding-section .section-heading::after {
    margin-top: 16px;
}

.branding-carousel {
    display: grid;
    grid-template-columns: minmax(240px, 0.28fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.branding-carousel-copy {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 88% 12%, rgba(68, 224, 223, 0.12), transparent 26%),
        var(--surface);
    box-shadow: var(--shadow);
    padding: 22px;
    backdrop-filter: blur(18px);
}

.branding-carousel-copy h3 {
    max-width: 12ch;
    margin-top: 12px;
    font-size: clamp(1.65rem, 2.7vw, 2.7rem);
}

.branding-carousel-copy p {
    max-width: 54ch;
    margin-top: 16px;
    color: #c4cfda;
    font-size: 0.98rem;
    font-weight: 500;
}

.branding-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.branding-points span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(68, 224, 223, 0.18);
    border-radius: 999px;
    padding: 0 13px;
    color: #eaf8ff;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.84rem;
    font-weight: 800;
}

.branding-carousel-shell {
    position: relative;
    height: clamp(420px, 62vh, 620px);
    min-height: 0;
    overflow: hidden;
    scroll-margin-top: 104px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: var(--shadow);
}

.branding-track {
    height: 100%;
    display: flex;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.branding-slide {
    min-width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
}

.branding-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #02050a;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(5, 8, 13, 0.68);
    color: var(--text);
    backdrop-filter: blur(16px);
    transform: translateY(-50%);
}

.carousel-btn-prev {
    left: 18px;
}

.carousel-btn-next {
    right: 18px;
}

.branding-carousel-footer {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.carousel-counter {
    color: var(--gold);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
}

.carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(68, 224, 223, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
}

.carousel-dot.is-active {
    width: 32px;
    background: linear-gradient(90deg, #0b3a46, #44e0df);
    border-color: transparent;
}

.work-together-shell {
    max-width: 920px;
}

.contact-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
    align-items: start;
}

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

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label,
.turnstile-label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.assistant-form input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--text);
    padding: 15px 16px;
    font-size: 1rem;
}

.turnstile-shell {
    display: grid;
    gap: 10px;
}

.turnstile-widget {
    min-height: 65px;
}

.turnstile-widget.is-local-preview {
    display: grid;
    gap: 6px;
    min-height: auto;
    border: 1px solid rgba(68, 224, 223, 0.2);
    border-radius: 16px;
    background: rgba(68, 224, 223, 0.06);
    color: var(--muted);
    padding: 14px 16px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.turnstile-preview-status {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.form-note {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.form-alert {
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 13px 15px;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.5;
}

.form-alert[aria-hidden="false"] {
    display: block;
}

.form-alert.is-success {
    border-color: rgba(75, 255, 190, 0.42);
    background: rgba(75, 255, 190, 0.08);
}

.form-alert.is-error {
    border-color: rgba(255, 117, 117, 0.42);
    background: rgba(255, 117, 117, 0.08);
}

.submit-btn:disabled {
    cursor: wait;
    filter: saturate(0.8);
    opacity: 0.78;
    transform: none;
}

.security-trap,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-footer {
    width: min(1280px, calc(100% - 48px));
    margin: 24px auto 0;
    padding: 58px 0 34px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 18% 18%, rgba(68, 224, 223, 0.06), transparent 28%),
        radial-gradient(circle at 82% 0%, rgba(11, 58, 70, 0.12), transparent 28%);
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 8, 13, 0), rgba(5, 8, 13, 0.42) 62%, rgba(5, 8, 13, 0.74));
    z-index: 0;
}

.footer-content,
.footer-bottom {
    position: relative;
    z-index: 3;
}

.footer-content {
    grid-template-columns: minmax(280px, 0.92fr) 1.18fr;
    align-items: start;
    gap: clamp(38px, 7vw, 110px);
}

.footer-brand {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: start;
    gap: 18px;
    max-width: 440px;
    min-width: 0;
}

.footer-logo-link {
    width: 64px;
    height: 64px;
    display: inline-flex;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(68, 224, 223, 0.24), 0 0 34px rgba(11, 58, 70, 0.22), 0 18px 46px rgba(0, 0, 0, 0.38);
}

.footer-logo {
    width: 64px;
    height: 64px;
    border: 1px solid rgba(68, 224, 223, 0.28);
    border-radius: 999px;
    object-fit: cover;
    object-position: center;
}

.footer-title {
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-text,
.copyright,
.footer-bottom p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-text {
    margin-top: 12px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    border-color: rgba(68, 224, 223, 0.5);
    color: var(--cyan);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: clamp(24px, 4vw, 60px);
}

.footer-column {
    display: grid;
    gap: 12px;
}

.footer-column h3 {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
}

.footer-column a {
    width: fit-content;
    color: rgba(230, 240, 250, 0.68);
    font-size: 0.95rem;
    line-height: 1.3;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.footer-column a:hover {
    color: var(--cyan);
    transform: translateX(4px);
}

.footer-flicker {
    position: relative;
    z-index: 2;
    height: clamp(170px, 22vw, 300px);
    margin-top: 56px;
    overflow: hidden;
    border-radius: 4px;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 70%, rgba(11, 58, 70, 0.24), transparent 38%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.16), transparent 24%),
        repeating-radial-gradient(circle at 50% 58%, rgba(169, 195, 200, 0.075) 0 1px, transparent 1px 7px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 82%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 82%, transparent 100%);
}

.footer-flicker::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(5, 8, 13, 0.7), transparent 30%, transparent 72%, rgba(5, 8, 13, 0.58)),
        radial-gradient(circle at 50% 62%, rgba(11, 58, 70, 0.18), transparent 42%);
}

.footer-flicker::after {
    content: "MB SYSTEMS";
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    color: rgba(169, 195, 200, 0.18);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(3.8rem, 10vw, 8.5rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 0.9;
    text-align: center;
    text-shadow: 0 0 34px rgba(11, 58, 70, 0.28);
    text-transform: uppercase;
    pointer-events: none;
}

.footer-flicker-canvas {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p,
.copyright {
    margin: 0;
}

.floating-assistant {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 120;
}

.assistant-toggle {
    position: relative;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(68, 224, 223, 0.42);
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 85%, rgba(11, 58, 70, 0.32), transparent 58%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02) 36%, rgba(68, 224, 223, 0.12)),
        rgba(5, 8, 13, 0.94);
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.58),
        0 0 0 7px rgba(68, 224, 223, 0.035),
        0 0 44px rgba(11, 58, 70, 0.28);
    cursor: pointer;
    overflow: hidden;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.assistant-toggle::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 210deg, rgba(11, 58, 70, 0.78), rgba(68, 224, 223, 0.34), transparent 38%, rgba(255, 255, 255, 0.54), rgba(11, 58, 70, 0.78));
    opacity: 0.5;
    animation: assistantCinematicRing 7s linear infinite;
}

.assistant-toggle::after {
    content: "";
    position: absolute;
    inset: 8px -24px;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.42), transparent 62%);
    transform: translateX(-70%) rotate(-16deg);
    animation: assistantCinematicSweep 4.8s ease-in-out infinite;
    opacity: 0.55;
}

.assistant-toggle:hover,
.assistant-toggle:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(68, 224, 223, 0.42);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(11, 58, 70, 0.12);
}

.assistant-toggle-logo {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(169, 195, 200, 0.22);
}

.assistant-toggle-dot {
    position: absolute;
    z-index: 2;
    right: 7px;
    bottom: 8px;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(5, 8, 13, 0.98);
    border-radius: 999px;
    background: #28e6a5;
}

@keyframes assistantCinematicRing {
    to {
        transform: rotate(360deg);
    }
}

@keyframes assistantCinematicSweep {
    0%, 48% {
        transform: translateX(-78%) rotate(-16deg);
    }

    68%, 100% {
        transform: translateX(78%) rotate(-16deg);
    }
}

.assistant-panel {
    position: fixed;
    right: 22px;
    bottom: 100px;
    width: min(390px, calc(100vw - 28px));
    height: min(620px, calc(100dvh - 124px));
    max-height: min(720px, calc(100dvh - 122px));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 0%, rgba(68, 224, 223, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(7, 13, 22, 1), rgba(3, 6, 11, 1));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    overscroll-behavior: contain;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.floating-assistant.is-open .assistant-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.assistant-panel-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 10, 17, 0.94);
}

.assistant-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
}

.assistant-panel-logo {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(68, 224, 223, 0.22);
}

.assistant-kicker {
    margin: 0 0 2px;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1.15;
    text-transform: uppercase;
}

.assistant-panel h3 {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.15;
}

.assistant-close,
.assistant-form button {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    cursor: pointer;
}

.assistant-messages {
    flex: 1 1 auto;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px 16px;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(68, 224, 223, 0.35) transparent;
}

.assistant-messages::-webkit-scrollbar {
    width: 6px;
}

.assistant-messages::-webkit-scrollbar-track {
    background: transparent;
}

.assistant-messages::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(68, 224, 223, 0.35);
}

.assistant-message {
    display: flex;
    width: 100%;
}

.assistant-message-user {
    justify-content: flex-end;
}

.assistant-message-user .assistant-bubble {
    max-width: 86%;
    background: rgba(11, 58, 70, 0.22);
    border-color: rgba(68, 224, 223, 0.22);
    color: var(--text);
}

.assistant-bubble {
    max-width: 88%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    padding: 12px 13px;
    line-height: 1.5;
    font-size: 0.94rem;
}

.assistant-message-bot .assistant-bubble {
    max-width: 100%;
}

.assistant-bubble strong {
    display: block;
    color: var(--text);
    margin-bottom: 5px;
    font-size: 0.98rem;
}

.assistant-bubble p {
    margin: 0;
}

.assistant-bubble a {
    color: var(--accent);
    font-weight: 800;
}

.assistant-quick-actions {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    padding: 9px 16px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(3, 6, 11, 0.58);
}

.assistant-quick-actions button {
    min-height: 40px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(68, 224, 223, 0.16);
    border-radius: 14px;
    background: rgba(68, 224, 223, 0.055);
    color: var(--text);
    padding: 0 11px;
    font-weight: 800;
    font-size: 0.86rem;
    cursor: pointer;
    text-align: left;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.assistant-quick-actions button:hover,
.assistant-quick-actions button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(68, 224, 223, 0.32);
    background: rgba(11, 58, 70, 0.18);
}

.assistant-quick-actions i {
    color: var(--accent);
    font-size: 0.88rem;
}

.assistant-quick-actions span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assistant-form {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(3, 6, 11, 0.74);
}

.assistant-form input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    padding: 0 15px;
    font-size: 0.94rem;
    text-overflow: ellipsis;
    outline: none;
    box-shadow: none;
}

.assistant-form button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-color: rgba(68, 224, 223, 0.34);
    background: linear-gradient(135deg, rgba(11, 58, 70, 0.96), rgba(68, 224, 223, 0.88));
    color: var(--ink);
    align-self: center;
}

.assistant-form:focus-within {
    background: rgba(3, 6, 11, 0.9);
}

@media (max-width: 1080px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 82px;
        left: 18px;
        right: 18px;
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
        background: rgba(5, 8, 13, 0.96);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: inline-flex;
    }

    .services-grid,
    .projects-grid,
    .about-content,
    .contact-layout,
    .cv-container,
    .project-featured,
    .branding-grid {
        grid-template-columns: 1fr;
    }

    .branding-carousel {
        grid-template-columns: 1fr;
    }

    .branding-carousel-shell {
        height: clamp(420px, 66vh, 620px);
        min-height: 0;
    }

    .branding-carousel-footer {
        grid-column: 1;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .footer-nav {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .copyright {
        text-align: left;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-beams-canvas,
    .shader-canvas,
    .footer-flicker-canvas {
        display: none;
    }

    header,
    .hero-availability,
    .service-card,
    .project-card,
    .capability-card,
    .cv-document,
    .cv-skills,
    .branding-carousel,
    .metric-card {
        backdrop-filter: none;
    }

    header {
        padding: 14px 16px;
    }

    .floating-assistant {
        right: 14px;
        bottom: 14px;
    }

    .assistant-toggle {
        width: 58px;
        height: 58px;
    }

    .assistant-toggle-logo {
        width: 45px;
        height: 45px;
    }

    .assistant-panel {
        position: fixed;
        left: 10px;
        right: 10px;
        top: calc(18px + env(safe-area-inset-top, 0px));
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        width: auto;
        height: auto;
        max-height: none;
        padding: 0;
        box-sizing: border-box;
        border-radius: 20px;
        background:
            radial-gradient(circle at 12% 0%, rgba(68, 224, 223, 0.12), transparent 34%),
            #03060b;
    }

    .assistant-panel-header {
        min-height: 82px;
        padding: 18px 14px 14px;
        box-sizing: border-box;
    }

    .assistant-panel-logo {
        width: 36px;
        height: 36px;
    }

    .assistant-title-group {
        align-items: center;
    }

    .assistant-kicker {
        margin-bottom: 3px;
        font-size: 0.62rem;
        line-height: 1.15;
    }

    .assistant-panel h3 {
        font-size: 0.96rem;
        line-height: 1.15;
    }

    .assistant-messages {
        min-height: 0;
        max-height: none;
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 14px;
    }

    .assistant-panel-header,
    .assistant-messages {
        padding-left: 16px;
        padding-right: 16px;
    }

    .assistant-form {
        margin: 0;
        gap: 8px;
        padding: 11px 14px 14px;
    }

    .assistant-form input {
        height: 44px;
        min-height: 44px;
        padding: 0 13px;
        font-size: 0.9rem;
    }

    .assistant-form button {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .assistant-quick-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        min-width: 0;
        max-width: 100%;
        padding: 9px 14px 10px;
        overflow: hidden;
    }

    .assistant-quick-actions button {
        min-height: 36px;
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 0 9px;
        font-size: 0.78rem;
    }

    .assistant-bubble {
        max-width: min(320px, calc(100vw - 92px));
    }

    .assistant-message-bot .assistant-bubble {
        max-width: none;
    }

    main > section {
        width: 100%;
        padding: 76px 0;
    }

    .assistant-panel {
        width: auto;
        padding: 0;
        max-height: none;
    }

    .hero {
        width: 100%;
        max-width: 100vw;
        padding: 112px 18px 56px;
        overflow-x: clip;
    }

    .hero-shell,
    .hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero-availability {
        width: min(100%, 360px);
        min-height: 44px;
        justify-content: center;
        padding: 0 14px;
        text-align: center;
        line-height: 1.25;
        white-space: normal;
    }

    .hero-availability span {
        flex: 0 0 auto;
    }

    .logo-copy small {
        display: none;
    }

    .hero h1 {
        width: 100%;
        max-width: 10.8ch;
        font-size: clamp(2.15rem, 9.2vw, 2.75rem);
        line-height: 1.04;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .hero-lead {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
        overflow-wrap: break-word;
    }

    .hero-actions .btn,
    .hero-social-proof a {
        width: 100%;
    }

    .hero-process span {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .site-footer {
        width: min(100%, calc(100% - 28px));
        padding-top: 42px;
    }

    .footer-brand {
        grid-template-columns: 52px 1fr;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-flicker {
        height: 170px;
        margin-top: 38px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .branding-carousel-copy {
        min-height: auto;
    }

    .branding-carousel-shell {
        height: min(68vh, 520px);
        min-height: 360px;
    }

    .branding-carousel-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .carousel-dots {
        justify-content: flex-start;
    }

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

    .service-card,
    .project-body,
    .capability-card,
    .cv-document,
    .cv-skills,
    .contact-copy,
    .contact-form,
    .work-together-shell {
        padding: 22px;
    }

    .footer-logo,
    .footer-logo-link {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .shader-canvas {
        display: none;
    }
}
