/* Synergy Engineering — shared stylesheet (index, impressum, datenschutz)
   Fonts are self-hosted in /fonts (SIL Open Font License). No third-party requests. */

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
    font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Hanken Grotesk';
    src: url('fonts/hanken-grotesk-latin-wght-normal.woff2') format('woff2');
    font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}

:root {
    --paper: #f4f0e8;
    --paper-2: #ebe6da;
    --ink: #15120f;
    --ink-2: #4d473f;
    --ink-3: #857d71;
    --line: rgba(21, 18, 15, 0.16);
    --line-soft: rgba(21, 18, 15, 0.08);
    --red: #dc2626;
    --red-deep: #b91c1c;
    --on-dark: #f4f0e8;
    --on-dark-2: rgba(244, 240, 232, 0.62);
    --line-dark: rgba(244, 240, 232, 0.16);

    --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
    --body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --max: 1320px;
}

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

/* anchor targets start right below the sticky header (4.25rem + 1px border) */
html { scroll-behavior: smooth; scroll-padding-top: calc(4.25rem + 1px); -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    /* fine drafting-paper grid */
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 96px 96px;
    background-position: center top;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
/* anchor targets get focus (main.js) only so Tab continues there; they are not controls */
[tabindex="-1"]:focus { outline: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.mono {
    font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase;
}

/* ─── NAV ─── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(244, 240, 232, 0.86);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-content {
    display: flex; align-items: center; justify-content: space-between;
    height: 4.25rem; gap: 1.5rem;
}
.logo-wrap { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; flex-shrink: 0; }
/* logo.svg: tight viewBox; 2.25rem keeps ENGINEERING >= 5px cap height.
   With a large default font the logo may only take the room left beside the 44px burger (219:40 ratio). */
.logo-wrap img { height: min(2.25rem, calc((100vw - 2 * var(--gutter) - 1.5rem - 44px) * 40 / 219)); width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav-links a {
    --pad: max(0.5rem, calc((44px - 1.2375rem) / 2)); /* 44px tap height; text stays centred in the header */
    font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
    text-decoration: none; color: var(--ink-2);
    padding: var(--pad) 0; position: relative; transition: color 0.2s;
}
.nav-links a i { font-style: normal; color: var(--red); margin-right: 0.45em; }
.nav-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: calc(var(--pad) - 0.3rem); height: 1px;
    background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.nav-cta {
    color: var(--paper); background: var(--ink); padding: 0.6rem 1rem; border-radius: 2px;
    transition: background 0.2s;
}
.nav-links a.nav-cta::after { display: none; }
/* invisible 44px hit area around the slimmer pill */
.nav-links a.nav-cta::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.nav-links a.nav-cta:hover { background: var(--red); color: #fff; }

.hamburger {
    display: none; width: 44px; height: 44px; flex-shrink: 0; background: none; border: 1px solid var(--line);
    border-radius: 2px; cursor: pointer; align-items: center; justify-content: center;
    flex-direction: column; gap: 5px;
}
.hamburger span { display: block; width: 18px; height: 1.5px; background: var(--ink); }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; gap: 0.7rem;
    font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
    padding: 1rem 1.4rem; border-radius: 2px; border: 1px solid var(--ink);
    cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 1em; height: 1em; transition: transform 0.25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* ─── HERO ─── */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; overflow: clip; }
.hero-meta {
    display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; color: var(--ink-2);
    padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.hero-meta .live { display: inline-flex; align-items: baseline; gap: 0.6rem; color: var(--ink); }
/* terminal-style caret (same shape and blink as .caret); baseline-aligned, sits on the first line when the text wraps */
.hero-meta .live::before {
    content: ''; flex: none; width: 0.55em; height: 1.05em; margin-bottom: -0.18em; background: var(--red);
    animation: blink 1s steps(2) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 {
    font-family: var(--display);
    font-size: clamp(2.9rem, 6.5vw, 6.75rem);
    font-weight: 700; line-height: 0.9; letter-spacing: -0.045em;
    font-variation-settings: 'opsz' 96;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .rise { display: block; }
.hero h1 em {
    font-style: normal; color: var(--red); position: relative; white-space: nowrap;
}
.hero-lead {
    margin-top: clamp(1.5rem, 3vw, 2.25rem); max-width: 34rem;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2);
}
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ─── SECTIONS ─── */
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section-head {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1rem 2rem; align-items: end;
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: clamp(2rem, 4vw, 3.5rem);
    border-bottom: 1px solid var(--ink);
}
.section-label { color: var(--ink-2); display: flex; gap: 0.8rem; align-items: baseline; }
.section-label b { color: var(--red); font-weight: 500; }
.section-head h2 {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(2.2rem, 5.2vw, 4.25rem); line-height: 0.98; letter-spacing: -0.035em;
}
.section-head p { grid-column: 2; color: var(--ink-2); max-width: 36rem; }

/* ─── ABOUT ─── */
.about-grid {
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.portrait { position: relative; }
.portrait img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px;
    filter: saturate(0.9) contrast(1.03);
}
.portrait::before {
    content: ''; position: absolute; inset: 0; transform: translate(14px, 14px);
    border: 1px solid var(--ink); border-radius: 4px; z-index: -1;
}
.portrait figcaption {
    position: absolute; left: -1px; bottom: 1.25rem; background: var(--red); color: #fff;
    padding: 0.45rem 0.8rem;
}
.about-lead {
    font-family: var(--display); font-weight: 500;
    font-size: clamp(1.5rem, 2.8vw, 2.35rem); line-height: 1.18; letter-spacing: -0.02em;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.about-lead span { color: var(--ink-3); }
.spec { border-top: 1px solid var(--ink); }
.spec > div {
    display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 0.25rem 1.5rem;
    padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.spec dt { color: var(--ink-2); padding-top: 0.2rem; }
.spec dd { color: var(--ink); }

/* ─── EXPERIENCE ─── */
.experience { background: var(--paper-2); background-image: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.xp { list-style: none; }
.xp li {
    display: grid; grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 0.4rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line);
    transition: padding 0.3s, background 0.3s;
}
.xp li:first-child { padding-top: 0; }
.xp li:hover { background: rgba(21, 18, 15, 0.035); padding-left: 0.9rem; padding-right: 0.9rem; }
.xp li:first-child:hover { padding-top: 0; }
.xp .period { color: var(--ink-2); padding-top: 0.35rem; }
.xp .period.now { color: var(--red); }
.xp h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.xp .company { color: var(--ink-2); margin-top: 0.3rem; font-size: 0.98rem; }
.xp p { color: var(--ink-2); font-size: 0.98rem; }
.cv-extras {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}
.cv-extras h4 { color: var(--red); margin-bottom: 0.9rem; font-weight: 500; }
.cv-extras ul { list-style: none; border-top: 1px solid var(--ink); }
.cv-extras li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }

/* ─── CONTACT ─── */
.contact { background: var(--ink); color: var(--on-dark); background-image: none; padding-bottom: clamp(3rem, 6vw, 5rem); }
.contact-grid {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.contact .section-label { color: var(--on-dark-2); margin-bottom: 1.5rem; }
.contact h2 {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(3.2rem, 10vw, 8.5rem); line-height: 0.88; letter-spacing: -0.045em;
}
.contact h2 em { font-style: normal; color: var(--red); }
.contact-lead { color: var(--on-dark-2); margin: 1.75rem 0 2.5rem; max-width: 28rem; font-size: 1.15rem; }
.mail-link {
    display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none;
    font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 2.4vw, 1.85rem);
    letter-spacing: -0.01em; padding-bottom: 0.35rem; border-bottom: 1px solid var(--on-dark);
    transition: color 0.2s, border-color 0.2s; overflow-wrap: anywhere;
    padding-top: 0.5rem; margin-top: -0.5rem; /* 44px tap height without moving text or underline */
}
.mail-link:hover { color: var(--red); border-color: var(--red); }
.mail-link svg { width: 0.8em; height: 0.8em; flex-shrink: 0; }
.contact-facts { margin-top: 2.75rem; border-top: 1px solid var(--line-dark); }
.contact-facts > div {
    display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem;
    padding: 0.9rem 0; border-bottom: 1px solid var(--line-dark);
}
.contact-facts dt { color: var(--on-dark-2); padding-top: 0.2rem; }
.contact-facts a { text-decoration: none; border-bottom: 1px solid var(--line-dark); position: relative; }
/* invisible 44px hit area; the link itself stays inline so text and underline do not move */
.contact-facts a::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.contact-facts a:hover { color: var(--red); border-color: var(--red); }

.contact-form { border: 1px solid var(--line-dark); border-radius: 4px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.field { margin-bottom: 1.5rem; }
.field label { display: block; color: var(--on-dark-2); margin-bottom: 0.4rem; }
.form-input {
    width: 100%; background: transparent; color: var(--on-dark);
    border: none; border-bottom: 1px solid var(--line-dark); border-radius: 0;
    font-family: var(--body); font-size: 1.05rem; padding: 0.55rem 0 0.7rem; min-height: 44px;
    transition: border-color 0.2s;
}
textarea.form-input { resize: vertical; min-height: 7.5rem; }
.form-input:focus { outline: none; border-bottom-color: var(--red); }
.btn-submit {
    width: 100%; justify-content: space-between; background: var(--on-dark); color: var(--ink);
    border-color: var(--on-dark); margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--red); border-color: var(--red); color: #fff; }
.form-note { margin-top: 1rem; color: var(--on-dark-2); font-size: 0.85rem; }
/* label row with the character counter on the right (no extra height) */
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.4rem; }
.field-head label { margin-bottom: 0; }
.char-count { color: var(--on-dark-2); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.char-count.is-full { color: var(--red); }
/* feedback after "Send message"; empty (and without height) until then */
.form-status:not(:empty) {
    margin-top: 1.25rem; padding: 1rem 1.1rem; border-left: 2px solid var(--red);
    background: rgba(244, 240, 232, 0.05); color: var(--on-dark); font-size: 0.95rem; line-height: 1.55;
}
.form-status p + p { margin-top: 0.5rem; }
.form-status a { color: var(--on-dark); overflow-wrap: anywhere; }
.form-status-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.btn-copy {
    min-height: 44px; padding: 0.6rem 1rem; font-size: 0.75rem;
    background: transparent; color: var(--on-dark); border-color: var(--line-dark);
}
.btn-copy:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }

/* ─── FOOTER ─── */
.footer { background: var(--ink); color: var(--on-dark-2); }
/* links get 44px tap height; the padding is reduced by the same amount so the one-line footer keeps its height */
.footer-content {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 1rem 2.5rem; padding: calc(1.75rem - 12px) 0; border-top: 1px solid var(--line-dark);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.footer a:hover { color: var(--on-dark); }

/* ─── LEGAL PAGES ─── */
.page-header { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-header h1 {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 0.95; letter-spacing: -0.04em;
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--ink);
    overflow-wrap: anywhere; hyphens: auto;
}
.legal-content { padding-bottom: clamp(4rem, 8vw, 7rem); }
.legal-card { max-width: 46rem; }
.legal-card h2 {
    font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2;
    letter-spacing: -0.015em; margin: 2.75rem 0 0.9rem;
    overflow-wrap: anywhere; hyphens: auto; /* long German compounds with a large default font */
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 1.75rem 0 0.6rem; }
.legal-card p, .legal-card li { color: var(--ink-2); margin-bottom: 0.9rem; overflow-wrap: anywhere; }
.legal-card ul, .legal-card ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-card a { color: var(--red-deep); }
.info-box {
    border-left: 2px solid var(--red); padding: 0.35rem 0 0.35rem 1.1rem; margin-bottom: 1rem;
    font-family: var(--mono); font-size: 0.9rem;
}
.info-box p { margin-bottom: 0.15rem; color: var(--ink); }

/* ─── REVEAL (only when JS is running) ─── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .portrait { max-width: 22rem; }
    .xp li { grid-template-columns: 9rem minmax(0, 1fr); }
    .xp li > p { grid-column: 2; }
}
/* burger menu: in em, so it also kicks in earlier when the visitor uses a larger default font.
   The one-line nav needs about 51.3em (≈820px at 16px, ≈1080px at 21px); 53.75em leaves some room. */
@media (max-width: 53.75em) {
    .hamburger { display: inline-flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border-bottom: 1px solid var(--ink); padding: 0.5rem var(--gutter) 1.25rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; white-space: normal; }
    .nav-links a::after { display: none; }
    .nav-links a.nav-cta {
        margin-top: 1rem; text-align: center; border-bottom: none;
        display: flex; align-items: center; justify-content: center; min-height: 44px;
    }
    .nav-links a.nav-cta::before { display: none; }
    /* without JavaScript the burger cannot open: show the links as a wrapping row under the logo instead,
       and let the taller header scroll away with the page */
    html:not(.js) { scroll-padding-top: 0; }
    html:not(.js) .nav { position: relative; }
    html:not(.js) .hamburger { display: none; }
    html:not(.js) .nav-content { height: auto; min-height: 4.25rem; flex-wrap: wrap; row-gap: 0; }
    html:not(.js) .logo-wrap { min-height: 4.25rem; }
    html:not(.js) .nav-links {
        display: flex; position: static; flex-direction: row; flex-wrap: wrap; align-items: center;
        width: 100%; gap: 0 1.5rem; padding: 0 0 0.75rem; border-bottom: 0; background: none;
    }
    html:not(.js) .nav-links a { border-bottom: 0; min-height: 44px; display: inline-flex; align-items: center; padding: 0.5rem 0; }
    html:not(.js) .nav-links a.nav-cta { margin-top: 0; padding: 0.6rem 1rem; }
}
@media (max-width: 760px) {
    body { font-size: 1rem; }
    .section-head { grid-template-columns: minmax(0, 1fr); }
    .section-head p { grid-column: 1; }
    .spec > div, .contact-facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
    .xp li { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
    .xp li > p { grid-column: 1; }
    .xp li:hover { padding-left: 0; padding-right: 0; background: none; }
    .cv-extras { grid-template-columns: minmax(0, 1fr); }
    .btn { padding: 0.95rem 1.1rem; }
    .hero-actions .btn { flex: 1 1 auto; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ═══════════ v2: loop, work, stack, effects ═══════════ */

.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

code {
    font-family: var(--mono); font-size: 0.88em; padding: 0.1em 0.4em;
    border: 1px solid var(--line); border-radius: 2px; background: rgba(244, 240, 232, 0.7);
}

/* ─── HERO: acceptance run ─── */
.run { position: relative; padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(1rem, 3vw, 2.5rem) clamp(0rem, 2vw, 2rem); }
.run-ring {
    position: absolute; right: -14%; top: 50%; width: 82%; aspect-ratio: 1; transform: translateY(-50%);
    border-radius: 50%; border: 1px dashed var(--ink-3); opacity: 0.55;
    animation: spin 70s linear infinite;
}
.run-ring::before, .run-ring::after {
    content: ''; position: absolute; border-radius: 50%;
}
.run-ring::before { inset: 12%; border: 1px solid var(--line); }
.run-ring::after { width: 12px; height: 12px; background: var(--red); top: -6px; left: calc(50% - 6px); }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.run-card {
    position: relative; background: var(--ink); color: var(--on-dark); border-radius: 8px;
    box-shadow: 0 40px 80px -35px rgba(21, 18, 15, 0.65); overflow: hidden;
    transform: rotate(-1.5deg);
}
.run-bar {
    display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem;
    font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--on-dark-2);
    border-bottom: 1px solid var(--line-dark);
}
.run-dots { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 14px 0 0 rgba(244,240,232,.28), 28px 0 0 rgba(244,240,232,.28); margin-right: 28px; }
.run-title { white-space: nowrap; }
.run-tag { margin-left: auto; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.6rem; border: 1px solid var(--line-dark); padding: 0.15rem 0.45rem; border-radius: 2px; }
.run-body {
    font-family: var(--mono); font-size: clamp(0.72rem, 1.05vw, 0.86rem); line-height: 1.5;
    padding: 1.1rem 1.1rem 1.3rem; min-height: 23.5em;
}
.run-line { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 0.9em; padding: 0.28em 0; }
.run-line .k { color: var(--on-dark-2); }
.run-line .ok { color: #7fd6a0; }
.run-line .bad { color: #ff8a80; }
.run-line.verdict { margin-top: 0.7em; padding-top: 0.9em; border-top: 1px solid var(--line-dark); }
.run-line.verdict .v { color: var(--on-dark); font-weight: 500; }
.run-line.verdict .v b { font-weight: 500; padding: 0.1em 0.5em; border-radius: 2px; background: var(--red); color: #fff; margin-right: 0.6em; }
.run-line.verdict .v b.pass { background: #7fd6a0; color: var(--ink); }
.caret { display: inline-block; width: 0.55em; height: 1.05em; background: var(--red); vertical-align: -0.18em; animation: blink 1s steps(2) infinite; }

.facts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--ink);
}
.facts > div { padding: 1.4rem 1.25rem 0 0; }
.facts > div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.facts dt {
    font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4.25rem);
    line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.facts dd { color: var(--ink-2); margin-top: 0.7rem; line-height: 1.4; }

/* ─── THE LOOP ─── */
.loop { background: var(--ink); color: var(--on-dark); position: relative; }
.loop-pin { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: clamp(5.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4rem); overflow: hidden; }
.loop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; width: 100%; }
.loop .section-label { color: var(--on-dark-2); margin-bottom: 1.25rem; }
.loop h2 {
    font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5.4vw, 4.6rem);
    line-height: 0.95; letter-spacing: -0.04em;
}
.loop-intro { color: var(--on-dark-2); max-width: 32rem; margin: 1.25rem 0 clamp(1.5rem, 3vw, 2.25rem); }
.loop-steps { list-style: none; border-top: 1px solid var(--line-dark); }
.loop-steps li {
    display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.5rem;
    padding: 0.85rem 0; border-bottom: 1px solid var(--line-dark);
    opacity: 0.38; transition: opacity 0.45s;
}
.loop-steps li > span { padding-top: 0.42rem; color: var(--on-dark-2); transition: color 0.3s; }
.loop-steps h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.015em; line-height: 1.2; }
.loop-steps li > div { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows 0.55s cubic-bezier(.2,.7,.2,1); }
.loop-steps p { overflow: hidden; color: var(--on-dark-2); font-size: 0.98rem; max-width: 34rem; }
.loop-steps li.is-active { opacity: 1; }
.loop-steps li.is-active > span { color: var(--red); }
.loop-steps li.is-active > div { grid-template-rows: auto 1fr; }
.loop-steps li.is-active p { padding-top: 0.4rem; }

.loop-visual svg { width: 100%; height: auto; display: block; overflow: visible; }
.ring-outer { fill: none; stroke: var(--line-dark); stroke-width: 1; stroke-dasharray: 2 10; }
.ring-base { fill: none; stroke: var(--line-dark); stroke-width: 1.5; }
.ring-progress { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1382.3; stroke-dashoffset: 1105.8; }
.ring-return { fill: none; stroke: var(--on-dark-2); stroke-width: 1; stroke-dasharray: 4 7; opacity: 0.35; transition: opacity 0.4s, stroke 0.4s; }
.ring-return-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; fill: var(--on-dark-2); opacity: 0.35; text-transform: uppercase; transition: opacity 0.4s, fill 0.4s; }
.loop.at-decide .ring-return { opacity: 1; stroke: var(--red); animation: dash 1.2s linear infinite; }
.loop.at-decide .ring-return-label { opacity: 1; fill: var(--on-dark); }
@keyframes dash { to { stroke-dashoffset: -22; } }
.orbit { transform-origin: 300px 300px; animation: orbit 26s linear infinite; }
.orbit circle { fill: var(--on-dark); opacity: 0.6; }
@keyframes orbit { to { transform: rotate(360deg); } }
.node circle { fill: var(--ink); stroke: var(--on-dark-2); stroke-width: 1.5; transition: fill 0.35s, stroke 0.35s, r 0.35s; }
.node text { font-family: var(--mono); font-size: 14px; letter-spacing: 0.16em; fill: var(--on-dark-2); transition: fill 0.35s; }
.node.is-done circle { fill: var(--on-dark); stroke: var(--on-dark); r: 7px; }
.node.is-active circle { fill: var(--red); stroke: var(--red); r: 15px; }
.node.is-active text, .node.is-done text { fill: var(--on-dark); }
.ring-num { font-family: var(--display); font-weight: 700; font-size: 120px; letter-spacing: -0.05em; fill: var(--on-dark); }
.ring-name { font-family: var(--mono); font-size: 15px; letter-spacing: 0.3em; fill: var(--red); }

/* ─── WORK ─── */
.project {
    display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(1.5rem, 5vw, 5rem); align-items: center;
    padding: clamp(2rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line);
}
.project:first-of-type { padding-top: 0; }
.project:nth-of-type(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.project:nth-of-type(even) .project-info { order: 2; }
.project-kicker { display: flex; gap: 1rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.project-kicker b { color: var(--red); font-weight: 500; }
.project h3 {
    font-family: var(--display); font-weight: 700;
    /* minimum capped at 10vw, so a large default font cannot push long names out of a 320px column */
    font-size: clamp(min(2rem, 10vw), 4.4vw, 3.6rem); line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 1.25rem;
    hyphens: none; /* two-column layout: keep the titles on one line as before */
}
/* one column: long titles (Traum&shy;geschichten) may break, so a large default font cannot push them out */
@media (max-width: 960px) { .project h3 { overflow-wrap: anywhere; hyphens: manual; } }
.project-info .btn { max-width: 100%; overflow-wrap: anywhere; }
.project p { color: var(--ink-2); max-width: 32rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.5rem 0 2rem; }
.tag, .service li {
    font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em;
    padding: 0.3rem 0.55rem; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-2);
    background: rgba(244, 240, 232, 0.7);
}
.project-shot {
    display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--ink); background: var(--ink);
    text-decoration: none; box-shadow: 0 40px 70px -40px rgba(21, 18, 15, 0.6);
    transition: transform 0.6s cubic-bezier(.2,.7,.2,1), box-shadow 0.6s;
    will-change: transform;
}
.project-shot:hover { transform: translateY(-6px); box-shadow: 0 50px 80px -40px rgba(21, 18, 15, 0.7); }
.shot-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.45rem; padding: 0.55rem 0.8rem;
    font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--on-dark-2); text-decoration: none;
}
.shot-bar::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red);
    box-shadow: 12px 0 0 rgba(244,240,232,.3), 24px 0 0 rgba(244,240,232,.3); margin-right: 26px;
}
/* touch screens: the bar is a link, give it a 44px tap height (mouse layout unchanged) */
@media (pointer: coarse) { .shot-bar { min-height: 44px; } }
.shot-url { min-width: 0; overflow-wrap: anywhere; }
.shot-bar:hover .shot-url { color: var(--on-dark); }
.shot-note { margin-left: auto; opacity: 0.6; text-align: right; }
.shot-clip { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.shot-clip video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.clip-toggle {
    position: absolute; right: 0.75rem; bottom: 0.75rem; width: 44px; height: 44px;
    display: grid; place-items: center; padding: 0; cursor: pointer;
    color: var(--on-dark); background: rgba(21, 18, 15, 0.72); border: 1px solid var(--line-dark); border-radius: 50%;
    transition: background 0.2s;
}
.clip-toggle:hover { background: var(--red); border-color: var(--red); }
.clip-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.clip-toggle .i-play, .clip-toggle.is-playing .i-pause { display: block; }
.clip-toggle .i-pause, .clip-toggle.is-playing .i-play { display: none; }

/* ─── Story audio (P-02): the sound of the story shown in the clip above; markup keeps a fixed height ─── */
.story-audio { padding: 0.8rem 0.8rem 0.9rem; border-top: 1px solid var(--line-dark); color: var(--on-dark); }
/* .story-audio p beats `.project p` (ink-2 on paper, 32rem) */
.story-audio p { color: var(--on-dark); max-width: none; }
.story-audio .story-audio-lead { color: var(--on-dark-2); margin-bottom: 0.55rem; letter-spacing: 0.12em; }
.story-audio-ui {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center;
    gap: 0.25rem 0.8rem;
}
.story-audio-play {
    width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
    color: var(--ink); background: var(--on-dark); border: 1px solid var(--on-dark); border-radius: 50%;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.story-audio-play:hover { background: var(--red); border-color: var(--red); color: #fff; }
.story-audio-play svg { width: 14px; height: 14px; fill: currentColor; }
.story-audio-play .i-play, .story-audio-play.is-playing .i-pause { display: block; }
.story-audio-play .i-pause, .story-audio-play.is-playing .i-play { display: none; }
.story-audio-head { min-width: 0; }
.story-audio-title {
    display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.2;
    letter-spacing: -0.01em; overflow-wrap: anywhere;
}
.story-audio-meta {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; margin-top: 0.2rem;
    color: var(--on-dark-2); letter-spacing: 0.08em;
}
.story-audio-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 44px hit area; the visible track is a 3px line, the part already heard is red */
.story-audio-seek {
    --p: 0%;
    grid-column: 1 / -1; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer;
    -webkit-appearance: none; appearance: none;
}
.story-audio-seek::-webkit-slider-runnable-track {
    height: 3px; border-radius: 2px;
    background: linear-gradient(to right, var(--red) var(--p), var(--line-dark) var(--p));
}
.story-audio-seek::-moz-range-track { height: 3px; border-radius: 2px; background: var(--line-dark); }
.story-audio-seek::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--red); }
.story-audio-seek::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -5.5px;
    border-radius: 50%; background: var(--on-dark); border: 0;
}
.story-audio-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--on-dark); border: 0; }
.story-audio-seek:focus-visible { outline-offset: 0; }
.story-audio-native { display: block; width: 100%; margin-top: 0.6rem; }
.story-audio-msg:not(:empty) {
    margin-top: 0.6rem; padding: 0.5rem 0.75rem; border-left: 2px solid var(--red);
    background: rgba(244, 240, 232, 0.06); font-size: 0.9rem; line-height: 1.45;
}
/* with JavaScript the own bar replaces the native controls; without it only the native player and the title show */
.js .story-audio-native { display: none; }
html:not(.js) .story-audio-play, html:not(.js) .story-audio-seek, html:not(.js) .story-audio-time { display: none; }
html:not(.js) .story-audio-head { grid-column: 1 / -1; }

.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.card {
    --mx: 50%; --my: 0%;
    position: relative; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line);
    border-radius: 4px; background: var(--paper); overflow: hidden;
    transition: border-color 0.3s, transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s;
    background: radial-gradient(22rem circle at var(--mx) var(--my), rgba(220, 38, 38, 0.13), transparent 60%);
}
.card:hover { border-color: var(--ink); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card-top { display: flex; justify-content: space-between; color: var(--ink-2); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.card-top b { color: var(--red); font-weight: 500; }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.8rem; }
.card p { color: var(--ink-2); font-size: 0.98rem; }
.card .tags { margin: 1.25rem 0 0; }
.card-link { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem; text-decoration: none; color: var(--ink); align-self: flex-start; border-bottom: 1px solid var(--ink); padding-bottom: 0.2rem; }
.card-link svg { width: 0.9em; height: 0.9em; }
.card-link:hover { color: var(--red); border-color: var(--red); }

.tooling {
    display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem 2rem; margin-top: 1rem;
    padding: 1.5rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
}
.tooling > span { color: var(--red); padding-top: 0.2rem; }
.tooling ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; }
.tooling li { color: var(--ink-2); font-size: 0.95rem; }
.tooling li b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.01em; }

/* ─── STACK ─── */
.stack { background: var(--paper-2); background-image: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service { padding: 0.25rem clamp(1rem, 2vw, 2rem) 0.5rem; border-left: 1px solid var(--line); }
.service:first-child { padding-left: 0; border-left: none; }
.service .num { color: var(--red); display: block; margin-bottom: clamp(1.75rem, 4vw, 3.5rem); }
.service h3 { font-family: var(--display); font-size: clamp(1.4rem, 2.1vw, 1.8rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.service p { color: var(--ink-2); font-size: 0.98rem; }
.service ul { list-style: none; margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ─── RESPONSIVE v2 ─── */
@media (max-width: 1100px) {
    .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
    .service:nth-child(odd) { padding-left: 0; border-left: none; }
}
@media (max-width: 960px) {
    .run { max-width: 34rem; padding-left: 0; }
    .loop-pin { min-height: 0; }
    .loop-grid { grid-template-columns: minmax(0, 1fr); }
    .loop-visual { order: -1; max-width: 22rem; margin: 0 auto; width: 100%; }
    .loop-steps li { opacity: 1; }
    .loop-steps li > div { grid-template-rows: auto 1fr; }
    .loop-steps li p { padding-top: 0.4rem; }
    .loop-steps li > span { color: var(--red); }
    .project, .project:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
    .project:nth-of-type(even) .project-info { order: 0; }
    .more { grid-template-columns: minmax(0, 1fr); }
    .tooling { grid-template-columns: minmax(0, 1fr); }
    .tooling ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts > div:nth-child(3) { padding-left: 0; border-left: none; }
    .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 1.4rem; }
    .stack-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .service, .service:first-child { border-left: none; border-top: 1px solid var(--line); padding: 1.75rem 0; }
    .service:first-child { border-top: none; padding-top: 0; }
    .service .num { margin-bottom: 1rem; }
    .run-card { transform: none; }
    .run-ring { display: none; }
    .run-line { grid-template-columns: 5.2em minmax(0, 1fr); gap: 0.6em; }
    .run-bar { flex-wrap: wrap; row-gap: 0.55rem; }
    .run-title { letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .loop-pin { min-height: 0; }
    .loop-steps li { opacity: 1; }
    .loop-steps li > div { grid-template-rows: auto 1fr; }
    .loop-steps li p { padding-top: 0.4rem; }
}
/* short desktop screens: keep the pinned loop inside the viewport */
@media (min-width: 961px) and (max-height: 840px) {
    .loop-pin { padding: 5.25rem 0 1.25rem; }
    .loop h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
    .loop h2 br { display: none; }
    .loop .section-label { margin-bottom: 0.75rem; }
    .loop-intro { margin: 0.75rem 0 1.1rem; font-size: 0.95rem; }
    .loop-steps li { padding: 0.55rem 0; }
    .loop-steps h3 { font-size: 1.2rem; }
    .loop-steps p { font-size: 0.92rem; line-height: 1.5; }
    .loop-visual { max-width: 30rem; margin-left: auto; }
}
html:not(.js) .run { display: none; }

/* ─── PROFILE: both worlds ─── */
.profile { padding-bottom: clamp(4rem, 8vw, 7rem); }
.hero + .profile { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); }
.worlds { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.8fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.world-num { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1rem; }
.world-num .count { font-family: var(--display); font-weight: 700; font-size: clamp(4.5rem, 9vw, 8rem); line-height: 0.8; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.world-num small { color: var(--red); }
.world h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.world ul { list-style: none; border-top: 1px solid var(--ink); }
.world li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.98rem; }
.world:last-of-type { text-align: right; }
.world:last-of-type .world-num { justify-content: flex-end; }
.venn { text-align: center; }
.venn svg { width: 100%; height: auto; display: block; overflow: visible; }
.venn-a, .venn-b { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.venn-x { fill: var(--red); }
.venn text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; fill: var(--ink-2); }
.venn p { color: var(--ink); margin-top: 0.75rem; line-height: 1.6; }
.worlds-line {
    margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(1.5rem, 3vw, 2.25rem); border-top: 1px solid var(--ink);
    font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.8vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 46rem;
}
@media (max-width: 960px) {
    .worlds { grid-template-columns: minmax(0, 1fr); }
    .venn { order: -1; max-width: 20rem; margin: 0 auto; width: 100%; }
    .world:last-of-type { text-align: left; }
    .world:last-of-type .world-num { justify-content: flex-start; }
}

/* ─── NAV on black: the logo is designed for a black ground ─── */
.nav { background: #0b0b0b; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: rgba(244, 240, 232, 0.12); }
.nav-links a { color: var(--on-dark-2); }
.nav-links a:hover { color: var(--on-dark); }
.nav-links a::after { background: var(--on-dark); }
.nav-links a.nav-cta { background: var(--on-dark); color: var(--ink); }
.nav-links a.nav-cta:hover { background: var(--red); color: #fff; }
.hamburger { border-color: var(--line-dark); }
.hamburger span { background: var(--on-dark); }
@media (max-width: 53.75em) {
    .nav-links { background: #0b0b0b; border-bottom-color: var(--line-dark); }
    .nav-links a { border-bottom-color: var(--line-dark); color: var(--on-dark); }
}

.nowrap { white-space: nowrap; }

/* TagFlow is a project block (P-04); the tooling list spans the full row below */
.more { grid-template-columns: minmax(0, 1fr); }
.more .tooling { margin-top: 0; }
