/* krenn.xyz – Direction "Type and nothing else" (tasteskill, seed 258942695)
   Eine Schrift (General Sans), ein Grund, eine Tinte, ein Akzent (Smaragd aus der bisherigen Marke). */

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/general-sans-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/general-sans-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans';
    src: url('../fonts/general-sans-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    --bg: #111111;
    --surface: #1c1c1c;
    --surface-2: #262626;
    --ink: #f2f2f2;
    --muted: #a3a3a3;
    --accent: #10b981;
    --accent-strong: #34d399;
    --accent-ink: #111111;

    /* Umgekehrtes Kapitel (Kontakt) */
    --inv-bg: #f2f2f2;
    --inv-field: #e2e2e2;
    --inv-ink: #111111;
    --inv-muted: #4d4d4d;
    --inv-accent: #047857;

    --font: 'General Sans', system-ui, sans-serif;

    --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
    --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    --step-lead: clamp(1.375rem, 1rem + 1vw, 2.125rem);
    --step-head: clamp(2.5rem, 1.2rem + 4vw, 5rem);
    --step-display: clamp(22.5rem, 46vw, 47.5rem);

    --margin: clamp(1.25rem, 2vw, 1.75rem);
    --gutter: clamp(1rem, 2vw, 2rem);
    --section: clamp(7.5rem, 12vw, 13rem);
    --col: calc((100vw - 2 * var(--margin) - 11 * var(--gutter)) / 12);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
    --t-press: 140ms;
    --t-hover: 180ms;
    --t-ui: 240ms;
    --t-reveal: 800ms;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--step-body);
    line-height: 1.5;
    font-kerning: normal;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, p, figure, ul, ol, dl, dd {
    margin: 0;
}

ul, ol {
    padding: 0;
    list-style: none;
}

h1, h2, h3 {
    font-weight: 700;
    text-wrap: balance;
}

img, video {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

a {
    color: inherit;
}

p {
    max-width: 62ch;
    text-wrap: pretty;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

:target {
    scroll-margin-top: 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.nums {
    font-variant-numeric: tabular-nums;
}

/* ---------- Bausteine ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.5rem;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}

.button:active {
    transform: scale(0.97);
}

.button:disabled {
    background: var(--surface-2);
    color: var(--muted);
    cursor: not-allowed;
}

.link {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.07em;
    transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
    .button:not(:disabled):hover {
        background: var(--accent-strong);
    }

    .link:hover {
        text-decoration-color: currentColor;
    }
}

.shutter {
    position: relative;
}

.caption {
    margin-top: 0.6rem;
    font-size: var(--step-small);
    color: var(--muted);
    max-width: 44ch;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    --word: var(--step-display);
    height: 100svh;
    /* mindestens Platz für Satz, Ping und das ganze Wort, sonst überdeckt es den Button */
    min-height: max(40rem, calc(var(--word) * 0.74 + 17rem));
    overflow: clip;
    padding: var(--margin);
    view-timeline-name: --hero;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--gutter);
    position: relative;
    z-index: 2;
}

.wordmark {
    font-weight: 500;
    text-decoration: none;
}

.nav ul {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
}

.menu {
    display: none;
}

.hero__top {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    margin-top: 6rem;
    position: relative;
    z-index: 2;
}

.hero__intro {
    grid-column: 1 / span 6;
}

.hero__sentence {
    font-size: var(--step-lead);
    line-height: 1.25;
    max-width: 30ch;
    font-weight: 500;
}

.hero__intro .button {
    margin-top: 2rem;
}

.ping {
    grid-column: 9 / span 4;
    justify-self: end;
    text-align: right;
}

.ping__label {
    margin-top: 0.5rem;
    margin-left: auto;
    max-width: 24ch;
}

.ping__value {
    display: block;
    font-size: var(--step-head);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.ping__again {
    margin-top: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    min-height: 2.75rem;
}

.ping__again[hidden] {
    display: none;
}

.hero__word {
    position: absolute;
    left: -8vw;
    bottom: -0.06em;
    margin: 0;
    font-size: var(--step-display);
    line-height: 0.8;
    letter-spacing: -0.04em;
    white-space: nowrap;
    color: var(--accent);
    transform-origin: 30% 100%;
}

/* ---------- Intro: Treppen-Statement ---------- */
.intro {
    --ground: var(--surface);
    background: var(--surface);
    padding: var(--section) var(--margin);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: center;
    position: relative;
}

.intro__text {
    grid-column: 1 / span 9;
    padding-left: 2vw;
}

.stair {
    font-size: var(--step-lead);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
    max-width: none;
}

.stair > span {
    display: block;
}

.stair > span:nth-child(2) { padding-left: 6vw; color: var(--muted); }
.stair > span:nth-child(3) { padding-left: 12vw; }
.stair > span:nth-child(4) { padding-left: 18vw; color: var(--muted); }
.stair > span:nth-child(5) { padding-left: 24vw; }

.intro__note {
    margin-top: 3rem;
    max-width: 40ch;
}

.intro__photos {
    grid-column: 10 / span 3;
    display: grid;
    gap: 1rem;
    align-self: start;
}

.intro__photos img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* ---------- Stationen ---------- */
.work {
    padding: var(--section) var(--margin);
}

.section-title {
    font-size: var(--step-lead);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
}

.work__body {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: start;
}

.work__list {
    grid-column: 1 / span 8;
}

.work__item + .work__item {
    margin-top: 1.5rem;
}

.work__name {
    display: block;
    width: 100%;
    text-align: left;
    font-size: var(--step-head);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    padding-block: 0.6rem;
    color: var(--muted);
    transition: color var(--t-hover) ease;
}

.work__item.is-active .work__name {
    color: var(--ink);
}

.work__meta {
    display: block;
    color: var(--ink);
    font-weight: 500;
}

.work__detail ul {
    margin-top: 1rem;
    display: grid;
    gap: 0.4rem;
    max-width: 52ch;
}

.work__detail li::before {
    content: '– ';
    color: var(--accent);
}

.work__thumb {
    display: none;
}

.work__frame {
    grid-column: 9 / span 4;
    position: sticky;
    top: 12vh;
    aspect-ratio: 4 / 5;
    overflow: clip;
    background: var(--surface);
}

.work__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 200ms ease;
}

.work__frame img.is-active {
    opacity: 1;
}

.work__frame figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    background: rgba(17, 17, 17, 0.82);
    font-size: var(--step-small);
}

/* Ohne JavaScript: alle Stationen offen */
html:not(.js) .work__detail {
    display: block;
}

.js .work__item:not(.is-active) .work__detail {
    display: none;
}

/* ---------- Diplomarbeit ---------- */
.thesis {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: center;
    padding: var(--section) var(--margin);
    overflow: clip;
}

.thesis__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.thesis__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}

.thesis__card {
    grid-column: 2 / span 4;
    min-width: 0;
    position: relative;
    z-index: 1;
    background: var(--ink);
    color: var(--bg);
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    display: grid;
    gap: 1rem;
}

.thesis__card h2 {
    font-size: var(--step-head);
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.thesis__variant {
    font-weight: 500;
}

.thesis__card .button {
    margin-top: 0.5rem;
    width: 100%;
    white-space: normal;
    height: auto;
    min-height: 3rem;
    padding-block: 0.75rem;
    text-align: center;
    background: var(--bg);
    color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
    .thesis__card .button:hover {
        background: var(--accent-ink);
        color: var(--accent-strong);
    }
}

.thesis__credit {
    position: absolute;
    right: var(--margin);
    bottom: 1rem;
    z-index: 1;
    font-size: var(--step-small);
    background: rgba(17, 17, 17, 0.82);
    padding: 0.25rem 0.5rem;
}

/* ---------- Werkzeuge ---------- */
.tools {
    view-timeline-name: --tools;
    padding: var(--section) var(--margin);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: start;
}

.tools__list {
    grid-column: 3 / span 4;
}

.tools__cli {
    grid-column: 7 / span 6;
    position: sticky;
    top: 12vh;
}

.cli {
    margin: 0;
    padding: 1.5rem;
    background: var(--surface);
    color: var(--ink);
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: clamp(0.6875rem, 0.95vw, 0.875rem);
    line-height: 1.65;
    overflow-x: auto;
    border-top: 3px solid #cf0a2c;
}

.cli b {
    font-weight: 400;
}

.cli__p {
    color: #ef4f67;
}

.cli__ok {
    color: var(--accent);
}

.tools__group + .tools__group {
    margin-top: 2.5rem;
}

.tools__group h3 {
    font-size: var(--step-body);
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.tools__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    min-height: 2.4rem;
    padding-block: 0.3rem;
}

.tools__row span:first-child {
    font-weight: 500;
}

.tools__row span:last-child {
    color: var(--muted);
    font-size: var(--step-small);
    text-align: right;
}

/* ---------- Kontakt (umgekehrt) ---------- */
.contact {
    background: var(--inv-bg);
    color: var(--inv-ink);
    min-height: 100svh;
    padding: var(--section) var(--margin) var(--margin);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr auto auto;
    column-gap: var(--gutter);
}

.contact ::selection {
    background: var(--inv-ink);
    color: var(--inv-bg);
}

.contact :focus-visible {
    outline-color: var(--inv-accent);
}

.contact__title {
    grid-column: 1 / span 6;
    font-size: var(--step-head);
    line-height: 1;
    letter-spacing: -0.03em;
}

.contact__lead {
    grid-column: 1 / span 6;
    margin-top: 1rem;
}

.contact__form {
    grid-column: 1 / span 6;
    display: grid;
    gap: 0.75rem;
    margin-top: 3rem;
    align-self: start;
}

.contact__photo {
    --ground: var(--inv-bg);
    grid-column: 8 / span 5;
    grid-row: 1 / span 3;
    align-self: start;
}

.contact__photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.contact__photo .caption {
    color: var(--inv-muted);
}

.field {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.8rem 1rem;
    background: var(--inv-field);
    border: 0;
    border-radius: 0;
    font-size: max(1rem, var(--step-body));
    color: var(--inv-ink);
}

.field::placeholder {
    color: var(--inv-muted);
}

.field:focus-visible {
    outline: 2px solid var(--inv-accent);
    outline-offset: 0;
}

textarea.field {
    min-height: 9rem;
    resize: vertical;
}

.contact__label {
    font-weight: 500;
    font-size: var(--step-small);
}

.contact__form .button {
    background: var(--inv-ink);
    color: var(--inv-bg);
    justify-self: start;
}

.contact__form .button:disabled {
    background: var(--inv-field);
    color: var(--inv-muted);
}

@media (hover: hover) and (pointer: fine) {
    .contact__form .button:not(:disabled):hover {
        background: var(--inv-accent);
    }
}

.form-feedback {
    font-weight: 500;
    min-height: 1.5em;
}

.form-feedback.is-error {
    color: #b91c1c;
}

.form-feedback.is-ok {
    color: var(--inv-accent);
}

.contact__mail {
    grid-column: 1 / -1;
    align-self: end;
    margin-top: 4rem;
    font-size: clamp(2.5rem, 9.6vw, 10rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--t-hover) ease;
}

@media (hover: hover) and (pointer: fine) {
    .contact__mail:hover {
        color: var(--inv-accent);
    }
}

.contact__corners {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    color: var(--inv-muted);
}

.contact__corners a {
    color: var(--inv-ink);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--surface);
    padding: var(--section) var(--margin) 0;
    overflow: clip;
}

.footer__row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: start;
}

.footer__places {
    grid-column: 1 / span 5;
    display: grid;
    gap: 0.4rem;
    font-size: var(--step-lead);
    font-weight: 500;
    line-height: 1.2;
}

.footer__places a {
    color: var(--accent);
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .footer__places a:hover {
        color: var(--accent-strong);
    }
}

.footer__cols {
    grid-column: 7 / span 6;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gutter);
}

.footer__cols h2 {
    font-size: var(--step-small);
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.footer__cols li + li {
    margin-top: 0.3rem;
}

.footer__cols a,
.footer__cols button {
    min-height: 2rem;
    display: inline-block;
}

.credits {
    margin-top: 4rem;
    font-size: var(--step-small);
    color: var(--muted);
}

.credits summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 500;
    width: max-content;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
}

.credits ul {
    margin-top: 0.5rem;
    display: grid;
    gap: 0.35rem;
    max-width: 90ch;
}

.footer__legal {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    font-size: var(--step-small);
    color: var(--muted);
}

.footer__name {
    margin: 4rem 0 -0.18em;
    font-size: clamp(4rem, 16.4vw, 18rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.045em;
    white-space: nowrap;
    color: var(--ink);
}

/* ---------- Impressum-Dialog ---------- */
.dialog {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--margin);
    background: rgba(0, 0, 0, 0.8);
}

.dialog.hidden {
    display: none;
}

.dialog__panel {
    position: relative;
    width: 100%;
    max-width: 28rem;
    background: var(--surface);
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); /* taste-skill-ignore: Dialog schwebt wirklich */
}

.dialog__panel h2 {
    font-size: var(--step-lead);
    margin-bottom: 1.25rem;
}

.dialog__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.75rem;
    line-height: 1;
}

/* ---------- Fehlerseiten (403, 404, 50x) ---------- */
.error__en {
    margin-top: 1rem;
    color: var(--muted);
    max-width: 40ch;
}

.error__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2rem;
}

.error__actions .button {
    margin-top: 0;
}

.terminal {
    grid-column: 8 / span 5;
    justify-self: end;
    margin: 0;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    color: var(--ink);
    font-size: var(--step-small);
    line-height: 1.7;
    overflow-x: auto;
    max-width: 100%;
}

.terminal .ok {
    color: var(--accent);
}

.terminal .err {
    color: #f87171;
}

/* Breit, aber niedrig: das Wort bekommt seinen eigenen Platz unter Satz und Ping */
@media (min-width: 75em) and (max-height: 56rem) {
    .hero {
        min-height: calc(var(--word) * 0.8 + 24rem);
    }
}

/* ---------- Tablet ---------- */
@media (min-width: 48em) and (max-width: 74.99em) {
    .work__list {
        grid-column: 1 / span 7;
    }

    .work__frame {
        grid-column: 8 / span 5;
    }

    .thesis__card {
        grid-column: 2 / span 7;
    }

    .tools__list {
        grid-column: 1 / span 6;
    }

    .intro__text {
        grid-column: 1 / span 8;
    }

    .intro__photos {
        grid-column: 9 / span 4;
    }

    .stair > span:nth-child(2) { padding-left: 4vw; }
    .stair > span:nth-child(3) { padding-left: 8vw; }
    .stair > span:nth-child(4) { padding-left: 12vw; }
    .stair > span:nth-child(5) { padding-left: 16vw; }

    /* Hochformat-Tablet: das Wort füllt die untere Hälfte statt eines Lochs */
    .hero {
        --word: max(var(--step-display), 60vw);
        min-height: max(40rem, calc(var(--word) * 0.8 + 28rem));
    }

    .hero__word {
        font-size: var(--word);
    }
}

/* ---------- Telefon ---------- */
@media (max-width: 47.99em) {
    .tools__cli {
        position: static;
        margin-top: 3rem;
    }

    .hero {
        min-height: 36rem;
    }

    .nav {
        display: none;
    }

    .menu {
        display: block;
        position: relative;
    }

    .menu > summary {
        list-style: none;
        cursor: pointer;
        font-weight: 500;
        min-height: 2.75rem;
        display: flex;
        align-items: center;
    }

    .menu > summary::-webkit-details-marker {
        display: none;
    }

    .menu__list {
        position: absolute;
        right: 0;
        top: 2.75rem;
        min-width: 12rem;
        background: var(--surface-2);
        padding: 0.75rem 1.25rem;
    }

    .menu__list a {
        display: flex;
        align-items: center;
        min-height: 2.75rem;
    }

    .hero__top {
        display: block;
        margin-top: 3rem;
        max-width: 55%;
    }

    .hero__sentence {
        font-size: 1.0625rem;
    }

    .hero__intro .button {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }

    .ping {
        margin-top: 2.5rem;
        text-align: left;
    }

    .ping__label {
        margin-left: 0;
    }

    .ping__value {
        font-size: var(--step-lead);
    }

    .terminal {
        margin-top: 2rem;
        padding: 1rem;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }

    .hero__word {
        writing-mode: vertical-rl;
        font-size: 62vw;
        left: auto;
        right: -0.2em;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
        line-height: 0.82;
    }

    .intro,
    .work__body,
    .thesis,
    .tools,
    .contact,
    .footer__row {
        display: block;
    }

    .intro__text {
        padding-left: 0;
    }

    /* Telefon: fünf Größen – klein, Text, Lead, Überschrift (10vw), Anzeige */
    .stair {
        font-size: var(--step-lead);
    }

    .stair > span:nth-child(2) { padding-left: 3vw; }
    .stair > span:nth-child(3) { padding-left: 6vw; }
    .stair > span:nth-child(4) { padding-left: 9vw; }
    .stair > span:nth-child(5) { padding-left: 12vw; }

    .intro__photos {
        grid-template-columns: 1fr 1fr;
        margin-top: 2.5rem;
    }

    .work__frame {
        display: none;
    }

    .work__thumb {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        margin-bottom: 1rem;
    }

    .work__name {
        font-size: 10vw;
        color: var(--ink);
    }

    .thesis__card h2 {
        font-size: 10vw;
    }

    .work__item + .work__item {
        margin-top: 2.5rem;
    }

    .js .work__item:not(.is-active) .work__detail {
        display: block;
    }

    .thesis {
        min-height: 100svh;
        padding: 0;
        display: flex;
        align-items: flex-end;
    }

    .thesis__card {
        width: 100%;
        min-height: 46svh;
    }

    .thesis__credit {
        top: 1rem;
        bottom: auto;
    }

    .contact__title {
        font-size: 10vw;
    }

    .contact__form {
        margin-top: 2.5rem;
    }

    .contact__photo {
        margin-top: 4rem;
    }

    .contact__mail {
        display: block;
        white-space: normal;
        font-size: 10vw;
        margin-top: 4rem;
    }

    .contact__corners {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer__cols {
        grid-template-columns: 1fr 1fr;
        margin-top: 3rem;
    }

    .footer__name {
        font-size: 15.5vw;
    }

    .hero__sentence {
        font-size: var(--step-body);
    }

    .footer__places {
        font-size: var(--step-lead);
    }
}

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js [data-rise] {
        opacity: 0;
        transform: translateY(18px);
        animation: rise var(--t-reveal) var(--ease-out) forwards;
        animation-delay: calc(var(--i, 0) * 90ms + 150ms);
    }

    .js .hero__word [data-line] {
        display: inline-block;
        animation: word-in 1100ms var(--ease-expo) 100ms both;
    }

    .js [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo);
        transition-delay: calc(var(--i, 0) * 80ms);
    }

    .js [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }

    /* Verschluss: eine Fläche im Grundton fährt weg (kein clip-path am Bild, sonst lädt lazy nicht) */
    .js .shutter[data-reveal] {
        opacity: 1;
        transform: none;
    }

    .js .shutter[data-reveal]::after {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--ground, var(--bg));
        transform-origin: 50% 100%;
        transition: transform 900ms var(--ease-in-out);
        transition-delay: calc(var(--i, 0) * 80ms);
    }

    .js .shutter[data-reveal].is-in::after {
        transform: scaleY(0);
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        /* Signatur: das große Wort wird beim Verlassen des ersten Bildschirms schwerer */
        .hero__word {
            animation: word-weight linear both;
            animation-timeline: --hero;
            animation-range: exit 0% exit 100%;
        }

        .thesis__photo img {
            animation: drift linear both;
            animation-timeline: view();
            animation-range: entry 0% exit 100%;
        }

    }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 47.99em) {
    .hero__word {
        animation: none !important;
    }
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes word-in {
    from {
        transform: translateY(18%);
    }
    to {
        transform: none;
    }
}

@keyframes word-weight {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(0.94);
    }
}

@keyframes drift-slow {
    from {
        transform: scale(1.1) translateY(-4%);
    }
    to {
        transform: scale(1.1) translateY(4%);
    }
}

@keyframes drift {
    from {
        transform: scale(1.08) translateY(-3%);
    }
    to {
        transform: scale(1.08) translateY(3%);
    }
}
