:root {
    --bg: #f3ede4;
    --bg-deep: #ece5d9;
    --panel: rgba(255, 255, 255, 0.76);
    --panel-strong: rgba(255, 255, 255, 0.88);
    --ink: #18212f;
    --muted: #5c6471;
    --muted-strong: #3c4656;
    --line: rgba(24, 33, 47, 0.11);
    --line-strong: rgba(24, 33, 47, 0.18);
    --accent: #0f8a73;
    --accent-deep: #0b6a58;
    --accent-warm: #f28f3b;
    --accent-cool: #2f6fed;
    --shadow-lg: 0 30px 80px rgba(24, 33, 47, 0.14);
    --shadow-md: 0 18px 40px rgba(24, 33, 47, 0.09);
    --radius-xl: 34px;
    --radius-lg: 28px;
    --radius-md: 22px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(15, 138, 115, 0.22), transparent 32%),
        radial-gradient(circle at top right, rgba(242, 143, 59, 0.18), transparent 28%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    color: var(--ink);
    font-family: 'Montserrat', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    min-height: 100vh;
    padding: 0;
    position: relative;
    word-wrap: break-word;
}

body::before,
body::after {
    content: "";
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

body::before {
    background: radial-gradient(circle, rgba(47, 111, 237, 0.12), transparent 68%);
    height: 28rem;
    right: -10rem;
    top: 12rem;
    width: 28rem;
}

body::after {
    background:
        linear-gradient(rgba(24, 33, 47, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 33, 47, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    height: 18rem;
    left: -4rem;
    opacity: 0.45;
    top: 20rem;
    width: 18rem;
}

::selection {
    background: rgba(15, 138, 115, 0.22);
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
    transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
    color: var(--accent-deep);
}

img {
    height: auto;
    max-width: 100%;
}

a img.external {
    filter: invert(0.42) sepia(1) saturate(4) hue-rotate(164deg);
}

.external {
    display: inline-block;
    margin-left: 0.3rem;
    vertical-align: -0.1rem;
    width: 0.85rem;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 0.75rem;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.7rem, 7vw, 5.4rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

h4 {
    font-size: 1.05rem;
}

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

strong {
    color: var(--ink);
}

ul,
ol {
    padding-left: 1.25rem;
}

li + li {
    margin-top: 0.35rem;
}

pre {
    background: #121a2d;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(12, 18, 31, 0.24);
    color: #f8fafc;
    font-size: 15px;
    margin: 1.35rem 0;
    overflow: auto;
    padding: 1.2rem 1.4rem;
    white-space: pre-wrap;
}

code {
    background: rgba(24, 33, 47, 0.08);
    border-radius: 0.45rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 0.95em;
    padding: 0.12rem 0.38rem;
}

pre code {
    background: transparent;
    padding: 0;
}

blockquote {
    background: rgba(47, 111, 237, 0.07);
    border-left: 4px solid var(--accent-cool);
    border-radius: 0 18px 18px 0;
    font-style: normal;
    margin: 1.4rem 0;
    padding: 1rem 1.2rem 1rem 1.35rem;
}

.wrapper {
    margin: 0 auto;
    position: relative;
    width: min(1180px, calc(100% - 2rem));
    z-index: 1;
}

.site-header {
    background: rgba(243, 237, 228, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(24, 33, 47, 0.08);
    position: sticky;
    top: 0;
    z-index: 30;
}

.site-header__inner {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.95rem 0;
}

.brand {
    align-items: center;
    display: inline-flex;
    gap: 0.9rem;
    text-decoration: none;
}

.brand:hover {
    color: inherit;
    transform: translateY(-1px);
}

.brand-mark {
    align-items: center;
    background: linear-gradient(135deg, var(--accent) 0%, #0d1d36 100%);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 800;
    height: 3rem;
    justify-content: center;
    letter-spacing: 0.08em;
    min-width: 3rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1;
}

.brand-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-role {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.site-nav a {
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted-strong);
    padding: 0.65rem 0.95rem;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
    background: #ffffff;
    border-color: rgba(15, 138, 115, 0.22);
    box-shadow: 0 12px 25px rgba(24, 33, 47, 0.08);
    color: var(--ink);
}

.site-main {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 5rem;
}

.page-shell {
    position: relative;
}

.page-shell-content {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 980px;
    padding: clamp(1.5rem, 3.5vw, 3rem);
}

.page-shell-content > :first-child {
    margin-top: 0;
}

.page-shell-content p,
.page-shell-content li {
    max-width: 72ch;
}

.page-shell-content a {
    color: var(--accent-deep);
}

.page-shell-content h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
}

.page-shell-content h2 {
    margin-top: 2.7rem;
}

.page-shell-content h3,
.page-shell-content h4 {
    margin-top: 2rem;
}

.page-shell-home {
    display: grid;
    gap: 1.35rem;
}

.hero-panel {
    align-items: stretch;
    display: grid;
    gap: 1.35rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.hero-copy,
.portrait-panel,
.home-section,
.mini-stat {
    position: relative;
}

.hero-copy {
    background: linear-gradient(135deg, #0f172a 0%, #111827 56%, #17304b 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    color: #f8fafc;
    overflow: hidden;
    padding: clamp(1.85rem, 4vw, 3.1rem);
}

.hero-copy::before {
    background: radial-gradient(circle, rgba(242, 143, 59, 0.34), transparent 68%);
    bottom: -7rem;
    content: "";
    height: 20rem;
    pointer-events: none;
    position: absolute;
    right: -6rem;
    width: 20rem;
}

.hero-copy::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 26px 26px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 100%);
    opacity: 0.18;
    pointer-events: none;
    position: absolute;
}

.kicker,
.section-tag,
.spotlight-label,
.mini-stat-label,
.presence-link-label,
.project-open {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.kicker {
    color: rgba(248, 250, 252, 0.72);
}

.hero-copy h1,
.hero-copy p,
.hero-copy .hero-actions,
.hero-copy .signal-list {
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    color: #ffffff;
    margin-bottom: 1rem;
    max-width: 11ch;
}

.hero-lead {
    color: rgba(248, 250, 252, 0.9);
    font-size: clamp(1.08rem, 2vw, 1.34rem);
    max-width: 42rem;
}

.hero-subcopy {
    color: rgba(248, 250, 252, 0.72);
    margin-bottom: 0;
    max-width: 38rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.6rem 0 1.85rem;
}

.button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 3rem;
    padding: 0.8rem 1.15rem;
    text-decoration: none;
}

.button:hover {
    color: inherit;
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cool) 100%);
    box-shadow: 0 14px 28px rgba(15, 138, 115, 0.26);
    color: #ffffff;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.button-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(248, 250, 252, 0.88);
}

.signal-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.signal-list li {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 650;
    margin: 0;
    padding: 0.95rem 1rem;
}

.hero-spotlight {
    display: grid;
    gap: 1rem;
}

.portrait-panel {
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 1rem;
}

.spotlight-label {
    color: var(--muted);
    margin-bottom: 0.85rem;
}

.portrait-panel img {
    aspect-ratio: 4 / 5;
    border-radius: 26px;
    display: block;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

.portrait-card-body {
    padding: 1rem 0.15rem 0.1rem;
}

.portrait-card-body h2 {
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    margin-bottom: 0.45rem;
}

.portrait-card-body p {
    color: var(--muted-strong);
    margin-bottom: 0;
}

.spotlight-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    min-height: 9.5rem;
    padding: 1rem;
}

.mini-stat-label {
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.mini-stat strong {
    color: var(--ink);
    display: block;
    font-size: clamp(1.45rem, 3vw, 2.45rem);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 0.7rem;
}

.mini-stat p {
    color: var(--muted-strong);
    margin-bottom: 0;
}

.home-section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 2.6rem);
}

.home-section::before {
    background: radial-gradient(circle, rgba(15, 138, 115, 0.16), transparent 70%);
    content: "";
    height: 14rem;
    pointer-events: none;
    position: absolute;
    right: -7rem;
    top: -6rem;
    width: 14rem;
}

.projects-section::before {
    background: radial-gradient(circle, rgba(242, 143, 59, 0.18), transparent 70%);
}

.presence-section::before {
    background: radial-gradient(circle, rgba(47, 111, 237, 0.16), transparent 70%);
}

.section-heading {
    margin-bottom: 1.6rem;
    max-width: 46rem;
    position: relative;
    z-index: 1;
}

.section-tag {
    color: var(--accent-deep);
    margin-bottom: 0.85rem;
}

.section-heading p:last-child {
    color: var(--muted-strong);
    margin-bottom: 0;
}

.capability-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    z-index: 1;
}

.capability-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 235, 225, 0.88));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-height: 13.5rem;
    padding: 1.35rem;
}

.capability-card h3 {
    margin-bottom: 0.75rem;
}

.capability-card p {
    color: var(--muted-strong);
    margin-bottom: 0;
}

.project-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    z-index: 1;
}

.project-card {
    background: linear-gradient(180deg, #ffffff 0%, #f3eee5 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 15rem;
    overflow: hidden;
    padding: 1.35rem;
    position: relative;
    text-decoration: none;
}

.project-card::after {
    background: radial-gradient(circle, rgba(47, 111, 237, 0.16), transparent 70%);
    bottom: -6rem;
    content: "";
    height: 14rem;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    right: -6rem;
    transition: opacity 0.25s ease;
    width: 14rem;
}

.project-card:hover {
    box-shadow: 0 24px 48px rgba(24, 33, 47, 0.14);
    color: inherit;
    transform: translateY(-4px);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card-featured {
    background: linear-gradient(135deg, #111827 0%, #0f172a 58%, #16344f 100%);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.project-card-featured::after {
    background: radial-gradient(circle, rgba(242, 143, 59, 0.22), transparent 70%);
}

.project-card-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.project-emoji {
    align-items: center;
    background: rgba(15, 138, 115, 0.1);
    border-radius: 16px;
    display: inline-flex;
    font-size: 1.35rem;
    height: 2.6rem;
    justify-content: center;
    width: 2.6rem;
}

.project-card-featured .project-emoji {
    background: rgba(255, 255, 255, 0.12);
}

.project-open {
    color: var(--muted);
    margin-bottom: 0;
}

.project-card-featured .project-open {
    color: rgba(248, 250, 252, 0.64);
}

.project-card-copy {
    display: grid;
    gap: 0.45rem;
}

.project-card h3 {
    margin-bottom: 0;
}

.project-card p {
    color: var(--muted-strong);
    margin-bottom: 0;
}

.project-card-featured p {
    color: rgba(248, 250, 252, 0.78);
}

.project-type {
    align-items: center;
    align-self: flex-start;
    background: rgba(24, 33, 47, 0.06);
    border-radius: 999px;
    color: var(--muted-strong);
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 700;
    margin-top: auto;
    padding: 0.42rem 0.72rem;
}

.project-card-featured .project-type {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(248, 250, 252, 0.9);
}

.presence-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    position: relative;
    z-index: 1;
}

.presence-copy {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 234, 225, 0.88));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-height: 100%;
    padding: 1.45rem;
}

.presence-copy p:last-child {
    margin-bottom: 0;
}

.presence-quote {
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-weight: 650;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
}

.link-cluster {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.presence-link {
    background: linear-gradient(180deg, #ffffff 0%, #f6f1e8 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 9.25rem;
    padding: 1.2rem;
    text-decoration: none;
}

.presence-link:hover {
    box-shadow: 0 24px 48px rgba(24, 33, 47, 0.14);
    color: inherit;
    transform: translateY(-3px);
}

.presence-link-label {
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.presence-link strong {
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.presence-link p {
    color: var(--muted-strong);
    margin-bottom: 0;
}

.toc {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 1.75rem 0 2.5rem;
    padding: 0;
}

.toc li {
    margin: 0;
}

.toc a {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 18px 35px rgba(17, 24, 39, 0.16);
    color: #f8fafc;
    display: block;
    padding: 0.95rem 1rem;
    text-decoration: none;
}

.toc a:hover,
.toc a.active {
    background: linear-gradient(135deg, #0f8a73 0%, #111827 100%);
    color: #ffffff;
}

.partner {
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 235, 225, 0.88));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.partner h2 {
    margin-bottom: 0.35rem;
}

.partner img {
    display: block;
    margin: 0 auto;
    max-width: 340px;
    width: 100%;
}

.impressum {
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    display: block;
    max-width: 420px;
    width: 100%;
    padding: 1em;
    background-color: #d9dadd;
    margin-top: 2em;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-panel,
    .craft-section,
    .projects-section,
    .presence-section {
        animation: rise 0.7s ease both;
    }

    .craft-section {
        animation-delay: 0.08s;
    }

    .projects-section {
        animation-delay: 0.16s;
    }

    .presence-section {
        animation-delay: 0.24s;
    }
}

@media (max-width: 1080px) {
    .hero-panel,
    .presence-layout {
        grid-template-columns: 1fr;
    }

    .capability-grid,
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .spotlight-grid,
    .capability-grid,
    .project-grid,
    .link-cluster,
    .partner {
        grid-template-columns: 1fr;
    }

    .signal-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    body::before {
        height: 18rem;
        right: -7rem;
        top: 8rem;
        width: 18rem;
    }

    body::after {
        display: none;
    }

    .wrapper {
        width: min(1180px, calc(100% - 1rem));
    }

    .brand-role {
        display: none;
    }

    .site-nav a {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .hero-copy,
    .portrait-panel,
    .home-section,
    .page-shell-content {
        border-radius: 26px;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .spotlight-grid,
    .link-cluster {
        grid-template-columns: 1fr;
    }

    .mini-stat {
        min-height: 0;
    }
}
