/* =========================
   RESET & BASE
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: #102a43;
    line-height: 1.65;
}

h1,
h2,
h3,
.logo {
    font-family: "Manrope", sans-serif;
}

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

.container,
.navwrap {
    width: min(1120px, 92%);
    margin: auto;
}

.section {
    padding: 100px 0;
    scroll-margin-top: 74px;
}

.light,
.contact {
    background: #f7f8fa;
}


/* =========================
   HEADER & NAVIGATION
========================= */

header {
    height: 74px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e0e7ee;
}

.navwrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 25px;
    font-weight: 800;
}

.logo span,
.eyebrow {
    color: #fca311;
}

.navwrap nav {
    display: flex;
    gap: 32px;
}

.navwrap nav a {
    font-size: 14px;
    font-weight: 700;
    color: #617488;
    padding: 25px 0;
}

.navwrap nav a:hover,
.navwrap nav a.active {
    color: #102a43;
}

.menu {
    display: none;
    border: 0;
    background: none;
    font-size: 25px;
}


/* =========================
   HERO SECTION
========================= */

.hero {
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    background: linear-gradient(
        115deg,
        #fff,
        #f2f7fa
    );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 70px;
    align-items: center;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    margin: 0 0 16px;
}

.hero h1 {
    font-size: clamp(35px, 5.3vw, 66px);
    line-height: 1.08;
    letter-spacing: -0.055em;
    margin: 0;
}

.hero h1 span {
    color: #1769aa;
}

.lead {
    font-size: 18px;
    color: #60758a;
    max-width: 650px;
    margin: 25px 0 30px;
}


/* =========================
   BUTTONS
========================= */

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 21px;
    border: 1px solid #d8e1e8;
    border-radius: 7px;
    background: #fff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn.primary {
    background: #102a43;
    color: #fff;
    border-color: #102a43;
}

.btn.primary:hover {
    background: #1769aa;
    border-color: #1769aa;
}


/* =========================
   HERO META
========================= */

.meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 26px;
    color: #60758a;
    font-size: 13px;
}

.meta span:first-child {
    color: #60758a;
}

.meta span:first-child::first-letter {
    color: #22a06b;
}

.meta a {
    font-weight: 800;
    color: #102a43;
}


/* =========================
   PROFILE PHOTO
========================= */

.photo-wrap {
    max-width: 410px;
    margin: auto;
    width: 100%;
}

.photo {
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    background: #e8eef3;
    border: 1px solid #d5e0e8;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(12, 37, 61, 0.1);
    position: relative;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #71879a;
    background: linear-gradient(
        145deg,
        #1368ad,
        #fafbfc
    );
}

.photo-placeholder b {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #102a43;
    color: #fff;
    font: 800 28px Manrope;
    margin-bottom: 17px;
}

.photo-placeholder strong {
    font-size: 12px;
    letter-spacing: 0.18em;
    color: #102a43;
}

.photo-placeholder small {
    font-size: 11px;
    margin-top: 8px;
}

.photo-wrap > p {
    font-size: 10px;
    letter-spacing: 0.13em;
    color: #7c90a1;
}


/* =========================
   SECTION HEADINGS
========================= */

.heading {
    max-width: 720px;
    margin-bottom: 55px;
}

.heading.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.heading h2 {
    font-size: clamp(33px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    margin: 0 0 15px;
}

.heading > p:last-child {
    color: #60758a;
    margin: 0;
}


/* =========================
   ABOUT SECTION
========================= */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
}

.copy {
    font-size: 17px;
    color: #53687c;
}

.skills {
    background: #fff;
    border: 1px solid #dce4ec;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 18px 55px rgba(12, 37, 61, 0.07);
}

.skills h3 {
    margin-top: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.chips span {
    padding: 8px 11px;
    border: 1px solid #e0e7ed;
    background: #f3f6f8;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}


/* =========================
   WORKFLOW
========================= */

.workflow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.workflow article {
    border: 1px solid #dce4ec;
    border-radius: 13px;
    padding: 25px 22px;
    transition: 0.25s ease;
}

.workflow article:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 55px rgba(12, 37, 61, 0.08);
}

.workflow b {
    color: #fca311;
    font-size: 12px;
}

.workflow h3 {
    font-size: 18px;
    margin: 12px 0 8px;
}

.workflow p {
    font-size: 13px;
    color: #60758a;
    margin: 0;
}


/* =========================
   DARK / PROJECT SECTION
========================= */

.dark {
    background: #091a2b;
    color: #fff;
}

.dark .heading > p:last-child {
    color: #9db0c2;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.project {
    border: 1px solid rgba(255, 255, 255, 0.13);
    padding: 29px;
    border-radius: 15px;
    min-height: 235px;
    background: rgba(255, 255, 255, 0.03);
    transition: 0.25s ease;
}

.project:hover {
    border-color: rgba(252, 163, 17, 0.5);
    transform: translateY(-4px);
}

.project.featured {
    grid-column: span 2;
}

.project small {
    font-size: 10px;
    color: #fca311;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.project h3 {
    font-size: 25px;
    margin: 24px 0 8px;
}

.project p {
    color: #aebfcd;
}

.project button {
    margin-top: 12px;
    border: 0;
    border-bottom: 1px solid #fca311;
    background: none;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    padding: 0 0 3px;
}


/* =========================
   LEAD TABLE
========================= */

.tablebox {
    margin-top: 65px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 15px;
    overflow: hidden;
}

.tabletop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tabletop .eyebrow {
    margin-bottom: 4px;
}

.tabletop h3 {
    margin: 0;
}

.tabletop em {
    font-style: normal;
    font-size: 10px;
    color: #fca311;
    border: 1px solid rgba(252, 163, 17, 0.4);
    padding: 6px 9px;
    border-radius: 30px;
    font-weight: 800;
}

.scroll {
    overflow: auto;
}

table {
    width: 100%;
    min-width: 730px;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    text-align: left;
}

th {
    color: #9db0c2;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

td:nth-child(6) {
    color: #fca311;
    font-weight: 800;
}

.note {
    font-size: 11px;
    color: #8196a8;
    padding: 15px 28px;
}


/* =========================
   CONTACT SECTION
========================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 90px;
}

.contact h2 {
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.muted {
    color: #60758a;
}

.contact-links {
    margin-top: 28px;
}

.contact-links a {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #dce4ec;
    padding: 15px 0;
    font-weight: 800;
}

.contact-links span {
    color: #60758a;
    font-weight: 500;
}


/* =========================
   CONTACT FORM
========================= */

.form {
    background: #fff;
    border: 1px solid #dce4ec;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 18px 55px rgba(12, 37, 61, 0.08);
}

.form label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 15px;
}

.form input,
.form textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    border: 1px solid #dce4ec;
    border-radius: 7px;
    padding: 12px;
    outline: none;
    resize: vertical;
}

.form input:focus,
.form textarea:focus {
    border-color: #1769aa;
}

.form .btn {
    width: 100%;
}

.form small {
    display: block;
    color: #8497a8;
    font-size: 10px;
    margin-top: 9px;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #071625;
    color: #8fa4b6;
    padding: 24px 0;
    font-size: 12px;
}

.foot {
    display: flex;
    justify-content: space-between;
}

.foot a {
    color: #fff;
    font-weight: 800;
}


/* =========================
   MODALS
========================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(4, 16, 27, 0.72);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex;
}

.modalbox {
    background: #fff;
    color: #102a43;
    width: min(650px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: 16px;
    padding: 35px;
    position: relative;
}

.close {
    position: absolute;
    right: 17px;
    top: 10px;
    border: 0;
    background: none;
    font-size: 30px;
    cursor: pointer;
    color: #687c8d;
}

.modalbox h2 {
    font-size: 32px;
    line-height: 1.15;
    margin: 0 0 14px;
}

.modalbox p,
.modalbox li {
    color: #60758a;
}


/* =========================
   MODAL STATS
========================= */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 24px 0;
}

.stats div {
    padding: 15px;
    background: #f3f6f8;
    border-radius: 8px;
}

.stats b {
    display: block;
    font: 800 22px Manrope;
}

.stats span {
    font-size: 11px;
    color: #60758a;
}

.score {
    display: flex;
    justify-content: space-between;
    border-block: 1px solid #dce4ec;
    padding: 14px;
}

.score b {
    color: #1769aa;
}


/* =========================
   OUTREACH QUOTES
========================= */

.quote {
    background: #f3f6f8;
    border-left: 3px solid #fca311;
    padding: 15px;
    margin: 13px 0;
}

.quote b {
    display: block;
}

.quote p {
    margin: 5px 0;
    font-size: 13px;
}


/* =========================
   CRM PIPELINE
========================= */

.pipeline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 25px 0;
}

.pipeline span {
    background: #eef3f7;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
}


/* =========================
   CASE STUDY
========================= */

.casegrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin: 25px 0;
}

.casegrid div {
    padding: 12px;
    background: #f3f6f8;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.casegrid b {
    color: #fca311;
    margin-right: 10px;
}


/* =========================
   SCROLL ANIMATION
========================= */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .photo-wrap {
        order: -1;
    }

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

    .contact-grid {
        gap: 45px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

    .section {
        padding: 75px 0;
    }

    .navwrap nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 74px;
        background: #fff;
        border-bottom: 1px solid #dce4ec;
        padding: 10px 4%;
        flex-direction: column;
        gap: 0;
    }

    .navwrap nav.open {
        display: flex;
    }

    .navwrap nav a {
        padding: 12px 0;
    }

    .menu {
        display: block;
    }

    .hero h1 {
        font-size: 42px;
    }

    .lead {
        font-size: 16px;
    }

    .photo-wrap {
        width: 78%;
    }

    .workflow,
    .projects {
        grid-template-columns: 1fr;
    }

    .project.featured {
        grid-column: auto;
    }

    .tabletop {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .foot {
        flex-direction: column;
        gap: 8px;
    }

    .stats,
    .casegrid {
        grid-template-columns: 1fr;
    }
}