/* BassLabs — shared styles */
:root {
  --bg: #000000;
  --fg: #ffffff;
  --azure: #1EA7FF;
  --azure-dim: rgba(30, 167, 255, 0.18);
  --azure-line: rgba(30, 167, 255, 0.28);
  --muted: #9a9a9a;
  --faint: #5c5c5c;
  --card: rgba(255, 255, 255, 0.03);
  --header: rgba(0, 0, 0, 0.72);
  --max: 1120px;
  --header-h: 4.25rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--azure); }
ul { list-style: none; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--azure);
  color: #000;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
}
.skip:focus { top: 1rem; }

.glow {
  position: fixed;
  inset: -20% -10% auto;
  height: 80vh;
  background: radial-gradient(circle at 50% 35%, var(--azure-dim), transparent 58%);
  animation: glow 7s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes glow {
  from { opacity: 0.5; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 2.15rem;
  width: auto;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--azure-line);
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #cfcfcf;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--azure);
  border-bottom-color: var(--azure);
}

/* Main */
main {
  position: relative;
  z-index: 1;
  flex: 1;
  animation: fade-up 1s ease-out both;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4.5rem 0 3.5rem;
}

.hero-logo {
  width: min(480px, 78vw);
  margin: 0 auto 2.4rem;
}

.kicker {
  color: var(--azure);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

h1 {
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 1.15rem;
}

.hero h1 {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 3.6vw, 2.15rem);
  color: var(--azure);
}

.lede {
  max-width: 38rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero .lede { margin-top: 0.3rem; max-width: 56rem; }
@media (max-width: 760px) { .br-wide { display: none; } }

.printers {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.chip {
  border: 1px solid var(--azure-line);
  color: var(--fg);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(30, 167, 255, 0.05);
}

/* Page intro (inner pages) */
.page-intro {
  padding: 3.4rem 0 2.2rem;
  max-width: 40rem;
}

.page-intro .lede {
  margin: 0;
  text-align: left;
}

/* Sections */
section { padding: 2.6rem 0; }

.section-head {
  margin-bottom: 1.6rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

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

/* Cards */
.grid-3,
.grid-4,
.gallery {
  display: grid;
  gap: 1.15rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

.card,
.photo-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 1.4rem 1.35rem 1.45rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

a.card { color: inherit; display: block; }

.card:hover,
a.card:hover,
.photo-card:hover {
  border-color: var(--azure-line);
  background: rgba(30, 167, 255, 0.06);
  transform: translateY(-2px);
  color: var(--fg);
}

.card h2,
.card h3,
.photo-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.card p,
.photo-card p { color: var(--muted); font-size: 0.98rem; }

.card-link {
  display: inline-block;
  margin-top: 0.95rem;
  color: var(--azure);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Credentials */
.credentials {
  padding: 1.2rem 0 3rem;
}

.credentials h2 { margin-bottom: 0.55rem; }
.credentials .lede { margin-left: 0; text-align: left; }

.cred-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.cred-grid li {
  border: 1px solid var(--azure-line);
  background: rgba(30, 167, 255, 0.04);
  border-radius: 6px;
  padding: 1.15rem 1rem 1.2rem;
  text-align: center;
  min-height: 100%;
}

.cred-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--azure);
  border-radius: 50%;
  color: var(--azure);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.cred-grid strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.cred-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.cred-line {
  margin-top: 2.2rem;
  padding: 1.05rem 1.2rem;
  border-left: 2px solid var(--azure);
  background: rgba(30, 167, 255, 0.05);
  color: var(--muted);
  font-size: 0.95rem;
}

.cred-line strong { color: var(--fg); font-weight: 600; }

/* Gallery */
.gallery {
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 1rem;
}

.photo-card { padding: 0 0 1.15rem; overflow: hidden; }

.photo-frame {
  aspect-ratio: 4 / 3;
  margin-bottom: 1rem;
  position: relative;
  background:
    linear-gradient(135deg, rgba(30, 167, 255, 0.09) 0%, transparent 42%, rgba(30, 167, 255, 0.05) 100%),
    repeating-linear-gradient(
      -45deg,
      rgba(30, 167, 255, 0.045) 0 1px,
      transparent 1px 12px
    ),
    #070707;
  overflow: hidden;
}

.photo-frame::after {
  content: "BL";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(30, 167, 255, 0.28);
  font-weight: 700;
  letter-spacing: 0.28em;
  font-size: 0.95rem;
}

.photo-card h3,
.photo-card p { padding-inline: 1.15rem; }

/* CTA */
.cta {
  text-align: center;
  padding: 3rem 0 4rem;
}

.cta h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin-bottom: 0.6rem;
}

.cta p {
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  color: var(--azure);
  border: 1px solid var(--azure);
  background: transparent;
  padding: 0.85rem 1.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--azure);
  color: #000;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.4rem 0 1.6rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--fg);
  border-bottom: 1px solid var(--azure);
}
.site-footer a:hover { color: var(--azure); }

/* 404 is also styled by this sheet when used standalone */
.not-found {
  text-align: center;
  padding: 8rem 0 6rem;
}
.not-found h1 {
  color: var(--azure);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

@media (max-width: 960px) {
  .cred-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--azure-line);
    padding: 0.4rem 0 0.8rem;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 0.85rem 1.25rem;
    border-bottom: none;
    border-left: 2px solid transparent;
  }

  .site-nav a[aria-current="page"],
  .site-nav a:hover {
    border-left-color: var(--azure);
    border-bottom-color: transparent;
  }

  .hero { padding: 3rem 0 2.4rem; }
  .page-intro { padding-top: 2.4rem; }
  .grid-3,
  .grid-4,
  .gallery,
  .cred-grid { grid-template-columns: 1fr 1fr; }

  h1 { letter-spacing: 0.03em; }
  .hero h1 { letter-spacing: 0.14em; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
}

@media (max-width: 520px) {
  .wrap { width: min(var(--max), calc(100% - 1.6rem)); }
  .grid-3,
  .grid-4,
  .gallery,
  .cred-grid { grid-template-columns: 1fr; }
  .printers { gap: 0.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow, main, .card, a.card, .photo-card { animation: none; transition: none; }
}
.photo-frame.has-photo { background: #0a0a0a; overflow: hidden; }
.photo-frame.has-photo::after { content: none; }
.photo-frame.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team { display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); }
.team-card { padding-bottom: 1.4rem; }
.team-photo { aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 1rem; background: #0a0a0a; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card .role { color: var(--azure, #1EA7FF); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; margin: -0.2rem 0 0.7rem; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; } }
