/* Boinignon Studios – styles.css */
:root {
  --bg: #0e0d10;
  --bg-2: #16141a;
  --bg-3: #1e1b23;
  --line: #2c2832;
  --fg: #f3efe6;
  --muted: #a39c92;
  --accent: #ff4d2e;
  --accent-2: #ffb21f;
  --radius: 4px;
  --wrap: 1200px;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 20px; height: 28px; fill: var(--fg); }
.mark__px { fill: var(--accent); }
.brand__name { font-weight: 800; letter-spacing: -0.02em; font-size: 18px; text-transform: uppercase; }
.brand__name span { color: var(--muted); font-weight: 500; }
.brand--small .mark { width: 15px; height: 21px; }
.brand--small .brand__name { font-size: 15px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14, 13, 16, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__menu { display: flex; align-items: center; gap: 34px; }
.nav__menu a {
  text-decoration: none; font-size: 14px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  transition: color .2s;
}
.nav__menu a:hover { color: var(--fg); }
.nav__menu .nav__cta {
  color: var(--bg); background: var(--fg); padding: 10px 18px; border-radius: var(--radius);
}
.nav__menu .nav__cta:hover { background: var(--accent); color: var(--bg); }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__toggle {
    display: flex; flex-direction: column; gap: 6px; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .nav__toggle span { height: 2px; background: var(--fg); transition: transform .25s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav__menu .nav__cta { margin-top: 16px; text-align: center; border: 0; }
  .nav.menu-open { background: var(--bg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 120px; overflow: hidden; isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(255, 77, 46, .18), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(255, 178, 31, .07), transparent 70%);
}
.hero__pixels { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 8px; height: 8px; background: var(--accent); }
.hero__title {
  margin: 0; font-weight: 900; letter-spacing: -0.045em; line-height: .94;
  font-size: clamp(48px, 10vw, 136px);
}
.hero__title em {
  font-style: normal; color: var(--accent);
}
.hero__lead { max-width: 560px; margin: 36px 0 0; font-size: clamp(17px, 2vw, 21px); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--bg); box-shadow: 4px 4px 0 var(--fg); }
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--fg); }
.btn--ghost { border: 1px solid var(--line); color: var(--fg); }
.btn--ghost:hover { border-color: var(--fg); }

.hero__ticker {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--line); overflow: hidden;
  background: rgba(14, 13, 16, .6);
}
.ticker {
  display: flex; gap: 32px; width: max-content; padding: 16px 0;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  animation: ticker 40s linear infinite;
}
.ticker span:nth-child(even) { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 140px 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }
.label {
  margin: 0 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.h2 {
  margin: 0; font-weight: 900; letter-spacing: -0.035em; line-height: 1;
  font-size: clamp(38px, 5.6vw, 72px);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.prose p { margin: 0 0 20px; color: var(--muted); }
.prose .big { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--fg); font-weight: 500; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 100px;
  border-top: 1px solid var(--line);
}
.stat { padding: 32px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(40px, 5vw, 64px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.stat__txt { font-size: 14px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg-2); padding: 44px 40px 48px; position: relative; transition: background .25s; }
.card:hover { background: var(--bg-3); }
.card__no {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  border: 1px solid var(--line); color: var(--accent); margin-bottom: 28px;
  transition: background .25s, color .25s, border-color .25s;
}
.card:hover .card__no { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.card h3 { margin: 0 0 12px; font-size: 24px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Projekte ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.section-head__note { max-width: 380px; margin: 0; color: var(--muted); }
.section-head__hint { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--accent-2); }
.section-head__note a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }

.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.file {
  position: relative; overflow: hidden; min-height: 340px;
  display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,.018) 14px 15px),
    var(--bg-2);
}
.file__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.file__tag, .file__status { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.file__status { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); }
.pulse { width: 7px; height: 7px; background: var(--accent-2); animation: blink 1.4s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.file__title { margin: 22px 0 22px; font-size: 30px; }
.file:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Beweisfotos */
.evidence {
  position: relative; margin: 20px 0 0; aspect-ratio: 16 / 10; overflow: hidden;
  background: #09080b; border: 1px solid var(--line); cursor: crosshair;
}
.evidence img { image-rendering: pixelated; image-rendering: crisp-edges; }
.evidence::after {
  /* Scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.evidence figcaption {
  position: absolute; left: 10px; bottom: 8px; z-index: 4;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: rgba(9,8,11,.75); padding: 3px 6px;
}
.evidence__corners { position: absolute; inset: 10px; z-index: 4; pointer-events: none;
  background:
    linear-gradient(var(--fg), var(--fg)) left top / 14px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) left top / 1px 14px no-repeat,
    linear-gradient(var(--fg), var(--fg)) right top / 14px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) right top / 1px 14px no-repeat,
    linear-gradient(var(--fg), var(--fg)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--fg), var(--fg)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--fg), var(--fg)) right bottom / 1px 14px no-repeat;
  opacity: .5;
}

.evidence--scene > img:first-child {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%;
  transform: scale(1.35); transform-origin: 70% 40%;
  filter: grayscale(.9) brightness(.45) contrast(1.2);
  transition: filter .5s ease, transform 1.2s cubic-bezier(.2,.7,.2,1);
}
.evidence__bar {
  position: absolute; z-index: 2; left: 12%; top: 18%; width: 46%; height: 16%;
  background: #050406; transition: transform .5s ease;
}

.evidence__sil, .evidence__real {
  position: absolute; z-index: 2; left: 30%; bottom: 2%; height: 82%; width: auto; transform: translateX(-50%);
}
.evidence__real { opacity: 0; }

.evidence--xray img {
  width: 100%; height: 100%; object-fit: cover;
  filter: invert(1) grayscale(1) contrast(1.4) brightness(.8);
  transition: filter .6s ease;
}
.file:hover .evidence--xray img, .file:focus-visible .evidence--xray img, .file.is-open .evidence--xray img {
  filter: none;
}

.evidence--signal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.evidence__mosaic { filter: saturate(.6) brightness(.7); }
.evidence__clear { opacity: 0; transition: opacity .2s; }
.evidence__noise {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg); background: rgba(9,8,11,.8); padding: 6px 10px;
  animation: blink 1.4s steps(2, start) infinite;
}
.file:hover .evidence__clear, .file:focus-visible .evidence__clear, .file.is-open .evidence__clear {
  animation: tune 1.4s steps(1, end) forwards;
}
.file:hover .evidence__noise, .file:focus-visible .evidence__noise, .file.is-open .evidence__noise { display: none; }
@keyframes tune {
  0%   { opacity: 0; }
  10%  { opacity: .7; }
  18%  { opacity: 0; }
  30%  { opacity: 1; }
  38%  { opacity: .3; }
  100% { opacity: .85; }
}

/* Aufdecken: Maus drüber, Fokus oder Antippen */
.file:hover .evidence--scene > img:first-child, .file:focus-visible .evidence--scene > img:first-child, .file.is-open .evidence--scene > img:first-child {
  filter: grayscale(0) brightness(.95) contrast(1.05); transform: scale(1.12);
}
.file:hover .evidence__bar, .file:focus-visible .evidence__bar, .file.is-open .evidence__bar { transform: translateX(-4%) scaleX(.92); }
.file:hover .evidence__real, .file:focus-visible .evidence__real, .file.is-open .evidence__real {
  animation: leak 1.6s steps(1, end) forwards;
}
@keyframes leak {
  0%   { opacity: 0; }
  8%   { opacity: .9; }
  14%  { opacity: 0; }
  22%  { opacity: 1; }
  30%  { opacity: .15; }
  100% { opacity: .55; }
}
.file__meta { margin: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.file__meta div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.file__meta dt { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.file__meta dd { margin: 0; }

.redact {
  position: relative; display: inline-block; overflow: hidden; vertical-align: middle;
  color: transparent; user-select: none;
  background: var(--fg); border-radius: 1px; line-height: 1.1;
}
.file__title .redact { min-width: 9ch; }
.redact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,77,46,.35), transparent); transform: translateX(-100%); }
.file:hover .redact::after { animation: scan 1s ease; }
@keyframes scan { to { transform: translateX(100%); } }

.file__stamp {
  position: absolute; z-index: 5; right: 10px; top: 14px; transform: rotate(-8deg);
  background: rgba(9,8,11,.6);
  font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); border: 2px solid var(--accent); padding: 4px 12px; opacity: .85;
}
.file--empty {
  align-items: center; justify-content: center; text-align: center; gap: 16px;
  border-style: dashed; background: transparent; color: var(--muted);
}
.file--empty p { margin: 0; max-width: 220px; }
.file__plus { font-size: 48px; font-weight: 300; line-height: 1; color: var(--line); }

/* ---------- Kontakt ---------- */
.contact { background: var(--accent); color: var(--bg); border-top: 0; }
.contact .label { color: var(--bg); opacity: .7; }
.contact__title {
  margin: 0; font-weight: 900; letter-spacing: -0.05em; line-height: .9;
  font-size: clamp(56px, 12vw, 168px);
}
.contact__lead { max-width: 520px; margin: 28px 0 48px; font-size: 19px; font-weight: 500; }
.contact__mail {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: clamp(22px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em;
  text-decoration: none; border-bottom: 3px solid var(--bg); padding-bottom: 6px;
  word-break: break-all;
}
.contact__mail span { transition: transform .2s; }
.contact__mail:hover span { transform: translateX(8px); }
.contact ::selection { background: var(--bg); color: var(--accent); }

/* ---------- Footer ---------- */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__copy { margin: 0; font-size: 14px; color: var(--muted); }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--fg); }

/* ---------- Rechtstexte ---------- */
.legal { padding: 160px 0 120px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.04em; line-height: 1; margin: 0 0 48px; font-weight: 900; }
.legal h2 { font-size: 22px; margin: 48px 0 12px; letter-spacing: -0.01em; }
.legal h3 { font-size: 17px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--fg); }
.legal a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal address { font-style: normal; color: var(--fg); }
.back { display: inline-flex; gap: 8px; margin-bottom: 40px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound__code { font-size: clamp(120px, 30vw, 320px); font-weight: 900; letter-spacing: -0.06em; line-height: .85; margin: 0; }
.notfound__code span { color: var(--accent); }
.notfound p { color: var(--muted); margin: 24px 0 36px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .files { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { padding-top: 32px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 96px 0; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 32px 24px 36px; }
  .files { grid-template-columns: 1fr; }
  .file { min-height: 0; }
  .file__stamp { font-size: 15px; }
  .hero { padding: 120px 0 110px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats { margin-top: 64px; }
  .stat__txt { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .file:hover .evidence__real, .file.is-open .evidence__real { opacity: .55; }
  .file:hover .evidence__clear, .file.is-open .evidence__clear { opacity: .85; }
}

/* ---------- Coming soon ---------- */
.soon { padding: 96px 0 0; }
.soon__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 64px; }
.soon__mark { width: 40px; height: 56px; margin-bottom: 40px; }
.soon__status {
  display: inline-flex; align-items: center; gap: 10px; margin: 44px 0 0;
  font-family: var(--mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2);
}
.soon__mail {
  align-self: flex-start; margin-top: 20px; font-weight: 700; font-size: 18px; text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 3px;
}
.soon__mail:hover { color: var(--accent); }
.soon__footer { border-top: 1px solid var(--line); padding: 28px 0; background: rgba(14, 13, 16, .6); }

/* ---------- Devlog ---------- */
.devlog h1 { margin-bottom: 20px; }
.devlog__lead { font-size: 19px; max-width: 560px; margin: 0 0 56px; }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list__item a { display: block; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-list__item time { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.post-list__item h2 { margin: 10px 0 10px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; color: var(--fg); transition: color .2s; }
.post-list__item p { margin: 0 0 14px; }
.post-list__more { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.post-list__item a:hover h2 { color: var(--accent); }
.post-list__leer { padding: 32px 0; border-top: 1px solid var(--line); }
.post h1 { font-size: clamp(34px, 6vw, 60px); margin: 0 0 40px; }
.post h2 { font-size: 24px; margin: 44px 0 12px; }
.post p, .post li { font-size: 18px; line-height: 1.7; }
.post ul { padding-left: 22px; }
.nav__menu a[aria-current="page"] { color: var(--fg); }
