:root {
    --bg: #041c13;
    --bg-soft: #0a2b1f;
    --surface: rgba(19, 56, 42, 0.52);
    --surface-strong: rgba(13, 45, 34, 0.76);
    --text: #e8f6ee;
    --text-muted: #b3d7c4;
    --accent: #66d4a0;
    --accent-strong: #3db881;
    --border: rgba(189, 246, 220, 0.24);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 15% 15%, #0b3f2e 0%, var(--bg) 40%, #03140e 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #8ce5ba;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.32;
    z-index: -1;
}

.orb-a {
    width: 320px;
    height: 320px;
    background: #2fc08a;
    top: -80px;
    right: -70px;
}

.orb-b {
    width: 260px;
    height: 260px;
    background: #17885f;
    bottom: 70px;
    left: -90px;
}

.orb-c {
    width: 180px;
    height: 180px;
    background: #9bffc6;
    top: 45%;
    right: 18%;
}

.glass {
    background: linear-gradient(155deg, rgba(26, 78, 57, 0.6), rgba(9, 31, 23, 0.5));
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.site-header {
    position: sticky;
    top: 12px;
    z-index: 4;
    width: min(1120px, calc(100% - 32px));
    margin: 16px auto 0;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-header nav {
    display: flex;
    gap: 10px 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-header nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.site-header nav a:hover {
    color: var(--accent);
}


main {
    width: min(1120px, calc(100% - 32px));
    margin: 26px auto 42px;
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
    align-items: center;
}

.hero-side {
    display: grid;
    gap: 14px;
}

.hero-copy h1 {
    margin: 10px 0 10px;
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.hero-copy p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 62ch;
}

.kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9cebc6;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.button {
    border-radius: 999px;
    padding: 11px 18px;
    font-weight: 700;
    display: inline-block;
    transition: transform 160ms ease, opacity 160ms ease;
}

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

.button.primary {
    color: #072114;
    background: linear-gradient(145deg, #8ef0c3, #43c18a);
}

.button.ghost {
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(19, 64, 47, 0.35);
}

.hero-image {
    border-radius: 22px;
    padding: 10px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
}

.credentials-top {
    border-radius: 16px;
    padding: 16px;
}

.credentials-top h2 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.section-block,
.section-stack {
    margin-top: 28px;
}

.section-block {
    border-radius: 20px;
    padding: 24px;
}

h2 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

h3 {
    margin: 26px 0 10px;
    font-size: 1.2rem;
}

.section-intro {
    margin-top: 0;
    color: var(--text-muted);
}

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

.project-card {
    border-radius: 16px;
    padding: 14px;
}

.project-card h4 {
    margin: 12px 0 8px;
    font-size: 1.06rem;
}

.project-card p {
    margin: 0 0 10px;
    color: var(--text-muted);
    line-height: 1.45;
}

.project-card a {
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
}

.project-card > img {
    width: 100%;
    height: 178px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(225, 255, 241, 0.2);
}

.card-preview {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(225, 255, 241, 0.2);
    background: rgba(4, 28, 19, 0.75);
}

.card-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: rgba(4, 28, 19, 0.9);
}

.card-preview--figma {
    height: 240px;
}

.card-preview--site {
    height: 220px;
}

.card-preview--image {
    padding: 0;
    line-height: 0;
}

.card-preview--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.card-preview--coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(165deg, rgba(115, 209, 174, 0.24), rgba(27, 86, 66, 0.5)),
        rgba(4, 28, 19, 0.75);
}

.card-preview--coming-soon .placeholder {
    width: 120px;
    height: 120px;
    opacity: 0.8;
}

.coming-soon-label {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #dffef1;
    background: rgba(8, 40, 31, 0.78);
    border: 1px solid rgba(220, 255, 240, 0.25);
    border-radius: 999px;
    padding: 6px 10px;
}

.placeholder {
    width: 100%;
    height: 178px;
    border-radius: 10px;
    border: 1px solid rgba(220, 255, 240, 0.22);
    background:
        linear-gradient(165deg, rgba(148, 245, 197, 0.42), rgba(39, 121, 86, 0.22)),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 8px, transparent 8px, transparent 16px);
}

.shape-circle { clip-path: circle(48% at 50% 50%); }
.shape-hex { clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%); }
.shape-pill { clip-path: inset(5% 10% 5% 10% round 999px); }
.shape-square { clip-path: inset(8% 8% 8% 8%); }
.shape-diamond { clip-path: polygon(50% 5%, 95% 50%, 50% 95%, 5% 50%); }
.shape-arch { clip-path: ellipse(50% 42% at 50% 55%); }
.shape-triangle { clip-path: polygon(50% 5%, 95% 95%, 5% 95%); }
.shape-plus { clip-path: polygon(40% 5%, 60% 5%, 60% 40%, 95% 40%, 95% 60%, 60% 60%, 60% 95%, 40% 95%, 40% 60%, 5% 60%, 5% 40%, 40% 40%); }

ul {
    margin: 0;
    padding-left: 20px;
}

li {
    margin: 8px 0;
    color: var(--text-muted);
}

.websites-block {
    margin-top: 18px;
    border-radius: 18px;
    padding: 16px;
}

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

@media (min-width: 1201px) {
    .card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 680px) {
    .site-header {
        position: static;
        margin-top: 10px;
        gap: 10px;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header nav {
        gap: 10px;
    }

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

    main {
        width: calc(100% - 22px);
    }

    .section-block {
        padding: 18px;
    }
}

.card-preview--artifact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 16px;
    background:
        linear-gradient(160deg, rgba(102, 212, 160, 0.18), rgba(9, 31, 23, 0.55)),
        rgba(4, 28, 19, 0.9);
}

.card-preview--artifact .artifact-type {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9cebc6;
}

.card-preview--artifact .artifact-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.card-preview--artifact.card-preview--diagram {
    background:
        linear-gradient(160deg, rgba(61, 184, 129, 0.22), rgba(9, 31, 23, 0.6)),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04) 0,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px,
            transparent 24px
        ),
        rgba(4, 28, 19, 0.9);
}

a.card-preview {
    color: inherit;
    text-decoration: none;
    display: block;
}

a.card-preview:hover {
    border-color: rgba(189, 246, 220, 0.45);
}

.card-preview-stretch {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.card-preview iframe {
    pointer-events: none;
}

.card-preview--figma::after,
.card-preview--site::after {
    content: "Preview — open project for full view";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 1;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
    background: rgba(4, 28, 19, 0.82);
    padding: 4px 6px;
    border-radius: 6px;
    pointer-events: none;
}

.project-card .card-link {
    display: inline-block;
    margin-top: 6px;
    font-weight: 700;
}

.fidelity-pill {
    display: inline-block;
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.fidelity-pill--high {
    color: #b8ffe0;
    background: rgba(61, 184, 129, 0.35);
}

.fidelity-pill--medium {
    color: #d4f0ff;
    background: rgba(72, 140, 180, 0.32);
}

.fidelity-pill--low {
    color: #e8f0c8;
    background: rgba(120, 140, 80, 0.28);
}

.project-hero .fidelity-pill {
    margin-bottom: 10px;
}

#app-ux h3 {
    margin-top: 28px;
}

#app-ux h3:first-of-type {
    margin-top: 8px;
}

.project-viewer-body--figma iframe {
    min-height: min(72vh, 820px);
}

.project-page main {
    width: min(1280px, calc(100% - 32px));
}

.project-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.project-back:hover {
    color: var(--accent);
}

.project-hero {
    margin-bottom: 20px;
}

.project-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.project-hero .meta {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
    gap: 20px;
    align-items: start;
}

.project-viewer {
    border-radius: 18px;
    padding: 12px;
    min-height: min(78vh, 900px);
    display: flex;
    flex-direction: column;
}

.project-viewer-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.project-viewer-toolbar a {
    font-size: 0.9rem;
    font-weight: 600;
}

.project-viewer-body {
    flex: 1;
    min-height: min(72vh, 820px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(225, 255, 241, 0.18);
    background: rgba(4, 28, 19, 0.85);
}

.project-viewer-body iframe,
.project-viewer-body embed,
.project-viewer-body object {
    width: 100%;
    height: 100%;
    min-height: min(72vh, 820px);
    border: 0;
    display: block;
}

.project-viewer-body img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.project-story {
    border-radius: 18px;
    padding: 22px;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.project-story h2 {
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.project-story h3 {
    margin: 18px 0 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9cebc6;
}

.project-story p,
.project-story li {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-story ul {
    padding-left: 18px;
    margin: 0 0 12px;
}

.project-story .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.project-story .tag {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: #c6f3dc;
    background: rgba(19, 64, 47, 0.45);
}

@media (max-width: 960px) {
    .project-layout {
        grid-template-columns: 1fr;
    }

    .project-story {
        position: static;
        max-height: none;
    }

    .project-viewer {
        min-height: 58vh;
    }

    .project-viewer-body,
    .project-viewer-body iframe,
    .project-viewer-body embed,
    .project-viewer-body object {
        min-height: 52vh;
    }
}