/* GT TWEAKS PANEL */
.gt-tweaks {
  position: fixed;
  z-index: 10000;
  width: 320px;
  background: rgba(28, 33, 40, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  animation: gtt-in 0.3s var(--ease-out);
}

@keyframes gtt-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gtt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  cursor: grab;
  background: rgba(13,17,23,0.4);
}

.gtt-head:active { cursor: grabbing; }

.gtt-title {
  font-family: 'Abril Fatface', serif;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.gtt-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.gtt-close:hover {
  background: var(--border-soft);
  color: var(--text-primary);
}

.gtt-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gtt-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gtt-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.gtt-segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}

.gtt-seg {
  padding: 8px 4px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.gtt-seg:hover { color: var(--text-primary); }

.gtt-seg.active {
  background: var(--accent);
  color: var(--bg-primary);
}

.gtt-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.gtt-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.gtt-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}

.gtt-swatch:hover { transform: scale(1.1); }

.gtt-swatch.active {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px var(--bg-elevated), 0 0 0 3px currentColor;
}

.gtt-color-input {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px dashed var(--border);
  cursor: pointer;
  background: transparent;
  padding: 0;
  overflow: hidden;
}

.gtt-color-input::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
.gtt-color-input::-webkit-color-swatch { border: none; border-radius: 50%; }

.gtt-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.gtt-toggle {
  width: 40px;
  height: 22px;
  border-radius: 100px;
  background: var(--border);
  position: relative;
  transition: background 0.2s;
  padding: 0;
  cursor: pointer;
}

.gtt-toggle span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: left 0.2s var(--ease-out), background 0.2s;
}

.gtt-toggle.on {
  background: var(--accent);
}

.gtt-toggle.on span {
  left: 20px;
  background: var(--bg-primary);
}

.gtt-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-align: center;
}

/* No-grain / no-cursor states */
body.no-grain::after { display: none !important; }
body.no-cursor .cursor { display: none !important; }
body.no-cursor { cursor: auto !important; }
body.no-cursor * { cursor: auto !important; }

/* Reduced motion respect */
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

html[data-motion="reduced"] .hero-title-line,
html[data-motion="reduced"] .reveal,
html[data-motion="reduced"] .reveal-stagger > * {
  transform: none !important;
}
