/* ==========================================================================
   EVA HOFKO — "Der weiße Raum"
   Studio für Kommunikations- und Ausstellungsdesign
   --------------------------------------------------------------------------
   White room · anthracite ink · one electric-blue signal · sharp corners.
   Fixed tokens (client): #FFFFFF / #17171A / #0504FF / Syne / Mulish.
   NO border-radius. NO shadows. NO gradients.
   ========================================================================== */

:root {
    --bg: #ffffff;
    --paper: #f4f4f2;
    --ink: #17171a;
    --ink-60: #6b6b70;
    --line: #e4e4e6;
    --blue: #0504ff;
    --dark-line: rgba(255, 255, 255, 0.16);
    --dark-muted: rgba(255, 255, 255, 0.62);

    --font-display: 'Syne', system-ui, sans-serif;
    --font-body: 'Mulish', system-ui, sans-serif;

    /* Hero is sized so the longest line ("Kommunikations-" = 16.2em in Syne 800
       uppercase) exactly fills the container at every viewport — never clips. */
    --fs-hero: min(calc((100vw - 2 * var(--gutter)) / 16.5), 5rem);
    --fs-h1: clamp(2.4rem, 6vw, 5rem);
    --fs-h2: clamp(1.7rem, 3.6vw, 3.2rem);
    --fs-body: clamp(1rem, 1.1vw, 1.125rem);
    --fs-meta: 0.8125rem;

    --container: 1440px;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --section-pad: clamp(5rem, 12vh, 11rem);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0 !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
hr { border: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* ---------- Grain — gallery-wall texture over the white rooms ---------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Primitives ---------- */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.meta-label {
    font-family: var(--font-body);
    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.meta-label--muted { color: var(--ink-60); }
.x { font-style: normal; font-weight: 700; display: inline-block; line-height: 1; }
.x--blue { color: var(--blue); }
.rule {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--line);
    transform-origin: left center;
}
.rule--dark { background: var(--dark-line); }
html.js .rule { transform: scaleX(0); transition: transform 1.1s var(--ease); }
html.js .rule.is-inview { transform: scaleX(1); }

.link-x {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-body);
    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s var(--ease);
}
.link-x .x { color: var(--blue); transition: transform 0.3s var(--ease); }
.link-x:hover { color: var(--blue); }
.link-x:hover .x { transform: rotate(90deg); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1.6rem;
    border: 1px solid var(--ink);
    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-height: 44px;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-outline .x { transition: transform 0.3s var(--ease); }
.btn-outline:hover { color: var(--blue); border-color: var(--blue); }
.btn-outline:hover .x { transform: rotate(90deg); }
.btn-outline[aria-expanded="true"] .x { transform: rotate(45deg); }

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--gutter);
    z-index: 1000;
    background: var(--ink);
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: var(--fs-meta);
    font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ---------- Reveal (scroll-triggered, JS-gated — no-JS sees everything) -- */
html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.js .reveal.is-inview { opacity: 1; transform: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}
.header--scrolled { border-bottom-color: var(--line); }
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.header__brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
}
.header__brand .x { font-size: 0.9rem; transition: transform 0.3s var(--ease); }
.header__brand:hover .x { transform: rotate(90deg); }
.header__wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.header__nav { display: flex; gap: clamp(1.5rem, 3vw, 3rem); }
.header__nav-link {
    position: relative;
    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0;
    transition: color 0.25s var(--ease);
}
.header__nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--ease);
}
.header__nav-link:hover { color: var(--blue); }
.header__nav-link:hover::after { transform: scaleX(1); }

.header__menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}
.header__menu-icon { display: block; width: 26px; }
.header__menu-icon span {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 6px 0;
    transition: transform 0.35s var(--ease);
}
.header__menu-toggle[aria-expanded="true"] .header__menu-icon span:first-child { transform: translateY(4px) rotate(45deg); }
.header__menu-toggle[aria-expanded="true"] .header__menu-icon span:last-child { transform: translateY(-4px) rotate(-45deg); }

.header__mobile {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--ink);
    color: #fff;
    padding: clamp(2rem, 6vh, 4rem) var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}
/* display:flex above would otherwise override the [hidden] UA style */
.header__mobile[hidden] { display: none; }
.header__mobile-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.header__mobile-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 8vw, 3.2rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
    padding: 0.55rem 0;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.25s var(--ease);
}
.header__mobile-link:hover { color: var(--blue); }
.header__mobile-num {
    font-family: var(--font-body);
    font-size: var(--fs-meta);
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.08em;
}
.header__mobile-mail { margin-top: 2.5rem; }
.header__mobile-mail a {
    font-size: 1rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--blue);
}

/* ==========================================================================
   HERO — the building
   ========================================================================== */
.hero { padding-top: clamp(8rem, 22vh, 14rem); }
.hero__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--ink-60);
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
}
.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--fs-hero);
    line-height: 0.94;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-left: -0.05em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__line-inner { display: inline-block; }
html.js .hero__line-inner {
    transform: translateY(112%);
    transition: transform 1s var(--ease);
}
html.js .hero__line:nth-child(2) .hero__line-inner { transition-delay: 0.09s; }
html.js .hero__line:nth-child(3) .hero__line-inner { transition-delay: 0.18s; }
html.js body.is-loaded .hero__line-inner,
body.is-loaded .hero__line-inner { transform: none; }
.hero__x {
    font-size: 0.55em;
    vertical-align: 0.28em;
    margin-left: 0.18em;
}
html.js .hero__x { opacity: 0; transform: scale(0.4) rotate(-90deg); transition: opacity 0.5s var(--ease) 0.55s, transform 0.6s var(--ease) 0.55s; }
body.is-loaded .hero__x { opacity: 1; transform: none; }

.hero__lower {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
    margin-top: clamp(3rem, 8vh, 6rem);
    align-items: start;
}
.hero__intro-col { grid-column: 1 / 6; }
.hero__intro { max-width: 46ch; }
.hero__featured { margin-top: clamp(2rem, 5vh, 3.5rem); }
.hero__featured-list { margin-top: 0.9rem; border-top: 1px solid var(--line); }
.hero__featured-link {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    transition: color 0.25s var(--ease);
}
.hero__featured-num {
    font-size: var(--fs-meta);
    font-weight: 600;
    color: var(--blue);
}
.hero__featured-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.hero__featured-link:hover { color: var(--blue); }

.hero__visual { grid-column: 6 / 13; }
.hero__visual img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.hero__visual a { display: block; overflow: hidden; }
.hero__visual a img { transition: transform 0.9s var(--ease); }
.hero__visual a:hover img { transform: scale(1.025); }
.hero__visual figcaption { margin-top: 0.8rem; }

/* ==========================================================================
   SECTIONS — rooms & thresholds
   ========================================================================== */
.section { padding-top: var(--section-pad); }
section[id] { scroll-margin-top: 90px; }
.section__threshold { position: relative; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.section__label { padding-top: 1rem; color: var(--ink-60); }
.section__headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-h1);
    letter-spacing: -0.02em;
    line-height: 1.02;
}

/* ==========================================================================
   ARBEITEN — the index
   ========================================================================== */
.arbeiten { padding-bottom: var(--section-pad); position: relative; }
.arbeiten .section__headline { margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.arbeiten__list { border-top: 1px solid var(--line); }
.arbeiten__item { border-bottom: 1px solid var(--line); }
.arbeiten__item[hidden] { display: none; }
.arbeiten__row {
    display: grid;
    grid-template-columns: 4rem 1fr auto 2.5rem;
    align-items: baseline;
    gap: clamp(1rem, 3vw, 2.5rem);
    max-width: var(--container);
    margin-inline: auto;
    padding: clamp(1.6rem, 4vh, 2.6rem) var(--gutter);
}
.arbeiten__num {
    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--blue);
}
.arbeiten__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-h2);
    letter-spacing: -0.02em;
    line-height: 1.05;
    transition: color 0.3s var(--ease), transform 0.45s var(--ease);
}
.arbeiten__meta { text-align: right; }
.arbeiten__x {
    justify-self: end;
    font-size: 1rem;
    color: var(--line);
    transition: color 0.3s var(--ease), transform 0.45s var(--ease);
}
.arbeiten__row:hover .arbeiten__title { color: var(--blue); transform: translateX(0.4rem); }
.arbeiten__row:hover .arbeiten__x { color: var(--blue); transform: rotate(90deg); }
.arbeiten__more-row { margin-top: clamp(2rem, 5vh, 3rem); }

/* floating hover thumbnail (fine pointers only) */
.arbeiten__thumb {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 800;
    width: clamp(220px, 24vw, 360px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.arbeiten__thumb.is-visible { opacity: 1; }
.arbeiten__thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
    .arbeiten__thumb { display: none; }
}

/* ==========================================================================
   STUDIO — the paper room
   ========================================================================== */
.studio {
    position: relative;
    background: var(--paper);
    padding-bottom: var(--section-pad);
    overflow: hidden;
}
.studio__bigx {
    position: absolute;
    right: -0.18em;
    top: 0.05em;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(16rem, 38vw, 34rem);
    line-height: 1;
    color: #ffffff;
    user-select: none;
    pointer-events: none;
}
.studio .container { position: relative; }
.studio__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
}
.studio__grid .section__headline { grid-column: 1 / 5; }
.studio__text { grid-column: 6 / 12; display: flex; flex-direction: column; gap: 1.4rem; }
.studio__lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.55; font-weight: 500; }
.studio__text p { max-width: 62ch; }
.studio__tools { margin-top: 0.6rem; }
.studio__werdegang { margin-top: clamp(3.5rem, 8vh, 6rem); }
.studio__timeline { margin-top: 1.2rem; border-top: 1px solid var(--line); }
.studio__timeline-item {
    display: grid;
    grid-template-columns: minmax(7.5rem, 16rem) 1fr;
    gap: var(--gutter);
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--line);
}
.studio__years {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--blue);
}
.studio__edu { max-width: 62ch; }

/* ==========================================================================
   KONTAKT — the inverted room
   ========================================================================== */
.kontakt {
    background: var(--ink);
    color: #fff;
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
}
.kontakt .section__label { color: var(--dark-muted); }
.kontakt__headline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-h1);
    letter-spacing: -0.02em;
    line-height: 1.02;
    max-width: 18ch;
}
.kontakt__mail {
    display: inline-flex;
    align-items: baseline;
    gap: clamp(0.8rem, 2vw, 1.6rem);
    margin-top: clamp(2.5rem, 7vh, 5rem);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.45rem, 5.4vw, 5.2rem);
    letter-spacing: -0.02em;
    line-height: 1.05;
}
.kontakt__mail-text {
    background-image: linear-gradient(var(--blue), var(--blue));
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: 0 100%;
    padding-bottom: 0.08em;
    transition: color 0.3s var(--ease);
}
.kontakt__mail:hover .kontakt__mail-text { color: var(--blue); }
.kontakt__mail-x { font-size: 0.5em; transition: transform 0.4s var(--ease); }
.kontakt__mail:hover .kontakt__mail-x { transform: rotate(90deg); }
.kontakt__note { margin-top: clamp(1.5rem, 4vh, 2.5rem); color: var(--dark-muted); max-width: 50ch; }

/* ==========================================================================
   FOOTER — whisper-quiet
   ========================================================================== */
.footer { padding: clamp(2.5rem, 6vh, 4rem) 0 2rem; }
.footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: clamp(1.8rem, 4vh, 2.8rem);
}
.footer__brand { display: inline-flex; align-items: baseline; gap: 0.6rem; }
.footer__brand .x { font-size: 0.8rem; }
.footer__wordmark { font-family: var(--font-display); font-weight: 700; }
.footer__nav, .footer__legal { display: flex; gap: 1.8rem; }
.footer__nav a, .footer__legal a {
    font-size: var(--fs-meta);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.25s var(--ease);
}
.footer__nav a:hover, .footer__legal a:hover { color: var(--blue); }
.footer__copyright { margin-top: 2.2rem; }

/* ==========================================================================
   PROJECT DETAIL — a focused room
   ========================================================================== */
.detail { padding-top: clamp(7rem, 18vh, 11rem); }
.detail__back-row { margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.detail__num {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blue);
    margin-bottom: 0.8rem;
}
.detail__title {
    font-family: var(--font-display);
    font-weight: 800;
    /* Sized so the longest unbreakable word ("Logoentwicklung" = 17.7em in Syne
       800 uppercase) fits the container — one uniform size on every project. */
    font-size: clamp(1.9rem, calc((100vw - 2 * var(--gutter)) / 18.2), 4.6rem);
    letter-spacing: -0.03em;
    line-height: 1.02;
    text-transform: uppercase;
    margin-left: -0.04em;
    overflow-wrap: break-word;
    hyphens: auto;
}
.detail__metagrid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: clamp(1.4rem, 3vh, 2.2rem);
}
.detail__lead { margin-top: clamp(2.5rem, 7vh, 5rem); }
.detail__lead img {
    width: 100%;
    max-height: 82vh;
    object-fit: cover;
}
.detail__columns {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
    margin-top: clamp(3rem, 8vh, 5.5rem);
}
.detail__body { grid-column: 1 / 8; display: flex; flex-direction: column; gap: 1.4rem; }
.detail__body p { max-width: 66ch; }
.detail__body p:first-child { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; font-weight: 500; }
.detail__credits { grid-column: 9 / 13; }
.detail__credits ul { margin-top: 1rem; border-top: 1px solid var(--line); }
.detail__credits li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--ink-60);
}

.detail__gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    max-width: var(--container);
    margin: clamp(3rem, 8vh, 5.5rem) auto 0;
    padding-inline: var(--gutter);
}
.detail__img--full { grid-column: 1 / -1; }
.detail__img img { width: 100%; height: 100%; object-fit: cover; }

.detail__next { margin-top: var(--section-pad); padding-bottom: 1rem; }
.detail__next .meta-label { padding-top: 1rem; color: var(--ink-60); }
.detail__next-link {
    display: flex;
    align-items: baseline;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1.5rem, 4vh, 2.5rem) 0;
}
.detail__next-num { font-size: var(--fs-meta); font-weight: 600; color: var(--blue); }
.detail__next-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-h2);
    letter-spacing: -0.02em;
    transition: color 0.3s var(--ease), transform 0.45s var(--ease);
}
.detail__next-link .x { color: var(--line); transition: color 0.3s var(--ease), transform 0.45s var(--ease); }
.detail__next-link:hover .detail__next-title { color: var(--blue); transform: translateX(0.4rem); }
.detail__next-link:hover .x { color: var(--blue); transform: rotate(90deg); }

/* ==========================================================================
   LEGAL + 404
   ========================================================================== */
.legal { padding-top: clamp(7rem, 18vh, 10rem); padding-bottom: var(--section-pad); }
.legal__inner { max-width: calc(72ch + 2 * var(--gutter)); margin-inline: auto; }
.legal h1 {
    font-family: var(--font-display);
    font-weight: 700;
    /* "Datenschutzerklärung" is one 11.9em word — size it to always fit
       the narrow 72ch legal column (max ~691px content). */
    font-size: min(calc((100vw - 2 * var(--gutter)) / 12.1), 3.6rem);
    letter-spacing: -0.02em;
    line-height: 1.02;
    margin-bottom: clamp(2rem, 5vh, 3rem);
}
.legal h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
}
.legal__section { margin-bottom: 2.2rem; overflow-wrap: break-word; }
.legal__section a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--blue); }
.legal__section a:hover { color: var(--blue); }
.legal__stand { color: var(--ink-60); font-size: 0.9rem; }

.notfound { padding-top: clamp(8rem, 24vh, 14rem); padding-bottom: var(--section-pad); }
.notfound__code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(4rem, 14vw, 11rem);
    line-height: 1;
    letter-spacing: -0.03em;
}
.notfound__code .x { font-size: 0.4em; vertical-align: 0.4em; }
.notfound__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-h2);
    margin: 1.5rem 0 0.8rem;
}
.notfound__text { color: var(--ink-60); margin-bottom: 2.2rem; }

/* ==========================================================================
   CUSTOM CURSOR — the wayfinding ✕ (fine pointers, motion-ok only)
   ========================================================================== */
.cursor-dot, .cursor-x {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483001;
    pointer-events: none;
    will-change: transform;
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--ink);
}
.cursor-x {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    color: var(--blue);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}
body.cursor-hot .cursor-x { opacity: 1; }
body.cursor-hot .cursor-dot { background: var(--blue); }

/* ==========================================================================
   REDUCED MOTION — everything instant, nothing hidden
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal, html.js .rule, html.js .hero__line-inner, html.js .hero__x {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .cursor-dot, .cursor-x { display: none; }
    *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .hero__lower { grid-template-columns: 1fr; }
    .hero__intro-col, .hero__visual { grid-column: 1 / -1; }
    .studio__grid { grid-template-columns: 1fr; gap: 2rem; }
    .studio__grid .section__headline, .studio__text { grid-column: 1 / -1; }
    .detail__columns { grid-template-columns: 1fr; gap: 2.5rem; }
    .detail__body, .detail__credits { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .header__nav { display: none; }
    .header__menu-toggle { display: inline-flex; }
    .arbeiten__row { grid-template-columns: 2.6rem 1fr 1.6rem; row-gap: 0.4rem; }
    /* Explicit placement — auto-placing the ✕ with only grid-row:1 set pushed
       it into column 1 and collapsed the title into the 1.6rem ✕ column. */
    .arbeiten__num { grid-column: 1; grid-row: 1; }
    .arbeiten__title { grid-column: 2; grid-row: 1; overflow-wrap: break-word; }
    .arbeiten__meta { grid-column: 2 / 3; grid-row: 2; text-align: left; }
    .arbeiten__x { grid-column: 3; grid-row: 1; }
    .studio__timeline-item { grid-template-columns: 1fr; gap: 0.3rem; }
    .detail__gallery { grid-template-columns: 1fr; }
    .footer__grid { flex-direction: column; gap: 1.4rem; }
    .kontakt__mail { word-break: break-word; }
}

@media (max-width: 480px) {
    :root { --gutter: 1.1rem; }
    .hero { padding-top: 7.5rem; }
}
