* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #D99A42;
  --accent-soft: #F4EBDD;
  --accent-deep: #9E5B35;
  --bg: #070707;
  --bg-2: #10100E;
  --panel: rgba(89,97,78,0.12);
  --line: rgba(89,97,78,0.46);
  --muted: #BDB6A8;
  --text: #F4EBDD;
  --olive: #59614E;
  --glass: rgba(7,7,7,0.78);
  --shadow: rgba(0,0,0,0.42);
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 120px;
}

body {

  background:
    radial-gradient(circle at 18% 4%, rgba(217,154,66,0.16) 0%, transparent 32%),
    radial-gradient(circle at 78% 22%, rgba(89,97,78,0.38) 0%, transparent 38%),
    linear-gradient(140deg, var(--bg) 0%, var(--bg-2) 56%, #070707 100%),
    var(--bg);

  color: var(--text);

  font-family: 'Outfit', sans-serif;

  overflow-x: hidden;

  letter-spacing: 0;

  font-weight: 300;
}

/* =========================
   NOISE
========================= */

body::before {

  content: "";

  position: fixed;

  inset: 0;

  background-image:
    radial-gradient(
      rgba(244,235,221,0.015) 1px,
      transparent 1px
    );

  background-size: 4px 4px;

  opacity: 0.18;

  pointer-events: none;

  z-index: -2;
}

/* =========================
   CURSOR
========================= */

.cursor {

  width: 18px;
  height: 18px;

  border:
    1px solid rgba(217,154,66,0.78);

  border-radius: 50%;

  position: fixed;
  left: 0;
  top: 0;

  pointer-events: none;

  transform:
    translate(-50%, -50%);

  z-index: 9999;

  background:
    rgba(217,154,66,0.06);

  opacity: 0;

  transition:
    width 0.3s ease,
    height 0.3s ease,
    background 0.3s ease,
    opacity 0.2s ease;

  will-change:
    transform;
}

html.has-custom-cursor body,
html.has-custom-cursor a,
html.has-custom-cursor button {
  cursor: none;
}

html.has-custom-cursor .cursor {
  opacity: 1;
}

.cursor.is-hovering {
  width: 50px;
  height: 50px;

  background:
    rgba(217,154,66,0.1);
}

/* =========================
   PARTICLES
========================= */

.particles {

  position: fixed;

  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: -1;
}

.particles span {

  position: absolute;

  width: 2px;
  height: 2px;

  background:
    rgba(217,154,66,0.42);

  border-radius: 50%;

  animation:
    float linear infinite;
}

@keyframes float {

  from {

    transform:
      translateY(100vh);

    opacity: 0;
  }

  10% {

    opacity: 1;
  }

  90% {

    opacity: 1;
  }

  to {

    transform:
      translateY(-10vh);

    opacity: 0;
  }

}

/* =========================
   AMBIENT
========================= */

.ambient {

  position: fixed;

  border-radius: 50%;

  filter: blur(100px);

  pointer-events: none;

  z-index: -2;

  opacity: 0.3;
}

.ambient-1 {

  width: 500px;
  height: 500px;

  background:
    rgba(217,154,66,0.12);

  top: -150px;
  left: -100px;
}

.ambient-2 {

  width: 700px;
  height: 700px;

  background:
    rgba(244,235,221,0.04);

  bottom: -300px;
  right: -200px;
}

/* =========================
   LOADER
========================= */

.loader {

  position: fixed;

  inset: 0;

  background:
    radial-gradient(circle at top, #10100E 0%, #070707 62%);

  display: flex;

  justify-content: center;
  align-items: center;

  z-index: 99999;

  transition:
    opacity 1s ease,
    visibility 1s ease;
}

.loader.hide {

  opacity: 0;

  visibility: hidden;

  pointer-events: none;
}

.loader-content {

  text-align: center;
}

.loader-content p {

  color: var(--muted);

  letter-spacing: 0;

  margin-bottom: 20px;

  font-size: 0.8rem;
}

.loader-content h1 {

  font-size:
    clamp(4rem, 10vw, 8rem);

  color: var(--accent);

  letter-spacing: 0;
}

/* =========================
   NAVBAR
========================= */

.navbar {

  position: fixed;

  top: 30px;
  left: 50%;

  transform:
    translateX(-50%);

  width: 90%;
  max-width: 1200px;

  padding: 18px 28px;

  display: flex;

  justify-content: space-between;
  align-items: center;

  z-index: 999;

  background:
    rgba(7,7,7,0.5);

  border:
    1px solid var(--line);

  backdrop-filter: blur(8px);
  box-shadow:
    0 18px 70px rgba(0,0,0,0.22);

  border-radius: 100px;

  transition: 0.4s ease;
}

.navbar.scrolled {

  background:
    rgba(7,7,7,0.78);

  border:
    1px solid rgba(244,235,221,0.16);

  padding: 14px 24px;
}

.logo {

  text-decoration: none;

  color: var(--accent);

  font-weight: 700;

  letter-spacing: 0;

  font-size: 0.9rem;
}

.navbar ul {

  display: flex;

  gap: 40px;

  list-style: none;
}

.navbar a {

  color: var(--muted);

  text-decoration: none;

  position: relative;

  transition: 0.3s ease;
}

.navbar a:hover {

  color: white;
}

.navbar a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -8px;

  height: 1px;

  background:
    var(--accent);

  transform:
    scaleX(0);

  transform-origin:
    center;

  transition:
    transform 0.25s ease;
}

.navbar a:hover::after,
.navbar a:focus-visible::after {
  transform:
    scaleX(1);
}

.navbar a:focus-visible,
button:focus-visible {
  outline:
    2px solid rgba(217,154,66,0.8);

  outline-offset:
    4px;
}

/* =========================
   MENU TOGGLE
========================= */

.menu-toggle {

  display: none;

  width: 40px;
  height: 40px;

  position: relative;

  z-index: 1001;

  padding: 0;

  border: 0;

  background: transparent;
}

.menu-toggle span {

  position: absolute;

  width: 100%;
  height: 1.5px;

  background: white;

  left: 0;

  transition: 0.4s ease;
}

.menu-toggle span:nth-child(1) {

  top: 14px;
}

.menu-toggle span:nth-child(2) {

  top: 24px;
}

.menu-toggle.active span:nth-child(1) {

  transform:
    rotate(45deg);

  top: 20px;
}

.menu-toggle.active span:nth-child(2) {

  transform:
    rotate(-45deg);

  top: 20px;
}

/* =========================
   HERO
========================= */

.library-hero {

  min-height: 72vh;

  display: flex;

  flex-direction: column;

  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 122px 10vw 86px;

  position: relative;
}

.hero-grid {

  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(
      rgba(244,235,221,0.03) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(244,235,221,0.03) 1px,
      transparent 1px
    ),
    linear-gradient(
      rgba(7,7,7,0.46),
      rgba(7,7,7,0.9)
    ),
    url("imagens/optimized/NEON_PULSE-1.jpg");

  background-position: center;

  background-size:
    80px 80px,
    80px 80px,
    cover,
    cover;

  opacity: 0.55;

  mask-image:
    radial-gradient(circle, black 30%, transparent 85%);

  will-change:
    transform;
}

.hero-mini {

  color: var(--muted);

  letter-spacing: 0;

  margin-bottom: 30px;

  position: relative;

  z-index: 2;
}

.library-hero h1 {

  font-size:
    clamp(5rem, 12vw, 10rem);

  line-height: 0.9;

  letter-spacing: 0;

  position: relative;

  z-index: 2;
}

.library-hero span {

  display: block;

  color: var(--accent);
}

.hero-description {

  margin-top: 40px;

  max-width: 700px;

  line-height: 2;

  color: var(--muted);

  position: relative;

  z-index: 2;
}

/* =========================
   ARCHIVE
========================= */

.archive {

  padding: 34px 8vw 168px;

  display: flex;

  flex-direction: column;

  gap: 112px;

  content-visibility: auto;

  contain-intrinsic-size: 4200px;
}

/* =========================
   LIBRARY CARD
========================= */

.library-card {

  display: flex;

  flex-direction: column;

  align-items: stretch;

  gap: 34px;

  padding: 0;

  background:
    transparent;

  border:
    0;

  backdrop-filter: none;

  border-radius: 8px;

  transition:
    transform 0.4s ease,
    border 0.4s ease;

  will-change:
    transform;
}

.library-card:hover {

  border-color:
    rgba(217,154,66,0.2);
}

/* =========================
   SLIDER
========================= */

.library-slider {

  position: relative;

  width: 100%;

  border-radius: 8px;

  overflow: hidden;

  background: #070707;

  border:
    1px solid rgba(244,235,221,0.11);

  box-shadow:
    0 28px 90px var(--shadow);
}

/* SLIDES */

.library-slides {

  position: relative;

  display: flex;

  width: 100%;

  height: clamp(340px, 45vw, 740px);

  overflow-x: auto;
  overflow-y: hidden;

  background: #070707;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;

  -webkit-overflow-scrolling: touch;
}

.library-slides::-webkit-scrollbar {
  display: none;
}

/* IMAGE */

.library-slide {

  position: relative;

  flex: 0 0 100%;

  width: 100%;
  height: 100%;

  object-fit: contain;

  background: #070707;

  opacity: 1;

  transition:
    transform 0.7s ease,
    filter 0.7s ease;

  padding: 0;

  scroll-snap-align: start;
  scroll-snap-stop: always;

  will-change:
    transform;
}

/* ACTIVE */

.library-slide.active {

  opacity: 1;

  z-index: auto;
}

/* BUTTONS */

.library-btn {

  position: absolute;

  top: 50%;

  transform:
    translateY(-50%);

  width: 42px;
  height: 42px;

  display: grid;

  place-items: center;

  padding: 0;

  border-radius: 50%;

  border:
    1px solid rgba(244,235,221,0.18);

  background:
    rgba(7,7,7,0.46);

  color:
    rgba(244,235,221,0.86);

  font-size: 0.75rem;

  z-index: 10;

  opacity: 0;

  transition: 0.3s ease;
}

.library-slider:hover .library-btn {

  opacity: 1;
}

.library-slider:focus-within .library-btn {

  opacity: 1;
}

.library-btn.prev {

  left: 18px;
}

.library-btn.next {

  right: 18px;
}

.library-btn:hover {

  background:
    rgba(217,154,66,0.14);

  color: white;

  transform:
    translateY(-50%)
    scale(1.08);
}

/* =========================
   CONTENT
========================= */

.library-content {

  width: 100%;

  max-width: 920px;

  padding-left:
    clamp(0px, 1.5vw, 22px);

  border-left:
    1px solid rgba(217,154,66,0.28);
}

.library-number {

  color: var(--accent);

  margin-bottom: 20px;
}

.library-content h2 {

  font-size:
    clamp(2.5rem, 5vw, 4.5rem);

  line-height: 1;

  margin-bottom: 30px;
}

.library-content p {

  color: var(--muted);

  line-height: 2;

  margin-bottom: 35px;
}

/* TAGS */

.library-tags {

  display: flex;

  flex-wrap: wrap;

  gap: 15px;
}

.library-tags span {

  padding: 12px 20px;

  border-radius: 100px;

  background:
    rgba(244,235,221,0.045);

  border:
    1px solid rgba(244,235,221,0.1);

  font-size: 0.8rem;
}

/* =========================
   FUTURE
========================= */

.future {

  padding: 0 10vw 180px;

  text-align: center;

  content-visibility: auto;

  contain-intrinsic-size: 360px;
}

.future-tag {

  color: var(--accent);

  letter-spacing: 0;

  margin-bottom: 30px;
}

.future h2 {

  font-size:
    clamp(2.5rem, 5vw, 5rem);

  max-width: 900px;

  margin:
    0 auto 80px;

  line-height: 1.1;
}

/* GRID */

.future-grid {

  display: flex;

  justify-content: center;

  gap: 30px;
}

.future-link {

  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 54px;

  padding:
    0 34px;

  border:
    1px solid rgba(217,154,66,0.42);

  border-radius: 100px;

  background:
    rgba(244,235,221,0.045);

  color:
    var(--text);

  text-decoration: none;

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.future-link:hover {

  transform:
    translateY(-3px);

  border-color:
    rgba(217,154,66,0.72);

  background:
    rgba(217,154,66,0.08);
}

/* FUTURE CARD */

.future-card {

  position: relative;

  overflow: hidden;

  border-radius: 8px;

  height: 500px;

  background:
    rgba(244,235,221,0.045);

  border:
    1px solid rgba(244,235,221,0.1);

  transition:
    transform 0.5s ease,
    border 0.5s ease;
}

.future-card:hover {

  transform:
    translateY(-10px);

  border-color:
    rgba(217,154,66,0.22);
}

/* IMAGE */

.future-card img {

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 1s ease,
    filter 1s ease;

  filter:
    brightness(0.7);
}

.future-card:hover img {

  transform:
    scale(1.04);

  filter:
    brightness(0.9);
}

/* OVERLAY */

.future-overlay {

  position: absolute;

  inset: 0;

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  padding: 40px;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.88) 5%,
      rgba(0,0,0,0.15) 55%,
      transparent 100%
    );
}

/* NUMBER */

.future-overlay span {

  color: var(--accent);

  margin-bottom: 18px;

  font-size: 0.85rem;

  letter-spacing: 0;
}

/* TITLE */

.future-overlay h3 {

  font-size: 2rem;

  margin-bottom: 18px;

  line-height: 1;
}

/* TEXT */

.future-overlay p {

  color: var(--muted);

  line-height: 1.8;

  font-size: 0.95rem;

  max-width: 320px;
}

/* =========================
   FOOTER
========================= */

.footer {

  padding: 60px 10vw;

  text-align: center;

  border-top:
    1px solid rgba(244,235,221,0.1);
}

.footer p {

  color: rgba(189,182,168,0.58);
}

/* =========================
   REVEAL
========================= */

.reveal {

  opacity: 0;

  transform:
    translateY(56px);

  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.reveal.active {

  opacity: 1;

  transform:
    translateY(0);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 980px) {

  .archive {

    padding:
      30px 0 128px;

    gap: 90px;
  }

  .library-card {

    gap: 24px;
  }

  .library-slider {

    width: 100vw;

    margin-left:
      calc(50% - 50vw);

    border-right: 0;
    border-left: 0;

    border-radius: 0;
  }

  .library-content {

    width: 100%;

    padding:
      0 24px;

    border-left:
      0;
  }

  .library-slides {

    height: clamp(220px, 58vw, 420px);
  }

  .future-grid {

    grid-template-columns: 1fr;
  }

}

@media (hover: none) {

  .library-btn {
    opacity: 1;
  }

}

@media (max-width: 600px) {

  .menu-toggle {

    display: block;
  }

  .navbar {

    top: 15px;

    width:
      calc(100% - 30px);

    border-radius: 8px;
  }

  .navbar ul {

    position: absolute;

    top: calc(100% + 12px);
    left: 0;
    right: 0;

    background:
      rgba(7,7,7,0.96);

    flex-direction: column;

    justify-content: flex-start;
    align-items: center;

    gap: 24px;

    padding:
      28px;

    border:
      1px solid rgba(244,235,221,0.13);

    border-radius: 8px;

    transform:
      translateY(-12px);

    opacity: 0;

    pointer-events: none;

    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .navbar ul.active {

    transform:
      translateY(0);

    opacity: 1;

    pointer-events: auto;
  }

  .library-hero h1 {

    font-size:
      clamp(3rem, 18vw, 5rem);
  }

  .library-content h2 {

    font-size: 2.2rem;
  }

  .future-card {

    height: 420px;
  }

}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;

    transform: none;
  }

}
