@import url('https://fonts.googleapis.com/css2?family=Anton&family=Permanent+Marker&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --paper: #fff7f6;
    --paper-warm: #fffaf8;
    --ink: #261044;
    --ink-soft: #4f3766;
    --muted: #6d5879;
    --mauve: #e5b6cf;
    --mauve-deep: #c381ad;
    --peach: #f0b096;
    --rule: #2b124b;
    --white: #fffefe;
    --shadow: 14px 16px 0 rgba(38, 16, 68, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Space Grotesk', Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(rgba(255, 247, 246, 0.92), rgba(255, 247, 246, 0.92)),
        url("assets/dots.png"),
        var(--paper);
    overflow-x: clip;
}

button,
input,
textarea,
select {
    font: inherit;
}

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

img,
video {
    max-width: 100%;
}

.site-header,
main {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 0 10px;
}

.brand-link {
    font-family: 'Anton', Impact, sans-serif;
    font-size: clamp(1.35rem, 2.7vw, 2rem);
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.nav-links a,
.contact-strip a,
.contact-actions a {
    border: 3px solid var(--ink);
    background: var(--paper-warm);
    padding: 8px 14px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.contact-strip a:hover,
.contact-strip a:focus-visible,
.contact-actions a:hover,
.contact-actions a:focus-visible {
    background: var(--ink);
    color: var(--paper);
    outline: none;
    transform: translate(-2px, -2px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(30px, 6vw, 76px);
    min-height: min(760px, calc(100vh - 82px));
    padding: clamp(34px, 6vw, 76px) 0 clamp(46px, 7vw, 84px);
    border-bottom: 6px solid var(--rule);
}

.hero-copy,
.portrait-board {
    min-width: 0;
}

.marker-label {
    width: max-content;
    max-width: 100%;
    margin: 0 0 2px 26%;
    font-family: 'Permanent Marker', 'Comic Sans MS', cursive;
    font-size: clamp(1.1rem, 3vw, 2rem);
    line-height: 1;
    color: var(--ink);
    transform: rotate(-3deg);
}

.name-lockup,
h2,
h3,
p {
    margin: 0;
}

.name-lockup,
h2 {
    font-family: 'Anton', Impact, sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

.name-lockup {
    line-height: 0.84;
}

.first-name {
    display: inline-block;
    padding: 0.02em 0.12em 0.11em;
    background: var(--mauve);
    font-size: clamp(5.1rem, 16vw, 11rem);
}

.last-name {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: -0.04em 0 0 clamp(42px, 22vw, 240px);
    font-size: clamp(4.6rem, 14vw, 10rem);
    transform: rotate(-6deg);
    transform-origin: left center;
}

.intro {
    max-width: 620px;
    margin-top: clamp(28px, 4vw, 42px);
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.portrait-board {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait-board::before {
    content: "";
    position: absolute;
    width: min(76%, 380px);
    height: 70%;
    background: var(--mauve);
    transform: rotate(-5deg) translate(-12px, 8px);
}

.selection-frame {
    position: relative;
    width: min(86%, 440px);
    padding: 12px 12px 0;
    border: 3px solid var(--ink);
    transform: rotate(3deg);
    box-shadow: var(--shadow);
}

.selection-frame::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 2px dashed var(--ink);
    pointer-events: none;
}

.selection-frame img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    transform: rotate(-3deg);
    filter: saturate(1.05) contrast(1.04);
}

.handle {
    position: absolute;
    z-index: 2;
    width: 14px;
    height: 14px;
    background: var(--mauve-deep);
    border: 2px solid var(--ink);
}

.handle-tl {
    top: -8px;
    left: -8px;
}

.handle-tr {
    top: -8px;
    right: -8px;
}

.handle-bl {
    bottom: -8px;
    left: -8px;
}

.handle-br {
    right: -8px;
    bottom: -8px;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(28px, 6vw, 74px);
    padding: clamp(42px, 7vw, 86px) 0;
}

.statement-block,
.tool-block {
    min-width: 0;
}

.section-title {
    display: grid;
    grid-template-columns: max-content minmax(42px, 1fr);
    align-items: end;
    gap: 16px;
    margin-bottom: 26px;
}

.section-title h2 {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 0.9;
}

.section-title span {
    display: block;
    height: 6px;
    margin-bottom: 0.25em;
    background: var(--rule);
}

.section-title-wide {
    grid-template-columns: max-content minmax(80px, 1fr);
}

.statement-block p {
    max-width: 580px;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.46;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tool-list li {
    border: 3px solid var(--ink);
    background: var(--paper-warm);
    padding: 9px 16px 11px;
    color: var(--ink);
    font-size: clamp(0.98rem, 1.7vw, 1.16rem);
    font-weight: 700;
    line-height: 1;
}

.work-section {
    padding: clamp(42px, 7vw, 88px) 0;
    border-top: 6px solid var(--rule);
    border-bottom: 6px solid var(--rule);
}

.work-grid {
    display: block;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.work-card,
.scope-card {
    min-width: 0;
    border: 3px solid var(--ink);
    background: var(--paper-warm);
    box-shadow: 8px 10px 0 rgba(38, 16, 68, 0.12);
}

.work-card {
    position: relative;
    aspect-ratio: 4 / 3;
    display: block;
    padding: 0;
    overflow: hidden;
    color: var(--paper);
    cursor: pointer;
    text-align: left;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.work-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(25, 8, 48, 0.82), rgba(25, 8, 48, 0.04) 58%);
}

.work-card img,
.work-card video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.work-card:hover,
.work-card:focus-visible {
    box-shadow: 12px 14px 0 rgba(38, 16, 68, 0.18);
    outline: none;
    transform: translate(-4px, -4px);
}

.work-card:hover img,
.work-card:hover video,
.work-card:focus-visible img,
.work-card:focus-visible video {
    transform: scale(1.045);
}

.card-copy {
    position: absolute;
    z-index: 1;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: grid;
    gap: 5px;
}

.card-copy strong {
    font-family: 'Anton', Impact, sans-serif;
    font-size: clamp(1.4rem, 2.4vw, 2.3rem);
    font-weight: 400;
    line-height: 0.92;
}

.card-copy small {
    max-width: 24rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.scope-card {
    grid-column: span 5;
    min-height: 230px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scope-card-ar {
    background: var(--mauve);
}

.scope-card-freelance {
    grid-column: span 7;
    background: #ffe0d4;
}

.scope-kicker {
    width: max-content;
    max-width: 100%;
    margin-bottom: 28px;
    border: 3px solid var(--ink);
    padding: 6px 10px;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.scope-card h3 {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1;
}

.scope-card p:last-child {
    color: var(--ink-soft);
    font-weight: 600;
    line-height: 1.36;
}

.contact-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: clamp(42px, 7vw, 86px) 0 54px;
    border: 4px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    padding: clamp(22px, 4vw, 34px);
    box-shadow: var(--shadow);
}

.contact-section .marker-label {
    margin: 0 0 8px;
    color: var(--mauve);
}

.contact-section h2 {
    font-size: clamp(3rem, 9vw, 6.4rem);
    line-height: 0.9;
}

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

.contact-actions a {
    background: var(--paper);
    color: var(--ink);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(25, 8, 48, 0.88);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-panel {
    position: relative;
    width: min(980px, 100%);
    max-height: 92vh;
    border: 4px solid var(--ink);
    background: var(--paper);
    padding: 16px;
}

.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    background: var(--white);
    overflow: hidden;
}

#lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#lightbox-content img,
#lightbox-content video {
    display: block;
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 64px;
    border: 3px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lightbox-prev {
    left: 14px;
}

.lightbox-next {
    right: 14px;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
    background: var(--ink);
    color: var(--paper);
    outline: none;
    transform: translateY(-50%) scale(1.04);
}

.lightbox-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    color: var(--ink);
}

#lightbox-title {
    font-family: 'Anton', Impact, sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
}

#lightbox-counter {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 3px solid var(--paper);
    background: transparent;
    color: var(--paper);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus-visible {
    background: var(--paper);
    color: var(--ink);
    outline: none;
}

@media (max-width: 940px) {
    .hero,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .marker-label {
        margin-left: 12%;
    }

    .portrait-board {
        min-height: 440px;
        justify-content: flex-start;
    }

    .selection-frame {
        width: min(78%, 390px);
        margin-left: 8%;
    }

    .scope-card,
    .scope-card-freelance {
        grid-column: span 6;
    }

    .contact-section {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 680px) {
    .site-header,
    main {
        width: min(100% - 22px, 540px);
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 24px;
    }

    .first-name {
        font-size: clamp(4.4rem, 24vw, 6.7rem);
    }

    .last-name {
        margin-left: clamp(34px, 18vw, 90px);
        font-size: clamp(4rem, 22vw, 6rem);
    }

    .contact-strip,
    .contact-actions {
        display: grid;
        width: 100%;
    }

    .contact-strip a,
    .contact-actions a {
        width: 100%;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .portrait-board {
        min-height: 360px;
    }

    .portrait-board::before {
        width: 78%;
        height: 66%;
    }

    .selection-frame {
        width: min(90%, 330px);
        margin-left: 3%;
    }

    .profile-grid,
    .work-section {
        padding: 46px 0;
    }

    .section-title,
    .section-title-wide {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-title span {
        width: 100%;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .scope-card,
    .scope-card-freelance {
        grid-column: auto;
    }

    .work-card {
        aspect-ratio: 4 / 5;
    }

    .scope-card {
        min-height: 210px;
    }

    .lightbox {
        padding: 12px;
    }

    .lightbox-panel {
        padding: 10px;
    }

    .lightbox-nav {
        width: 38px;
        height: 52px;
        font-size: 1.6rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-caption {
        align-items: flex-start;
        flex-direction: column;
    }

    .close-btn {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 520px) {
    .site-header,
    main {
        width: min(calc(100% - 22px), 368px);
    }
}
