/* AR One Sans, self-hosted (SIL Open Font License, see fonts/OFL.txt) */
@font-face {
    font-family: "AR One Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    src: url("fonts/ar-one-sans-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "AR One Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    src: url("fonts/ar-one-sans-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
    overflow-x: hidden;
    --gutter: 80px;
}

/* Smooth scrolling for in-page links (About), unless the visitor prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

#about {
    scroll-margin-top: 24px;
}

#about:focus {
    outline: none;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: 12px 20px;
    background: #000;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    z-index: 1001;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body {
    font-family: "AR One Sans", sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #000;
    background: #fff;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 0 28px 0;
    margin-bottom: 15px;
    min-width: 0;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #000;
}

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

.logo a:hover {
    color: #333;
}

nav {
    font-size: 25px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

nav a {
    color: #000;
    text-decoration: none;
    letter-spacing: -0.005em;
    transition: all 0.15s ease;
    cursor: pointer;
    position: relative;
}

nav a:hover,
nav button.nav-link:hover {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

nav button.nav-link {
    background: none;
    border: none;
    font: inherit;
    font-size: 25px;
    font-weight: 500;
    color: #000;
    letter-spacing: -0.005em;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
}

nav a:focus-visible,
nav button.nav-link:focus-visible,
footer a:focus-visible,
.section a:focus-visible,
.page-content a:focus-visible,
.form-note a:focus-visible,
.modal-close:focus-visible,
.submit-btn:focus-visible,
.link-card:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.hero-content a:focus-visible,
.hero-content button.hero-link:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding: 72px 0 76px 0;
    align-items: center;
    min-width: 0;
}

.portrait {
    width: 100%;
    max-width: 300px;
    height: 400px;
    background: #f8f8f8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    overflow: hidden;
}

.portrait picture {
    display: block;
    width: 100%;
    height: 100%;
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.hero-content {
    min-width: 0;
}

.hero-content h1 {
    font-size: 35px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 28px;
    letter-spacing: -0.025em;
    color: #000;
}

.hero-content div {
    font-size: 18px;
    line-height: 1.65;
    margin-top: 20px;
    margin-bottom: 30px;
    color: #2a2a2a;
    font-weight: 500;
}

.hero-content p {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 10px;
    color: #2a2a2a;
    font-weight: 400;
}

.hero-content a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 0.5px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.hero-content a:hover,
.hero-content button.hero-link:hover {
    color: #555;
    text-decoration-thickness: 1px;
}

.hero-content button.hero-link {
    background: none;
    border: none;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 0.5px;
    transition: all 0.15s ease;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding: 72px 0 76px 0;
    margin-top: 0;
    min-width: 0;
}

.left-hero-column, .right-hero-column {
    display: flex;
    flex-direction: column;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 120px;
    min-width: 0;
}

.left-exp-column, .right-exp-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.section {
    min-width: 0;
}

.section h2 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 24px;
    padding-top: 10px;
    padding-bottom: 10px;
    letter-spacing: -0.015em;
    border-top: 0.5px solid #d0d0d0;
    border-bottom: 0.5px solid #d0d0d0;
    color: #000;
}

.brands {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    min-width: 0;
}

.brand-logo {
    height: 72px;
    min-width: 0;
    background: #f8f8f8;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 11px;
    font-weight: 500;
    border: 0.5px solid #e8e8e8;
}

.brand-logo img {
    /* Display size comes from the width/height attributes (balanced per logo) */
    max-width: 85%;
    height: auto;
    opacity: 0.8;
}

.recognition-item {
    margin-bottom: 14px;
}

.recognition-item strong {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 15px;
    color: #000;
}

.recognition-item a,
.sideproject a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 0.5px;
    text-underline-offset: 2px;
}

.recognition-item a:hover,
.sideproject a:hover {
    color: #555;
}

.recognition-item span {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.sideproject {
    margin-bottom: 18px;
}

.sideproject strong {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 15px;
    color: #000;
}

.sideproject span {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.experience-item {
    display: grid;
    gap: 60px;
    margin-bottom: 24px;
    grid-template-columns: 1fr 1fr;
    padding-bottom: 60px;
    border-bottom: 0.5px solid #e0e0e0;
    min-width: 0;
}

.experience-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.job-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: -0.01em;
    color: #000;
}

.job-subline {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 9px;
    letter-spacing: -0.01em;
    color: #000;
}

.job-lowline {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    color: #000;
}

.company, .date {
    color: #7b7b7b;
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 400;
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
}

.experience-item li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    color: #2a2a2a;
    font-size: 15px;
    line-height: 1.45;
}

.experience-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    font-weight: 500;
    font-size: 16px;
}

/* Cinemascope hero: full-width black letterbox, two equal bars, 2.39:1 frame */
.scope {
    --bar: clamp(72px, 7vw, 112px);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #000;
    color: #fff;
}

.contact-banner + .scope {
    margin-top: 0;
}

.scope-bar {
    height: var(--bar);
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* the site header, living in the top bar */
header.scope-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.scope .logo a,
.scope nav a {
    color: #fff;
}

.scope .logo a:hover {
    color: #cfcfcf;
}

.scope nav {
    font-size: 20px;
    gap: 2px;
}

.scope nav a:focus-visible,
.scope .logo a:focus-visible,
.scope-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.scope-frame {
    position: relative;
    max-width: 1920px;
    margin: 0 auto;
    aspect-ratio: 2.39 / 1;
    overflow: hidden;
}

.scope-frame picture,
.scope-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* darken the soft right side so the text reads well */
.scope-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 40%, rgba(0, 0, 0, 0.4) 68%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

/* text block: left-aligned, right edge on the page's content edge */
.scope-text {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: calc((100% - min(100%, 1360px)) / 2 + var(--gutter));
    transform: translateY(-50%);
    width: min(42%, 540px);
}

.scope-text h1 {
    font-size: clamp(24px, 2.6vw, 35px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 20px;
}

.scope-text p {
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 500;
    line-height: 1.6;
    color: #d9d9d9;
    margin-bottom: 22px;
}

.scope-text b {
    color: #fff;
    font-weight: 600;
}

.scope-cta {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.scope-cta::after {
    content: " →";
}

.scope-cta:hover {
    color: #cfcfcf;
}

/* very wide screens: the frame dissolves into the black at its sides */
@media (min-width: 1921px) {
    .scope-frame {
        -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    }
}

/* About me: same 1fr / 2fr grid and section heading as the CV below */
.about {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    padding: 96px 0 0;
    min-width: 0;
}

.about-text {
    padding-top: 10px;
    max-width: 760px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.55;
    color: #2a2a2a;
}

.about-text .about-lead {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: #000;
    margin-bottom: 20px;
}

.about-text a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 0.5px;
}

.about-text a:hover {
    color: #555;
    text-decoration-thickness: 1px;
}

.about-text a:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* duplicated logos exist only for the phone ticker loop */
@media (min-width: 769px) {
    .brand-clone {
        display: none;
    }
}

/* Page content (Impressum, etc.) */
.page-content {
    padding: 48px 0 76px 0;
    max-width: 720px;
    min-width: 0;
}

.page-content h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 0.5px solid #d0d0d0;
}

.page-content h1 .h1-sub {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: #7b7b7b;
    letter-spacing: 0;
    margin-top: 4px;
}

.page-content h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 28px 0 8px;
    color: #000;
}

.page-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #2a2a2a;
    margin-bottom: 16px;
}

.page-content a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-content a:hover {
    color: #555;
}

/* Linktree-style link list */
.link-list {
    list-style: none;
    padding: 48px 0 76px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
    min-width: 0;
}

.link-card {
    display: block;
    padding: 18px 24px;
    background: #fff;
    border: 0.5px solid #e0e0e0;
    border-radius: 6px;
    color: #000;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    letter-spacing: -0.01em;
}

.link-card:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
}

.link-card span {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin-top: 4px;
}

/* Contact banner (after form sent) */
.contact-banner {
    padding: 14px 20px;
    background: #f0f0f0;
    border: 0.5px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 15px;
    color: #2a2a2a;
}

.contact-banner a {
    color: #000;
    text-decoration: underline;
}

.contact-banner.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.contact-banner.error a {
    color: #991b1b;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.modal-overlay.active,
html:not(.js) .modal-overlay:target {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

.modal {
    background: #fff;
    border-radius: 8px;
    padding: 36px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.25s ease;
    border: 0.5px solid #e0e0e0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #000;
}

.modal h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: -0.015em;
    color: #000;
}

.modal p {
    color: #666;
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 400;
    font-size: 14px;
    color: #2a2a2a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 0.5px solid #d0d0d0;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #2a2a2a;
}

.submit-btn:active {
    transform: translateY(0.5px);
}

/* Honeypot field: off-screen for people, visible to bots */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.modal p.form-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: #7b7b7b;
}

.form-note a {
    color: inherit;
    text-decoration: underline;
}

.form-message {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
}

.form-message.error {
    background: #fef2f2;
    border: 0.5px solid #fecaca;
    color: #991b1b;
}

.form-message.success {
    background: #f0fdf4;
    border: 0.5px solid #bbf7d0;
    color: #166534;
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 32px 0 36px 0;
    border-top: 0.5px solid #d0d0d0;
    margin-top: 72px;
}

footer a {
    color: #000;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: color 0.15s ease;
    letter-spacing: -0.005em;
}

footer a:hover {
    color: #555;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mid-size screens: stack each experience entry before columns get cramped */
@media (max-width: 1100px) {
    .experience-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 48px;
    }
}

@media (max-width: 768px) {
    html {
        --gutter: 24px;
    }

    header {
        padding: 28px 0 24px 0;
        align-items: center;
    }

    nav {
        flex-direction: row;
        gap: 20px;
        align-items: center;
        font-size: 18px;
    }

    nav button.nav-link {
        font-size: 18px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
        padding: 56px 0 60px 0;
    }

    .portrait {
        width: 100%;
        max-width: 240px;
        height: 300px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 52px;
        padding: 0 0 60px 0;
        margin-top: 0;
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 48px;
    }

    .scope nav {
        font-size: 16px;
        gap: 18px;
    }

    .scope-frame {
        aspect-ratio: auto;
        overflow: visible;
    }

    .scope-frame picture {
        aspect-ratio: 4 / 3;
        height: auto;
    }

    .scope-frame img {
        -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
    }

    .scope-frame::after {
        display: none;
    }

    .scope-text {
        position: static;
        transform: none;
        width: auto;
        padding: 8px var(--gutter) 0;
    }

    .scope-text h1 {
        font-size: 26px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 56px 0 52px;
    }

    .about-text {
        padding-top: 0;
    }

    .about-text .about-lead {
        font-size: 20px;
    }

    /* Phone order: Experience → Brands → Side projects → Recognition */
    .main-content {
        display: flex;
        flex-direction: column;
    }

    .left-column,
    .right-column {
        display: contents;
    }

    .sec-exp { order: 1; }
    .sec-brands { order: 2; }
    .sec-side { order: 3; }
    .sec-recognition { order: 4; }

    /* Brands: a compact, swipeable row instead of the big grid */
    .brands {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        margin: 0 calc(-1 * var(--gutter)) 0;
        padding: 0 var(--gutter) 6px;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
        mask-image: linear-gradient(to right, #000 82%, transparent);
    }

    .brands::-webkit-scrollbar {
        display: none;
    }

    /* while auto-scrolling: no snapping, soft fade on both edges */
    .brands.is-auto {
        scroll-snap-type: none;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    }

    .brand-logo {
        flex: 0 0 36%;
        height: 60px;
        scroll-snap-align: start;
    }

    .modal {
        padding: 28px;
        margin: 16px;
    }

    .modal h2 {
        font-size: 22px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-content {
        padding: 36px 0 60px 0;
    }

    .page-content h1 {
        font-size: 22px;
    }

    .link-list {
        padding: 36px 0 60px 0;
    }
}

@media (max-width: 550px) {
    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 16px;
    }

    nav button.nav-link {
        font-size: inherit;
    }
}

@media (max-width: 480px) {
    html {
        --gutter: 20px;
    }

    nav {
        gap: 16px;
    }

    nav a, nav button.nav-link {
        font-size: 14px;
    }

    .logo {
        font-size: 17px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content div {
        font-size: 16px;
    }

    .left-column, .right-column {
        gap: 80px;
    }
}

@media (max-width: 405px) {
    html {
        --gutter: 16px;
    }

    nav {
        gap: 12px;
    }

    nav a, nav button.nav-link {
        font-size: 13px;
    }

    .logo {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .left-column, .right-column {
        gap: 64px;
    }
}
