
:root {
    color-scheme: light;
    --paper: #f2f2e9;
    --paper-deep: #e6e9dc;
    --ink: #1d2924;
    --muted: #64716a;
    --line: #cbd1c4;
    --green: #587568;
    --green-dark: #263b32;
    --red: #d65b42;
    --white: #fffef9;
    --display: "Space Grotesk", sans-serif;
    --body: "DM Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(6.5%, calc((100% - 1200px) / 2));
    border-bottom: 1px solid rgb(29 41 36 / 10%);
    background: rgb(242 242 233 / 94%);
    backdrop-filter: blur(14px);
}

.logo {
    color: var(--ink);
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}

.logo span {
    color: var(--green);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.main-nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav .nav-contact {
    color: var(--ink);
}

.nav-contact span {
    color: var(--red);
    font-size: 16px;
}

.main-nav a span {
    color: var(--red);
    font-size: 15px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    width: 17px;
    height: 2px;
    background: var(--ink);
    transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.hero {
    position: relative;
    display: grid;
    width: min(1200px, 87%);
    min-height: 690px;
    grid-template-columns: 1.04fr 0.96fr;
    align-items: center;
    gap: 8%;
    margin: 0 auto;
    padding: 72px 0 112px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding-bottom: 24px;
}

.eyebrow,
.section-kicker,
.hero-note,
.visual-label,
.scroll-cue,
.project-meta,
.back-to-top {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 27px;
    color: var(--green);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgb(214 91 66 / 12%);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    margin-bottom: 22px;
    font-family: var(--display);
    font-size: 72px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 0.99;
}

.hero h1 span,
.section-heading em,
.contact h2 em {
    color: var(--green);
    font-style: normal;
}

.hero-description {
    max-width: 430px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
}

.cv-placeholder {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 0 2px;
    color: var(--ink);
    font-size: 13px;
}

.cv-placeholder strong {
    font-family: var(--display);
    font-size: 15px;
}

.cv-placeholder small {
    color: var(--muted);
    font-size: 10px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease;
}

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

.button-primary {
    background: var(--red);
    color: var(--white);
}

.button-primary:hover {
    background: #bd4932;
}

.button span {
    font-size: 17px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration-color: var(--line);
    text-underline-offset: 5px;
}

.text-link span {
    color: var(--red);
}

.hero-note {
    margin: 43px 0 0;
    color: #8a948c;
    font-size: 9px;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 480px;
    justify-self: end;
    padding: 0 20px 34px 0;
}

.image-frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    aspect-ratio: 0.82;
    background: var(--paper-deep);
}

.image-frame::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgb(29 41 36 / 12%);
    content: "";
    pointer-events: none;
}

.image-frame img {
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78);
}

.hero-visual::before {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 77%;
    height: 88%;
    background: var(--paper-deep);
    content: "";
}

.visual-label {
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 13px 15px;
    background: var(--green-dark);
    color: var(--white);
    font-size: 9px;
}

.visual-label span:first-child {
    color: #b3c9b5;
}

.visual-stamp {
    position: absolute;
    z-index: 2;
    top: 28px;
    right: 0;
    display: grid;
    width: 58px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--paper);
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
}

.scroll-cue {
    position: absolute;
    bottom: 34px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #8a948c;
    font-size: 9px;
}

.scroll-cue span {
    width: 28px;
    height: 1px;
    background: var(--red);
}

.section {
    padding: 112px max(6.5%, calc((100% - 1200px) / 2));
    scroll-margin-top: 78px;
}

.about {
    background: var(--white);
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--green);
    font-size: 9px;
}

.rule {
    width: 64px;
    height: 1px;
    background: var(--line);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 12%;
    align-items: center;
    padding: 69px 0 10px;
}

.section-heading {
    margin-bottom: 0;
    font-family: var(--display);
    font-size: 54px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.08;
}

.about-copy {
    max-width: 450px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.about-copy .about-lead {
    margin-bottom: 17px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.7;
}

.about-copy .text-link {
    margin-top: 14px;
}

.skills {
    background: var(--paper);
}

.section-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin: 59px 0 52px;
}

.section-intro > p {
    max-width: 310px;
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}

.skill-item {
    min-height: 155px;
    padding: 22px 20px 18px 0;
    border-bottom: 1px solid var(--line);
}

.skill-item + .skill-item {
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.skill-number {
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
}

.skill-item h3 {
    margin: 20px 0 7px;
    font-family: var(--display);
    font-size: 21px;
}

.skill-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.projects {
    background: var(--white);
}

.projects-intro {
    margin-bottom: 48px;
}

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

.project-card {
    min-width: 0;
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.3;
    background: var(--paper-deep);
}

.project-image img {
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78);
    transition: transform 350ms ease;
}

.project-card:hover .project-image img {
    transform: scale(1.035);
}

.project-index {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    width: 34px;
    aspect-ratio: 1;
    place-items: center;
    background: var(--paper);
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 19px 0 10px;
    color: var(--green);
    font-size: 8px;
}

.project-meta span:last-child {
    color: #8a948c;
}

.project-card h3 {
    margin-bottom: 7px;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
}

.project-card p {
    max-width: 320px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.contact {
    position: relative;
    overflow: hidden;
    padding: 92px max(6.5%, calc((100% - 1200px) / 2));
    background: var(--green-dark);
    color: var(--white);
    scroll-margin-top: 78px;
}

.contact-inner {
    position: relative;
    z-index: 1;
}

.contact .eyebrow {
    color: #b3c9b5;
}

.contact h2 {
    margin: 0 0 30px;
    font-family: var(--display);
    font-size: 54px;
    font-weight: 500;
    line-height: 1.08;
}

.contact h2 em {
    color: #b3c9b5;
}

.button-light {
    background: var(--paper);
    color: var(--ink);
}

.button-light:hover {
    background: var(--white);
}

.contact-details {
    display: grid;
    max-width: 860px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-top: 52px;
}

.contact-detail {
    display: grid;
    min-width: 0;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid rgb(255 254 249 / 24%);
    color: var(--white);
    text-decoration: none;
}

.contact-detail span {
    color: #b3c9b5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-detail strong {
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.contact-detail:hover strong {
    color: #b3c9b5;
}

.contact-mark {
    position: absolute;
    right: 8%;
    bottom: -100px;
    color: rgb(255 254 249 / 5%);
    font-family: var(--display);
    font-size: 350px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.site-footer {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px max(6.5%, calc((100% - 1200px) / 2));
    background: var(--green-dark);
    color: #b7c1ba;
}

.site-footer .logo {
    color: var(--white);
    font-size: 15px;
}

.site-footer .logo span {
    color: #b3c9b5;
}

.site-footer p {
    margin: 0;
    font-size: 11px;
}

.back-to-top {
    color: var(--white);
    font-size: 8px;
    text-decoration: none;
}

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

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.js-enabled .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .hero {
        width: 88%;
        min-height: 600px;
        gap: 5%;
    }

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

    .section {
        padding-right: 6%;
        padding-left: 6%;
    }

    .about-grid {
        gap: 7%;
    }

    .project-grid {
        gap: 18px;
    }

    .project-card h3 {
        font-size: 19px;
    }
}

@media (max-width: 680px) {
    html {
        scroll-padding-top: 70px;
    }

    .site-header {
        min-height: 68px;
        padding: 0 6%;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 67px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 8px 6% 16px;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
    }

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

    .main-nav a {
        padding: 14px 0;
        border-bottom: 1px solid rgb(29 41 36 / 9%);
        font-size: 14px;
    }

    .main-nav .nav-contact {
        border-bottom: 0;
    }

    .hero {
        width: 88%;
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 68px 0 88px;
    }

    .hero-copy {
        padding: 0;
    }

    .eyebrow {
        margin-bottom: 22px;
        font-size: 9px;
    }

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

    .hero-description {
        max-width: 390px;
        font-size: 15px;
    }

    .hero-actions {
        gap: 20px;
        margin-top: 26px;
    }

    .hero-note {
        margin-top: 26px;
    }

    .hero-visual {
        width: 86%;
        max-width: 390px;
        justify-self: center;
    }

    .scroll-cue {
        bottom: 28px;
    }

    .section {
        padding: 76px 6%;
        scroll-margin-top: 68px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 29px;
        padding-top: 43px;
    }

    .section-heading {
        font-size: 42px;
    }

    .about-copy .about-lead {
        font-size: 16px;
    }

    .section-intro {
        align-items: start;
        flex-direction: column;
        gap: 17px;
        margin: 42px 0 34px;
    }

    .section-intro > p {
        max-width: 400px;
    }

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

    .skill-item {
        min-height: 140px;
        padding: 18px 12px 16px 0;
    }

    .skill-item + .skill-item {
        padding-left: 15px;
    }

    .skill-item:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .skill-item h3 {
        font-size: 19px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .project-image {
        aspect-ratio: 1.5;
    }

    .project-card h3 {
        font-size: 21px;
    }

    .contact {
        padding: 76px 6%;
        scroll-margin-top: 68px;
    }

    .contact h2 {
        font-size: 42px;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 38px;
    }

    .contact-mark {
        right: -9%;
        bottom: -40px;
        font-size: 200px;
    }

    .site-footer {
        min-height: 125px;
        flex-wrap: wrap;
        padding: 22px 6%;
    }

    .site-footer p {
        order: 1;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .js-enabled .reveal {
        opacity: 1;
        transform: none;
    }
}
