.noise-toggle-shell {
  position: relative;
  z-index: 1100;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav-inner > .noise-toggle-shell {
  margin-left: auto;
}

nav > .noise-toggle-shell,
.legal-nav > .noise-toggle-shell {
  margin-left: 16px;
}

.noise-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(10,10,10,0.66);
  color: rgba(245,245,240,0.82);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.noise-toggle:hover,
.noise-toggle:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.24);
  color: rgba(245,245,240,0.98);
  transform: translateY(-1px);
  outline: none;
}

.noise-toggle-track {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  transition: background 0.25s ease;
}

.noise-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(245,245,240,0.92);
  transition: transform 0.25s ease, background 0.25s ease;
}

.noise-toggle-text {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 700;
}

.noise-toggle[aria-pressed="true"] {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.1);
}

.noise-toggle[aria-pressed="true"] .noise-toggle-track {
  background: rgba(255,255,255,0.28);
}

.noise-toggle[aria-pressed="true"] .noise-toggle-thumb {
  transform: translateX(12px);
  background: #ffffff;
}

.noise-toggle-tip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(10,10,10,0.9);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(245,245,240,0.86);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.noise-toggle-shell:hover .noise-toggle-tip,
.noise-toggle-shell:focus-within .noise-toggle-tip {
  opacity: 1;
  transform: translateY(0);
}

html.noise-off .hero-video-wrap,
html.noise-off .hero-photo-flash,
html.noise-off .hero-video-stack,
html.noise-off .bio-media,
html.noise-off .project-media,
html.noise-off .project-motifs {
  opacity: 0 !important;
  pointer-events: none !important;
}

html.noise-off .hero-media-grid,
html.noise-off .image-panel {
  display: none !important;
}

html.noise-off .hero-layout,
html.noise-off .split-layout,
html.noise-off .split-layout.visual-left {
  grid-template-columns: 1fr !important;
}

html.noise-off .hero-media-grid .media-card,
html.noise-off .image-frame,
html.noise-off .resource-media,
html.noise-off .resources-media-video {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    linear-gradient(135deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08));
}

html.noise-off .resource-media video,
html.noise-off .resource-media img,
html.noise-off .resources-media-video video,
html.noise-off .resources-media-hover {
  opacity: 0 !important;
  pointer-events: none !important;
}

html.noise-off .resource-media::before,
html.noise-off .resources-media-video::before {
  opacity: 0 !important;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08)) !important;
}

html.noise-off .panel-hero,
html.noise-off .resource-page,
html.noise-off body {
  background-color: #0a0a0a;
}

html.noise-off .panel-hero::before {
  background:
    linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.74) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.86) 0%, rgba(10,10,10,0.52) 48%, rgba(10,10,10,0.88) 100%) !important;
}

html.noise-off .project-card.ie-card,
html.noise-off .project-card.murals-card {
  background-blend-mode: normal;
}

@media (max-width: 900px) {
  .site-nav-inner > .noise-toggle-shell {
    margin-left: 0;
    align-self: flex-end;
  }

  nav > .noise-toggle-shell,
  .legal-nav > .noise-toggle-shell {
    margin-left: 10px;
  }

  .noise-toggle {
    min-height: 32px;
    padding: 0 10px;
    gap: 8px;
  }

  .noise-toggle-text {
    font-size: 9px;
    letter-spacing: 1.4px;
  }

  .noise-toggle-tip {
    top: auto;
    bottom: calc(100% + 8px);
  }
}
