/* ===================== SHELL ===================== */
.shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* ===================== CONTENT ===================== */
.content {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.content__inner {
  width: 100%;
  max-width: 1040px;
  padding: var(--space-2xl) var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.brand__monogram { width: 38px; height: 38px; flex-shrink: 0; }

.brand__name {
  font-size: var(--text-name);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand__role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-top: 4px;
}

.brand__spacer { flex: 1; }

.brand__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-faint);
}

.brand__meta a { color: var(--ink-faint); }
.brand__meta a:hover { color: var(--accent); }
.brand__meta .nav__cmdk { background: none; border: none; cursor: pointer; padding: 0; }

/* Index — horizontal tabs */
.index {
  display: flex;
  gap: var(--space-xl);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-lg);
}

/* Panels */
.panels {
  position: relative;
  flex: 1;
  min-height: 0;
}

.panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding-right: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--duration-normal) var(--ease),
              transform var(--duration-normal) var(--ease),
              visibility var(--duration-normal);
}

.panel.is-active { opacity: 1; visibility: visible; transform: translateY(0); }

.panel__lead {
  font-size: var(--text-base);
  color: var(--ink-dim);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.panel__lead + .panel__lead { margin-top: var(--space-md); }

/* ===================== ART BAR ===================== */
.artbar {
  position: relative;
  flex-shrink: 0;
  height: clamp(116px, 16vh, 168px);
  border-top: 1px solid var(--line-2);
  background:
    radial-gradient(90% 140% at 50% 100%, rgba(116, 216, 207, 0.05), transparent 70%),
    var(--void);
  overflow: hidden;
}

.artbar canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.readout {
  position: absolute;
  left: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  pointer-events: none;
  max-width: 46%;
}

.readout__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s var(--ease) infinite;
  flex-shrink: 0;
}

.reseed {
  position: absolute;
  right: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 8px 14px;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.reseed:hover { color: var(--void); background: var(--accent); border-color: var(--accent); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 720px) {
  .brand__name { font-size: 1.6rem; }
  .index { gap: var(--space-md); flex-wrap: wrap; }
  .readout { max-width: 60%; left: var(--space-md); }
  .reseed { right: var(--space-md); }
  .content__inner { padding: var(--space-xl) var(--space-md) var(--space-md); }
}
