:root {
    --mz-ink: #111827;
    --mz-ink-2: #1f2937;
    --mz-cream: #fff7ed;
    --mz-paper: #f8fafc;
    --mz-line: rgba(17, 24, 39, .12);
    --mz-muted: #64748b;
    --mz-orange: #f97316;
    --mz-gold: #fbbf24;
    --mz-blue: #2563eb;
    --mz-green: #14b8a6;
    --mz-radius-lg: 28px;
    --mz-radius-md: 20px;
    --mz-shadow: 0 24px 70px rgba(15, 23, 42, .14);
    --mz-shell: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.mz-theme {
    margin: 0;
    color: var(--mz-ink);
    background: #fff;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    line-height: 1.65;
}

.mz-theme a {
    color: inherit;
    text-decoration: none;
}

.mz-shell {
    width: min(var(--mz-shell), calc(100% - 44px));
    margin: 0 auto;
}

.mz-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    background: rgba(17, 24, 39, .9);
    backdrop-filter: blur(18px);
}

.mz-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.mz-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -.03em;
    font-family: "Space Grotesk", sans-serif;
}

.mz-brand img {
    width: 150px;
    max-height: 54px;
    object-fit: contain;
}

.mz-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #111827;
    background: linear-gradient(135deg, var(--mz-gold), var(--mz-orange));
    box-shadow: 0 14px 34px rgba(249, 115, 22, .28);
}

.mz-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: rgba(255, 255, 255, .76);
    font-size: .96rem;
    font-weight: 700;
}

.mz-nav-links a:hover {
    color: #fff;
}

.mz-nav-cta,
.mz-button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.mz-nav-cta,
.mz-button-primary {
    color: #111827 !important;
    background: linear-gradient(135deg, var(--mz-gold), var(--mz-orange));
    box-shadow: 0 18px 38px rgba(249, 115, 22, .24);
}

.mz-button-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
}

.mz-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 15px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mz-menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.mz-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 64px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, .24), transparent 34%),
        radial-gradient(circle at 14% 22%, rgba(37, 99, 235, .24), transparent 30%),
        linear-gradient(135deg, #111827 0%, #172033 50%, #0f172a 100%);
}

.mz-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.mz-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, .78fr);
    gap: 54px;
    align-items: center;
}

.mz-kicker {
    margin: 0 0 14px;
    color: var(--mz-orange);
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .82rem;
    font-weight: 900;
}

.mz-theme h1,
.mz-theme h2,
.mz-theme h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.05;
    letter-spacing: -.055em;
}

.mz-theme h1 {
    max-width: 850px;
    font-size: clamp(3rem, 7vw, 6.6rem);
}

.mz-theme h2 {
    font-size: clamp(2rem, 4vw, 4rem);
}

.mz-theme h3 {
    font-size: 1.42rem;
}

.mz-lead {
    max-width: 720px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1.08rem, 1.4vw, 1.24rem);
}

.mz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 30px;
}

.mz-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.mz-proof span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: rgba(255, 255, 255, .76);
    background: rgba(255, 255, 255, .06);
    font-weight: 700;
}

.mz-hero-card {
    display: grid;
    gap: 18px;
}

.mz-terminal,
.mz-profile-card,
.mz-card,
.mz-project,
.mz-content,
.mz-side-card,
.mz-form,
.mz-empty {
    border: 1px solid var(--mz-line);
    border-radius: var(--mz-radius-lg);
    background: #fff;
    box-shadow: var(--mz-shadow);
}

.mz-terminal {
    overflow: hidden;
    color: #d1fae5;
    border-color: rgba(255, 255, 255, .16);
    background: rgba(2, 6, 23, .72);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .26);
}

.mz-terminal-bar {
    display: flex;
    gap: 7px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mz-terminal-bar span {
    width: 11px;
    height: 11px;
    border-radius: 99px;
    background: var(--mz-orange);
}

.mz-terminal-bar span:nth-child(2) {
    background: var(--mz-gold);
}

.mz-terminal-bar span:nth-child(3) {
    background: var(--mz-green);
}

.mz-terminal pre {
    margin: 0;
    padding: 24px;
    white-space: pre-wrap;
    font-size: 1rem;
}

.mz-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    color: #fff;
    border-color: rgba(255, 255, 255, .14);
    background:
        radial-gradient(circle at 88% 8%, rgba(251, 191, 36, .24), transparent 30%),
        rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
}

.mz-profile-card img,
.mz-avatar {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: 24px;
    object-fit: cover;
}

.mz-avatar {
    display: grid;
    place-items: center;
    color: #111827;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--mz-gold), var(--mz-orange));
}

.mz-profile-card strong,
.mz-profile-card span {
    display: block;
}

.mz-profile-card span {
    color: rgba(255, 255, 255, .72);
}

.mz-strip {
    border-bottom: 1px solid var(--mz-line);
    background: var(--mz-cream);
}

.mz-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.mz-strip-grid div {
    min-height: 108px;
    padding: 22px 20px;
    border-right: 1px solid rgba(17, 24, 39, .1);
}

.mz-strip-grid div:last-child {
    border-right: 0;
}

.mz-strip-grid strong {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.mz-strip-grid span {
    display: block;
    margin-top: 8px;
    color: #6b4e2e;
    font-weight: 700;
}

.mz-section {
    padding: 82px 0;
}

.mz-section-light {
    background: var(--mz-paper);
}

.mz-section-dark {
    color: #fff;
    background:
        radial-gradient(circle at 18% 0%, rgba(249, 115, 22, .2), transparent 30%),
        linear-gradient(135deg, #111827, #0f172a);
}

.mz-section-head {
    max-width: 900px;
    margin-bottom: 34px;
}

.mz-section-head h2 {
    max-width: 920px;
}

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

.mz-card {
    padding: 26px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}

.mz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .18);
}

.mz-card-number {
    color: var(--mz-orange);
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
}

.mz-card h2,
.mz-card h3 {
    margin-top: 12px;
}

.mz-card p,
.mz-project p,
.mz-prose,
.mz-contact-note {
    color: var(--mz-muted);
}

.mz-card a,
.mz-project a,
.mz-content a:not(.mz-button) {
    margin-top: auto;
    color: var(--mz-orange);
    font-weight: 900;
}

.mz-two-col {
    display: grid;
    grid-template-columns: .85fr 1fr;
    gap: 56px;
    align-items: start;
}

.mz-prose {
    font-size: 1.08rem;
}

.mz-prose p:first-child {
    margin-top: 0;
}

.mz-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mz-project {
    overflow: hidden;
    color: var(--mz-ink);
    background: #fff;
}

.mz-project img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.mz-project div {
    padding: 26px;
}

.mz-intro {
    display: grid;
    grid-template-columns: .65fr 1fr;
    gap: 42px;
    align-items: start;
}

.mz-contact-grid,
.mz-detail-grid {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: 32px;
    align-items: start;
}

.mz-mail {
    display: inline-flex;
    margin-top: 20px;
    color: var(--mz-orange);
    font-size: 1.15rem;
    font-weight: 900;
}

.mz-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 28px;
}

.mz-form label {
    display: grid;
    gap: 7px;
    color: var(--mz-ink);
    font-weight: 800;
}

.mz-form input,
.mz-form textarea {
    width: 100%;
    border: 1px solid var(--mz-line);
    border-radius: 16px;
    padding: 13px 14px;
    color: var(--mz-ink);
    background: var(--mz-paper);
    font: inherit;
    outline: none;
}

.mz-form textarea {
    min-height: 150px;
    resize: vertical;
}

.mz-form-full,
.mz-form .mz-button,
.mz-alert {
    grid-column: 1 / -1;
}

.mz-alert {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
}

.mz-alert-success {
    color: #065f46;
    background: #d1fae5;
}

.mz-alert-error {
    color: #991b1b;
    background: #fee2e2;
}

.mz-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.mz-subhero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 64px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, .22), transparent 32%),
        linear-gradient(135deg, #111827, #0f172a);
}

.mz-subhero h1 {
    max-width: 900px;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.mz-subhero p:not(.mz-kicker) {
    max-width: 720px;
    color: rgba(255, 255, 255, .72);
    font-size: 1.15rem;
}

.mz-back {
    display: inline-flex;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.mz-back::before {
    content: "<";
    margin-right: 8px;
    color: var(--mz-orange);
}

.mz-content {
    padding: 38px;
    max-width: 920px;
    font-size: 1.07rem;
}

.mz-content h2,
.mz-content h3 {
    margin-top: 1.55em;
}

.mz-content h2:first-child,
.mz-content h3:first-child,
.mz-content p:first-child {
    margin-top: 0;
}

.mz-content p,
.mz-content li {
    color: var(--mz-muted);
}

.mz-side-card {
    position: sticky;
    top: 100px;
    padding: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(251, 191, 36, .34), transparent 32%),
        linear-gradient(135deg, #111827, #1f2937);
}

.mz-side-card p {
    color: rgba(255, 255, 255, .72);
}

.mz-detail-image {
    margin: 0 0 28px;
    padding: 14px;
    border-radius: 24px;
    background: var(--mz-paper);
}

.mz-detail-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: 18px;
}

.mz-empty {
    padding: 42px;
    text-align: center;
}

.mz-empty-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
}

.mz-footer {
    padding: 54px 0 26px;
    color: #fff;
    background: #111827;
}

.mz-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .55fr .65fr;
    gap: 36px;
}

.mz-footer p {
    max-width: 480px;
    color: rgba(255, 255, 255, .68);
}

.mz-footer h4 {
    margin: 0 0 14px;
}

.mz-footer a {
    display: block;
    margin: 8px 0;
    color: rgba(255, 255, 255, .72);
}

.mz-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .58);
}

@media (max-width: 980px) {
    .mz-hero-grid,
    .mz-two-col,
    .mz-intro,
    .mz-contact-grid,
    .mz-detail-grid,
    .mz-footer-grid {
        grid-template-columns: 1fr;
    }

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

    .mz-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mz-menu-toggle {
        display: inline-flex;
    }

    .mz-nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 22px;
        background: rgba(17, 24, 39, .98);
        box-shadow: var(--mz-shadow);
    }

    .mz-nav-links.is-open {
        display: flex;
    }

    .mz-side-card {
        position: static;
    }
}

@media (max-width: 680px) {
    .mz-shell {
        width: min(100% - 28px, var(--mz-shell));
    }

    .mz-nav {
        min-height: 68px;
    }

    .mz-hero,
    .mz-section,
    .mz-subhero {
        padding: 52px 0;
    }

    .mz-theme h1 {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }

    .mz-actions,
    .mz-form,
    .mz-card-grid,
    .mz-project-grid,
    .mz-strip-grid {
        grid-template-columns: 1fr;
    }

    .mz-actions {
        display: grid;
    }

    .mz-button {
        width: 100%;
    }

    .mz-strip-grid div {
        border-right: 0;
        border-bottom: 1px solid rgba(17, 24, 39, .1);
    }

    .mz-card,
    .mz-content,
    .mz-side-card,
    .mz-form {
        padding: 22px;
        border-radius: 22px;
    }

    .mz-footer-bottom {
        display: block;
    }
}
