/* ================================================================
   FILWOODS — Massivholz & Epoxidharz · Landing Page
   Dark cinematic one-pager · Zero-Tracking · Self-hosted fonts
   ================================================================ */

/* ---------- Fonts (self-hosted, kein CDN) ---------- */
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-900.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #15120e;
  --bg: #100e0b;
  --bg-2: #17140f;
  --paper: #f1eadf;
  --paper-2: #e9dfd0;
  --amber: #c8924f;
  --amber-soft: #d9b384;
  --teal: #4aaaa1;
  --text: #e8e0d3;
  --text-dim: rgba(232, 224, 211, 0.62);
  --line: rgba(232, 224, 211, 0.14);
  --line-dark: rgba(21, 18, 14, 0.16);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  max-width: 100vw;
  background: transparent; /* bg lebt auf html, damit der Epoxid-River (z-index:-1) sichtbar ist */
  position: relative;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--amber); color: var(--ink); }

.wrap { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- Eyebrow / Labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--amber);
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--amber); }

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
  transition: background 0.45s var(--ease), padding 0.45s var(--ease), border-color 0.45s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(16, 14, 11, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
  border-bottom-color: var(--line);
}
.nav-brand { font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: 0.06em; color: var(--text); }
.nav-brand em { font-style: italic; font-weight: 400; color: var(--amber); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink) !important; background: var(--amber);
  padding: 10px 20px; border-radius: 999px;
  transition: background 0.3s, transform 0.3s;
}
.nav-cta:hover { background: var(--amber-soft); transform: translateY(-1px); }

/* ================================================================
   HERO
   ================================================================ */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: clip; display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
  transform: scale(1.18); opacity: 0;
  transition: transform 2.6s var(--ease), opacity 1.4s ease;
}
body.is-loaded .hero-bg img { transform: scale(1.04); opacity: 1; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(16,14,11,0.96) 0%, rgba(16,14,11,0.45) 38%, rgba(16,14,11,0.25) 60%, rgba(16,14,11,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 9vh, 110px); }
.hero-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--amber-soft); margin-bottom: 22px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.9s ease 0.5s, transform 0.9s var(--ease) 0.5s;
}
body.is-loaded .hero-kicker { opacity: 1; transform: none; }
.hero-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.7rem, 7.2vw, 6.4rem);
  line-height: 1.02; letter-spacing: -0.015em; color: var(--paper);
  hyphens: none; overflow-wrap: normal; word-break: keep-all;
  max-width: 14ch;
}
.hero-title em { font-style: italic; font-weight: 400; color: var(--amber-soft); }
.hero-title .word { white-space: nowrap; display: inline-block; }
.hero-title .char { display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(2.5deg); }
body.is-loaded .hero-title .char { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.75s var(--ease); }
.hero-sub {
  margin-top: 26px; max-width: 52ch; font-size: clamp(15px, 1.5vw, 17.5px);
  color: var(--text-dim); line-height: 1.7;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.9s ease 1.15s, transform 0.9s var(--ease) 1.15s;
}
body.is-loaded .hero-sub { opacity: 1; transform: none; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; opacity: 0; transition: opacity 0.9s ease 1.4s; }
body.is-loaded .hero-actions { opacity: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 999px; border: 1px solid var(--line);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}
.btn-solid { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-solid:hover { background: var(--amber-soft); border-color: var(--amber-soft); transform: translateY(-2px); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-soft); transform: translateY(-2px); }
.hero-scroll {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: clamp(56px, 9vh, 110px); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim);
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ================================================================
   MARQUEE
   ================================================================ */
.marquee { border-block: 1px solid var(--line); padding: 18px 0; overflow: clip; background: var(--bg-2); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span {
  font-family: var(--serif); font-size: clamp(15px, 1.8vw, 20px); font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
  padding: 0 26px; white-space: nowrap;
}
.marquee-track span i { font-style: normal; color: var(--amber); padding-right: 52px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================================
   STATEMENT (scroll-scrub words)
   ================================================================ */
.statement { padding: clamp(110px, 16vh, 190px) 0; }
.statement p {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.32;
  max-width: 24ch; color: var(--paper);
}
.statement .w { opacity: 0.16; transition: opacity 0.35s ease; }
.statement .w.on { opacity: 1; }
.statement .w.hl { color: var(--amber-soft); font-style: italic; }
.statement-foot { margin-top: 40px; display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--serif); font-size: 30px; font-weight: 900; color: var(--amber); }
.stat span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }

/* ================================================================
   SIGNATURE — pinned 3D showcase
   ================================================================ */
.showcase { position: relative; }
.showcase-pin { height: 420vh; }
.showcase-stage {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  display: flex; align-items: center;
}
.showcase-head {
  position: absolute; top: clamp(76px, 11vh, 120px); left: 0; right: 0; z-index: 5; pointer-events: none;
}
.showcase-head h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.9rem, 3.4vw, 3rem); color: var(--paper); margin-top: 14px; }
.showcase-head h2 em { font-style: italic; font-weight: 400; color: var(--amber-soft); }
.showcase-deck {
  position: absolute; inset: 0; z-index: 2;
  perspective: 1300px; perspective-origin: 50% 46%;
}
.work-card {
  position: absolute; left: 50%; top: 53%;
  width: min(620px, 78vw);
  transform: translate(-50%, -50%);
  will-change: transform, opacity, filter;
}
.work-card .work-img {
  position: relative; border-radius: 6px; overflow: clip;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,0.85);
  aspect-ratio: 4 / 5; background: var(--bg-2);
}
.work-card:nth-child(2) .work-img, .work-card:nth-child(4) .work-img { aspect-ratio: 5 / 4; }
.work-card .work-img img { width: 100%; height: 100%; object-fit: cover; }
.work-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 18px; gap: 16px;
}
.work-meta h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(17px, 2vw, 22px); color: var(--paper); }
.work-meta span { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }
.showcase-counter {
  position: absolute; left: clamp(20px, 4vw, 48px); bottom: clamp(28px, 5vh, 56px); z-index: 5;
  font-family: var(--serif); font-size: 15px; color: var(--text-dim); letter-spacing: 0.2em;
}
.showcase-counter b { color: var(--amber); font-size: 26px; font-weight: 900; }
.showcase-progress {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: clamp(28px, 5vh, 56px); z-index: 5;
  width: 120px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.showcase-progress i { display: block; height: 100%; width: 0%; background: var(--amber); transition: width 0.2s linear; }

/* ================================================================
   MATERIALS — light section
   ================================================================ */
.materials { background: var(--paper); color: var(--ink); padding: clamp(100px, 14vh, 170px) 0; }
.materials .eyebrow { color: #9a6b2f; }
.materials .eyebrow::before { background: #9a6b2f; }
.materials h2 {
  font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.06; margin: 18px 0 14px; color: var(--ink);
}
.materials h2 em { font-style: italic; font-weight: 400; color: #9a6b2f; }
.materials-intro { max-width: 56ch; color: rgba(21,18,14,0.66); margin-bottom: clamp(44px, 6vh, 70px); }
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.mat-card {
  position: relative; border-radius: 8px; overflow: clip; background: var(--ink);
  transform-style: preserve-3d; transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.mat-card:hover { box-shadow: 0 40px 80px -32px rgba(21,18,14,0.5); }
.mat-card .mat-img { aspect-ratio: 3 / 3.7; overflow: clip; }
.mat-card .mat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mat-card:hover .mat-img img { transform: scale(1.05); }
.mat-card .mat-body {
  position: absolute; inset: auto 0 0 0; padding: 26px 24px 24px;
  background: linear-gradient(to top, rgba(16,14,11,0.94), rgba(16,14,11,0.55) 70%, transparent);
  color: var(--paper);
}
.mat-body small { display: block; font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber-soft); margin-bottom: 8px; }
.mat-body h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.mat-body p { font-size: 13.5px; line-height: 1.6; color: rgba(232,224,211,0.78); }

/* ================================================================
   GALLERY — parallax columns
   ================================================================ */
.gallery { padding: clamp(100px, 14vh, 170px) 0 clamp(60px, 9vh, 110px); }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(44px, 6vh, 70px); flex-wrap: wrap; }
.gallery-head h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.06; margin-top: 18px; color: var(--paper); }
.gallery-head h2 em { font-style: italic; font-weight: 400; color: var(--amber-soft); }
.gallery-head p { max-width: 38ch; color: var(--text-dim); font-size: 15px; }
.gallery-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 30px); align-items: start; }
.g-col { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 30px); }
.g-col.lag { will-change: transform; margin-top: clamp(50px, 8vh, 110px); }
.g-item { border-radius: 6px; overflow: clip; position: relative; }
.g-item img { width: 100%; height: auto; transition: transform 0.8s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 20px 18px 16px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper);
  background: linear-gradient(to top, rgba(16,14,11,0.85), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.g-item:hover figcaption { opacity: 1; }

/* ================================================================
   FILM — video band
   ================================================================ */
.film { position: relative; overflow: clip; }
.film video { width: 100%; height: min(86svh, 760px); object-fit: cover; }
.film-overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(to right, rgba(16,14,11,0.72) 10%, rgba(16,14,11,0.15) 65%);
}
.film-overlay h2 {
  font-family: var(--serif); font-weight: 900; color: var(--paper);
  font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.08; max-width: 16ch;
}
.film-overlay h2 em { font-style: italic; font-weight: 400; color: var(--amber-soft); }
.film-overlay p { margin-top: 16px; color: var(--text-dim); max-width: 44ch; }

/* ================================================================
   PROCESS — light
   ================================================================ */
.process { background: var(--paper); color: var(--ink); padding: clamp(100px, 14vh, 170px) 0; }
.process .eyebrow { color: #9a6b2f; }
.process .eyebrow::before { background: #9a6b2f; }
.process h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 18px 0 clamp(44px, 6vh, 70px); color: var(--ink); }
.process h2 em { font-style: italic; font-weight: 400; color: #9a6b2f; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 34px); }
.step { border-top: 1px solid var(--line-dark); padding-top: 22px; }
.step b {
  display: block; font-family: var(--serif); font-weight: 900; font-size: 15px;
  color: #9a6b2f; letter-spacing: 0.12em; margin-bottom: 12px;
}
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 14px; line-height: 1.65; color: rgba(21,18,14,0.66); }

/* ================================================================
   ABOUT
   ================================================================ */
.about { padding: clamp(100px, 14vh, 170px) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-img { border-radius: 6px; overflow: clip; position: relative; }
.about-img img { width: 100%; height: auto; }
.about-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,14,11,0.3), transparent 45%);
}
.about-body h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; margin: 18px 0 20px; color: var(--paper); }
.about-body h2 em { font-style: italic; font-weight: 400; color: var(--amber-soft); }
.about-body p { color: var(--text-dim); margin-bottom: 16px; max-width: 54ch; }
.about-note {
  margin-top: 28px; padding: 20px 24px; border-left: 2px solid var(--amber);
  background: var(--bg-2); border-radius: 0 6px 6px 0;
}
.about-note b { display: block; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--amber-soft); margin-bottom: 6px; }
.about-note span { font-size: 14.5px; color: var(--text); }

/* ================================================================
   CONTACT
   ================================================================ */
.contact {
  position: relative; padding: clamp(120px, 18vh, 220px) 0; text-align: center; overflow: clip;
  background: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(200,146,79,0.16), transparent 65%), var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--amber); }
.contact h2 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.04;
  color: var(--paper); margin: 22px auto 18px; max-width: 16ch;
}
.contact h2 em { font-style: italic; font-weight: 400; color: var(--amber-soft); }
.contact > .wrap > p { color: var(--text-dim); max-width: 52ch; margin: 0 auto 38px; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.regions { margin-top: clamp(50px, 8vh, 80px); display: flex; gap: 10px 14px; justify-content: center; flex-wrap: wrap; }
.regions span {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 999px;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer { border-top: 1px solid var(--line); padding: 38px 0; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-brand { font-family: var(--serif); font-weight: 900; font-size: 18px; color: var(--text); }
.footer-brand em { font-style: italic; font-weight: 400; color: var(--amber); }
.footer p { font-size: 12.5px; color: var(--text-dim); }
.footer nav { display: flex; gap: 22px; }
.footer nav a { font-size: 12.5px; color: var(--text-dim); transition: color 0.3s; }
.footer nav a:hover { color: var(--text); }

/* ================================================================
   Reveals
   ================================================================ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s ease, transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* ================================================================
   Legal pages
   ================================================================ */
.legal { padding: 150px 0 90px; min-height: 70svh; }
.legal h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); color: var(--paper); margin-bottom: 28px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--paper); margin: 34px 0 10px; }
.legal p { color: var(--text-dim); max-width: 70ch; margin-bottom: 12px; }
.legal .hint { border-left: 2px solid var(--amber); padding: 14px 18px; background: var(--bg-2); color: var(--text); border-radius: 0 6px 6px 0; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 980px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .materials-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .mat-card .mat-img { aspect-ratio: 4 / 3.4; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 560px; }
  .showcase-pin { height: 380vh; }
  .work-card { width: min(520px, 86vw); top: 54%; }
}
@media (max-width: 640px) {
  .gallery-cols { grid-template-columns: 1fr; }
  .g-col.lag { margin-top: 0; transform: none !important; }
  .steps { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .statement p { max-width: none; }
  .film video { height: 70svh; }
}

/* ================================================================
   EPIC PASS — Preloader · Epoxid-River · Partikel · Jahresringe ·
   Ghost-Nummern · Lightbox · Footer-Wordmark
   ================================================================ */

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.loader.done { transform: translateY(-101%); }
.loader-mark { font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: 0.1em; color: var(--paper); display: flex; }
.loader-mark em { font-style: italic; font-weight: 400; color: var(--amber); }
.loader-mark span { display: inline-block; opacity: 0; transform: translateY(0.5em); animation: loaderChar 0.6s var(--ease) forwards; }
@keyframes loaderChar { to { opacity: 1; transform: none; } }
.loader-line { width: min(220px, 50vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader-line i { position: absolute; inset: 0; background: linear-gradient(to right, var(--teal), var(--amber)); transform: scaleX(0); transform-origin: left; animation: loaderFill 1.1s 0.3s var(--ease) forwards; }
@keyframes loaderFill { to { transform: scaleX(1); } }
.loader-sub { font-size: 10.5px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--text-dim); opacity: 0; animation: loaderChar 0.6s 0.5s ease forwards; }
body.loader-gone .loader { display: none; }

/* ---------- Epoxid-River (Scroll-gezeichneter Harz-Fluss) ---------- */
.river { position: absolute; left: 0; width: 100%; z-index: -1; pointer-events: none; }
.river svg { display: block; width: 100%; height: 100%; }
.river path {
  fill: none; stroke: url(#riverGrad); stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(74, 170, 161, 0.55)) drop-shadow(0 0 18px rgba(74, 170, 161, 0.25));
}
.river .river-tip { fill: #9fe6df; filter: drop-shadow(0 0 8px rgba(74, 170, 161, 0.9)); }

/* ---------- Hero: Partikel + Grain ---------- */
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.grain { position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 90; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grainShift 7s steps(8) infinite; }
@keyframes grainShift { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-2%,1%); } 50% { transform: translate(1%,-2%); } 75% { transform: translate(-1%,2%); } }

/* ---------- Jahresringe-Ornament ---------- */
.rings { position: absolute; z-index: -1; pointer-events: none; opacity: 0.13; will-change: transform; }
.rings svg { width: 100%; height: 100%; }
.rings circle, .rings ellipse { fill: none; stroke: var(--amber-soft); stroke-width: 1; }
.statement { position: relative; overflow: clip; isolation: isolate; }
.contact { isolation: isolate; }
.statement .rings { right: -16vw; top: 50%; width: min(640px, 55vw); aspect-ratio: 1; margin-top: calc(min(640px, 55vw) / -2); }
.contact .rings { left: -14vw; bottom: -22vh; width: min(560px, 60vw); aspect-ratio: 1; opacity: 0.1; }

/* ---------- Showcase: Ghost-Nummer ---------- */
.showcase-ghost {
  position: absolute; right: clamp(8px, 4vw, 70px); top: 50%; transform: translateY(-50%); z-index: 1;
  font-family: var(--serif); font-weight: 900; font-style: italic;
  font-size: clamp(11rem, 30vw, 26rem); line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(200, 146, 79, 0.22);
  user-select: none; pointer-events: none;
  transition: opacity 0.3s;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 9, 7, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s ease;
  padding: 5vh 4vw;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 80vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 40px 120px rgba(0,0,0,0.7); transform: scale(0.96); transition: transform 0.35s var(--ease); }
.lightbox.open img { transform: scale(1); }
.lightbox figcaption { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.lightbox-close { position: absolute; top: 22px; right: 28px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: color 0.3s, border-color 0.3s; }
.lightbox-close:hover { color: var(--paper); border-color: var(--amber); }
.g-item { cursor: zoom-in; }

/* ---------- Footer: Giant Wordmark ---------- */
.footer-giant {
  display: block; text-align: center; overflow: clip;
  padding: clamp(40px, 7vh, 80px) 0 0;
}
.footer-giant span {
  font-family: var(--serif); font-weight: 900; letter-spacing: 0.04em;
  font-size: clamp(4rem, 14.5vw, 13.5rem); line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1px rgba(232, 224, 211, 0.18);
  transition: color 0.8s ease;
  display: inline-block; transform: translateY(12%);
}
.footer-giant:hover span { color: rgba(200, 146, 79, 0.14); }

/* ---------- Stats: Count-up cursor ---------- */
.stat b { font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .river { display: none; }
  .grain { display: none; }
  .showcase-ghost { font-size: 9rem; right: 4px; top: auto; bottom: 6vh; transform: none; }
}

/* ================================================================
   Reduced motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img, .hero-kicker, .hero-sub, .hero-actions, .hero-title .char { transition: none !important; opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .statement .w { opacity: 1; }
  .hero-scroll::after { animation: none; }
  .loader { display: none; }
  .grain { animation: none; }
  .river, .hero-particles { display: none; }
}
