/* lujo-ug.de – dunkle, warme Leinwand, große Serif-Typografie, ein generatives Linienband (site.js) */

@font-face {
    font-family: "Instrument Serif";
    src: url("fonts/instrument-serif-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("fonts/instrument-serif-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #0F0E0C;
    --ink: #ECE6DA;
    --soft: rgba(236, 230, 218, 0.72);
    --muted: #8C877D;
    --line: rgba(236, 230, 218, 0.14);
    --accent: #D4583A;
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    --pad: clamp(20px, 4vw, 48px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Filmkorn über allem, ganz leicht */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

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

a { color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; }
em { font-style: italic; }

.mono {
    font: 400 12px/1.7 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.dot { color: var(--accent); }

/* Kopf */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px var(--pad);
    pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header { transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); opacity: 0; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.wm-name { font: 400 42px/0.8 var(--serif); letter-spacing: 0.1em; padding-top: 0.06em; -webkit-text-stroke: 0.35px currentColor; }
.wm-ug {
    font: 600 12px/1 var(--mono);
    letter-spacing: 0.14em;
    padding: 6px 5px 5px 7px;
    border-radius: 2px;
    background: var(--ink);
    color: var(--bg);
}
.site-nav { display: flex; gap: 32px; }
.site-nav a {
    font: 400 12px/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--soft);
    transition: color 0.3s;
}
.site-nav a:hover { color: var(--ink); }
.page-index .site-header { mix-blend-mode: difference; }

/* Einstieg mit Linienband */

.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 14, 12, 0.85) 100%);
    pointer-events: none;
}

.hero-text { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(56px, 10vh, 120px); z-index: 2; }
.hero h1 { font-size: clamp(54px, 10.5vw, 176px); line-height: 0.9; letter-spacing: -0.04em; }
.hero h1 em { color: var(--soft); }
.hero-kicker, .hero-sub { margin: 0; overflow: hidden; }
.hero-kicker { margin-bottom: clamp(16px, 3vh, 32px); }
.hero-sub { margin-top: clamp(20px, 3vh, 36px); color: var(--soft); }

.line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line-in { display: inline-block; }
.js .line-in { transform: translateY(110%); animation: rise 1.4s var(--ease) forwards; }
.js .hero-kicker .line-in { animation-delay: 0.2s; }
.js .line:nth-child(1) .line-in { animation-delay: 0.35s; }
.js .line:nth-child(2) .line-in { animation-delay: 0.5s; }
.js .hero-sub .line-in { animation-delay: 0.8s; }
@keyframes rise { to { transform: none; } }

.scroll-cue {
    position: absolute;
    right: var(--pad);
    bottom: clamp(56px, 10vh, 120px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.scroll-cue span { writing-mode: vertical-rl; }
.scroll-cue i { position: relative; width: 1px; height: 64px; background: var(--line); overflow: hidden; }
.scroll-cue i::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--ink);
    animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip {
    0% { transform: translateY(-100%); }
    60%, 100% { transform: translateY(100%); }
}

/* Arbeiten */

.works { padding: clamp(96px, 16vh, 180px) var(--pad); }
.section-label { display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

.work-list { margin: 0; padding: 0; list-style: none; }
.work {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(220px, 300px);
    gap: 24px 40px;
    align-items: end;
    padding: clamp(36px, 5vw, 56px) 0;
    border-bottom: 1px solid var(--line);
    transition: opacity 0.5s var(--ease);
}
.work-no { align-self: start; padding-top: 0.9em; }
.work-name {
    font-size: clamp(48px, 8vw, 128px);
    line-height: 0.95;
    letter-spacing: -0.035em;
    transition: transform 0.7s var(--ease);
}
.digit { font-family: var(--sans); font-weight: 200; font-size: 0.84em; letter-spacing: -0.02em; margin-left: 0.04em; }
.work-text { margin: 16px 0 0; max-width: 30em; color: var(--muted); font-size: 17px; }
.work-meta { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; text-align: right; }
.work-where { color: var(--soft); }
.work-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.work-links a { text-decoration: none; color: var(--muted); background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: color 0.3s, background-size 0.5s var(--ease); }
.work-links a:hover { color: var(--ink); background-size: 100% 1px; }

@media (hover: hover) {
    .work-list:hover .work:not(:hover) { opacity: 0.32; }
    .work:hover .work-name { font-style: italic; transform: translateX(0.12em); }
}

/* Satz in der Mitte */

.statement { padding: clamp(80px, 18vh, 220px) var(--pad); text-align: center; }
.statement p {
    margin: 0 auto;
    max-width: 14em;
    font: 400 clamp(40px, 6.5vw, 104px)/1 var(--serif);
    letter-spacing: -0.03em;
}
.statement em { color: var(--accent); }

/* Fuß */

.site-footer { padding: 56px var(--pad) 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.footer-grid p { margin: 0; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-end; }
.footer-nav a { text-decoration: none; transition: color 0.3s; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { margin: 24px 0 0; }

/* Rechtstexte */

.legal { max-width: 760px; margin: 0 auto; padding: clamp(140px, 22vh, 200px) var(--pad) clamp(96px, 14vh, 160px); }
.legal-head { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.legal-head .eyebrow { margin: 0 0 20px; font: 400 12px/1.7 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.legal-head h1 { font-size: clamp(56px, 9vw, 112px); line-height: 0.95; letter-spacing: -0.04em; }
.legal-body { color: var(--soft); overflow-wrap: anywhere; }
.legal-body h2 { margin: 64px 0 16px; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.legal-body > h2:first-child { margin-top: 0; }
.legal-body h3 { margin: 36px 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.legal-body p { margin: 0 0 16px; }
.legal-body ul { margin: 0 0 16px; padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body li p { margin: 0; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: var(--ink); }

/* Einblenden beim Scrollen */

.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .work.reveal.is-visible { transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .work-list:hover .work.reveal.is-visible:not(:hover) { opacity: 0.32; transition: opacity 0.5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .line-in { transform: none; animation: none; }
    .js .reveal { opacity: 1; transform: none; }
    .scroll-cue i::after { animation: none; }
}

/* Schmale Bildschirme */

@media (max-width: 860px) {
    .work { grid-template-columns: 40px minmax(0, 1fr); }
    .work-meta { grid-column: 2; align-items: flex-start; text-align: left; }
    .work-links { justify-content: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-nav { align-items: flex-start; }
}

@media (max-width: 560px) {
    .site-header { padding: 18px var(--pad); }
    .wm-name { font-size: 34px; }
    .wm-ug { font-size: 11px; }
    .wordmark { gap: 10px; }
    .site-nav { gap: 20px; }
    .scroll-cue { display: none; }
    .work { grid-template-columns: 1fr; gap: 12px; }
    .work-no { padding-top: 0; }
    .work-meta { grid-column: 1; }
    .work-text { font-size: 16px; }
}
