:root {
    --bg: #07080a;
    --bg-2: #101114;
    --text: #f4f1ea;
    --muted: #9a958c;
    --line: rgba(244, 241, 234, 0.12);
    --accent: #ca1d1f;
    --pad: clamp(1.15rem, 4vw, 2.6rem);
    --wrap: 76rem;
    --font: "Sora", system-ui, sans-serif;
    --display: "Unbounded", system-ui, sans-serif;
}

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

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

body {
    font-family: var(--font);
    background:
        radial-gradient(900px 420px at 88% -8%, rgba(202, 29, 31, 0.18), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 34%, transparent 78%, rgba(0, 0, 0, 0.35));
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

.skip-link {
    position: absolute;
    left: var(--pad);
    top: -4rem;
    z-index: 40;
    background: var(--accent);
    color: #fff;
    padding: 0.55rem 0.9rem;
}

.skip-link:focus { top: 1rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 8, 10, 0.72);
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(7, 8, 10, 0.94);
}

.header-inner,
.hero-content,
.hero-meta,
.section-head,
.project-grid,
.studio-inner,
.footer-grid {
    max-width: var(--wrap);
    margin-inline: auto;
}

.header-inner {
    padding: max(0.7rem, env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) 0.7rem max(var(--pad), env(safe-area-inset-left));
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    background: #000;
}

.brand span {
    display: flex;
    flex-direction: column;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand strong {
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: -0.04em;
    text-transform: none;
    color: var(--text);
    line-height: 1.1;
}

.header-inner nav { margin-left: auto; }
.header-inner nav ul { display: flex; gap: 0.1rem; list-style: none; }

.header-inner nav a {
    display: block;
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.header-inner nav a:hover,
.header-inner nav a.active-link { color: var(--text); }

.header-cta {
    border: 1px solid rgba(202, 29, 31, 0.5);
    background: rgba(202, 29, 31, 0.12);
    padding: 0.48rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 600;
}

.header-cta:hover { background: var(--accent); color: #fff; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 1px;
    margin: 6px 12px;
    background: var(--text);
}

.hero {
    position: relative;
    z-index: 1;
    min-height: min(88vh, 48rem);
    display: grid;
    align-content: end;
    padding: 7rem var(--pad) 2.4rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    background: var(--accent);
}

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.hero-kicker {
    display: block;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.hero-line {
    display: block;
    font-size: clamp(3.2rem, 11vw, 8rem);
}

.hero-line.accent { color: var(--accent); }

.lede,
.section-head p,
.studio p,
.project-card p {
    max-width: 38rem;
    color: var(--muted);
}

.lede { margin: 1.2rem 0 1.6rem; font-size: 1.05rem; }

.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 0.82rem 1.15rem;
    font-weight: 600;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a31719; }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: #fff; }

.hero-meta {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 3.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marquee {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--accent);
    color: #fff;
}

.marquee-track {
    display: flex;
    gap: 2.4rem;
    width: max-content;
    padding: 0.7rem 0;
    font-family: var(--display);
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: ticker 28s linear infinite;
}

.marquee-track span { white-space: nowrap; }
.marquee-track span::before { content: "■ "; font-size: 0.6em; }

@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

#projekte,
.studio,
.legal-page {
    position: relative;
    z-index: 1;
    padding: 5rem var(--pad);
}

.section-head { margin-bottom: 1.8rem; }

h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 0.7rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.project-card {
    display: grid;
    grid-template-columns: auto 4.4rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.2rem 1.15rem;
    background: var(--bg-2);
    border: 1px solid var(--line);
}

.project-card:hover { border-color: rgba(202, 29, 31, 0.55); }

.idx {
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--accent);
}

.project-thumb {
    width: 4.4rem;
    height: 4.4rem;
    object-fit: cover;
    background: #000;
    border: 1px solid var(--line);
}

.project-thumb.makeit {
    object-fit: contain;
    padding: 0.55rem;
}

.project-url {
    display: inline-block;
    margin-top: 0.55rem;
    color: var(--text);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.studio {
    padding-block: 3.2rem;
    border-block: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(202, 29, 31, 0.14), transparent 46%),
        var(--bg-2);
}

.studio-inner {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    align-items: center;
}

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    padding: 2.4rem var(--pad) max(1.3rem, env(safe-area-inset-bottom));
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    margin-bottom: 1.4rem;
}

.footer-logo {
    width: 3.4rem;
    height: 3.4rem;
    object-fit: contain;
    margin-bottom: 0.7rem;
    background: #000;
}

.site-footer h3 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 0.35rem; }
.site-footer a:hover { color: var(--text); }

.legal {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    font-size: 0.78rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .header-inner nav,
    .header-cta { display: none; }

    .header-inner nav.open {
        display: block;
        position: absolute;
        inset: 4.4rem var(--pad) auto;
        background: rgba(7, 8, 10, 0.96);
        border: 1px solid var(--line);
        padding: 0.7rem;
    }

    .header-inner nav.open ul { flex-direction: column; }
    .project-grid,
    .studio-inner,
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-track { animation: none; }
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
