:root {
    --accent: #ff4500;
    --text: #1f2933;
    --muted: #52606d;
    --bg: #f4f6f8;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(31, 41, 51, 0.08);
    --radius: 16px;
    --nav-height: 72px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    font: 400 clamp(1rem, 0.95rem + 0.3vw, 1.125rem)/1.6 "DM Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
}

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

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0 0 0.6rem;
}

h1 {
    font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.75rem;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

p {
    margin: 0;
    color: var(--muted);
}

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

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.35rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(31, 41, 51, 0.06);
}

.nav-inner {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    display: inline-block;
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
}

.nav-links a.is-active,
.nav-links a:hover {
    color: var(--accent);
    background: rgba(255, 69, 0, 0.08);
}

.hero {
    padding: 1rem 1rem 0;
}

.hero-cover {
    position: relative;
    min-height: min(72vh, 640px);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background: #444;
}

.hero-media {
    position: absolute;
    inset: 0;
    display: block;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 28rem;
    padding: 2rem 1.5rem;
}

.img-profile {
    display: block;
    width: 148px;
    height: 148px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    padding: 6px;
    background: #fff;
    border: 3px solid var(--accent);
    overflow: hidden;
}

.img-profile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-role {
    font-weight: 500;
    color: var(--text);
}

.section,
.hero,
.banner {
    scroll-margin-top: calc(var(--nav-height) + 12px);
}

.section {
    padding: 4rem 0;
}

.card-grid {
    display: grid;
    gap: 1rem;
}

.about-grid {
    grid-template-columns: repeat(3, 1fr);
}

.skills-grid {
    grid-template-columns: repeat(3, 1fr);
}

.banner {
    position: relative;
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    min-height: 220px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.banner-media {
    position: absolute;
    inset: 0;
    display: block;
}

.banner-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: relative;
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 2rem 1.25rem;
    background: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28));
}

.banner-overlay h2 {
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.timeline {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 720px;
    display: grid;
    gap: 1rem;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #d9e2ec;
    z-index: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 0.9rem;
    align-items: start;
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    margin: 1.15rem 0 0;
    justify-self: center;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
}

.timeline-tag {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 69, 0, 0.1);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
}

.skill-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.skill-head h3,
.skill-head span {
    margin: 0;
}

.skill-head span {
    color: var(--accent);
    font-weight: 700;
}

.skill-track {
    height: 10px;
    background: #e4e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff7a3d, var(--accent));
}

.modelmaker-layout {
    display: grid;
    gap: 1rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
}

.project-links a {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 69, 0, 0.1);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.project-links a:hover {
    opacity: 0.85;
}

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

.video-card {
    padding: 0.7rem;
}

.video-frame {
    position: relative;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.site-footer {
    background: #1f2933;
    color: #fff;
    padding: 2.5rem 0;
}

.footer-inner {
    display: grid;
    justify-items: center;
    gap: 1rem;
}

.site-footer p {
    color: #cbd2d9;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

.social-instagram {
    background: #c13584;
}

.social-facebook {
    background: #3b5998;
}

.social-xing {
    background: #026466;
}

.social-linkedin {
    background: #0077b5;
}

.social-btn:hover {
    opacity: 0.85;
}

@media (max-width: 900px) {
    .about-grid,
    .skills-grid,
    .video-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .nav-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0.65rem 0;
        gap: 0.35rem;
    }

    .nav-links {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .nav-links a {
        white-space: nowrap;
    }

    .about-grid,
    .skills-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .modelmaker-copy {
        order: -1;
    }

    .hero-cover {
        min-height: 70vh;
        border-radius: 18px;
    }
}
