:root {
    /* BACKGROUNDS */
    --background: #FAF6F1;
    --background-secondary: #F2ECE5;

    /* TEXT */
    --text: #111419;
    --text-secondary: #393939;
    --text-highlight: #9A8D84;

    /* BUTTONS */
    --button-background: #101318;
    --button-text: #FFFFFF;

    /* BORDERS */
    --border: #D9D0C8;

    /* FONTS */
    --font-main: 'DM Sans', Arial, sans-serif;
    --font-stats: 'Cormorant Garamond', Georgia, serif;
    --page-width: 1160px;
    --section-space: clamp(36px, 5vw, 58px);
    --button-radius: 7px;
    --image-radius: 14px;
}

/* BASE STYLES */

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

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
}

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

button {
    font: inherit;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--text-highlight);
    outline-offset: 6px;
}

/* SHARED STYLES */

.container {
    width: 90%;
    max-width: var(--page-width);
    margin: 0 auto;
}

.sectionLabel {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1.5;
}

.sectionLabel::after {
    content: '';
    width: 66px;
    height: 1px;
    background: var(--text-secondary);
    flex-shrink: 0;
}

.heroImage, .charityImage, .webDevImage {
    background: #000;
}

.heroImage img, .charityImage img, .webDevImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: #fff;
    font-size: 14px;
}

.charityText h2, .webDevText h2, .contactSection h2 {
    font-size: clamp(30px, 3.7vw, 42px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1.3px;
    margin-top: 20px;
}

.sectionLink {
    display: inline-flex;
    gap: 24px;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
    padding-bottom: 7px;
    margin-top: 28px;
}

.sectionLink span {
    font-size: 26px;
    line-height: 1;
}

/* NAVIGATION */

.navContainer {
    display: grid;
    grid-template-columns: auto 1fr;
    margin-top: 0;
    position: relative;
    align-items: center;
    min-height: 100px;
    gap: 24px;
}

.navLinks {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    grid-column: 1 / -1;
    transform: translateY(-10px);
    transition: transform 0.6s, opacity 0.6s, visibility 0.3s;
    z-index: 100;
    padding: 20px;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
}

.navLinks a {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    padding: 10px;
}

.navLinks.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.navlogo {
    margin-left: 5px;
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    margin-right: 5px;
    border: 0;
    background: transparent;
    padding: 12px 0 12px 12px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 20px;
    background-color: black;
    flex-direction: column;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.navLogo, .navlogo {
    margin-left: 0;
    font-size: 28px;
    letter-spacing: -1px;
    white-space: nowrap;
}

.navLinks .ctaContact, .heroCta1 {
    background: var(--button-background);
    color: var(--button-text);
    border-radius: var(--button-radius);
    padding: 15px 24px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.heroCta1:hover, .navLinks .ctaContact:hover {
    background: var(--text-secondary);
    transform: scale(1.03);
}

.navLink:hover, .sectionLink:hover, .heroCta2:hover {
    color: var(--text-highlight);
    transform: scale(1.03);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

/* HERO */

.heroContainer {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.heroTitle {
    margin-top: 24px;
    font-family: var(--font-main);
    font-size: clamp(38px, 5.1vw, 64px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -2px;
}

.heroTitle2 {
    color: var(--text-highlight);
    font-style: italic;
    font-size: inherit;
    font-weight: 400;
    display: block;
    line-height: 1.1;
}

.heroParagraph {
    margin-top: 30px;
    width: 100%;
    max-width: 39ch;
    font-size: 18px;
    text-align: left;
    line-height: 1.5;
}

.heroImage {
    margin-top: 0;
    background-color: black;
    min-height: 0;
    position: relative;
    aspect-ratio: 1.1;
    border-radius: 0;
    /* Rounded, slanted outline; the photo inside stays upright. */
    clip-path: polygon(
        43% 0%, 79% 0%, 84% 0.5%, 88.5% 2%, 92.5% 4.5%,
        96% 8%, 98.5% 12.5%, 100% 18%, 100% 23%, 99% 29%,
        89% 72%, 87% 79%, 84% 85%, 80% 90%, 75% 94%,
        69% 97%, 63% 99%, 57% 100%, 28% 100%, 22% 99.5%,
        16% 98%, 11% 95.5%, 6.5% 92%, 3% 87.5%, 1% 82%,
        0% 76%, 0% 70%, 1% 64%, 6% 42%, 9% 31%,
        13% 21%, 18% 13%, 23.5% 7%, 30% 3%, 36% 1%
    );
    overflow: hidden;
}

.heroCtas {
    display: flex;
    flex-direction: row;
    gap: 22px 36px;
    margin-top: 36px;
    font-size: 16px;
    white-space: nowrap;
    align-items: center;
    flex-wrap: wrap;
}

.heroTitles {
    align-self: center;
    min-width: 0;
}

.heroCta1 {
    display: inline-flex;
    align-items: center;
    gap: 28px;
}

.heroCta2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid currentColor;
    padding: 8px 0;
    font-weight: 600;
}

/* ACHIEVEMENTS */

.charityFigureShort {
    display: none;
}

.achievementsContainer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
    grid-column: 1 / -1;
    padding: 20px 0 54px;
}

.achievement {
    text-align: center;
    padding: 0 12px;
}

.achievement:last-child {
    align-items: center;
    justify-content: center;
    grid-column: auto;
    margin: 0;
    text-align: center;
}

.achievement + .achievement {
    border-left: 1px solid var(--text-highlight);
}

.achievement h2 {
    font-family: var(--font-stats);
    font-size: clamp(32px, 5.5vw, 62px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -2px;
}

.achievement p {
    margin-top: 14px;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

/* CHARITY AND WEB DEVELOPMENT */

.charitySection, .webDevSection {
    display: grid;
    align-items: center;
    gap: 36px;
    border-top: 1px solid var(--border);
    padding: var(--section-space) 0;
}

.charityImage, .webDevImage {
    aspect-ratio: 1.8;
    overflow: hidden;
    border-radius: var(--image-radius);
}

.webDevImage {
    background: transparent;
    aspect-ratio: auto;
    border-radius: 0;
}

.webDevImage img {
    height: auto;
    object-fit: contain;
}

.charityText > p:not(.sectionLabel), .webDevText > p:not(.sectionLabel) {
    font-size: 19px;
    line-height: 1.5;
    max-width: 35ch;
    margin-top: 22px;
}

/* CONTACT */

.contactSection {
    padding: clamp(40px, 6vw, 76px) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
    text-align: center;
}

.contactSection .sectionLabel {
    flex-direction: column;
    gap: 16px;
    color: var(--text-highlight);
}

.contactSection .sectionLabel::after {
    background: var(--text-highlight);
}

.contactSection h2 {
    font-family: var(--font-stats);
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 26px auto 0;
    max-width: 40ch;
}

.contactLinks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.contactLink {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    max-width: 100%;
    font-size: clamp(14px, 1.8vw, 21px);
}

.contactLink span {
    overflow-wrap: anywhere;
}

.contactLink:hover {
    color: var(--text-highlight);
}

.contactIcon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--text-highlight);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.linkedinBackground {
    fill: var(--text-highlight);
    stroke: none;
}

.linkedinMark {
    stroke: var(--background);
    stroke-width: 2.5;
}

.linkedinDot {
    fill: var(--background);
    stroke: none;
}

.contactSection > p:last-child {
    margin-top: 18px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* RESPONSIVE STYLES */

@media (max-width: 849px) {
    .navLinks .ctaContact {
        background: transparent;
        color: var(--text);
        padding: 10px;
        border-radius: 0;
    }

    .navLinks .ctaContact:hover {
        background: transparent;
        color: var(--text-highlight);
    }
}

@media (min-width: 850px) {
    .contactLinks {
        gap: 0;
    }

    .contactLink + .contactLink {
        border-left: 1px solid var(--text-highlight);
        margin-left: 32px;
        padding-left: 32px;
    }

    .navLogo {
        font-size: 40px;
    }

    .burger {
        display: none;
    }
    .navLinks {
        position: static;
        top: auto;
        left: auto;
        grid-column: auto;
        width: auto;
        visibility: visible;
        opacity: 1;
        flex-direction: row;
        justify-content: flex-end;
        transform: none;
        transition: none;
        padding: 0;
        border: 0;
        gap: 16px;
    }
    .navLinks a {
        font-size: 14px;
        padding: 10px 8px;
    }
    .navLinks .ctaContact {
        margin-left: 36px;
        padding: 13px 22px;
    }
    
    .heroContainer {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 44px 24px;
        margin-top: 12px;
    }
    .heroImage {
        aspect-ratio: 1.08;
        min-height: 450px;
    }
    .achievementsContainer {
        margin-top: 14px;
    }
    .achievement p {
        font-size: 11px;
        letter-spacing: 4px;
    }
    .charitySection {
        grid-template-columns: 1.25fr 0.92fr;
        gap: 44px;
    }
    .webDevSection {
        grid-template-columns: 0.92fr 1.25fr;
        gap: 44px;
    }
}
@media (max-width: 480px) {
    .contactSection h2 {
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.3;
        letter-spacing: -0.4px;
        text-wrap: balance;
    }

    .contactLinks {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        width: max-content;
        max-width: 100%;
        margin: 28px auto 0;
        text-align: left;
    }

    .contactLink {
        width: 100%;
        gap: 12px;
    }

    .contactIcon {
        width: 28px;
        height: 28px;
    }

    .webDevImage {
        order: -1;
        /* Use the full screen width for the three-laptop showcase. */
        width: calc(100% + 10vw);
        margin-left: -5vw;
    }

    .charityFigureFull {
        display: none;
    }
    .charityFigureShort {
        display: inline;
    }
    .navLogo {
        font-size: 25px;
    }
    .heroCtas {
        gap: 18px;
        font-size: 14px;
    }
    .heroCta1 {
        padding: 14px 16px;
        gap: 16px;
    }
    .achievement {
        padding: 0 8px;
    }
    .achievement h2 {
        font-size: 31px;
        letter-spacing: -1.5px;
    }
    .achievement p {
        font-size: 8px;
        letter-spacing: 1.4px;
    }
    .sectionLabel {
        letter-spacing: 2px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .navLinks, .burger span, .navLinks .ctaContact, .heroCta1 {
        transition: none;
    }
}
