/* Soundwork Engineering – Stylesheet */

@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders";
  src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --stage: #100e24;      /* Saal bei Nacht */
  --panel: #1b1840;      /* Pultoberfläche */
  --line: #34306a;
  --ink: #f1eef8;
  --mute: #a9a5c8;
  --violet: #8f72ff;     /* LED-Licht */
  --red: #ff3d57;        /* phaeno-Rot, Peak */

  --display: "Big Shoulders", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --bar-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }

body {
  margin: 0;
  background: var(--stage);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--stage); padding: 10px 14px;
}
.skip:focus { top: 8px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: .95;
  letter-spacing: .005em;
  margin: 0 0 .5em;
}
.section-lead { color: var(--mute); max-width: 52ch; }

/* ---------- Kopfleiste ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
  background: linear-gradient(var(--stage), rgb(16 14 36 / 0));
  transition: background-color .3s;
}
/* kein backdrop-filter: er würde das fixierte Mobilmenü auf die Leistenhöhe begrenzen */
.bar.is-solid { background: rgb(16 14 36 / .97); border-bottom: 1px solid var(--line); }
.bar__logo { transition: opacity .35s, transform .35s; }
.bar__logo img { width: 220px; filter: drop-shadow(0 0 10px rgb(143 114 255 / .45)); }
/* Auf der Startseite erscheint das Leistenlogo erst, wenn das große Logo weggescrollt ist */
.has-hero .bar:not(.is-solid) .bar__logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: .95rem;
  padding-block: 6px; border-bottom: 2px solid transparent;
}
.nav a:hover { border-color: var(--violet); }
.nav .nav__cta { padding: 8px 18px; border: 1px solid var(--ink); border-radius: 999px; }
.nav .nav__cta:hover { background: var(--ink); color: var(--stage); }

.bar__toggle { display: none; }

@media (max-width: 760px) {
  .bar__logo img { width: 156px; }
  .bar__toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--ink); cursor: pointer;
    position: relative; z-index: 2;
  }
  .bar__toggle-lines,
  .bar__toggle-lines::before,
  .bar__toggle-lines::after {
    display: block; width: 24px; height: 2px; background: currentColor;
    transition: transform .25s, opacity .25s;
  }
  .bar__toggle-lines { position: relative; }
  .bar__toggle-lines::before, .bar__toggle-lines::after { content: ""; position: absolute; left: 0; }
  .bar__toggle-lines::before { top: -7px; }
  .bar__toggle-lines::after { top: 7px; }
  .bar__toggle[aria-expanded="true"] .bar__toggle-lines { background: transparent; }
  .bar__toggle[aria-expanded="true"] .bar__toggle-lines::before { transform: translateY(7px) rotate(45deg); }
  .bar__toggle[aria-expanded="true"] .bar__toggle-lines::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 8px;
    background: var(--stage);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a { font-family: var(--display); font-weight: 900; font-size: 2.75rem; }
  .nav .nav__cta { margin-top: 16px; font-size: 2rem; padding: 6px 28px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--bar-h) + 40px) var(--gutter) clamp(40px, 8vh, 96px);
  isolation: isolate;
  overflow: hidden; /* hält das Verfolger-Licht im Bild */
}
.hero picture, .hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
}
.hero__img { object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgb(16 14 36 / .6), transparent 38%),   /* ruhiger Grund fürs Logo oben */
    linear-gradient(to top, var(--stage) 0%, rgb(16 14 36 / .78) 35%, rgb(16 14 36 / .28) 75%),
    linear-gradient(to right, rgb(16 14 36 / .7), transparent 60%);
}
.hero__text { max-width: 780px; }
/* Waveform im unteren Fünftel: Canvas, main.js zeichnet ein zufällig erzeugtes,
   endlos nach links laufendes Audiosignal (Peak außen, RMS innen) */
.wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 20%;
  z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.wave__canvas { display: block; width: 100%; height: 100%; opacity: .75; }
/* großes Logo oben mittig im Hero */
.logo3d.logo3d--hero {
  position: relative; z-index: 1;
  width: min(860px, 86%);
  margin: clamp(0px, 2vh, 24px) auto 0;
}
@media (max-width: 760px) {
  .logo3d.logo3d--hero { width: 94%; margin-top: 4vh; }
  /* Handy: kein animierter Chrom, das Logo bleibt schlicht weiß */
  .logo3d__chrome { display: none; }
}
/* Logo in Chrom: Grundform mit Prägung, darüber eine Metallschicht in Logoform */
.logo3d {
  width: min(560px, 88%);
  margin: 0 0 clamp(20px, 3vw, 36px) -1%;
}
.logo3d__in {
  position: relative;
  animation: logo-in 1.2s cubic-bezier(.2, .7, .2, 1) .15s both;
}
.logo3d img {
  width: 100%;
  /* gestapelte Schatten = Prägung in Stahltönen, dazu dezentes Leuchten */
  filter:
    drop-shadow(0 1px 0 #eef0f6)
    drop-shadow(0 1px 0 #a7abba)
    drop-shadow(0 1px 0 #6c7083)
    drop-shadow(0 2px 0 #2e303c)
    drop-shadow(7px 9px 6px rgb(0 0 0 / .85))   /* Schlagschatten unten rechts */
    drop-shadow(0 14px 18px rgb(0 0 0 / .65))
    drop-shadow(0 0 6px rgb(143 114 255 / .2))
    drop-shadow(0 0 1px rgb(150 205 255 / .55))    /* bläulicher Glow: scharfe Lichtkante … */
    drop-shadow(0 0 3px rgb(90 170 255 / .35));    /* … mit engem Schein */
}
/* Chromschicht: diagonale Spiegelbänder mit harten Hell-Dunkel-Kanten plus
   Glanzlicht; beides wandert langsam, als würde die Lichtquelle kreisen */
.logo3d__chrome {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(closest-side, rgb(255 255 255 / 1), rgb(255 255 255 / .5) 40%, rgb(255 255 255 / 0)),
    repeating-linear-gradient(120deg,
      #ffffff 0%, #e6e9f0 6%, #8a90a5 13%, #14151e 17.5%, #6d7286 19.5%,
      #f4f5f9 24%, #ffffff 27%, #b4b9c8 33%, #ffffff 39%, #ffffff 42%);
  background-repeat: no-repeat;
  background-size: 34% 190%, 200% 100%;
  background-position: -40% 20%, 0% 0;
  -webkit-mask: url("../img/logo.webp") center / 100% 100% no-repeat;
  mask: url("../img/logo.webp") center / 100% 100% no-repeat;
  animation: chrome-light 45s ease-in-out 1s infinite alternate;
}
@keyframes logo-in {
  from { opacity: 0; transform: translateY(24px) scale(.96); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes chrome-light {
  0%   { background-position: -40% 15%, 0% 0; }
  35%  { background-position: 45% 70%, 35% 0; }
  65%  { background-position: 85% 25%, 65% 0; }
  100% { background-position: 140% 60%, 100% 0; }
}
.hero__name {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: .9; letter-spacing: -.005em; text-transform: uppercase;
  margin: 0 0 .4em;
}
.hero__alias {
  display: block; margin-top: .15em;
  font-weight: 700; font-size: .55em; letter-spacing: .01em;
  text-transform: none; color: var(--violet);
}
.hero__lead { font-size: clamp(1.125rem, 2vw, 1.375rem); max-width: 36ch; margin-bottom: 1.5em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .2s, color .2s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #ff5c72; }
.btn--ghost { border-color: rgb(241 238 248 / .5); background: rgb(16 14 36 / .7); }
.btn--ghost:hover { background: var(--ink); color: var(--stage); }

/* Glitzernebel: Canvas über dem Foto, gezeichnet in main.js */
.mist {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%;
  mix-blend-mode: screen;
  opacity: .55; /* Gesamtstärke des Nebels */
}
.hero__text { position: relative; z-index: 1; }/* ---------- Über mich ---------- */
.about {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(72px, 12vw, 160px);
}
.about__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; border-radius: 4px; }
.about__body p { max-width: 60ch; }
/* gleiches Namens-Layout wie im Hero, nur kleiner */
.about__name { text-transform: uppercase; line-height: .9; margin-bottom: .6em; }
.quote { margin: 2em 0 0; padding-left: 20px; border-left: 3px solid var(--red); }
.quote p { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.05; margin: 0 0 .3em; }
.quote cite { color: var(--mute); font-style: normal; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about__portrait img { aspect-ratio: 4 / 3; object-position: 50% 25%; }
}

/* ---------- Leistungen als Kanalzüge ---------- */
.services { background: var(--panel); padding-block: clamp(72px, 10vw, 140px); }
.channels {
  margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--line);
}
.channel {
  padding: 28px 24px 32px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.channel dt {
  font-family: var(--display); font-weight: 700;
  font-size: 1.75rem; line-height: 1.05; margin-bottom: .4em;
}
.channel dd { margin: 0; color: var(--mute); max-width: 34ch; }
/* Fader-Kappe als Akzent links oben */
.channel::before {
  content: ""; display: block; width: 28px; height: 6px; margin-bottom: 18px;
  background: var(--violet); border-radius: 1px;
}
.channel:nth-child(2)::before { background: var(--red); }

/* ---------- Kunden ---------- */
.clients { padding-block: clamp(72px, 10vw, 140px); }
.clients__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .1em .9em;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem); line-height: 1.15;
}
.clients__list li { color: var(--ink); }
.clients__list li:nth-child(odd) { color: var(--mute); }
.clients__more { color: var(--mute); margin-top: 1em; }

/* ---------- Projekte ---------- */
.work { padding-bottom: clamp(72px, 10vw, 140px); position: relative; isolation: isolate; overflow: hidden; }
.work .mist { z-index: 2; opacity: .45; }   /* Glitzernebel über den Kacheln, Klicks gehen durch */
.gallery {
  list-style: none; margin: 32px 0 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px;
  grid-auto-flow: dense; gap: 8px;
  max-width: 1600px; margin-inline: auto;
}
.gallery__item--wide { grid-column: span 2; }
.gallery a {
  display: block; height: 100%; overflow: hidden; border-radius: 3px; background: var(--panel);
  position: relative;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
/* Mouseover: Kachel hebt sich, violetter Rahmen und Leuchten */
.gallery a:hover, .gallery a:focus-visible {
  transform: scale(1.03); z-index: 1;
  box-shadow: 0 0 0 2px var(--violet), 0 12px 36px rgb(143 114 255 / .45);
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  /* langsamer Zoom, versetzt pro Kachel, damit sich nicht alle gleichzeitig bewegen */
  animation: tile-zoom 14s ease-in-out infinite alternate;
  transition: filter .3s;
}
.gallery__item:nth-child(3n+2) img { animation-duration: 17s; animation-delay: -6s; }
.gallery__item:nth-child(3n+3) img { animation-duration: 20s; animation-delay: -11s; }
.gallery__item:nth-child(2n) img { transform-origin: 30% 40%; }
.gallery__item:nth-child(2n+1) img { transform-origin: 70% 60%; }
.gallery a:hover img { filter: brightness(1.25) saturate(1.2); }
@keyframes tile-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; gap: 6px; }
}

/* ---------- Equipment ---------- */
.gear { background: var(--panel); padding-block: clamp(72px, 10vw, 140px); }
.gear__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); }
.gear__intro p { color: var(--mute); max-width: 42ch; }
.gear__intro img { margin-top: 32px; border-radius: 3px; }
.gear__specs h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  margin: 0 0 .4em; color: var(--violet);
}
.gear__specs h3:not(:first-child) { margin-top: 1.6em; }
.gear__specs ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.gear__specs li {
  display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 4px 24px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.gear__specs li span { color: var(--mute); }
/* Unterpunkte innerhalb eines Eintrags, in der Beschreibungsspalte */
.gear__specs .gear__sub { border-top: 0; color: var(--mute); }
.gear__specs .gear__sub li { display: block; padding: 0; border-bottom: 0; }
.gear__specs .gear__sub li + li { margin-top: 4px; }
@media (max-width: 860px) {
  .gear__grid { grid-template-columns: 1fr; }
  .gear__intro img { display: none; }
  .gear__specs li { grid-template-columns: 1fr; }
}

/* ---------- Kontakt ---------- */
.contact { position: relative; isolation: isolate; padding-block: clamp(96px, 14vw, 200px); overflow: hidden; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, var(--stage) 0%, rgb(16 14 36 / .82) 30%, rgb(16 14 36 / .82) 70%, var(--stage) 100%);
}
/* Namens-Layout wie im Hero, in Abschnittsgröße */
.contact__name {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  line-height: .9; text-transform: uppercase;
  margin: clamp(44px, 5vw, 64px) 0 .5em; /* Abstand zur Überschrift „Kontakt“ */
}
/* Logo im Kontakt: gleicher Chrom-Effekt; main.js startet den Auftritt erst beim Hineinscrollen */
.logo3d--contact { margin-top: clamp(64px, 7vw, 104px); margin-bottom: clamp(40px, 5vw, 72px); }
.logo3d--contact + .contact__name { margin-top: 0; }
/* Kontakt komplett mittig */
.contact__inner { text-align: center; position: relative; z-index: 1; }
.contact .mist { opacity: .3; }   /* Glitzernebel im Kontakt dezenter als im Hero (.55) */
.logo3d--contact { margin-inline: auto; }
/* Kontakt-Logo ohne Glow: nur Prägung und Schatten */
.logo3d--contact img {
  filter:
    drop-shadow(0 1px 0 #eef0f6)
    drop-shadow(0 1px 0 #a7abba)
    drop-shadow(0 1px 0 #6c7083)
    drop-shadow(0 2px 0 #2e303c)
    drop-shadow(7px 9px 6px rgb(0 0 0 / .85))
    drop-shadow(0 14px 18px rgb(0 0 0 / .65));
}
.contact__inner .contact__ways { align-items: center; }
.contact__inner .social { justify-content: center; }
.contact__ways { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 32px; }
.contact__big {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 4.4vw, 3.25rem); line-height: 1.15;
  text-decoration: none; border-bottom: 3px solid var(--red);
  overflow-wrap: anywhere;
}
.contact__big:hover { color: var(--red); }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
  transition: color .2s;
}
.social svg { width: 22px; height: 22px; flex: none; }
.social__cut { fill: var(--stage); }   /* ausgesparte Buchstaben in den gefüllten Icons */
.social a:hover { color: var(--violet); }

/* ---------- Fußzeile ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 32px; border-top: 1px solid var(--line);
  color: var(--mute); font-size: .9rem;
}
.foot p { margin: 0; }
.foot a { margin-left: 20px; }
.foot a:first-child { margin-left: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgb(10 9 24 / .96); color: var(--ink);
}
.lightbox::backdrop { background: rgb(10 9 24 / .9); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; padding: 56px 16px; }
.lightbox img { max-width: min(100%, 1600px); max-height: calc(100dvh - 140px); object-fit: contain; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px;
  background: rgb(27 24 64 / .8); color: var(--ink); border: 1px solid var(--line); border-radius: 50%;
  font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.lightbox__btn:hover { background: var(--violet); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 12px; top: 50%; translate: 0 -50%; }

/* ---------- Rechtstexte ---------- */
.legal { padding: calc(var(--bar-h) + 48px) 0 96px; }
.legal h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.75rem, 7vw, 5rem); line-height: .95; margin: 0 0 .6em; }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 1.75rem; margin: 1.8em 0 .4em; }
.legal p, .legal li { max-width: 70ch; color: #d6d2ea; }
.legal .note { border-left: 3px solid var(--red); padding: 8px 16px; background: var(--panel); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
