:root {
  --bg: #0d0d0d;
  --surface: #181818;
  --text: #f0f0f0;
  --muted: #b1b1b1;
  --accent: #9d7eff;
  --border: rgba(255,255,255,0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #1e1e1e 0%, var(--bg) 55%);
  color: var(--text);
}

.site-header {
  padding: 1.5rem 1.5rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.brand {
  display: block;
  margin: 0 auto;
}

.brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  width: 80%;
  max-width: 100%;
  margin: 0 auto;
}

.brand-logo,
.title-image {
  display: block;
  height: clamp(48px, 8vw, 96px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem auto 0;
  justify-content: center;
}

.site-nav button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 0.7rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-nav button:hover,
.site-nav button:focus-visible {
  background: rgba(157,126,255,0.12);
  border-color: rgba(157,126,255,0.4);
  outline: none;
}

.site-nav button.active {
  background: rgba(157,126,255,0.2);
  border-color: rgba(157,126,255,0.7);
  color: #fff;
}

.content {
  padding: 2rem 1.5rem 3rem;
  max-width: 980px;
  margin: 0 auto;
}

.section-card,
.subpage-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  margin-top: 1rem;
}

.embedded-card {
  display: grid;
  gap: 1rem;
}

.section-card h2,
.subpage-card h2 {
  margin-top: 0;
}

.section-card p,
.subpage-card p {
  color: var(--muted);
  line-height: 1.75;
}

.embedded-frame {
  width: 100%;
  min-height: 80vh;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: #000;
}

.link-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  list-style: none;
  padding: 0;
}

.link-list li {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  background: rgba(255,255,255,0.02);
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.75rem;
}

.gallery-grid.kinetic-grid {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  text-align: left;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery-item span {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.expanded-image {
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.statement-block {
  padding: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  margin-top: 1.5rem;
  color: var(--muted);
  line-height: 1.8;
}

.statement-block p {
  text-indent: 1.5rem;
  margin: 0 0 1rem;
}

.statement-block p:last-child {
  margin-bottom: 0;
}

.link-list button {
  all: unset;
  cursor: pointer;
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
}

.link-list button:hover {
  text-decoration: underline;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(157,126,255,0.4);
  background: rgba(157,126,255,0.08);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
}

.back-button:hover {
  background: rgba(157,126,255,0.16);
}

@media (max-width: 720px) {
  .site-nav {
    justify-content: center;
  }
}
