/* =========================================================
   SP INDUSTRIES — Design System
   Pure black. Geometric sans. Hairline detail. No glow.
   ========================================================= */

:root {
  /* Colors — SPI: true black canvas, gold accent, deep-green signature. */
  --bg: #000000;
  --bg-alt: #000000;
  --panel: #000000;
  --fg: #f4f4f2;
  --muted: #9a9a95;
  --muted-dim: #63635e;
  /* gold accent (kept under --gold* names so existing references still resolve) */
  --gold: #c3a256;
  --gold-light: #dcc488;
  --gold-dim: #6f5f3a;
  /* signature accent (was green, now gold) */
  --green: var(--gold);
  --green-deep: var(--gold);
  --green-line: var(--gold);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --gold-tint: rgba(195, 162, 86, 0.07);
  --shadow: none;
  --shadow-lg: none;

  /* Typography — one refined, minimal sans used throughout */
  --font: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Jost", -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container-w: 1180px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: #000000;
}

html:has(body.theme-mono) {
  background: #000000;
}

body {
  background: #000000;
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
main { flex: 1; background: var(--bg); }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--fg);
  line-height: 1.1;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--fg);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--fg);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--fg);
}

p { color: var(--muted); font-weight: 400; }

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-1);
}

.section-title { text-align: center; margin-bottom: var(--space-2); color: var(--fg); }

.section-lede {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-5);
  color: var(--muted);
}

/* Thin gold rule with centered label */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-3) 0 var(--space-4);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: 44px;
  background: var(--gold);
}

.divider span {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid var(--line-strong);
  border-radius: 980px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
}

.brand-word {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg);
}

.brand-word-accent { color: var(--green-line); }

.brand-text { display: flex; flex-direction: column; }
.brand-sub {
  margin-top: 4px;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.335em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.main-nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.25s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--green-line);
  transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active { color: var(--fg); }

.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--fg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-6) 0;
  text-align: center;
  overflow: hidden;
  background: #000000 url("../img/hero.jpeg") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

/* Hero on dark image — light text */
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #ffffff; }
.hero-tagline { color: rgba(255, 255, 255, 0.9); }
.hero-founders { color: rgba(255, 255, 255, 0.55); }

/* Keep hero text readable over any part of the photo */
.hero .eyebrow,
.hero h1,
.hero-tagline,
.hero-founders { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55); }
.theme-mono .hero .eyebrow,
.theme-mono .hero h1,
.theme-mono .hero-tagline,
.theme-mono .hero-founders { text-shadow: none; }

.hero-logo {
  width: clamp(150px, 20vw, 200px);
  height: auto;
  margin: 0 auto var(--space-1);
  opacity: 1;
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
}

/* Hero CTAs on dark image */
.hero-cta { justify-content: center; margin-top: var(--space-4); }
.hero .btn {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}
.hero .btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--gold-dim);
}
.hero .btn-primary {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #0a0a0a;
}
.hero .btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--gold-dim);
}

/* Portfolio CTA — squared, letter-spaced (distinct from pill buttons) */
.portfolio-cta {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.portfolio-cta:hover {
  background: var(--green-line);
  border-color: var(--green-line);
  color: #0a0a0a;
}

/* Focus states (accessibility) */
a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 3px;
}
.hero .btn:focus-visible { outline-color: #ffffff; }

.hero-tagline {
  margin: var(--space-3) auto var(--space-2);
  font-size: 1.02rem;
  font-weight: 300;
  max-width: 540px;
}

.hero-founders {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* ---------- Sections ---------- */
section { padding: var(--space-5) 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Full-width green band header */
.dept-band {
  background: var(--green-deep);
  padding: var(--space-4) 1.75rem;
  text-align: center;
  margin-bottom: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dept-band span {
  color: #0a0a0a;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: var(--space-2); background: transparent; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: var(--space-4);
  box-shadow: var(--shadow);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  background: var(--panel);
  border-color: var(--line-strong);
}

.card h3 { margin-bottom: 0.7rem; color: var(--fg); }

.card .tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.25rem 0.65rem;
  margin-bottom: var(--space-2);
}

/* Venture cards (clickable) */
.venture-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.venture-card h3 {
  font-size: 1.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
}

.venture-link {
  margin-top: var(--space-4);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: letter-spacing 0.3s ease;
}

.venture-card:hover .venture-link { letter-spacing: 0.36em; }

/* Venture buttons (home) — two standalone gold-bordered choices */
.venture-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.venture-btn {
  flex: 1 1 260px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: var(--space-5) var(--space-4);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.venture-btn h3 {
  text-align: center;
  color: var(--fg);
  font-size: 1.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2);
}

.venture-btn p { margin: 0; }
.venture-btn.left p { text-align: left; }
.venture-btn.right p { text-align: right; }

.venture-btn:hover {
  background: var(--bg-alt);
  border-color: var(--gold);
}

/* APYX-Kachel: schwarze Box mit gestreiftem Wortmarken-Logo, füllt das Rechteck */
.venture-btn.apyx-tile {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-3);
}

.venture-btn.apyx-tile:hover {
  background: #000000;
  border-color: #ffffff;
}

.venture-btn.apyx-tile .apyx-logo {
  width: auto;
}

.venture-btn.apyx-tile .apyx-word {
  font-size: clamp(3.4rem, 13vw, 5.6rem);
}

.venture-btn.apyx-tile .apyx-sub {
  font-size: clamp(1.72rem, 6.6vw, 2.9rem);
  margin-top: 0.28em;
}

/* Peer-Ventures-Kachel: schwarze Box, goldenes Kreis-P + Wortmarke (perfekt scharf, echtes Schwarz) */
.venture-btn.pv-tile {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-3);
}

.venture-btn.pv-tile:hover {
  background: #000000;
  border-color: #ffffff;
}

.pv-logo {
  display: flex;
  align-items: center;
  gap: 0.55em;
  color: #c8a86b;
  user-select: none;
}

.pv-badge {
  flex: none;
  width: clamp(3.4rem, 12vw, 4.8rem);
  height: clamp(3.4rem, 12vw, 4.8rem);
  border: 2px solid #c8a86b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 7vw, 2.8rem);
  line-height: 1;
}

.pv-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.pv-word-main {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: clamp(2.3rem, 8.6vw, 3.5rem);
}

.pv-word-sub {
  margin-top: 0.42em;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: #7e6a43;
  font-size: clamp(0.94rem, 3.4vw, 1.34rem);
}

/* Founder cards */
.founder-card { text-align: center; display: flex; flex-direction: column; align-items: center; }

.founder-initial {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(3.4rem, 9vw, 5.2rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--gold);
  background: var(--gold-tint);
}

.founder-role {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.5rem;
}

.founder-behind {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.6rem;
}
.founder-behind strong { color: var(--fg); font-weight: 500; }

.founder-keywords {
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.03em;
  margin-top: var(--space-3);
  max-width: 320px;
}

.founder-email {
  display: inline-block;
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--gold-light);
  transition: color 0.25s ease;
  word-break: break-word;
}
.founder-email:hover { color: var(--fg); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats > div,
.stats > a {
  padding: var(--space-4) var(--space-2);
  border-left: 1px solid var(--line);
  transition: background 0.35s ease;
}
.stats > div:first-child,
.stats > a:first-child { border-left: none; }

.stats > a:hover { background: rgba(255, 255, 255, 0.015); }
.stats > a:hover .stat-num { color: var(--gold-light); }
.stat-num { transition: color 0.35s ease; }

.stat-num {
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 200;
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

/* ---------- Contact ---------- */
.contact-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: var(--space-5) var(--space-4);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.25rem;
  margin: var(--space-3) 0 var(--space-4);
  transition: color 0.25s ease, border-color 0.25s ease;
  word-break: break-all;
}

.contact-email:hover { color: var(--fg); border-color: var(--gold); }
.contact-box .contact-email:last-child { margin-bottom: 0; }

/* ---------- Legal pages ---------- */
.legal-content h2 { margin: var(--space-4) 0 var(--space-2); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p,
.legal-content li { margin-bottom: var(--space-2); }
.legal-content ul { padding-left: 1.3rem; list-style: disc; }
.legal-content .placeholder { color: var(--gold-light); font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  background: #000000;
  color: rgba(255, 255, 255, 0.74);
}

.footer-tight { margin-top: 0; }

.site-footer h4 { color: #ffffff; }
.site-footer .brand-word { color: #ffffff; }
.site-footer .brand-word-accent { color: var(--green-line); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: var(--space-4);
  align-items: start;
  padding-bottom: var(--space-4);
}

.footer-center { text-align: center; }
.footer-contact { text-align: right; }

.footer-brand p {
  margin-top: 0.7rem;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-center p {
  margin: 0.9rem auto 0;
  max-width: 300px;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links a,
.footer-legal a,
.footer-contact a {
  display: block;
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.3rem 0;
  transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--space-2) 0 var(--space-3);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Data table (management / admin style) ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.data-table thead th {
  text-align: left;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.data-table thead th.num,
.data-table tbody td.num { text-align: right; }

.data-table tbody td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 300;
  font-size: 0.9rem;
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr { transition: background 0.25s ease; }
.data-table tbody tr:hover { background: var(--gold-tint); }

.data-table td.name {
  color: var(--fg);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.data-table td.cat {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
}

.status.muted { color: var(--muted-dim); }

/* ---------- Portfolio accordion (SPI projects) ---------- */
.proj-acc {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.proj-acc-head,
.proj-acc-row {
  display: grid;
  grid-template-columns: 2fr 1.3fr 0.8fr 1fr 22px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
}

.proj-acc-head {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--line-strong);
}

.proj-acc-item { border-bottom: 1px solid var(--line); }
.proj-acc-item:last-child { border-bottom: none; }

.proj-acc-row {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  transition: background 0.25s ease;
}
.proj-acc-row:hover { background: var(--gold-tint); }

.pa-name { color: var(--fg); font-weight: 400; letter-spacing: 0.03em; }
.pa-cat {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.pa-since { font-weight: 300; font-size: 0.9rem; }

.pa-chevron {
  justify-self: end;
  width: 16px;
  height: 16px;
  color: var(--gold);
  transition: transform 0.35s ease;
}
.proj-acc-item.open .pa-chevron { transform: rotate(180deg); }

.proj-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}

.proj-acc-panel-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-2) var(--space-4) var(--space-4);
}

.proj-acc-panel .proj-hero-img {
  margin: 0;
  height: auto;
  display: block;
  background: none;
  border: none;
  border-radius: 4px;
  overflow: hidden;
}
.proj-acc-panel .proj-hero-img img { display: block; width: 100%; height: auto; }

.proj-acc-body .eyebrow { color: var(--gold); }
.proj-acc-body h3 {
  margin: var(--space-1) 0 0;
  color: var(--fg);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.proj-acc-body .proj-meta { margin-top: var(--space-2); }

@media (max-width: 720px) {
  .proj-acc-head { display: none; }
  .proj-acc-row {
    grid-template-columns: 1fr auto;
    gap: 0.28rem var(--space-2);
  }
  .pa-name { grid-column: 1; grid-row: 1; }
  .pa-cat { grid-column: 1; grid-row: 2; }
  .pa-since { grid-column: 1; grid-row: 3; }
  .pa-status { grid-column: 1; grid-row: 4; }
  .pa-chevron { grid-column: 2; grid-row: 1 / -1; align-self: center; }
  .proj-acc-panel-inner { grid-template-columns: 1fr; }
}

/* ---------- APYX striped wordmark logo ---------- */
.apyx-logo {
  --logo-stripe: 0.10em;   /* Dicke der weißen Linie — auf genau 5 Streifen abgestimmt */
  --logo-gap: 0.0667em;    /* schwarzer Abstand dazwischen */
  --logo-shift: 0.05em;    /* Raster so ausgerichtet, dass genau 5 saubere Streifen sichtbar sind */
  --logo-ls: 0.16em;       /* Buchstabenabstand in APYX */
  display: inline-block;
  line-height: 1;
  user-select: none;
}

.apyx-logo .apyx-word {
  display: block;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2.15rem, 5.8vw, 3.6rem);
  letter-spacing: var(--logo-ls);
  margin-right: calc(-1 * var(--logo-ls));
  background-image: repeating-linear-gradient(
    to bottom,
    #ffffff 0,
    #ffffff var(--logo-stripe),
    transparent var(--logo-stripe),
    transparent calc(var(--logo-stripe) + var(--logo-gap))
  );
  background-position: 0 var(--logo-shift);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.apyx-logo .apyx-sub {
  display: block;
  width: 100%;
  margin-top: 0.30em;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(1.12rem, 2.98vw, 1.86rem);
  text-transform: uppercase;
  text-align: center;
  text-align-last: center;
  color: #ffffff;
}

.hero .apyx-logo { margin: 0 auto var(--space-3); }

/* ---------- Portfolio cards (APYX) ---------- */
.proj-grid { max-width: 900px; margin: 0 auto; }

.proj-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.proj-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.proj-card-img {
  aspect-ratio: 16 / 10;
  max-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  overflow: hidden;
}
.proj-card-img img { width: 100%; height: 100%; object-fit: cover; }

.proj-card-body { padding: var(--space-3) var(--space-3) var(--space-4); }
.proj-card-name { font-size: 1.4rem; font-weight: 300; letter-spacing: 0.06em; margin-bottom: 0.55rem; color: var(--fg); }
.proj-card-field { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Project detail page (APYX) ---------- */
.proj-back { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); transition: color 0.3s ease; }
.proj-back:hover { color: var(--fg); }
.proj-back-arrow { font-size: 1rem; line-height: 1; transition: transform 0.3s ease; }
.proj-back:hover .proj-back-arrow { transform: translateX(-4px); }

.proj-hero-img {
  width: 100%;
  height: clamp(240px, 46vh, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-3) 0 var(--space-4);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  overflow: hidden;
}
.proj-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.proj-detail-text {
  max-width: 640px;
  margin-top: var(--space-2);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
}

.proj-meta {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: var(--space-2);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.proj-meta strong { color: var(--fg); font-weight: 400; margin-left: 0.4em; }

.proj-link {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.proj-link:hover { color: var(--gold); }

/* ---------- Founder shown directly (APYX) ---------- */
.founder-solo { max-width: 560px; margin: 0 auto; text-align: center; }
.founder-solo p { margin-top: var(--space-2); }

/* ---------- Founder modal (unused; profiles shown inline) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(5px);
}

.modal.open { display: flex; }

.modal-inner {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease;
}

.modal-close:hover { color: var(--gold-light); }

.modal-photo {
  width: 158px;
  height: 158px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-3);
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: var(--space-3); }
  .footer-contact { text-align: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats > div,
  .stats > a { border-left: none; border-top: 1px solid var(--line); }
  .stats > div:first-child,
  .stats > a:first-child { border-top: none; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-2) 1.75rem var(--space-3);
    display: none;
  }

  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 0.75rem 0; }
  .nav-toggle { display: flex; }
}

/* =========================================================
   APYX Enterprises — original black / silver theme
   Restores the pre-emerald design (pure black, silver accent).
   ========================================================= */
.theme-mono {
  background: #000000;
  --bg: #000000;
  --bg-alt: #000000;
  --panel: #000000;
  --fg: #ededea;
  --muted: #8f8f8a;
  --muted-dim: #595954;
  --gold: #b9bdc6;
  --gold-light: #dde0e6;
  --gold-dim: #6c6f76;
  --line: rgba(185, 189, 198, 0.38);
  --line-strong: rgba(185, 189, 198, 0.62);
  --gold-tint: rgba(185, 189, 198, 0.05);
}

/* Header on black */
.theme-mono .site-header { background: rgba(0, 0, 0, 0.72); }
.theme-mono .brand-logo,
.theme-mono .hero-logo { filter: grayscale(1) brightness(1.12) contrast(1.02); }
.theme-mono .brand-word-accent { color: var(--fg); }
.theme-mono .main-nav a::after { background: var(--gold); }

/* Centered wordmark nav — links split left/right around the brand */
.theme-mono .header-inner { position: relative; }
.theme-mono .main-nav { flex: 1; }
.theme-mono .main-nav a:nth-child(3) { margin-left: auto; }
.theme-mono .brand-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  gap: 0;
  z-index: 2;
}
.theme-mono .brand-center .brand-word { letter-spacing: 0.3em; }

@media (max-width: 720px) {
  .theme-mono .brand-center { position: static; transform: none; }
  .theme-mono .brand-center .brand-word { letter-spacing: 0.24em; }
  .theme-mono .main-nav a:nth-child(3) { margin-left: 0; }
}

/* Hero — flat black, no landscape image */
.theme-mono .hero { background: var(--bg); }
.theme-mono .hero::before { display: none; }
.theme-mono .hero h1 { color: var(--fg); }
.theme-mono .hero-tagline { color: var(--muted); }
.theme-mono .hero .eyebrow,
.theme-mono .hero-founders { color: var(--gold); }
.theme-mono .hero .btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.theme-mono .hero .btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg);
}
.theme-mono .hero .btn:focus-visible { outline-color: var(--gold-light); }

/* Footer on black */
.theme-mono .site-footer { background: var(--bg-alt); }
.theme-mono .site-footer h4,
.theme-mono .site-footer .brand-word { color: var(--fg); }
.theme-mono .site-footer .brand-word-accent { color: var(--fg); }
.theme-mono .footer-brand p,
.theme-mono .footer-center p,
.theme-mono .footer-links a,
.theme-mono .footer-legal a,
.theme-mono .footer-contact a { color: var(--muted); }
.theme-mono .footer-links a:hover,
.theme-mono .footer-legal a:hover,
.theme-mono .footer-contact a:hover { color: var(--gold-light); }
.theme-mono .footer-bottom { border-top-color: var(--line); }
.theme-mono .footer-bottom p { color: var(--muted-dim); }

/* =========================================================
   APYX — home redesign: layered hero, spec strip, index
   ========================================================= */

.theme-mono .hero { min-height: auto; display: block; padding: var(--space-4) 0; }
.theme-mono .hero .container { width: 100%; }

/* Tighter rhythm — less empty space, fewer lines (APYX) */
.theme-mono section { padding: var(--space-4) 0; }
.theme-mono .site-footer { margin-top: var(--space-4); }

/* Home hero — oversized wordmark */
.theme-mono .home-hero { padding: var(--space-3) 0 var(--space-4); }
.theme-mono .home-hero .apyx-eyebrow {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.theme-mono .home-hero .apyx-logo { margin-bottom: var(--space-3); }
.theme-mono .home-hero .apyx-logo .apyx-word { font-size: clamp(4rem, 15vw, 9rem); }
.theme-mono .home-hero .apyx-logo .apyx-sub { font-size: clamp(2.05rem, 7.65vw, 4.6rem); }
.theme-mono .home-hero h1 {
  color: var(--fg);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 640px;
  margin: 0 auto var(--space-2);
}
.theme-mono .home-hero .hero-cta { margin-top: var(--space-3); }
.theme-mono .home-hero .hero-cta .btn {
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
  padding: 0.85rem 2.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.theme-mono .home-hero .hero-cta .btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Portfolio gallery — image-forward work */
.apyx-work { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-4); max-width: 1060px; margin: 0 auto; }
.apyx-work-card { display: block; text-decoration: none; color: inherit; }
.apyx-work-figure { position: relative; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.apyx-work-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apyx-work-figure::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); pointer-events: none; }
.apyx-work-num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1;
  color: #111;
  padding: 0.35rem 0.6rem;
}
.apyx-work-meta {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
}
.apyx-work-name { display: block; font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 300; letter-spacing: 0.01em; color: var(--fg); white-space: nowrap; transition: color 0.25s ease; }
.apyx-work-card:hover .apyx-work-name { color: var(--gold-light); }
.apyx-work-field { display: block; margin-top: 0.45rem; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* Contact card */
.apyx-contact-card { max-width: 560px; margin: 0 auto; border: 1px solid var(--line); background: var(--gold-tint); padding: var(--space-4) var(--space-5); }
.apyx-contact-row { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.apyx-contact-row:first-child { padding-top: 0; }
.apyx-contact-row:last-child { padding-bottom: 0; border-bottom: none; }
.apyx-contact-label { display: block; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.apyx-contact-row a,
.apyx-contact-value { display: inline-block; font-size: clamp(1.1rem, 2.8vw, 1.5rem); font-weight: 300; letter-spacing: 0.01em; color: var(--fg); text-decoration: none; word-break: break-word; }
.apyx-contact-row a { transition: color 0.25s ease; }
.apyx-contact-row a:hover { color: var(--gold-light); }
.apyx-contact-note { margin: var(--space-3) auto 0; max-width: 560px; text-align: center; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dim); }

/* Editorial founder — initial left, text right */
.apyx-founder {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: var(--space-4);
  align-items: start;
  text-align: left;
}
.apyx-founder .founder-initial { max-width: 190px; margin: 0; }
.apyx-founder .founder-role { margin-top: 0; }
.apyx-founder h3 { margin: 0.4rem 0 0.2rem; }
.apyx-founder p { margin: var(--space-2) 0 0; color: var(--muted); font-weight: 300; }

/* Project detail — refined intro + next link */
.proj-next {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
}
.proj-next a {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.proj-next a:hover { color: var(--gold-light); }
.proj-next strong { color: var(--fg); font-weight: 400; margin-left: 0.5em; }
.proj-next svg { transition: transform 0.3s ease; }
.proj-next a:hover svg { transform: translateX(5px); }

@media (max-width: 720px) {
  .apyx-work { grid-template-columns: 1fr; gap: var(--space-4); }
  .apyx-founder { grid-template-columns: 1fr; gap: var(--space-3); text-align: center; justify-items: center; }
  .apyx-founder .founder-initial { margin: 0 auto; }
  .apyx-founder p { text-align: center; }
}
