:root {
    color-scheme: dark;
    --color-bg: #101922;
    --color-surface: #17232E;
    --color-surface-soft: #22303B;
    --color-graphite: #343434;
    --color-text: #F3F0EA;
    --color-text-muted: #CBD2D8;
    --color-text-subtle: #8F98A1;
    --color-accent: #F9A03F;
    --color-accent-strong: #D45113;
    --color-accent-soft: #F8DDA4;
    --color-border: rgba(243, 240, 234, 0.12);
    --color-border-strong: rgba(243, 240, 234, 0.22);
    --color-overlay: rgba(16, 25, 34, 0.72);
    --font-heading: "DM Serif Display", Georgia, serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
    --font-label: "Space Grotesk", "Inter", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    letter-spacing: 0;
    background: var(--color-bg);
    color: var(--color-text);
}

h1,
.brand-heading,
.display-font {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.ui-title {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-rendering: geometricPrecision;
}

nav,
button,
.tech-font {
    font-family: var(--font-label);
}

.mock-hero {
    background: var(--color-bg);
}

.hero-stage,
.hero-copy,
.profile-panel,
.principle-strip,
.principle-card {
    position: relative;
}

.hero-portrait,
.hero-retail,
.hero-brand-mark,
.hero-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-portrait {
    overflow: hidden;
    background:
        radial-gradient(circle at 9% 18%, rgba(248, 221, 164, 0.12), transparent 22%),
        radial-gradient(circle at 30% 62%, rgba(249, 160, 63, 0.08), transparent 28%),
        linear-gradient(90deg, var(--color-bg) 0%, var(--color-surface) 36%, rgba(34, 48, 59, 0.7) 56%, rgba(16, 25, 34, 0) 82%),
        linear-gradient(180deg, var(--color-surface-soft), var(--color-bg));
    opacity: 1;
}

.hero-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/assets/images/portrait-left-cutout.png");
    background-position: left center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: drop-shadow(28px 34px 46px rgba(0, 0, 0, 0.26));
    opacity: 0.9;
}

.hero-retail {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(16, 25, 34, 0.18), rgba(34, 48, 59, 0.2) 54%, rgba(16, 25, 34, 0.12)),
        radial-gradient(circle at 77% 26%, rgba(203, 210, 216, 0.08), transparent 23%),
        radial-gradient(circle at 88% 58%, rgba(249, 160, 63, 0.055), transparent 17%),
        repeating-linear-gradient(90deg, rgba(243, 240, 234, 0.026) 0 1px, transparent 1px 76px),
        repeating-linear-gradient(0deg, rgba(243, 240, 234, 0.018) 0 1px, transparent 1px 70px);
    background-position: center;
    background-size: cover;
    opacity: 0.72;
}

.hero-retail::before,
.hero-retail::after {
    content: "";
    position: absolute;
    inset: 0;
}

.hero-retail::before {
    background:
        linear-gradient(118deg, transparent 0 61%, rgba(243, 240, 234, 0.045) 61.2%, transparent 61.8%),
        linear-gradient(106deg, transparent 0 72%, rgba(249, 160, 63, 0.055) 72.2%, transparent 72.8%);
    opacity: 0.42;
}

.hero-retail::after {
    background:
        radial-gradient(circle at 82% 20%, rgba(243, 240, 234, 0.08), transparent 2px),
        radial-gradient(circle at 94% 48%, rgba(249, 160, 63, 0.18), transparent 2px),
        radial-gradient(circle at 70% 72%, rgba(203, 210, 216, 0.1), transparent 1px);
    opacity: 0.45;
}

.hero-brand-mark {
    left: auto;
    top: 8rem;
    right: clamp(1.5rem, 5vw, 5rem);
    width: clamp(8rem, 15vw, 15rem);
    height: clamp(8rem, 15vw, 15rem);
    background-image: url("/assets/images/logo-icon.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: saturate(0.9);
    opacity: 0.035;
}

.hero-veil {
    background:
        linear-gradient(90deg, rgba(16, 25, 34, 0.08), var(--color-overlay) 32%, rgba(16, 25, 34, 0.22) 62%, rgba(16, 25, 34, 0.46)),
        linear-gradient(180deg, rgba(16, 25, 34, 0), rgba(16, 25, 34, 0.12) 58%, rgba(16, 25, 34, 0.94));
}

.nav-link {
    position: relative;
    padding-block: 0.9rem;
    transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-accent);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1rem;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--color-accent);
    transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.signature {
    font-family: var(--font-heading);
    font-style: italic;
    transform: rotate(-2deg);
    text-underline-offset: 0.3em;
    text-decoration-thickness: 0.12em;
    text-decoration-line: underline;
    text-decoration-color: var(--color-accent);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
    transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.focus-ring:focus-visible {
    outline: 3px solid rgba(249, 160, 63, 0.72);
    outline-offset: 3px;
}

[data-contact-status][data-state="sent"],
[data-contact-status][data-state="success"] {
    color: #86efac;
}

[data-contact-status][data-state="invalid"],
[data-contact-status][data-state="error"] {
    color: #fca5a5;
}

@media (max-width: 900px) {
    body {
        overflow-x: hidden;
    }

    .site-header {
        border-bottom: 0;
        background:
            linear-gradient(180deg, rgba(16, 25, 34, 0.9), rgba(16, 25, 34, 0.24) 72%, rgba(16, 25, 34, 0));
        backdrop-filter: none;
    }

    .site-header .site-header-inner {
        max-width: none;
        gap: 1rem;
        padding: 1.55rem 1.7rem 0.9rem;
    }

    .site-header .site-logo {
        height: 3.05rem;
        max-width: clamp(9rem, 42vw, 12.5rem);
        filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
    }

    .site-header .mobile-contact-button {
        flex: none;
        min-height: 3.35rem;
        border-radius: 0.85rem;
        padding-inline: 1.4rem;
        background: rgba(16, 25, 34, 0.34);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
        font-size: 0.88rem;
        letter-spacing: 0.14em;
    }

    .mock-hero.hero-shell {
        min-height: 57rem;
        padding-top: 0;
        background:
            radial-gradient(circle at 75% 12%, rgba(203, 210, 216, 0.12), transparent 28%),
            radial-gradient(circle at 13% 29%, rgba(249, 160, 63, 0.06), transparent 20%),
            linear-gradient(180deg, var(--color-surface-soft) 0%, var(--color-bg) 62%, var(--color-bg) 100%);
    }

    .mock-hero .hero-portrait {
        opacity: 1;
        background:
            radial-gradient(circle at 82% 24%, rgba(248, 221, 164, 0.1), transparent 20%),
            linear-gradient(90deg, rgba(16, 25, 34, 0.95) 0%, rgba(16, 25, 34, 0.72) 47%, rgba(16, 25, 34, 0.28) 100%),
            linear-gradient(180deg, rgba(34, 48, 59, 0.82), rgba(16, 25, 34, 0.96));
    }

    .mock-hero .hero-portrait::after {
        inset: 0 -6rem 0 0;
        background-image: url("/assets/images/tobias_burggraf_cutout.png");
        background-position: calc(100% + 12rem) 6.7rem;
        background-size: auto 43.5rem;
        opacity: 0.74;
        filter:
            saturate(0.96)
            contrast(0.98)
            drop-shadow(-1.2rem 2rem 2.8rem rgba(0, 0, 0, 0.34));
    }

    .mock-hero .hero-retail {
        left: 0;
        right: 0;
        top: 5.2rem;
        bottom: auto;
        width: 100%;
        height: 34rem;
        background-image:
            linear-gradient(90deg, rgba(16, 25, 34, 0.92) 0%, rgba(16, 25, 34, 0.62) 48%, rgba(16, 25, 34, 0.2) 100%),
            repeating-linear-gradient(90deg, rgba(243, 240, 234, 0.028) 0 1px, transparent 1px 64px),
            repeating-linear-gradient(0deg, rgba(243, 240, 234, 0.018) 0 1px, transparent 1px 58px),
            radial-gradient(circle at 78% 28%, rgba(203, 210, 216, 0.07), transparent 26%),
            linear-gradient(180deg, rgba(34, 48, 59, 0.28) 0%, rgba(16, 25, 34, 0.94) 100%);
        background-position: 59% top;
        background-size: auto 100%;
        opacity: 0.5;
        mix-blend-mode: normal;
    }

    .mock-hero .hero-brand-mark {
        display: none;
    }

    .mock-hero .hero-veil {
        background:
            linear-gradient(90deg, rgba(16, 25, 34, 0.9) 0%, rgba(16, 25, 34, 0.68) 48%, rgba(16, 25, 34, 0.24) 100%),
            linear-gradient(180deg, rgba(16, 25, 34, 0.05) 0%, rgba(16, 25, 34, 0.12) 34%, rgba(16, 25, 34, 0.84) 78%, rgba(16, 25, 34, 1) 100%),
            radial-gradient(circle at 73% 30%, rgba(16, 25, 34, 0.12), rgba(16, 25, 34, 0.82) 56%, rgba(16, 25, 34, 1) 88%);
    }

    .mock-hero .hero-stage {
        max-width: none;
        min-height: 47rem;
        align-items: flex-start;
        padding: clamp(11.5rem, 30vw, 16.5rem) 1.65rem 5.25rem;
    }

    .mock-hero .hero-copy {
        z-index: 2;
        max-width: min(29rem, calc(100vw - 3.3rem));
        margin-left: 0;
        min-width: 0;
        text-shadow: 0 0.14rem 0.55rem rgba(0, 0, 0, 0.28);
    }

    .mock-hero .hero-label {
        max-width: 16rem;
        font-size: 0.72rem;
        line-height: 1.55;
        letter-spacing: 0.18em;
    }

    .mock-hero .hero-headline {
        max-width: 7.2em;
        margin-top: 1rem;
        font-size: clamp(2.35rem, 10vw, 3.45rem);
        line-height: 1;
        letter-spacing: -0.018em;
    }

    .mock-hero .hero-signature {
        display: none !important;
    }

    .mock-hero .hero-subline {
        max-width: 18.5rem;
        margin-top: 1.35rem;
        font-size: clamp(0.94rem, 3.45vw, 1.02rem);
        font-weight: 500;
        line-height: 1.56;
        color: rgba(203, 210, 216, 0.82);
    }

    .mock-hero .hero-actions {
        margin-top: 1.75rem;
    }

    .mock-hero .hero-primary-cta {
        width: min(100%, 28.5rem);
        min-height: 3.65rem;
        border-radius: 0.75rem;
        background: var(--color-accent);
        font-size: 0.78rem;
        letter-spacing: 0.14em;
        box-shadow:
            0 1.1rem 2.6rem rgba(249, 160, 63, 0.12),
            inset 0 0.08rem 0 rgba(248, 221, 164, 0.18);
    }

    section.profile-panel-section {
        margin-top: 0;
        padding-inline: 1.45rem;
    }

    .profile-panel-section .profile-panel {
        overflow: visible;
        border-radius: 1.35rem;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .profile-panel .principle-strip {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        overflow: visible;
        margin-inline: 0;
        padding: 0;
        border-bottom: 0;
        scroll-snap-type: none;
        scrollbar-width: none;
    }

    .profile-panel .principle-strip::-webkit-scrollbar {
        display: none;
    }

    .principle-strip .principle-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon title"
            "icon text";
        column-gap: 1rem;
        min-height: auto;
        padding: 1.35rem 1.25rem;
        border: 1px solid rgba(243, 240, 234, 0.12);
        border-radius: 1rem;
        background: rgba(23, 35, 46, 0.7);
        box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.12);
        scroll-snap-align: none;
        text-align: left;
    }

    .principle-strip .principle-card i {
        grid-area: icon;
        width: 1.65rem;
        height: 1.65rem;
        margin: 0.08rem 0 0;
        stroke-width: 2;
    }

    .principle-strip .principle-card .ui-title {
        grid-area: title;
        margin-top: 0;
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: -0.01em;
        text-shadow: none;
    }

    .principle-strip .principle-card .ui-title::after {
        content: none;
    }

    .principle-strip .principle-card p {
        grid-area: text;
        margin-top: 0.45rem;
        font-size: 0.92rem;
        line-height: 1.55;
        color: rgba(203, 210, 216, 0.7);
    }
}

@media (min-width: 560px) and (max-width: 900px) {
    .profile-panel .principle-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .site-header .site-logo {
        height: 2.55rem;
    }

    .site-header .site-header-inner {
        padding-inline: 1.35rem;
    }

    .site-header .mobile-contact-button {
        min-height: 2.9rem;
        padding-inline: 1rem;
        font-size: 0.78rem;
    }

    .mock-hero .hero-stage {
        min-height: 46.5rem;
        padding-top: clamp(11.25rem, 49vw, 12.35rem);
        padding-bottom: 5.25rem;
        padding-inline: 1.45rem;
    }

    .mock-hero .hero-portrait::after {
        background-position: calc(100% + 15.2rem) 6.9rem;
        background-size: auto 41rem;
    }

    .mock-hero .hero-retail {
        height: 31rem;
    }

    .mock-hero .hero-headline {
        font-size: clamp(2.2rem, 10.6vw, 3rem);
    }

    .mock-hero .hero-primary-cta {
        min-height: 3.55rem;
        font-size: 0.74rem;
    }

    section.profile-panel-section {
        padding-inline: 1.2rem;
    }
}

@media (max-width: 380px) {
    .site-header .site-logo {
        height: 2.25rem;
    }

    .site-header .mobile-contact-button {
        padding-inline: 0.9rem;
        letter-spacing: 0.12em;
    }

    .mock-hero .hero-label {
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }

    .mock-hero .hero-portrait::after {
        background-position: calc(100% + 16.7rem) 7.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
