/* ==========================================================================
   Infrasonic GmbH — Design tokens & base
   ========================================================================== */

/* Fonts are served from this site (no requests to Google). See assets/fonts/LICENSE.txt */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/big-shoulders-display-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand core (matches existing Infrasonic + official Funktion-One purple) */
  --purple: #33294a;
  --purple-light: #685c85;
  --purple-pale: #b9b0d1;

  /* Grounds — hue-biased neutrals, never pure black/white */
  --ink: #0e0c14;
  --ink-raised: #17131f;
  --paper: #f3f1f6;
  --paper-dim: #e7e3ee;

  /* Warm accent — stage-light copper, used sparingly */
  --amber: #d89355;
  --amber-bright: #e8ac72;
  --amber-deep: #a35a22; /* amber for small text on light grounds (AA contrast) */

  /* Text */
  --text-on-dark: #ede9f2;
  --text-muted-dark: #9c93b0;
  --text-on-light: #1c1826;
  --text-muted-light: #5f5772;

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Rhythm */
  --edge: clamp(1.25rem, 4vw, 4rem);
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: 78rem;
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

/* ---- Type scale ---------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.75rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

p {
  max-width: 42rem;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ---- Buttons --------------------------------------------------------- */

.btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 1em 1.6em;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  cursor: pointer;
  background: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn svg { width: 1em; height: 1em; flex: none; }

.btn:hover { transform: translateY(-1px); }
/* Keyboard focus: purple on light grounds, amber on dark grounds */
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.site-header :focus-visible,
.site-footer :focus-visible,
.section--dark :focus-visible,
.hero :focus-visible,
.cta :focus-visible,
.page-hero :focus-visible { outline-color: var(--amber-bright); }

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.btn--amber:hover { background: var(--amber-bright); border-color: var(--amber-bright); }

.btn--ghost-dark {
  color: var(--text-on-dark);
  border-color: var(--purple-light);
}
.btn--ghost-dark:hover { background: var(--ink-raised); }

.btn--ghost-light {
  color: var(--text-on-light);
  border-color: var(--purple-light);
}
.btn--ghost-light:hover { background: var(--paper-dim); }

/* ---- Header ------------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--edge);
  background: rgba(14, 12, 20, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(154, 143, 176, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-on-dark);
}

.brand img { width: 2rem; height: 2rem; }

.brand-word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.9rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted-dark);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text-on-dark);
  border-color: var(--amber);
}

.lang-switch {
  display: flex;
  gap: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.lang-switch a {
  text-decoration: none;
  color: var(--text-muted-dark);
  padding: 0.7rem 0.6rem; /* comfortable tap target */
}
.lang-switch a[aria-current="true"] { color: var(--amber-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--purple-light);
  color: var(--text-on-dark);
  padding: 0.5rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    /* absolute, not fixed: the header's backdrop-filter turns it into the
       containing block for fixed descendants, which collapsed the old menu */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
    background: var(--ink);
    border-bottom: 1px solid rgba(154, 143, 176, 0.18);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--edge) 2rem;
    gap: 1.5rem;
    /* hidden menus must not be reachable with the Tab key */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.75rem);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .main-nav ul { flex-direction: column; gap: 0.4rem; }
  .main-nav ul a { font-size: 1.1rem; display: inline-block; padding: 0.55rem 0; }
}

/* ---- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: grayscale(1) contrast(1.08);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,12,20,0.35) 0%, rgba(14,12,20,0.55) 45%, rgba(14,12,20,0.96) 100%),
    linear-gradient(100deg, rgba(51,41,74,0.55) 0%, rgba(14,12,20,0.1) 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--edge) 5.5rem;
  width: 100%;
  color: var(--text-on-dark);
}

.hero-content .eyebrow {
  color: var(--amber-bright);
  margin-bottom: 1.4rem;
}

.hero-content h1 {
  max-width: 20ch;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--amber-bright);
}

.hero-sub {
  margin-top: 1.6rem;
  max-width: 34rem;
  color: var(--text-muted-dark);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  right: var(--edge);
  bottom: 2rem;
  z-index: 2;
  color: var(--text-muted-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  writing-mode: vertical-rl;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 3rem;
  background: linear-gradient(var(--text-muted-dark), transparent);
}

/* ---- Generic sections ------------------------------------------------ */

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  border-top: 1px solid rgba(154, 143, 176, 0.18);
}

.section--dark {
  background: var(--ink);
  color: var(--text-on-dark);
}
.section--dark .eyebrow { color: var(--amber-bright); }
.section--dark p { color: var(--text-muted-dark); }

.section--light {
  background: var(--paper);
  color: var(--text-on-light);
}
.section--light .eyebrow { color: var(--purple); }
.section--light p { color: var(--text-muted-light); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.section-head h2 { max-width: 16ch; }

/* ---- About / two-column -------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.split figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.split figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
}

.stat-row {
  display: flex;
  gap: clamp(2rem, 6vw, 4.5rem);
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat {
  /* markup order is term, then value (valid <dl>); show the number first */
  display: flex;
  flex-direction: column-reverse;
}

.stat dd {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--amber-deep);
  margin: 0;
  line-height: 1;
}

.stat dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-top: 0.5rem;
}

/* ---- Partner strip ---------------------------------------------------- */

.partner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.partner-mark {
  background: var(--paper-dim);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-mark img { max-width: 16rem; }

@media (max-width: 780px) {
  .partner { grid-template-columns: 1fr; }
  .partner-mark { order: -1; }
}

/* ---- Services --------------------------------------------------------- */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(154, 143, 176, 0.25);
}

.service-list li {
  display: grid;
  grid-template-columns: 5rem 1fr 2fr;
  gap: 2rem;
  align-items: baseline;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(154, 143, 176, 0.25);
}

.service-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber-deep);
}

.service-list h3 { text-transform: none; }

.service-list p { color: var(--text-muted-light); font-size: 0.98rem; }

@media (max-width: 720px) {
  .service-list li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ---- CTA band --------------------------------------------------------- */

.cta {
  background: var(--purple);
  color: var(--text-on-dark);
  text-align: center;
  padding: clamp(4.5rem, 10vw, 8rem) var(--edge);
}

.cta .eyebrow { justify-content: center; color: var(--amber-bright); }
.cta h2 { max-width: 22ch; margin: 1.2rem auto 0; }
.cta p { margin: 1.6rem auto 0; color: var(--purple-pale); text-align: center; }
.cta .btn { margin-top: 2.4rem; }

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: var(--text-muted-dark);
  padding: 3rem var(--edge) 2.2rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(154, 143, 176, 0.18);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-on-dark);
  text-transform: uppercase;
}

.social-row {
  display: flex;
  gap: 1.1rem;
}

.social-row a {
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid rgba(154, 143, 176, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted-dark);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.social-row a:hover { color: var(--amber-bright); border-color: var(--amber-bright); }
.social-row svg { width: 1.05rem; height: 1.05rem; }

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.footer-meta a { text-decoration: none; }
.footer-meta a:hover { color: var(--text-on-dark); }

/* ---- Contact page ------------------------------------------------------ */

.page-hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: clamp(8.5rem, 16vw, 11rem) var(--edge) clamp(3.5rem, 7vw, 5rem);
  border-bottom: 1px solid rgba(154, 143, 176, 0.18);
}

.page-hero .eyebrow { color: var(--amber-bright); margin-bottom: 1.2rem; }
.page-hero p { margin-top: 1.2rem; color: var(--text-muted-dark); font-size: 1.05rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* grid children may shrink below their content width (fixes mobile overflow) */
.contact-layout > * { min-width: 0; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Honeypot: invisible to people, still present in the DOM for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-info dl {
  margin: 2rem 0 0;
}

.contact-info .info-block {
  padding: 1.4rem 0;
  border-top: 1px solid var(--paper-dim);
}

.contact-info dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted-light);
}

.contact-info dd {
  margin: 0.4rem 0 0;
  font-size: 1.1rem;
}

.contact-info dd a { text-decoration: none; }
.contact-info dd a:hover { color: var(--purple); }

.contact-info dd a.text-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--purple-light);
  font-size: 0.95rem;
}
.contact-info dd br + a.text-link { display: inline-block; margin-top: 0.4rem; }
.contact-info .link-row { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; }

.checklist {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--paper-dim);
}
.checklist ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted-light);
  font-size: 0.95rem;
}
.checklist li { margin: 0.35rem 0; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted-light);
}

.field label .req { color: var(--amber-deep); }

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1px solid var(--purple-light);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-on-light);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}

.field textarea { resize: vertical; min-height: 8rem; }

.form-foot {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted-light);
  max-width: 24rem;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.9em 1.1em;
  border-radius: var(--radius);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e4f2e6; color: #235c2c; }
.form-status.is-error { background: #f6e3e0; color: #7a2a1f; }

/* ---- References -------------------------------------------------------- */

.featured-ref {
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.featured-ref .eyebrow { color: var(--amber-bright); }
.featured-ref h2 { text-transform: none; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 0.6rem; }
.featured-ref p { color: var(--text-muted-dark); margin-top: 1rem; }

.featured-ref dl {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(154, 143, 176, 0.3);
}

.featured-ref dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}

.featured-ref dd {
  margin: 0.3rem 0 0;
  font-size: 1.05rem;
}

@media (max-width: 780px) {
  .featured-ref { grid-template-columns: 1fr; }
  .featured-ref dl { border-left: none; padding-left: 0; border-top: 1px solid rgba(154, 143, 176, 0.3); padding-top: 1.2rem; }
}

.ref-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

@media (max-width: 900px) {
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ref-grid { grid-template-columns: 1fr; }
}

.ref-card {
  background: #fff;
  border: 1px solid var(--paper-dim);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.ref-card .eyebrow { color: var(--purple); font-size: 0.7rem; }
.ref-card h2 { text-transform: none; font-size: 1.15rem; margin-top: 0.7rem; }
.ref-card p { margin-top: 0.6rem; font-size: 0.92rem; color: var(--text-muted-light); }

.ref-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--paper-dim);
}

.featured-ref .ref-mark {
  width: 3.5rem;
  height: 3.5rem;
  border-color: rgba(154, 143, 176, 0.35);
  margin-bottom: 1rem;
}

.ref-card a.ref-link,
.featured-ref a.ref-link {
  margin-top: 0.9rem;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px solid var(--purple-light);
}
.ref-card a.ref-link:hover { color: var(--amber-deep); border-color: var(--amber-deep); }

/* inside the dark featured card the link uses the light palette */
.featured-ref a.ref-link { color: var(--amber-bright); border-color: rgba(232, 172, 114, 0.5); }
.featured-ref a.ref-link:hover { color: var(--text-on-dark); border-color: var(--text-on-dark); }

/* ---- Logo strip (partners / collaborator marks) ------------------------ */

.logo-strip {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-strip a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border: 1px solid var(--paper-dim);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-on-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  transition: border-color 0.2s ease;
}
.logo-strip a:hover { border-color: var(--purple); }

.logo-strip img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%; /* Instagram profile pictures are round */
  object-fit: cover;
}

.logo-strip--dark img { border-radius: 0.45rem; } /* partner logos: rounded squares */

.logo-strip--dark a { color: var(--text-on-dark); border-color: rgba(154, 143, 176, 0.3); }
.logo-strip--dark a:hover { border-color: var(--amber-bright); }

.partner-network {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(154, 143, 176, 0.25);
}

/* ---- Coming-soon panel (Impressionen) ---------------------------------- */

.coming-soon {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
}

.coming-soon .eyebrow { justify-content: center; }
.coming-soon h2 { margin-top: 1.2rem; }
.coming-soon p { margin: 1.2rem auto 0; text-align: center; }
.coming-soon .btn { margin-top: 2rem; }

.tag-row {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.55em 1em;
  border: 1px solid var(--paper-dim);
  border-radius: var(--radius);
  color: var(--text-muted-light);
}

/* ---- Legal pages (Impressum, Datenschutz) ----------------------------- */

.legal { max-width: 42rem; }
.legal h2 { text-transform: none; font-size: clamp(1.1rem, 2vw, 1.3rem); margin-top: 2.6rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal dl { margin: 1rem 0 0; }
.legal .row { display: flex; gap: 0.4rem 1rem; flex-wrap: wrap; padding: 0.6rem 0; border-top: 1px solid var(--paper-dim); }
.legal dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted-light); width: 10rem; flex: none; }
.legal dd { margin: 0; }
.legal p { color: var(--text-muted-light); margin-top: 0.8rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

/* Links inside running text (legal pages, form note) */
.legal a,
.form-note a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--purple-light);
}
.legal a:hover,
.form-note a:hover { color: var(--purple); }

/* ---- Equipment ---------------------------------------------------------- */

.hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}
.hero-split p { max-width: 42rem; }

.brand-plate {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  min-width: 17rem;
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-plate img { max-width: 100%; height: auto; }

.logo-funktion-one { width: 15rem; }
.logo-alphatheta { width: 13rem; }
.logo-full-fat-audio { width: 8rem; }
.logo-nti { width: 11rem; }
.logo-rc-audio { width: 8rem; }

@media (max-width: 780px) {
  .hero-split { grid-template-columns: 1fr; }
  .brand-plate { justify-self: start; min-width: 0; }
}

.eq-families {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.2rem;
}

.eq-family {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  height: 100%;
  background: #fff;
  border: 1px solid var(--paper-dim);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease;
}
.eq-family:hover { border-color: var(--purple); }

.eq-family-logo {
  display: flex;
  align-items: center;
  min-height: 5.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--paper-dim);
}
.eq-family-logo img { height: auto; }
.eq-family-logo .logo-funktion-one { width: 14rem; }
.eq-family-logo .logo-alphatheta { width: 12rem; }
.eq-family-logo .logo-full-fat-audio { width: 6rem; }
.eq-family-logo .logo-nti { width: 9rem; }
.eq-family-logo .logo-rc-audio { width: 6rem; }

.eq-family h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.eq-family p { margin: 0; }
.eq-family .eq-names {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.eq-family .eq-more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.eq-group { margin: 3rem 0 1.2rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.eq-group:first-child { margin-top: 0; }

.eq-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.eq-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--paper-dim);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 6rem;
}
.eq-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }

.eq-card .eq-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1.1rem 1.1rem;
  border-top: 1px solid var(--paper-dim);
}
.eq-card .eq-brand {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
}
.eq-card h3 { margin: 0; font-size: 1.5rem; color: var(--text-on-light); }
.eq-card .eq-spec {
  margin: 0 0 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted-light);
}

.eq-add {
  margin-top: auto;
  padding: 0.75em 1em;
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--purple);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.eq-add:hover { background: var(--paper-dim); }
.eq-add.is-on { background: var(--purple); color: var(--text-on-dark); }

.eq-note { margin-top: 2.5rem; max-width: 42rem; }

.eq-others { margin-top: 1.4rem; font-size: 0.92rem; }
.eq-others a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--purple-light); }
.eq-others a:hover { color: var(--purple); }
.eq-others-label {
  margin-right: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.request-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem var(--edge);
  background: var(--ink);
  color: var(--text-on-dark);
  border-top: 1px solid rgba(154, 143, 176, 0.35);
}
.request-bar[hidden] { display: none; }
.request-bar p { margin: 0; color: var(--text-on-dark); display: flex; flex-direction: column; line-height: 1.15; }
.request-bar .request-title {
  margin-bottom: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-bright);
}
.request-bar .request-count { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; text-transform: uppercase; }

.service-list p a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--purple-light); }

/* ---- Skip link / a11y -------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 0.8em 1.2em;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus { left: var(--edge); top: 0.6rem; }

/* "... and many more" closing line of the references page */
.ref-more {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.ref-more-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.ref-more p + p {
  margin-top: 0.5rem;
  color: var(--text-muted-light);
}

/* ---- Reference photos: cover, mosaic, lightbox, endless strip ---------- */

.ref-card { overflow: hidden; }

/* the cover bleeds to the card edge; the logo overlaps its lower edge */
.ref-card .ref-photos { margin: -1.6rem -1.6rem 0; }

.ref-cover,
.ref-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ink-raised);
}

.ref-cover { aspect-ratio: 3 / 2; }

.ref-cover img,
.ref-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ref-cover:hover img,
.ref-tile:hover img { transform: scale(1.04); }

.ref-cover:focus-visible,
.ref-tile:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: -4px; }

.ref-count {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(14, 12, 20, 0.72);
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
}

.ref-card .ref-photos + .ref-mark {
  display: block;
  position: relative;
  box-sizing: border-box;
  width: 3.1rem;
  height: 3.1rem;
  margin: -1.7rem 0 0.4rem;
  border: 3px solid #fff;
  background: #fff;
}

.featured-ref .ref-mosaic {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  overflow: hidden;
}

.ref-tile--big { grid-row: 1 / span 2; }

.ref-tile-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 12, 20, 0.55);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

@media (max-width: 780px) {
  .featured-ref .ref-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2fr 1fr 1fr;
    aspect-ratio: 1 / 1.15;
  }
  .ref-tile--big { grid-column: 1 / -1; grid-row: auto; }
}

/* lightbox: one <dialog> per page, filled by main.js */
html.lightbox-open { overflow: hidden; }

.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(8, 7, 12, 0.97);
}

.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(8, 7, 12, 0.97); }

.lightbox-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem var(--edge);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-count { color: var(--text-muted-dark); }

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(0.5rem, 5vw, 4.5rem) 1rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  touch-action: pan-y;
}

.lightbox-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(14, 12, 20, 0.7);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-btn:hover { border-color: var(--amber-bright); color: var(--amber-bright); }
.lightbox-btn:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: 2px; }

.lightbox-prev,
.lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: clamp(0.4rem, 1.2vw, 1rem); }
.lightbox-next { right: clamp(0.4rem, 1.2vw, 1rem); }

/* "und viele mehr": endless strip of loose pictures */
.ticker {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll var(--ticker-seconds, 60s) linear infinite;
}

.ticker img {
  flex: none;
  height: clamp(130px, 18vw, 200px);
  width: auto;
  margin-right: 0.6rem;
  border-radius: var(--radius);
}

.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes ticker-scroll { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
}

.ref-more .btn { margin-top: 1.4rem; }

.ref-credits {
  margin-top: clamp(1.5rem, 4vw, 2.2rem);
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted-light);
}

.ref-credits p + p { margin-top: 0.6rem; }
.ref-credits a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ref-credits a:hover { color: var(--amber-deep); }

.ref-credits .ref-thanks-lead { margin-top: 0.9rem; }

.ref-credits .ref-team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

/* small round, transparent link icons (website / Instagram) */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: var(--purple);
  opacity: 0.8;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.icon-link svg { width: 58%; height: 58%; }
.icon-link:hover,
.icon-link:focus-visible { color: var(--amber-deep); opacity: 1; }
.ref-credits .icon-link { text-decoration: none; }

/* centred text blocks: paragraphs have a max-width, so they need automatic side margins to stay centred on wide screens */
.ref-more p,
.ref-credits p { margin-left: auto; margin-right: auto; }
