/* SONELIORA 10.3 · Atmosfera — abertura imersiva, partículas, som ambiente, índice e progresso */
.at-hero { position: relative !important; isolation: isolate; overflow: hidden !important; min-height: min(62vh, 640px);
  display: flex !important; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: clamp(84px, 14vh, 150px) clamp(18px, 4vw, 54px) clamp(22px, 4vh, 40px) !important;
  border-radius: 28px !important; border: 1px solid rgba(255, 227, 163, .3) !important; margin-top: 18px !important;
  background: linear-gradient(160deg, var(--at1, #0b1440), var(--at2, #3b1a6a)) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 12, .6), inset 0 1px rgba(255, 255, 255, .08) !important; }
.at-hero > *:not(.at-fundo) { position: relative; z-index: 2; }
.at-fundo { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; overflow: hidden; border-radius: inherit; }
.at-img { position: absolute; inset: -6% 0 auto 0; width: 100%; height: 112%; object-fit: cover; object-position: center 40%;
  transform: scale(1.12); opacity: 0; transition: opacity 1.4s ease; will-change: transform; filter: saturate(1.12) contrast(1.05); }
.at-fundo.pronto .at-img { opacity: 1; animation: at-kb 38s ease-in-out infinite alternate; }
@keyframes at-kb { from { object-position: 46% 38%; } to { object-position: 54% 46%; } }
.at-part { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.at-veu { position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 20% 100%, rgba(2, 3, 11, .92), transparent 62%),
    linear-gradient(180deg, rgba(2, 3, 11, .1) 0%, rgba(2, 3, 11, .12) 35%, rgba(2, 3, 11, .78) 100%),
    linear-gradient(90deg, rgba(2, 3, 11, .55), transparent 70%); }
.at-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 227, 163, .14), inset 0 -120px 120px -60px rgba(2, 3, 11, .55); }
.at-hero h1 { text-shadow: 0 4px 30px rgba(0, 0, 0, .65); font-size: clamp(2rem, 5.2vw, 4rem) !important; line-height: 1.04 !important; max-width: 22ch; }
.at-hero p { color: #efe6d4 !important; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); max-width: 64ch; }
.at-hero img:not(.at-img) { position: relative; z-index: 2; }

.at-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px; }
.at-atalhos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.at-atalhos > span { font: 600 11px/1 system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--sp-cyan, #4fe3f0); margin-right: 4px; }
.at-atalhos a { max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 13px; border-radius: 999px; font-size: 13px; color: #fff6df !important; text-decoration: none !important;
  background: rgba(8, 14, 38, .55); border: 1px solid rgba(255, 227, 163, .32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .25s, border-color .25s, transform .25s; }
.at-atalhos a:hover, .at-atalhos a:focus-visible { background: rgba(242, 201, 107, .22); border-color: var(--sp-gold-2, #ffe3a3); transform: translateY(-1px); }

.at-som { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 11px; border-radius: 999px; cursor: pointer;
  font: 600 13px/1.1 system-ui, sans-serif; color: #fff6df; background: linear-gradient(135deg, rgba(155, 107, 255, .32), rgba(79, 227, 240, .18));
  border: 1px solid rgba(255, 227, 163, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .3s, border-color .3s; }
.at-som:hover { box-shadow: 0 0 24px rgba(155, 107, 255, .45); border-color: var(--sp-gold-2, #ffe3a3); }
.at-som.on { background: linear-gradient(135deg, rgba(242, 201, 107, .4), rgba(255, 140, 90, .22)); }
.at-ondas { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.at-ondas b { width: 3px; height: 4px; border-radius: 2px; background: currentColor; opacity: .8; }
.at-som.on .at-ondas b { animation: at-onda 1.1s ease-in-out infinite; }
.at-som.on .at-ondas b:nth-child(2) { animation-delay: -.3s; } .at-som.on .at-ondas b:nth-child(3) { animation-delay: -.6s; } .at-som.on .at-ondas b:nth-child(4) { animation-delay: -.9s; }
@keyframes at-onda { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.at-seta { position: absolute !important; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 3 !important; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 227, 163, .35); background: rgba(8, 14, 38, .45); color: #ffe3a3; font-size: 20px; line-height: 1; cursor: pointer; animation: at-pulo 2.4s ease-in-out infinite; }
@keyframes at-pulo { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }

/* pílula flutuante do som ambiente */
.at-flut { position: fixed; left: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: 0;
  padding: 5px; border-radius: 999px; background: rgba(6, 10, 34, .72); transition: opacity .35s, transform .35s; border: 1px solid rgba(255, 227, 163, .25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 10, .45); }
.fx-has-dock .at-flut { bottom: calc(var(--son-nav-clearance, 108px) + 8px + env(safe-area-inset-bottom, 0px)); }
.at-flut .at-som { padding: 6px 10px; font-size: 12px; background: transparent; border-color: transparent; }
.at-flut .at-som span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--sp-ease, ease); }
.at-flut:hover .at-som span, .at-flut:focus-within .at-som span { max-width: 240px; }
.at-flut input { width: 0; opacity: 0; transition: width .35s, opacity .35s; accent-color: #f2c96b; }
.at-flut.on input, .at-flut:focus-within input { width: 84px; opacity: 1; margin: 0 8px 0 4px; }
.at-flut.at-escondido:not(.on) { opacity: 0; transform: translateY(12px); pointer-events: none; }
.at-flut.on { border-color: rgba(242, 201, 107, .6); }
#son975-music.at-oculto { display: none !important; }

/* índice lateral */
.at-indice { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.at-indice a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none !important; }
.at-indice i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255, 227, 163, .7); background: rgba(6, 10, 34, .6); transition: transform .3s, background .3s, box-shadow .3s; order: 2; }
.at-indice span { order: 1; font: 500 12px/1.2 system-ui, sans-serif; color: #fff6df; padding: 4px 9px; border-radius: 8px; background: rgba(6, 10, 34, .82);
  border: 1px solid rgba(255, 227, 163, .25); opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.at-indice:hover span, .at-indice a:focus-visible span { opacity: 1; transform: none; }
.at-indice a.on i { background: var(--sp-gold, #f2c96b); transform: scale(1.35); box-shadow: 0 0 12px rgba(242, 201, 107, .8); }
@media (max-width: 1100px) { .at-indice { display: none; } }

/* barra de progresso de leitura */
.at-prog { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 1000; transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
  background: linear-gradient(90deg, #4fe3f0, #9b6bff 45%, #f2c96b); box-shadow: 0 0 10px rgba(155, 107, 255, .6); }

/* títulos de seção com brilho, para dar ritmo às páginas longas */
html.at-on main h2 { scroll-margin-top: 90px; }
html.at-on main section > h2::after, html.at-on main .f65-section > h2::after { content: ""; display: block; width: 64px; height: 2px; margin-top: 10px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sp-gold, #f2c96b), transparent); }

@media (max-width: 760px) {
  .at-hero { min-height: 70vh; border-radius: 22px !important; padding-top: 110px !important; }
  .at-atalhos { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px 4px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .at-atalhos::-webkit-scrollbar { display: none; }
  .at-atalhos > span { display: none; }
  .at-atalhos a { flex: none; font-size: 12px; padding: 6px 11px; max-width: 26ch; }
  .at-flut { left: 10px; bottom: calc(var(--son-nav-clearance, 96px) + 6px + env(safe-area-inset-bottom, 0px)); }
  .at-seta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .at-fundo.pronto .at-img, .at-seta, .at-som.on .at-ondas b { animation: none !important; }
}
