:root {
    --bg: #f6f4ef;
    --paper: #fffdfa;
    --paper-strong: #ffffff;
    --ink: #17221f;
    --ink-soft: #49534f;
    --muted: #6f7874;
    --line: #dcded8;
    --accent: #176b5b;
    --accent-strong: #0f4f43;
    --accent-soft: #dcece6;
    --warm: #e8b86d;
    --dark: #15231f;
    --dark-card: #1d302a;
    --white: #ffffff;
    --max-width: 1180px;
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --shadow-soft: 0 18px 50px rgba(27, 47, 40, 0.09);
    --shadow-card: 0 24px 70px rgba(24, 45, 38, 0.13);
}

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

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

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 3000;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
    transition: top .2s ease;
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: min(92%, var(--max-width));
    margin-inline: auto;
}

.section {
    padding: 108px 0;
}

.section-tinted {
    background: #eeefe9;
    border-block: 1px solid var(--line);
}

.section-label,
.eyebrow,
.project-category,
.education-type,
.detail-label {
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .76rem;
    font-weight: 800;
    color: var(--accent);
}

.section-title {
    max-width: 840px;
    margin-top: 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(2.3rem, 5vw, 4.3rem);
    line-height: 1.04;
    letter-spacing: -.04em;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: 70px;
    align-items: end;
    margin-bottom: 46px;
}

.section-side-copy {
    color: var(--ink-soft);
    max-width: 470px;
    justify-self: end;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(246, 244, 239, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(220, 222, 216, .8);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: .88rem;
}

.brand-name {
    font-size: .98rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: var(--ink-soft);
    font-size: .92rem;
    font-weight: 650;
    transition: color .2s ease, transform .2s ease;
}

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

.site-nav .nav-cta {
    padding: 10px 16px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
}

.site-nav .nav-cta:hover {
    transform: translateY(-1px);
    background: var(--ink);
    color: var(--white);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
    transition: transform .2s ease;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 78px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 540px;
    height: 540px;
    right: -180px;
    top: -170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(23, 107, 91, .10), transparent 66%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
    gap: 76px;
    align-items: center;
}

.availability-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .5);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: .82rem;
    font-weight: 650;
    margin-bottom: 26px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(23, 107, 91, .10);
}

.hero h1 {
    max-width: 800px;
    margin: 12px 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.5rem, 7vw, 6.9rem);
    line-height: .92;
    font-weight: 500;
    letter-spacing: -.06em;
}

.hero h1 span {
    color: var(--accent);
}

.hero-text {
    max-width: 700px;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

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

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: .92rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

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

.btn-primary {
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(23, 34, 31, .15);
}

.btn-primary:hover {
    box-shadow: 0 14px 30px rgba(23, 34, 31, .22);
}

.btn-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, .55);
    color: var(--ink);
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
    color: var(--muted);
    font-size: .9rem;
}

.social-row a {
    border-bottom: 1px solid transparent;
}

.social-row a:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.hero-visual {
    position: relative;
}

.portrait-card {
    position: relative;
    min-height: 565px;
    overflow: hidden;
    border-radius: 48% 48% 30px 30px;
    background:
        radial-gradient(circle at 78% 18%, rgba(232, 184, 109, .28), transparent 28%),
        linear-gradient(145deg, #e7eee9, #d8e6df 58%, #d1dfd8);
    border: 1px solid rgba(23, 107, 91, .12);
    box-shadow: var(--shadow-card);
}

.profile-image {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: min(97%, 485px);
    max-height: 545px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 20px 24px rgba(21, 35, 31, .15));
}

.portrait-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.shape-one {
    width: 250px;
    height: 250px;
    top: 28px;
    right: -60px;
    background: rgba(232, 184, 109, .42);
}

.shape-two {
    width: 340px;
    height: 340px;
    left: -100px;
    bottom: -90px;
    background: rgba(23, 107, 91, .11);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 90px;
    align-items: start;
}

.about-copy {
    padding-top: 18px;
}

.about-copy p {
    color: var(--ink-soft);
    font-size: 1.06rem;
}

.about-copy p + p {
    margin-top: 22px;
}

/* Featured project */
.featured-project {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--paper-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.project-media {
    position: relative;
    min-height: 675px;
    padding: 42px;
    background: var(--dark);
    overflow: hidden;
}

.project-media::after {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    right: -80px;
    bottom: -90px;
    border-radius: 50%;
    background: rgba(232, 184, 109, .13);
}

.project-media-label {
    position: relative;
    z-index: 2;
    width: fit-content;
    padding: 8px 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 999px;
    color: rgba(255, 255, 255, .82);
    font-size: .78rem;
    font-weight: 700;
}

.project-shot {
    position: relative;
    z-index: 2;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: #fff;
    box-shadow: 0 20px 42px rgba(0, 0, 0, .23);
}

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

.project-shot-main {
    height: 330px;
    transform: rotate(-1.4deg);
}

.project-shot-row {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 92%;
    margin: -20px 0 0 auto;
}

.project-shot-secondary,
.project-shot-tertiary {
    width: 100%;
    height: 205px;
}

.project-shot-secondary {
    transform: rotate(1.3deg);
}

.project-shot-tertiary {
    transform: rotate(-1deg);
}

.project-body {
    padding: 54px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-topline {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-index {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: .78rem;
    font-weight: 900;
}

.project-body h3 {
    margin: 18px 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4vw, 3.55rem);
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -.04em;
}

.project-summary {
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.project-story-grid {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.project-story-grid > div {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 18px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
}

.project-story-grid p {
    color: var(--ink-soft);
    font-size: .93rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 27px;
}

.tags span {
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #faf9f5;
    color: var(--ink-soft);
    font-size: .76rem;
    font-weight: 650;
}

.tags.compact {
    margin-top: 18px;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 28px;
}

.text-link {
    font-weight: 850;
    border-bottom: 1px solid var(--ink);
}

.text-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.project-note {
    color: var(--muted);
    font-size: .84rem;
}

.project-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.preview-card {
    position: relative;
    min-height: 318px;
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 253, 250, .75);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.preview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    background: var(--paper-strong);
}

.preview-number {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.1rem;
    color: rgba(23, 34, 31, .22);
}

.preview-status {
    position: absolute;
    top: 26px;
    right: 26px;
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: .67rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.preview-card .project-category {
    margin-top: auto;
}

.preview-card h3 {
    margin: 7px 0 10px;
    font-size: 1.35rem;
    line-height: 1.15;
}

.preview-card > p:not(.project-category) {
    color: var(--ink-soft);
    font-size: .92rem;
}

/* Experience */
.experience-list {
    border-top: 1px solid var(--line);
}

.experience-item {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 44px;
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
}

.experience-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: .9rem;
}

.company {
    color: var(--accent);
    font-weight: 850;
}

.experience-content h3 {
    font-size: 1.35rem;
    letter-spacing: -.02em;
}

.experience-content > p {
    margin-top: 3px;
    color: var(--muted);
}

.experience-content ul {
    margin-top: 15px;
    padding-left: 20px;
    color: var(--ink-soft);
}

.experience-content li + li {
    margin-top: 7px;
}

/* Skills */
.section-dark {
    background: var(--dark);
    color: var(--white);
}

.skills-heading {
    max-width: 900px;
}

.light-label {
    color: #91c9bb;
}

.light-title {
    color: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 44px;
}

.skill-card {
    min-height: 230px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .035);
}

.skill-number {
    color: #91c9bb;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .10em;
}

.skill-card h3 {
    margin: 46px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 500;
}

.skill-card p {
    color: rgba(255, 255, 255, .68);
    font-size: .9rem;
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 40px;
}

.education-card {
    min-height: 300px;
    padding: 34px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--paper);
}

.primary-education {
    background: var(--accent-soft);
    border-color: rgba(23, 107, 91, .12);
}

.education-card h3 {
    margin: 34px 0 6px;
    max-width: 500px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.03em;
}

.education-place {
    font-weight: 800;
    margin-bottom: 18px;
}

.education-card > p:last-child {
    color: var(--ink-soft);
}

.learning-list {
    list-style: none;
    margin-top: 24px;
}

.learning-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}

.learning-list li:first-child {
    border-top: 1px solid var(--line);
}

/* Contact */
.contact-section {
    padding: 30px 0 100px;
}

.contact-card {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: center;
    padding: 58px;
    border-radius: var(--radius-lg);
    background: #dfe8df;
    border: 1px solid rgba(23, 107, 91, .13);
}

.contact-card h2 {
    margin: 10px 0 14px;
    max-width: 760px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -.04em;
}

.contact-card p:not(.section-label) {
    max-width: 730px;
    color: var(--ink-soft);
}

.contact-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-dark {
    background: var(--ink);
    color: var(--white);
}

.btn-outline {
    border-color: rgba(23, 34, 31, .35);
    color: var(--ink);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .45);
}

/* Footer */
.site-footer {
    padding: 26px 0;
    border-top: 1px solid var(--line);
    background: var(--paper);
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 28px;
    align-items: center;
    color: var(--muted);
    font-size: .86rem;
}

.footer-wrap > div {
    display: flex;
    flex-direction: column;
}

.footer-wrap strong {
    color: var(--ink);
}

.footer-wrap a:hover {
    color: var(--ink);
}

/* Reveal motion */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
}

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

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

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

    .btn,
    .preview-card {
        transition: none;
    }
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid,
    .about-grid,
    .featured-project,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 44px;
    }

    .hero-copy {
        max-width: 800px;
    }

    .hero-visual {
        max-width: 600px;
        width: 100%;
    }

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

    .proof-grid > div:nth-child(3) {
        border-left: 1px solid var(--line);
    }

    .proof-grid > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .section-side-copy {
        justify-self: start;
    }

    .project-media {
        min-height: 580px;
    }

    .project-preview-grid,
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .section {
        padding: 82px 0;
    }

    .brand-name {
        display: none;
    }

    .site-nav {
        position: absolute;
        left: 4%;
        right: 4%;
        top: 68px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255, 253, 250, .98);
        box-shadow: var(--shadow-soft);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 11px 12px;
        border-radius: 10px;
    }

    .site-nav .nav-cta {
        border-radius: 10px;
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding-top: 64px;
    }

    .hero h1 {
        font-size: clamp(3.25rem, 15vw, 5.6rem);
    }

    .portrait-card {
        min-height: 475px;
        border-radius: 42% 42% 24px 24px;
    }

    .profile-image {
        width: min(100%, 430px);
        max-height: 460px;
    }

    .floating-note {
        padding: 10px 12px;
    }

    .note-top {
        top: 58px;
        left: 12px;
    }

    .note-bottom {
        right: 12px;
        bottom: 14px;
    }

    .proof-grid,
    .project-preview-grid,
    .skills-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .proof-grid > div,
    .proof-grid > div:first-child,
    .proof-grid > div:nth-child(3) {
        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .proof-grid > div:last-child {
        border-bottom: 0;
    }

    .project-media {
        min-height: 520px;
        padding: 28px;
    }

    .project-shot-main {
        height: 285px;
    }

    .project-shot-row {
        width: 100%;
        gap: 10px;
        margin-top: -16px;
    }

    .project-shot-secondary,
    .project-shot-tertiary {
        height: 175px;
    }

    .project-body {
        padding: 36px 28px;
    }

    .project-story-grid > div,
    .experience-item {
        grid-template-columns: 1fr;
    }

    .project-story-grid > div {
        gap: 7px;
    }

    .experience-item {
        gap: 14px;
    }

    .experience-meta {
        flex-direction: row;
        justify-content: space-between;
    }

    .contact-card {
        padding: 38px 26px;
    }

    .footer-wrap {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(91%, var(--max-width));
    }

    .availability-pill {
        font-size: .73rem;
    }

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

    .hero-actions .btn,
    .contact-actions .btn {
        width: 100%;
    }

    .portrait-card {
        min-height: 420px;
    }

    .profile-image {
        max-height: 415px;
    }

    .project-media {
        min-height: 455px;
        padding: 22px;
    }

    .project-shot-main {
        height: 245px;
    }

    .project-shot-row {
        grid-template-columns: 1fr;
        width: 94%;
        margin: -12px auto 0;
    }

    .project-shot-secondary,
    .project-shot-tertiary {
        height: 150px;
    }
}
