:root {
    --ink: #111827;
    --muted: #5f6c7b;
    --paper: #f7f2ea;
    --panel: #ffffff;
    --line: rgba(17, 24, 39, 0.12);
    --teal: #0f766e;
    --amber: #d89135;
    --rose: #a65363;
    --deep: #0b1220;
    --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 18px clamp(18px, 4vw, 56px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(11, 18, 32, 0.72);
    color: #fff;
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.18);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand span,
.profile-mark {
    display: grid;
    place-items: center;
    width: 40px;
    aspect-ratio: 1;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--teal), var(--amber));
    color: #fff;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.menu-toggle {
    display: none;
    width: 42px;
    aspect-ratio: 1;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    padding: 160px clamp(18px, 5vw, 72px) 64px;
    overflow: hidden;
    color: #fff;
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(4, 8, 16, 0.92) 0%, rgba(4, 8, 16, 0.68) 38%, rgba(4, 8, 16, 0.22) 100%),
        linear-gradient(0deg, rgba(11, 18, 32, 0.95) 0%, rgba(11, 18, 32, 0) 48%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    max-width: 10ch;
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.88;
    letter-spacing: 0;
}

.hero-role {
    margin: 22px 0 0;
    color: #b5f5ec;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 700;
}

.hero-copy {
    max-width: 620px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.btn.primary {
    background: var(--amber);
    color: #16110b;
}

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.34);
    color: #fff;
}

.btn.dark {
    background: var(--deep);
    color: #fff;
}

.hero-panel {
    position: absolute;
    right: clamp(18px, 5vw, 72px);
    bottom: 64px;
    z-index: 1;
    width: min(330px, calc(100% - 36px));
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.hero-panel p {
    margin: 18px 0 8px;
    color: #b5f5ec;
    font-weight: 800;
}

.hero-panel strong {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
}

.strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}

.stats div {
    padding: 34px clamp(18px, 5vw, 72px);
    background: #fffaf2;
}

.stats strong {
    display: block;
    color: var(--teal);
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1;
}

.stats span {
    color: var(--muted);
    font-weight: 700;
}

.section {
    padding: 86px clamp(18px, 5vw, 72px);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr);
    gap: 32px;
    max-width: 1180px;
    margin: 0 auto 42px;
}

.section-heading.narrow {
    display: block;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section h2,
.contact h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
}

.about-grid p {
    margin: 0;
    padding: 28px;
    border-left: 5px solid var(--teal);
    background: rgba(255, 255, 255, 0.58);
    color: #394454;
    font-size: 1.05rem;
}

.services,
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}

.service-card,
.project-card {
    min-height: 270px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 42px rgba(17, 24, 39, 0.07);
}

.service-card:nth-child(2) {
    background: #eef8f6;
}

.service-card:nth-child(3) {
    background: #fff4e4;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 54px;
    aspect-ratio: 1;
    border-radius: 8px;
    background: var(--deep);
}

.service-icon::before {
    content: "";
    width: 24px;
    aspect-ratio: 1;
    background: var(--amber);
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
}

.service-icon[data-icon="layers"]::before {
    clip-path: polygon(50% 0, 100% 25%, 50% 50%, 0 25%);
    box-shadow: 0 9px 0 #b5f5ec, 0 18px 0 var(--rose);
}

.service-icon[data-icon="message"]::before {
    clip-path: polygon(0 0, 100% 0, 100% 72%, 56% 72%, 35% 100%, 35% 72%, 0 72%);
}

.service-card h3,
.project-card h3,
.timeline-list h3 {
    margin: 22px 0 10px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.service-card p,
.project-card span,
.timeline-list p {
    margin: 0;
    color: var(--muted);
}

.skills {
    background: #111827;
    color: #fff;
}

.skills h2 {
    color: #fff;
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-cloud span {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 6px;
    background: linear-gradient(90deg, var(--teal), var(--amber), var(--rose));
}

.project-number {
    display: block;
    color: var(--amber);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
}

.project-card p {
    margin: 22px 0 0;
    color: var(--teal);
    font-weight: 800;
}

.timeline {
    background: #fffaf2;
}

.timeline-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
}

.timeline-list article {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.timeline-list article > span {
    color: var(--rose);
    font-size: 1.25rem;
    font-weight: 800;
}

.timeline-list h3 {
    margin-top: 0;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 70px clamp(18px, 5vw, 72px);
    padding: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f766e, #111827 58%, #a65363);
    color: #fff;
    box-shadow: var(--shadow);
}

.contact .eyebrow {
    color: #ffd391;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(18px, 5vw, 72px);
    color: var(--muted);
    font-weight: 700;
}

footer a {
    color: var(--teal);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        border-radius: 8px;
        background: rgba(11, 18, 32, 0.96);
    }

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

    .nav-links a {
        padding: 12px;
    }

    .hero {
        min-height: 850px;
        align-items: start;
        padding-top: 138px;
    }

    .hero-panel {
        left: 18px;
        right: 18px;
        bottom: 28px;
    }

    .strip,
    .section-heading,
    .about-grid,
    .services,
    .project-grid,
    .timeline-list article,
    .contact {
        grid-template-columns: 1fr;
    }

    .contact {
        display: grid;
        padding: 30px;
    }
}

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

    .brand strong {
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    h1 {
        font-size: clamp(3.4rem, 17vw, 5rem);
    }

    .section {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .stats div {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .hero-actions,
    .contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    footer {
        flex-direction: column;
    }
}
