/* Selected concept 01: integrated dark editorial navigation. */
@keyframes nav-edge-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
@keyframes nav-mark-light {
  0%, 100% { box-shadow: 0 0 0 rgba(211,38,63,0); }
  50% { box-shadow: 0 0 1rem rgba(211,38,63,.23); }
}
@keyframes nav-type-shine {
  from { background-position: 85% 50%; }
  to { background-position: 15% 50%; }
}
@keyframes nav-active-line {
  0%, 100% { transform: scaleX(.72); opacity: .72; }
  50% { transform: scaleX(1); opacity: 1; }
}

.site-header {
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(13,9,16,.96);
  box-shadow: 0 .8rem 2rem rgba(9,6,13,.12);
  backdrop-filter: blur(18px);
}
.site-header::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(211,38,63,.42), transparent);
  pointer-events: none;
  animation: nav-edge-sweep 14s linear infinite;
}

.brand, .brand:hover {
  gap: .72rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f7f4f6;
  box-shadow: none;
  transform: none;
}
.brand::after {
  content: "";
  display: block;
  width: 1px;
  height: 1.75rem;
  margin-left: 1.25rem;
  background: rgba(255,255,255,.27);
}
.brand img {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  animation: nav-mark-light 7s ease-in-out infinite;
}
.brand-name { font-size: 1.03rem; font-weight: 760; letter-spacing: -.04em; }
.brand-name strong {
  background: linear-gradient(105deg, #d3263f 0 46%, #ffb2bd 50%, #d3263f 54% 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nav-type-shine 7s linear infinite;
}

.main-nav { align-items: center; gap: clamp(1.8rem, 4vw, 3.5rem); }
.main-nav a {
  padding-block: .5rem;
  color: #b9aeba;
  font-size: .92rem;
  font-weight: 450;
  transition: color .25s ease;
}
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active,
body[data-active-section="projeto-abyss"] .main-nav a[href="#projetos"],
body[data-active-section="projeto-luccas"] .main-nav a[href="#projetos"],
body[data-active-section="projeto-piu-bella"] .main-nav a[href="#projetos"] {
  color: #fff;
}
.site-header .main-nav a::after,
body[data-active-section="projeto-abyss"] .site-header .main-nav a[href="#projetos"]::after,
body[data-active-section="projeto-luccas"] .site-header .main-nav a[href="#projetos"]::after,
body[data-active-section="projeto-piu-bella"] .site-header .main-nav a[href="#projetos"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.85rem;
  left: 0;
  height: 3px;
  background: #d3263f;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s ease;
}
.site-header .main-nav a:hover::after,
.site-header .main-nav a:focus-visible::after { transform: scaleX(.55); }
.site-header .main-nav a.active::after,
body[data-active-section="projeto-abyss"] .site-header .main-nav a[href="#projetos"]::after,
body[data-active-section="projeto-luccas"] .site-header .main-nav a[href="#projetos"]::after,
body[data-active-section="projeto-piu-bella"] .site-header .main-nav a[href="#projetos"]::after {
  transform: scaleX(1);
  animation: nav-active-line 5s ease-in-out infinite;
}

@media (max-width: 900px) {
  .brand::after { display: none; }
  .main-nav {
    gap: .35rem;
    border-bottom: 1px solid rgba(255,255,255,.16);
    background: rgba(13,9,16,.98);
    box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,.25);
  }
  .main-nav a { min-height: 2.8rem; display: flex; align-items: center; font-size: 1rem; }
  .site-header .main-nav a::after,
  body[data-active-section="projeto-abyss"] .site-header .main-nav a[href="#projetos"]::after,
  body[data-active-section="projeto-luccas"] .site-header .main-nav a[href="#projetos"]::after,
  body[data-active-section="projeto-piu-bella"] .site-header .main-nav a[href="#projetos"]::after {
    right: auto;
    bottom: .55rem;
    left: -.8rem;
    width: 2px;
    height: 1.6rem;
    transform: scaleY(0);
  }
  .site-header .main-nav a:hover::after,
  .site-header .main-nav a:focus-visible::after { transform: scaleY(.55); }
  .site-header .main-nav a.active::after,
  body[data-active-section="projeto-abyss"] .site-header .main-nav a[href="#projetos"]::after,
  body[data-active-section="projeto-luccas"] .site-header .main-nav a[href="#projetos"]::after,
  body[data-active-section="projeto-piu-bella"] .site-header .main-nav a[href="#projetos"]::after {
    transform: scaleY(1);
    animation: none;
  }
  .menu-button { position: relative; }
  .menu-button::after {
    content: "";
    position: absolute;
    top: .38rem;
    right: .35rem;
    width: .3rem;
    height: .3rem;
    border-radius: 50%;
    background: var(--accent);
    animation: nav-mark-light 4s ease-in-out infinite;
  }
}
@media (max-width: 560px) {
  .brand { gap: .5rem; }
  .brand img { width: 2.15rem; height: 2.15rem; padding: 0; }
  .brand-name { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header::before, .brand img, .brand-name strong,
  .site-header .main-nav a::after, .menu-button::after { animation: none !important; }
  .brand-name strong { background: none; color: #d3263f; }
  .site-header::before { display: none; }
}
