* {
    box-sizing:border-box
}
:root {
    --paper:#faf8f2;
    --ink:#11100e;
    --muted:#625b50;
    --line:rgba(17,16,14,.7);
    --serif:'Playfair Display',Georgia,serif;
    --sans:'DM Sans',Arial,sans-serif
}
body {
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:var(--sans);
    transition:.3s
}
html[data-theme="dark"] body {
    --paper: #171614;
    --ink: #f5eddf;
    --muted: #bdb3a4;
    --line: rgba(245, 237, 223, 0.65);
}
a { 
    color:inherit;
    text-decoration:none
}
html {
    scroll-behavior:smooth
}
.frame {
    width:min(calc(100% - 64px),1600px);
    margin:22px auto;
    border:7px solid var(--ink);
    padding:0 20px
}
header {
    height:64px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    gap:20px
}
.logo {
    font:600 20px var(--serif);
    letter-spacing:-.04em
}
.desktop, .actions {
    display:flex;
    align-items:center;
    gap:28px
}
.desktop a {
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.07em
}
.actions {gap:20px
}
.social {
    font-weight:bold;
    font-size:20px
}
button {
    font:inherit;
    color:inherit;
    cursor:pointer
}
#theme {
    border:1px solid var(--line);
    background: transparent;
    color: var(--ink);
    border-radius: 30px;
    padding: 7px 12px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.3s ease, color 0.3s ease;
}
#theme:hover {
    background: var(--ink);
    color: var(--paper);
}
#theme .switch {
    transition: transform 0.3s ease;
}
html[data-theme="dark"] #theme .switch {
    transform: translateX(2px);
}
.switch {
    display:inline-block;
    border:1px solid var(--ink);
    background:var(--ink);
    color:var(--paper);
    border-radius:20px;
    padding:1px 8px
}
#menu, #mobile {
    display:none
}
.hero {
    height:480px;
    position:relative;
    text-align:center;
    padding-top:30px;
    overflow:hidden
}
.hero h1 {
    font:400 clamp(100px,17vw,250px)/.95 var(--serif);
    letter-spacing:-.085em;
    margin:12px 0;
    white-space:nowrap
}
.portrait {
    position:absolute;
    z-index:2;
    top:128px;
    left:50%;
    transform:translateX(-50%);
    width:clamp(140px,14vw,215px);
    aspect-ratio:.78;
    box-sizing:border-box;
    overflow:hidden;
    border:3px solid var(--ink);
    background:#c9b9a5
}
.portrait img {
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    object-fit:cover;
    object-position:center 35%;
}
.portrait span {
    display:none;
    width:100%;
    height:100%;
    place-items:center;
    color:#241d16;
    font:italic 20px var(--serif);
    background:linear-gradient(145deg,#d7c4a8,#8d7660)
}
.side {
    position:absolute;
    top:260px;
    font-size:11px;
    line-height:1.5;
    letter-spacing:.1em;
    text-align:left
}
.side i {
    display:block;
    width:38px;
    border-top:1px solid var(--ink);
    margin-top:15px
}
.left {
    left:12%
}
.right {
    right:11%;
    text-align:right
}
.right i {
    margin-left:auto
}
.statement {
    position:relative;
    z-index:3;
    margin:180px auto 12px;
    max-width:850px;
    font:clamp(20px,2.1vw,30px)/1.35 var(--serif)
}
.scroll {
    display:inline-flex;
    flex-direction:column;
    align-items:center;
    font-size:30px
}
.scroll small {
    font:9px var(--sans);
    letter-spacing:.22em
}
.projects {
    display:block;
    width: 100%;
    padding:0 12px 28px;
}
.visual {
    height:180px;
    display:flex;
    position:relative;
    overflow:hidden;
    align-items:center;
    justify-content:center;
    border:1px solid #0002
}
.v1 {
    background:linear-gradient(135deg,#68452d,#c8a17b 55%,#e1d2b8)
}
.v2 {
    background:linear-gradient(135deg,#b7a58c,#eee3d1 48%,#8c7963)
}
.v3 {
    background:linear-gradient(135deg,#5e5149,#d6c6b4 55%,#a99a8c)
}
.tag {
    position:absolute;
    top:12px;
    left:12px;
    background:var(--paper);
    border-radius:20px;
    padding:5px 12px;
    font-size:9px;
    letter-spacing:.12em
}
.phone {
    width:145px;
    height:230px;
    border:7px solid #171614;
    border-radius:23px;
    background:#f7f0e5;
    color:#211d18;
    transform:rotate(-13deg) translateY(35px);
    padding:22px 12px;
    font:16px var(--serif);
    box-shadow:0 10px 22px #0005
}
.phone p {
    font-size:17px
}
.phone i {
    display:block;
    height:20px;
    background:#d8c8b1;
    border-radius:5px;
    margin-top:9px
}
.browser {
    width:80%;
    height:155px;
    padding:15px;
    background:#f7f0e5;
    color:#171614;
    transform:rotate(-5deg);
    box-shadow:0 12px 22px #0004
}
.browser small {
    display:block;
    border-bottom:1px solid #aaa;
    padding-bottom:8px
}
.browser h3 {
    font:26px var(--serif);
    margin:24px 0 0 15px
}
.dashboard {
    width:84%;
    height:145px;
    background:#f4eee5;
    color:#28231e;
    padding:17px;
    transform:rotate(5deg);
    box-shadow:0 10px 20px #0004
}
.dashboard div {
    display:flex;
    gap:10px;
    margin-top:16px
}
.dashboard span {
    flex:1;
    padding:8px;
    background:#e5ddd1;
    font-size:9px
}
.dashboard strong {
    display:block;
    font:22px var(--serif)
}
.dashboard p {
    letter-spacing:12px;
    color:#a18c75
}
.project-title {
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:8px
}
.project-title h2 {
    font:400 clamp(21px,2vw,29px) var(--serif);
    letter-spacing:-.04em;
    margin:7px 0 2px
}
.project-title a, .type {
    font-size:9px;
    letter-spacing:.1em
}
.type {
    letter-spacing:.16em
}
.bottom {
    border-top:1px solid var(--line);
    display: grid;
    grid-template-columns: 1.55fr 1fr .85fr;
    align-items: start;
    padding: 24px 16px 28px;
    gap: 26px;
    min-width: 0;
    width: 100%;
}
.case, 
.skills, 
#about {
    min-width: 0;
}
.kicker {
    display:flex;
    align-items:center;
    gap:12px;
    font-size:13px;
    letter-spacing:.22em
}
.kicker i {
    flex:1;
    border-top:1px solid var(--line)
}
.note {
    font-size:10px;color:var(--muted);
    line-height:1.5
}
.pills {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:18px 0
}
.pills span {
    border:1px solid var(--line);
    border-radius:20px;
    padding:6px 12px;
    font-size:10px
}
.tools {
    display:flex;
    gap:10px
}
.tools b {
    display:grid;
    place-items:center;
    width:38px;
    height:38px;
    border:1px solid var(--line);
    border-radius:8px;
    font-size:14px
}
.tools b:last-child {
    width: 38px;
    height: 38px;
    padding: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.resume {
    display:block;
    text-align:center;
    background:var(--ink);
    color:var(--paper);
    padding:12px 8px;
    font-size:10px;
    letter-spacing:.15em
}
aside h3 {
    font:600 18px var(--serif);
    margin:17px 0 4px
}
aside p {
    font:12px/1.45 var(--serif)
}
.links {
    display:flex;
    justify-content:space-between;
    font:12px var(--serif)
}footer {
    border-top:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 0
}
footer span,footer>a:last-child {
    font-size:9px;
    letter-spacing:.16em
}
/* LARGE DESKTOP */
@media screen and (min-width: 1200px) {
    .hero {
        height: auto;
        min-height: 620px;
        overflow: visible;
    }

    .statement {
        margin: 190px auto 45px;
    }

    .visual {
        height: 210px;
    }
}

/* LAPTOP / SMALL DESKTOP */
@media screen and (min-width: 801px) and (max-width: 1199px) {
    .frame {
        width: calc(100% - 40px);
        margin: 16px auto;
        padding: 0 16px;
    }

    .hero {
        height: auto;
        min-height: 600px;
        overflow: visible;
        padding-top: 28px;
    }

    .hero h1 {
        font-size: clamp(88px, 13vw, 150px);
    }

    .portrait {
        top: 125px;
        width: clamp(145px, 16vw, 175px);
    }

    .side {
        top: 260px;
        font-size: 9px;
    }

    .left {
        left: 7%;
    }

    .right {
        right: 7%;
    }

    .statement {
        width: 100%;
        max-width: 680px;
        margin: 190px auto 32px;
        padding: 0 24px;
        font-size: clamp(19px, 2.1vw, 23px);
        line-height: 1.4;
    }

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

    .visual {
        height: 190px;
    }
}

/* TABLET */
@media screen and (min-width: 481px) and (max-width: 800px) {
    .frame {
        width: calc(100% - 24px);
        margin: 12px auto;
        border-width: 4px;
        padding: 0 12px;
    }

    header {
        height: 58px;
    }

    .desktop,
    .social {
        display: none;
    }

    #menu {
        display: block;
        border: 0;
        background: none;
        font-size: 23px;
    }

    .actions {
        margin-left: auto;
    }

    #mobile.open {
        display: flex;
    }

    #mobile {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 14px;
        text-transform: uppercase;
        letter-spacing: .12em;
        font-size: 12px;
    }

    .hero {
        height: auto;
        min-height: 500px;
        padding-top: 38px;
        padding-bottom: 25px;
        overflow: visible;
    }

    .hero h1 {
        font-size: clamp(72px, 15vw, 120px);
        margin-top: 16px;
    }

    .portrait {
        top: 115px;
        width: clamp(125px, 25vw, 160px);
    }

    .side {
        display: none;
    }

    .left {
        left: 2%;
    }

    .right {
        right: 2%;
    }

    .statement {
        width: 100%;
        max-width: 620px;
        margin: 245px auto 30px;
        padding: 0 20px;
        font-size: 20px;
        line-height: 1.4;
    }

    .projects {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 2px 24px;
    }

    .visual {
        height: 220px;
    }

    .project-title h2 {
        font-size: 25px;
    }

    .bottom {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 18px 4px;
    }

    .case,
    .skills {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 22px;
    }

    .thumb {
        height: 85px;
    }
}

/* MOBILE */
@media screen and (max-width: 480px) {
    .frame {
        width: calc(100% - 16px);
        margin: 8px auto;
        border-width: 3px;
        padding: 0 10px;
    }

    header {
        height: 58px;
        gap: 10px;
    }

    .logo {
        font-size: 18px;
    }

    .desktop,
    .social {
        display: none;
    }

    #menu {
        display: block;
        border: 0;
        background: none;
        font-size: 23px;
    }

    .actions {
        margin-left: auto;
        gap: 12px;
    }

    #mobile.open {
        display: flex;
    }

    #mobile {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 14px;
        text-transform: uppercase;
        letter-spacing: .12em;
        font-size: 12px;
    }

    .hero {
        height: auto;
        min-height: 0;
        padding: 34px 0 28px;
        overflow: visible;
    }

    .hero h1 {
        font-size: clamp(64px, 17vw, 82px);
        line-height: 1;
        margin: 12px 0;
        letter-spacing: -.085em;
    }

    .portrait {
        top: 105px;
        width: clamp(115px, 34vw, 140px);
        aspect-ratio: .78;
    }

    /* Side labels are removed on narrow screens to prevent crowding. */
    .side {
        display: none;
    }

    .statement {
        width: 100%;
        max-width: 500px;
        margin: 245px auto 26px;
        padding: 0 18px;
        font-size: 18px;
        line-height: 1.45;
    }

    .scroll {
        font-size: 26px;
    }

    .scroll small {
        font-size: 8px;
    }

    .projects {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 2px 24px;
    }

    .visual {
        height: 210px;
    }

    .project-title h2 {
        font-size: 23px;
    }

    .bottom {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 18px 4px;
    }

    .case,
    .skills {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 22px;
    }

    .thumb {
        height: 80px;
    }

    footer {
        gap: 12px;
        flex-wrap: wrap;
    }
}

/* FULL-SCREEN DESKTOP INTRODUCTION */
@media screen and (min-width: 1600px) {
    .statement {
        max-width: 780px;
        width: 100%;
        margin: 145px auto 45px;
        padding: 0 30px;
        text-align: center;
        text-wrap: balance;
        font-size: 21px;
        line-height: 1.55;
        position: relative;
        z-index: 3;
    }
}

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

    * {
        transition: none !important;
    }
}
/* DESKTOP SCROLL INDICATOR */
@media screen and (min-width: 1200px) {
    .scroll {
        transform: translateY(-22px);
    }
}
/* FEATURED PROJECT THUMBNAILS */
.featured-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}
.project-card {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
}
.project-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: var(--paper);
}
.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}
.project-card:hover img {
    transform: scale(1.035);
}
.project-card:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}
/* TABLET */
@media (max-width: 800px) {
    .featured-projects {
        gap: 10px;
    }
}
/* MOBILE */
@media (max-width: 600px) {
    .featured-projects {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
/* HOMEPAGE WIDTH PROTECTION */
@media screen and (min-width: 801px) {
    .bottom,
    .mini,
    .case,
    .skills,
    #about {
        min-width: 0;
    }
}
html,
body {
    max-width: 100%;
}
/* EDITORIAL SELECTED WORK */
.work-list {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
}
.work-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    transition: opacity .25s ease;
}
.work-row:first-child {
    border-top: 1px solid var(--line);
}
.work-row:hover {
    opacity: .6;
}
.work-number {
    font: 11px var(--sans);
    color: var(--muted);
}
.work-name {
    font: 600 17px var(--serif);
}
.work-category {
    font: 8px var(--sans);
    letter-spacing: .12em;
    color: var(--muted);
    text-align: right;
}
.work-arrow {
    font-size: 13px;
    text-align: right;
}
@media (max-width: 480px) {
    .work-row {
        grid-template-columns: 25px minmax(0, 1fr) auto 14px;
        gap: 6px;
    }
    .work-name {
        font-size: 15px;
    }
    .work-category {
        font-size: 7px;
    }
}
/* FINAL HOMEPAGE BOTTOM REFINEMENT */
.skills .pills {
    gap: 7px;
    margin: 16px 0;
}
.skills .pills span {
    padding: 6px 10px;
    font-size: 9px;
}
.skills .tools {
    gap: 8px;
}
aside h3:first-child {
    margin-top: 0;
}
.work-row {
    padding: 17px 0;
}
.actions a[href*="linkedin.com"] {
    font-size: 16px;
}