/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

:root {
  --color-bg: #0a0a0a;
  --color-text: #f2f2f2;
  --color-muted: rgba(234, 231, 225, 0.5);
}

/*
====================================
HERO ENERGY DISTORTION
====================================
*/

:root {

    --hero-intensity: 2;
    --hero-distortion: 100;
    --hero-shake: 25;
    --hero-rgb: 30;
    --hero-blur: 5;
    --hero-scale: 0.03;
    --hero-rgb-red: rgb(255 50 120 / 60%);
    --hero-rgb-cyan: rgb(0 220 255 / 60%);
    --hero-transition-speed: 0.08s;

}


body {
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;

  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}


/* HERO BASE */

.silent-hero {
  background: #0a0a0a;
  overflow: hidden;
  position: relative;
}


/* VIDEO BACKGROUND*/
.nectar-video-wrap {

  mix-blend-mode: screen;
  opacity: .3 !important;
  filter:
    grayscale(0.4)
    contrast(120%)
}

/* =========================
   CURSOR BASE
========================= */

body,
a,
button,
[role="button"],
input,
textarea,
select,
label {
  cursor: none !important;
}

a,
button,
[role="button"] {
  transition: transform 0.2s ease;
  will-change: transform;
}

/* DOT */
.silent-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: #f2f2f2;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  will-change: left, top, width, height;
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-radius 0.2s ease;

}

/* RING */
.silent-cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  will-change: left, top, transform, opacity;
  transition: transform 0.2s ease, opacity 0.2s ease;
}



/*
====================================
MAIN CONTAINER
====================================
*/

.hero-glitch {

  position: relative;
  display: inline-block;
  z-index: 2;
  transform-style: preserve-3d;
  transform-origin: center center;
  backface-visibility: hidden;
  perspective: 1000px;
  will-change:
    transform,
    filter,
    opacity;
transition:
opacity .4s ease,
filter .25s ease;
  isolation: isolate;
}


/*
====================================
MEDIA ELEMENTS
====================================
*/

.hero-glitch img,
.hero-glitch svg,
.hero-glitch picture,
.hero-glitch canvas {

  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;

}


/*
====================================
RGB GHOST LAYERS
====================================
*/

.hero-glitch::before,
.hero-glitch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  will-change:
    transform,
    opacity,
    filter;
  transition:
    opacity 0.2s ease;
}


/*
====================================
OPTIONAL ACTIVE STATE
====================================
*/

.hero-glitch.is-active::before,
.hero-glitch.is-active::after {
  opacity: 0.35;
}


/*
====================================
PREVENT BLUR OVERFLOW ISSUES
====================================
*/

.hero-glitch-wrap {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

/*
====================================
PERFORMANCE OPTIMIZATION
====================================
*/

@media (max-width: 999px) {

  :root {
    --hero-distortion: 14;
    --hero-shake: 2;
    --hero-rgb: 6;
    --hero-blur: 0.5;
  }

  .hero-glitch {
    will-change:
      transform;
  }
}


/*
====================================
REDUCED MOTION ACCESSIBILITY
====================================
*/

@media (prefers-reduced-motion: reduce) {

  .hero-glitch,
  .hero-glitch::before,
  .hero-glitch::after {

    animation: none !important;
    transition: none !important;
    filter: none !important;
    transform: none !important;
  }
}


.hero-content {
  position: relative;
  z-index: 5;
}


.silent-hero .row-bg-overlay {

    filter: blur(3px);
}


/* CANVAS */
#atmosphere {

  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity:0.9;
  mix-blend-mode: screen;
}


/* INNER */
.hero-inner {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-inner {
  animation: flicker 8s infinite;
}

.hero-inner:after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.02);
  mix-blend-mode: overlay;
  animation: flicker 5s infinite;
}


/* SUB */
.hero-sub {
  font-size: 14px;
  letter-spacing: 0.25em;
  color: #cfcfcf;
  margin-top: 25px;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  animation: stylishFadeIn 1s ease forwards;
  animation-delay: 0.9s;
}

/* MICRO */
.hero-micro {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #777;
  margin-top: 50px;
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  animation: stylishFadeIn 1s ease forwards;
  animation-delay: 1.4s;
}

/* ANIM */
@keyframes stylishFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}



/* GLITCH - Currently disabled */

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-title {
    font-size: 42px;
  }
}

@media (hover: none) {
  .silent-cursor,
  .silent-cursor-ring {
    display: none;
  }
}


.hero-sound-field {
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* ====================================================
HUD — PREMIUM CINEMATIC AUDIO HUD
==================================================== */

.silent-audio-debug{

  position:fixed;
  right:24px;
  bottom:24px;

  width:auto;

padding: 10px 16px 10px;
  border-radius:20px;

  border:1px solid rgba(255,255,255,.08);


  font-family:
    "IBM Plex Mono",
    monospace;

  color:rgba(255,255,255,.82);
  user-select:none;
  isolation:isolate;
  z-index:999;
  pointer-events:auto;
  overflow:hidden;
  transition:

  opacity .8s cubic-bezier(.22,1,.36,1),

  transform .9s cubic-bezier(.22,1,.36,1),

  background .7s cubic-bezier(.22,1,.36,1),

  border-color .7s cubic-bezier(.22,1,.36,1),

  box-shadow .9s cubic-bezier(.22,1,.36,1),

  backdrop-filter .9s cubic-bezier(.22,1,.36,1),

  padding .8s cubic-bezier(.22,1,.36,1),

  border-radius .8s cubic-bezier(.22,1,.36,1);
}

/* =========================================
MICRO FILM GRAIN
========================================= */

.silent-audio-debug::before{

  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.045;
  mix-blend-mode:soft-light;
  background-image:
    repeating-radial-gradient(
      circle at 50% 50%,
      rgba(255,255,255,.12) 0px,
      rgba(255,255,255,0) 1px,
      transparent 2px
    );

  background-size:3px 3px;
}

/* =========================================
OFF / COLLAPSED STATE
========================================= */

.silent-audio-debug.is-collapsed {
    padding-right: 0px;
    background: linear-gradient(180deg, rgba(20, 20, 20, .88), rgba(8, 8, 8, .78));
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
    backdrop-filter: blur(8px);
    transform:
  scale(.985);

opacity:.92;
}

/* =========================================
HEAD
========================================= */

.sw-head{

  display:flex;
  align-items:center;
  gap:14px;
}


/* =========================================
STATUS DOT
========================================= */

.sw-status{

  position:relative;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#ff6363;
  flex-shrink:0;
  opacity:.95;
  box-shadow:
    0 0 10px rgba(224,99,42,.45);
  z-index:2;
}

/* pulse ring */

.sw-status::after{

  content:"";
  position:absolute;
  width:15px;
  height:15px;
  top:-4px;
  left:-4px;
  border-radius:50%;
  border:1px solid #993a3a;

  opacity:0;

  pointer-events:none;

  transform:scale(.6);
}

/* =========================================
PULSE
========================================= */

@keyframes swPulse{

  0%{

    transform:scale(.65);

    opacity:.75;
  }

  70%{

    transform:scale(2.4);

    opacity:0;
  }

  100%{

    opacity:0;
  }
}

/* =========================================
TITLE
========================================= */

.sw-meta{

  display:flex;
  flex-direction:column;
  gap:4px;
}

.sw-title{

  font-size:10px;
  letter-spacing:.32em;
  line-height:1;
  opacity:.78;
  white-space:nowrap;
   width:140px;
  flex-shrink:0;
   transition:
    opacity .25s ease;
}


/* =========================================
TOGGLE
========================================= */

.sw-audio-toggle{

  all:unset;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  margin-right: -8px;
  margin-left: 4px;
  min-width:120px;
  min-height:34px;
  cursor:none !important;
  pointer-events:auto;
}

/* =========================================
WAVE
========================================= */

.sw-wave{

  display:block;

  width:120px;
  height:34px;

  opacity:.82;

  transition:
      opacity .8s ease,

  transform 1s cubic-bezier(.22,1,.36,1),

  filter .9s ease,

  width .9s cubic-bezier(.22,1,.36,1),

  height .9s cubic-bezier(.22,1,.36,1);
}

/* =========================================
GRID
========================================= */

.sw-grid{

  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:18px;
  overflow:hidden;
 transition:

  max-height .9s cubic-bezier(.22,1,.36,1),

  opacity .7s ease,

  transform .9s cubic-bezier(.22,1,.36,1),

  margin-top .7s cubic-bezier(.22,1,.36,1);
}

/* COLLAPSED */

.silent-audio-debug.is-collapsed .sw-grid{

  max-height:0;
  opacity:0;
  transform:translateY(-8px);
  margin-top:0;
}

/* =========================================
LINES
========================================= */

.line{

  font-size:10px;
  letter-spacing:.16em;
  opacity:.72;
  white-space:nowrap;
}

/* =========================================
ACTIVE STATE
========================================= */

.silent-audio-debug.is-active {
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 12px 60px rgba(0, 0, 0, .42), 0 0 80px rgba(255, 120, 60, .08), inset 0 1px 0 rgba(255, 255, 255, .05);
    background: linear-gradient(180deg, rgba(20, 20, 20, .88), rgba(8, 8, 8, .78));
    backdrop-filter: blur(8px);
    padding-right: 0px;
    transform:
  translateY(-2px)
  scale(1);
}

/* ACTIVE WAVE */

.silent-audio-debug.is-active .sw-wave{

  opacity:1;
  filter:
    drop-shadow(0 0 10px rgba(255,255,255,.14));
  transform:translateZ(0);
}


/* ACTIVE DOT */



.silent-audio-debug.is-active .sw-status::after{

  border-color:
  1px solid #ff6363;
   opacity:.75;

  animation:
    swPulse 2.2s cubic-bezier(.2,1,.2,1) infinite;
}

/* =========================================
MINIMIZED / OUTSIDE HERO
========================================= */

.silent-audio-debug.is-minimized{
    padding: 0px;
    /* border-radius: 999px; */
    background: rgba(10, 10, 10, .58);
    transform:
  translateY(4px)
  scale(.92);

}

/* hide meta */

.silent-audio-debug.is-minimized .sw-meta,
.silent-audio-debug.is-minimized .sw-grid,
.silent-audio-debug.is-minimized .sw-status{

  opacity:0;

  max-width:0;
  max-height:0;

  overflow:hidden;

  margin:0;
}


/* smaller toggle */

.silent-audio-debug.is-minimized .sw-audio-toggle{

  min-width:68px;
  min-height:22px;

  margin:0;
}

/* softer orb */

.silent-audio-debug.is-minimized .sw-status{

  transform:scale(.82);

  opacity:.55;
}

/* pure wave mode */

.silent-audio-debug.is-minimized .sw-head{

  gap:0;
}

.silent-audio-debug.is-minimized .sw-wave{

  width:64px;
  height:18px;

  opacity:.58;

  filter:none;
}

.silent-audio-debug.is-minimized .sw-title{

  display:none;
}

.silent-audio-debug.is-minimized .sw-status{

  display:none;
}


/* =========================================
SUBTLE IDLE FLOAT
========================================= */

.silent-audio-debug{

  animation:
    swFloat 7s ease-in-out infinite;
}

/* =========================================
ANIMATIONS
========================================= */

@keyframes swPulse{

  0%{
    transform:scale(.6);
    opacity:.8;
  }

  70%{
    transform:scale(1.8);
    opacity:0;
  }

  100%{
    transform:scale(1.8);
    opacity:0;
  }
}

@keyframes swFloat{

  0%{
    transform:translateY(0px);
  }

  50%{
    transform:translateY(-2px);
  }

  100%{
    transform:translateY(0px);
  }
}

/* =========================================
MOBILE
========================================= */

@media (max-width:768px){

  .silent-audio-debug{

    right:14px;
    bottom:14px;
    padding:10px;
    border-radius:999px;
    background:
      rgba(10,10,10,.42);
    backdrop-filter:
      blur(8px);
    border-color:
      rgba(255,255,255,.08);
    transform:none;
  }

  /* ONLY ORB + WAVE */
.sw-mark,
.sw-title,
.sw-status,
  .sw-meta,
  .sw-grid{

    display:none;
  }

  .sw-head{

    gap:10px;
  }


  .sw-wave{

    width:74px;
    height:22px;
    opacity:.82;
  }

  .sw-audio-toggle{

    min-width:74px;
    min-height:22px;
    margin:0;
  }

  /* softer glow */

  .silent-audio-debug.is-active{

    box-shadow:
      0 10px 30px rgba(0,0,0,.28),
      0 0 40px rgba(255,120,60,.06);
  }

}


/* =========================================
SIGNATURE MARK
========================================= */

.sw-mark{

  position:absolute;
right: 4px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  opacity:.24;
  pointer-events:none;
transition:

  opacity 1s cubic-bezier(.22,1,.36,1),
  transform 1s cubic-bezier(.22,1,.36,1),
  filter .8s ease;
}

/* image */

.sw-mark img{

  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:
    brightness(1.2)
    contrast(1.1);

}

/* ACTIVE */

.silent-audio-debug.is-active .sw-mark{

  opacity:.22;

  filter:
    drop-shadow(
      0 0 8px rgba(255,255,255,.08)
    );
}

/* COLLAPSED */

.silent-audio-debug.is-collapsed .sw-mark{

 display: none;
}

/* MINIMIZED */

.silent-audio-debug.is-minimized .sw-mark{

  opacity:0;
  transform:scale(.8);
}




.ss-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  letter-spacing: 0.02em;
  max-width: 420px;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
}

/* ===== LABEL DESTRA (ITALY / WORLDWIDE) ===== */

.ss-meta {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1.8;
}



/* ===== MANIFESTO ===== */

.ss-manifesto {
  font-family: "Cormorant Garamond", serif !important;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  max-width: 900px;
}

.ss-manifesto p {
  margin: 0 0 20px 0;
    white-space: pre-line;
}


/* ===== SUB TEXT ===== */

.ss-sub {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 420px;
}

/* ===== TRANSITION SMOOTH ===== */

.ss-section {
  position: relative;
  background: var(--color-bg);
  z-index: 1;
}

.ss-section::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(10,10,10,0.6) 40%,
    rgba(10,10,10,0.9) 75%,
    var(--color-bg) 100%
  );
  pointer-events: none;
}


/* Dust/Scratches background effect for the entire site */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://silentsilent.it/wp-content/uploads/2026/05/white-dust-scratches-black.avif");
  background-repeat: repeat;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 999;
}

.ss-line-block {
  position: relative;
  height: 300px;
  margin: 0 0;
}

/* LINEA */
.ss-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 0%;
  transform: translateX(-50%);
 /* leggero blur = meno digitale */
  filter: blur(0.3px);
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.2),
    rgba(255,255,255,0.9),
    rgba(255,255,255,1)
  );
}

/* GLOW CHE VIAGGIA */
.ss-line-glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 15px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgb(255 255 255) 0%, rgb(255 255 255 / 75%) 40% 60%, rgb(255 193 7 / 0%) 80%);
  opacity: 0;
  filter: blur(3px);
  will-change: transform, opacity;
}

