@font-face {
    font-family: 'DM Sans';
    src: url('fonts/DMSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Mono';
    src: url('fonts/DMMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Mono';
    src: url('fonts/DMMono-Medium.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tanker';
    src: url('fonts/Tanker-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.accent { color: #ba3a8f; }

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #000;
    background: #fff;
    line-height: 1.6;
}

body a {
    color: #000;
}

/* ========== HEADER ========== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    z-index: 100;
    border-bottom: 1px solid #000;
    margin: 0 2rem;
}

@keyframes logo-reveal {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.header-logo {
    height: 1.5rem;
    width: auto;
    animation: logo-reveal linear both;
    animation-timeline: scroll(root);
    animation-range: 80vh 100vh;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0;
    margin: 0 auto;
}

.header-nav-left,
.header-nav-right {
    display: flex;
    gap: 2rem;
}

.header-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
}

.header-link:hover {
    text-decoration: underline;
}

/* ========== HERO (Screen 1) ========== */

.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    color: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(pattern.svg) repeat;
    background-size: 12px auto;
    z-index: 0;
}

.hero-body {
    position: relative;
    top: 42vh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-box {
    text-align: center;
}

.hero-logo {
    display: block;
    width: 70vw;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
}

.hero-portfolio {
    font-family: 'Tanker', sans-serif;
    font-size: 2vw;
    color: #000;
    line-height: 1;
    margin-top: 2vw;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.scroll-hint {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(0, 0, 0, 1);
    text-transform: uppercase;
}

.scroll-hero {
    font-family: 'DM Mono', monospace;
    font-size: 16px;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-phone {
    font-family: 'Tanker', sans-serif;
    font-size: 30px;
    letter-spacing: 0.03em;
    left: 64%;
    top: 46%;
}

.scroll-tablet {
    font-family: 'Tanker', sans-serif;
    font-size: 30px;
    letter-spacing: 0.03em;
    left: 86%;
    top: 46%;
}

.scroll-hint-arrow {
    font-size: 1.2rem;
    animation: bouncev 2s ease-in-out infinite;
}

.scroll-hint.horizontal .scroll-hint-arrow {
    animation: bounceh 2s ease-in-out infinite;
}

@keyframes bouncev {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes bounceh {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

/* ========== PROJECTS ========== */

.projects {
    background: #fff;
    padding: 80px 0 0 0;
}

.project-grid {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

.project-grid::after {
    content: "";
    display: table;
    clear: both;
}

.project-teaser {
    position: relative;
    display: inline-block;
    height: auto;
    padding-left: 0;
    padding-right: 0;
    vertical-align: top;
    box-sizing: border-box;
    clear: both;
    margin-bottom: 4vw;
}

.project-teaser.wide {
    width: 100%;
}

.project-teaser.narrow {
    width: 50%;
}

.project-teaser.narrow-left {
    padding-right: 20px;
    float: left;
}

.project-teaser.narrow-right {
    padding-left: 20px;
    float: right;
}

.project-tile {
    display: block;
    width: 100%;
    position: relative;
    text-decoration: none;
    color: #000;
}

.phone {
    width: 100%;
    height: auto;
    aspect-ratio: 5006 / 2676;
}

.phone-window {
    width: 22%;
    height: 83%;
    overflow: scroll;
    position: absolute;
    left: 39%;
    top: 8%;
    background: #000;
}

.phone-mask {
    background: url(./scrolls/Iphone-Template.png);
    background-size: 130% 130%;
    background-position: 50% 90%;
    pointer-events: none;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.tablet {
    width: 100%;
    height: auto;
    aspect-ratio: 4920 / 2629;
}

.tablet-window {
    width: 64%;
    height: 88%;
    overflow: scroll;
    position: absolute;
    left: 18%;
    top: 6%;
    background: #000;
}

.tablet-window.horizontal > img {
    height: 100%;
    width: auto;
}

.tablet-mask {
    background: url(./scrolls/Ipad-Template.png);
    background-size: 150% 150%;
    background-position: 50% 41%;
    pointer-events: none;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.project-teaser img {
    width: 100%;
    height: auto;
    display: block;
}

.project-info {
    position: relative;
    padding: 20px 0 80px 0;
}

.narrow-left .project-info {
    width: 200%;
}

.narrow-right .project-info {
    width: 100%;
}

.project-title {
    font-family: 'Tanker', sans-serif;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #000;
    margin: 0;
    white-space: normal;
}

.project-tags {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    color: #000;
    vertical-align: 18px;
}

.project-details {
    min-height: 80vh;
    margin: 0 2rem 2rem 2rem;
    font-family: "DM Mono", monospace;
    font-size: 14px;
}

.project-details li {
    list-style: none;
}

.detail-header {
    width: 100%;
    display: flex;
}

.detail-header > div {
    width: 50%;
}

.detail-title, .detail-summary {
    font-family: "Tanker", sans-serif;
    letter-spacing: 0.03em;
    line-height: 1.2em;
}

.detail-title {
    font-size: 48px;
}

.detail-summary {
    font-size: 32px;
    padding-bottom: 3rem;
}

.detail-data {
    font-size: 12px;
    width: 100%;
    display: flex;
    justify-content: end;
}

.detail-data > div {
    width: 25%;
}

.detail-company > :nth-child(1), .detail-tasks > :nth-child(1), .detail-software > :nth-child(1), .detail-info > :nth-child(1) {
    font-weight: 800;
    padding-bottom: 0.5em;
}

.detail-company > :nth-child(2), .detail-tasks > :nth-child(2), .detail-software > :nth-child(2), .detail-info > :nth-child(2) {
    padding-bottom: 4em;
}

/* ========== SITE FOOTER ========== */

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    z-index: 100;
    border-top: 1px solid #000;
    margin: 0 2rem;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0;
    margin: 0 auto;
}

.site-footer-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #000;
}

/* ========== LINKS ========== */

.interlinks {
    padding: 6rem 2rem 4rem 2rem;
}

.interlink {
    margin-right: 1rem;
}

.interlink a {
    text-decoration: none;
}

.interlink a.current {
    text-decoration: line-through;
}

.interlink a:hover {
    color: #ba3a8f;
}

.link-title {
    font-family: "Tanker", sans-serif;
    font-size: 36px;
    letter-spacing: 0.03em;
    line-height: 1.2em;
}

.link-tags {
    font-family: "DM Mono", monospace;
    font-size: 12px;
    vertical-align: 16px;
}

/* ========== ABOUT ========== */

.about {
    min-height: 90vh;
    width: 100%;
    display: flex;
    align-items: top;
    justify-content: center;
    background: #fff;
    color: rgba(0, 0, 0, 1);
    font-size: 1rem;
    padding: 0 12rem;
}

.about-text {
    font-family: 'Tanker', sans-serif;
    font-size: 36px;
    letter-spacing: 0.03em;
}

.contact-boxes {
    display: flex;
    gap: 6rem;
    justify-content: right;
    margin-top: 14rem;
}

.contact-title {
    font-family: 'Tanker', sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #000;
    margin-bottom: 0.5rem;
}

.contact-text {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: #000;
}

@media (max-width: 768px) {
    .header {
        margin: 0;
        background-color: #fff;
    }

    .header.index {
        animation: header-reveal linear both;
        animation-timeline: scroll(root);
        animation-range: 80vh 100vh;
    }

    @keyframes header-reveal {
        from { background-color: rgba(255, 255, 255, 0); }
        to   { background-color: rgba(255, 255, 255, 255); }
    }

    .header-inner {
        padding: 0 2rem;
    }

    .header-link {
        font-size: 8px;
    }

    .hero-portfolio {
        font-size: 4vw;
    }

    .projects.sub {
        margin: 4rem 0 0 0;
    }

    .project-grid {
        padding-left: 0;
        padding-right: 0;
    }

    .project-teaser {
        float: left;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .project-teaser.wide,
    .project-teaser.narrow {
        width: 100%;
    }

    .project-teaser.narrow-left {
        padding-right: 0;
        float: none;
    }

    .project-teaser.narrow-right {
        padding-left: 0;
        float: none;
    }

    .project-teaser:nth-child(even) {
        float: left;
    }

    .project-teaser:nth-child(odd) {
        float: left;
    }

    .project-teaser:nth-child(odd).narrow {
        padding-right: 0;
    }

    .project-teaser:nth-child(even).narrow {
        padding-left: 0;
    }

    .project-teaser:nth-child(odd).narrow .project-info,
    .project-teaser:nth-child(even).narrow .project-info {
        width: auto;
        margin-left: 0;
    }

    .project-teaser img {
        width: 100%;
        aspect-ratio: 3 / 4;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .project-teaser img[src="home/Kat-Portfolio_WEB_37.jpg"] {
        object-position: right;
    }

    .site-footer {
        display: none;
    }

    .project-title {
        font-size: 26px;
        margin-left: 5%;
        max-width: 90%;
        white-space: normal;
    }

    .project-info {
        padding-bottom: 40px;
    }

    .project-tags {
        font-size: 8px;
        vertical-align: 12px;
    }

    .about {
        padding: 0 3rem;
    }

    .about-text {
        font-size: 24px;
        line-height: 1.2em;
    }

    .contact-boxes {
        flex-direction: column;
        margin-top: 4rem;
        gap: 2rem;
    }

    .contact-boxes :nth-child(1) {
        order: 3;
    }

    .contact-title {
        font-size: 18px;
    }

    .contact-text {
        font-size: 12px;
    }

    .detail-header {
        gap: 2em;
    }

    .detail-title {
        font-size: 30px;
    }

    .detail-summary {
        font-size: 20px;
    }

    .detail-data {
        font-size: 10px;
        display: block;
        gap: 2em;
    }

    .detail-data > div {
        width: 100%;
    }

    .phone {
        width: 200%;
        height: auto;
        aspect-ratio: 5006 / 2676;
        transform: translateX(-25%);
    }

    .scroll-hint {
        font-size: 12px;
    }

    .scroll-phone {
        font-size: 16px;
    }

    .scroll-tablet {
        font-size: 16px;
    }

    .link-title {
        font-size: 24px;
    }

    .link-tags {
        font-size: 8px;
        vertical-align: 12px;
    }
}