/* ==============================
   noirve - HTML/CSS/JS separado
   Código arrumado sem React/Vite bundle
   ============================== */

:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --soft: rgba(255, 255, 255, 0.32);
  --line: rgba(255, 255, 255, 0.1);
  --card: #080808;
  --font-display: "Bebas Neue", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

button,
a,
input,
textarea {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

::selection {
  color: #000;
  background: #fff;
}

.site {
  width: 100%;
  min-height: 100dvh;
  background: #000;
}

/* INTRO */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  perspective: 1000px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__logo {
  user-select: none;
  pointer-events: none;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(60px, 15vw, 200px);
  line-height: 0.85;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px rgba(255,255,255,.3), 0 0 120px rgba(255,255,255,.1);
  transform-style: preserve-3d;
}

.intro__button {
  position: relative;
  z-index: 2;
  margin-top: 48px;
  padding: 12px 32px;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: 14px;
  font-weight: 500;
  transition: transform .25s ease, background .3s ease, color .3s ease;
}

.intro__button:hover {
  color: #000;
  background: #fff;
  transform: scale(1.05);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(12px);
}

.navbar__brand {
  border: 0;
  color: #fff;
  background: transparent;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .14em;
  transition: opacity .3s ease;
}

.navbar__brand:hover {
  opacity: .7;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar__links a {
  color: rgba(255,255,255,.4);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .3s ease;
}

.navbar__links a:hover {
  color: #fff;
}

.navbar__menu-button {
  display: none;
  width: 30px;
  height: 24px;
  border: 0;
  background: transparent;
}

.navbar__menu-button span {
  display: block;
  width: 22px;
  height: 1px;
  margin-left: auto;
  background: rgba(255,255,255,.7);
  transition: background .3s ease;
}

.navbar__menu-button span + span {
  margin-top: 7px;
}

.navbar__menu-button:hover span {
  background: #fff;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #000;
  transform: translateX(100%);
  transition: transform .5s ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.mobile-menu__logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: .14em;
}

.mobile-menu__close {
  border: 0;
  color: rgba(255,255,255,.7);
  background: transparent;
  font-size: 42px;
  line-height: 1;
  transition: color .3s ease;
}

.mobile-menu__close:hover {
  color: #fff;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu__links a {
  color: rgba(255,255,255,.6);
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .3s ease;
}

.mobile-menu__links a:hover {
  color: #fff;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
}

.hero__background::before,
.hero__background::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__background::before {
  background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent, rgba(0,0,0,.8));
}

.hero__background::after {
  background: linear-gradient(to right, rgba(0,0,0,.5), transparent, rgba(0,0,0,.5));
}

.hero__half {
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.hero__half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: brightness(.35) saturate(.6);
  transform: scale(1.04);
}

.hero__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 1px;
  background: rgba(255,255,255,.1);
}

.hero__title {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.hero__title h1 {
  color: rgba(255,255,255,.75);
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 200px);
  line-height: .85;
  letter-spacing: -.02em;
  text-align: center;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.scroll-indicator span {
  color: rgba(255,255,255,.4);
  font-size: 10px;
  letter-spacing: .3em;
}

.scroll-indicator i {
  position: relative;
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: rgba(255,255,255,.2);
}

.scroll-indicator i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform-origin: top;
  animation: scroll-line 1.5s ease-in-out infinite;
}

/* TICKER */
.ticker {
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #000;
  user-select: none;
}

.ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker__track span {
  color: rgba(255,255,255,.35);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
}

/* WORK */
.work {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 128px;
  padding: 128px 48px;
  background: #000;
}

.section-title {
  margin-bottom: -64px;
  text-align: center;
}

.section-title h2 {
  color: rgba(255,255,255,.5);
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 128px;
}

.project-card {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1);
}

.project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.project-card__number {
  color: rgba(255,255,255,.3);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project-card__title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 120px);
  line-height: .9;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-card__tag {
  width: fit-content;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-card__description {
  max-width: 450px;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  font-weight: 300;
}

.project-card__hero {
  position: relative;
  width: 100%;
  margin-bottom: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.project-card__hero img {
  width: 100%;
  height: auto;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}

.project-card__hero:hover img {
  transform: scale(1.03);
}

.project-card__hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .4s ease;
}

.project-card__hero:hover .project-card__hero-overlay {
  opacity: 1;
}

.project-card__hero-overlay span {
  padding: 16px 32px;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: .16em;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}

.preview-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  transition: opacity .3s ease;
}

.preview-box:hover img,
.preview-box:hover .phone-mockup {
  opacity: 1;
}

.preview-box__label {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 2;
  color: rgba(255,255,255,.3);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.preview-box__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  color: rgba(255,255,255,.7);
  opacity: 0;
  transition: opacity .3s ease;
}

.preview-box:hover .preview-box__zoom {
  opacity: 1;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: .8;
  transition: opacity .5s ease;
}

.preview-box--desktop {
  aspect-ratio: 16 / 9;
}

.preview-box--mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 40px 0;
}

.phone-mockup {
  position: relative;
  width: 200px;
  padding: 10px;
  border: 2px solid #3a3a3a;
  border-radius: 36px;
  background: #1a1a1a;
  box-shadow: 0 0 0 1px #555, inset 0 0 0 1px #222, 0 24px 48px rgba(0,0,0,.8);
  opacity: .88;
  transition: opacity .3s ease;
}

.phone-mockup::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  width: 72px;
  height: 20px;
  border-radius: 12px;
  background: #000;
  transform: translateX(-50%);
}

.phone-mockup img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  object-fit: cover;
  opacity: 1;
}

.project-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.view-button {
  padding: 16px 32px;
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease;
}

.view-button:hover {
  color: #000;
  background: #fff;
}

.project-note,
.work__note {
  color: rgba(255,255,255,.4);
  font-size: 12px;
  font-style: italic;
}

.work__note {
  margin-top: -72px;
  text-align: center;
  color: rgba(255,255,255,.3);
}

/* ABOUT */
.about {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 128px 24px;
  background: #000;
}

.about__lead {
  margin-bottom: 96px;
  color: #fff;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 300;
  line-height: 1.45;
  text-align: center;
}

.about__services h2 {
  margin-bottom: 48px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 100px);
  text-align: center;
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-row span {
  color: rgba(255,255,255,.5);
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  transition: color .5s ease;
}

.service-row:hover span {
  color: #fff;
}

.service-row small {
  color: rgba(255,255,255,.2);
  font-size: 14px;
  font-weight: 300;
}

/* CONTACT */
.contact {
  width: 100%;
  padding: 160px 24px;
  border-top: 1px solid var(--line);
  background: #000;
}

.contact__content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}

.contact__heading h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(50px, 10vw, 140px);
  line-height: .9;
}

.contact__heading p {
  max-width: 580px;
  margin: 16px auto 0;
  color: rgba(255,255,255,.5);
  font-size: 18px;
  font-weight: 300;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 20px 32px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .3s ease;
}

.contact-form input {
  border-bottom: 1px solid var(--line);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,.2);
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255,255,255,.02);
}

.contact-form textarea {
  resize: none;
}

.contact-form button {
  width: 100%;
  padding: 20px;
  border: 0;
  color: #000;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  box-shadow: 0 0 40px rgba(255,255,255,.15);
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease;
}

.contact-form button:hover {
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 60px rgba(255,255,255,.35);
  transform: scale(1.01);
}

.sent-message {
  padding: 48px 0;
}

.sent-message p {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: .16em;
}

.sent-message span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.4);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact__socials {
  display: flex;
  align-items: center;
  gap: 32px;
  color: rgba(255,255,255,.3);
  font-size: 12px;
  letter-spacing: .16em;
}

.contact__socials a {
  transition: color .3s ease;
}

.contact__socials a:hover {
  color: #fff;
}

/* FOOTER */
.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 64px 0 40px;
  border-top: 1px solid #fff;
  background: #000;
}

.footer img {
  width: 95vw;
  max-width: none;
  opacity: .8;
  transition: opacity .7s ease;
}

.footer img:hover {
  opacity: 1;
}

.footer__bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #fff;
}

.footer__bottom p {
  color: rgba(255,255,255,.25);
  font-size: 11px;
  letter-spacing: .04em;
  text-align: center;
}

.footer__bottom p:last-child {
  color: rgba(255,255,255,.2);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* MODALS */
.project-modal,
.image-modal,
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}

.project-modal.is-open,
.image-modal.is-open,
.info-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-modal {
  z-index: 55;
  overflow-y: auto;
  background: #000;
  transform: translateY(100%);
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .35s ease, visibility .35s ease;
}

.project-modal.is-open {
  transform: translateY(0);
}

.project-modal__top {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(12px);
}

.project-modal__title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: .14em;
}

.project-modal__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.info-button,
.modal-close {
  border: 0;
  color: rgba(255,255,255,.6);
  background: transparent;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .3s ease;
}

.info-button span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
}

.info-button:hover,
.modal-close:hover {
  color: #fff;
}

.project-modal__content {
  width: 100%;
  max-width: 1280px;
  min-height: calc(100dvh - 64px);
  margin: 0 auto;
  padding: 48px 24px;
}

.project-modal__hero {
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid var(--line);
}

.project-modal__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.project-modal__grid h3 {
  margin-bottom: 24px;
  color: #fff;
  font-size: 26px;
  font-weight: 500;
}

.project-modal__grid p {
  color: rgba(255,255,255,.6);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-list span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: rgba(255,255,255,.7);
  font-size: 12px;
}

.live-link,
.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 32px;
  padding: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.live-link {
  color: #000;
  background: #fff;
}

.coming-soon {
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.5);
}

.modal-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.image-modal {
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.95);
}

.image-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  border: 0;
  color: rgba(255,255,255,.65);
  background: transparent;
  font-size: 42px;
  line-height: 1;
  transition: color .3s ease;
}

.image-modal__close:hover {
  color: #fff;
}

.image-modal__content {
  width: 100%;
  max-width: 1040px;
  max-height: 88dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal__content img {
  max-height: 88dvh;
  border: 1px solid var(--line);
}

.image-modal__content .phone-mockup {
  width: auto;
  height: 85dvh;
  aspect-ratio: 9 / 19.5;
  border-radius: 48px;
  padding: 12px;
}

.image-modal__content .phone-mockup img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 38px;
}

.info-modal {
  z-index: 75;
  display: grid;
  place-items: center;
  padding: 24px;
}

.info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(12px);
}

.info-modal__box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 590px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080808;
  box-shadow: 0 0 80px rgba(255,255,255,.04), 0 40px 80px rgba(0,0,0,.8);
  animation: modal-up .45s cubic-bezier(.22,1,.36,1);
}

.info-modal__box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 260px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transform: translateX(-50%);
}

.info-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.info-modal__label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.4);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.info-modal__label span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  font-size: 12px;
}

.info-modal__close {
  border: 0;
  color: rgba(255,255,255,.3);
  background: transparent;
  font-size: 30px;
  line-height: 1;
  transition: transform .3s ease, color .3s ease;
}

.info-modal__close:hover {
  color: #fff;
  transform: rotate(90deg);
}

.info-modal__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
}

.info-modal__body small {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,.25);
  font-size: 9px;
  letter-spacing: .3em;
}

.info-modal__body p {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.info-modal__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px 32px;
  border-top: 1px solid rgba(255,255,255,.05);
  color: rgba(255,255,255,.18);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ANIMATIONS */
.flicker {
  animation: flicker 4s linear infinite;
}

.flicker-1 { animation-duration: 3.5s; animation-delay: .2s; }
.flicker-2 { animation-duration: 4.2s; animation-delay: .7s; }
.flicker-3 { animation-duration: 5.1s; animation-delay: .1s; }
.flicker-4 { animation-duration: 3.8s; animation-delay: 1.1s; }
.flicker-5 { animation-duration: 4.5s; animation-delay: .4s; }

@keyframes flicker {
  0% { opacity: 1; text-shadow: 0 0 60px rgba(255,255,255,.3); }
  4% { opacity: .85; text-shadow: 0 0 20px rgba(255,255,255,.1); }
  8% { opacity: 1; text-shadow: 0 0 80px rgba(255,255,255,.4); }
  15% { opacity: .92; text-shadow: 0 0 40px rgba(255,255,255,.2); }
  20% { opacity: 1; text-shadow: 0 0 60px rgba(255,255,255,.3); }
  55% { opacity: 1; text-shadow: 0 0 60px rgba(255,255,255,.3); }
  57% { opacity: .7; text-shadow: 0 0 10px rgba(255,255,255,.05); }
  58% { opacity: 1; text-shadow: 0 0 80px rgba(255,255,255,.5); }
  100% { opacity: 1; text-shadow: 0 0 60px rgba(255,255,255,.3); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scroll-line {
  0% { transform: translateY(-100%) scaleY(0); }
  50% { transform: translateY(0%) scaleY(1); }
  100% { transform: translateY(100%) scaleY(0); }
}

@keyframes modal-up {
  from { opacity: 0; transform: translateY(60px) scale(.94); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@media (max-width: 900px) {
  .navbar__links { display: none; }
  .navbar__menu-button { display: block; }
  .work { padding: 96px 24px; gap: 96px; }
  .preview-grid,
  .project-modal__grid,
  .modal-preview-grid { grid-template-columns: 1fr; }
  .project-card__meta,
  .project-card__bottom { align-items: flex-start; flex-direction: column; }
  .project-modal__top { height: auto; min-height: 64px; gap: 16px; align-items: flex-start; flex-direction: column; padding: 16px 24px; }
  .project-modal__actions { width: 100%; justify-content: space-between; }
  .mobile-menu__links a { font-size: 42px; }
}

@media (max-width: 560px) {
  .navbar { padding: 0 18px; }
  .hero__title h1 { font-size: clamp(76px, 26vw, 120px); }
  .hero__half { width: 50%; }
  .work { padding-left: 18px; padding-right: 18px; }
  .preview-box--mobile { min-height: 320px; }
  .phone-mockup { width: 170px; }
  .contact-form input,
  .contact-form textarea { padding: 18px 20px; font-size: 12px; }
  .contact__socials { gap: 18px; }
  .info-modal__top,
  .info-modal__body,
  .info-modal__bottom { padding-left: 22px; padding-right: 22px; }
}

.navbar__logo {
  scroll-behavior: smooth;
}
.logo {
  height: 30px;
  width: 30;;
}

/* =====================================================
   EFEITOS DE SCROLL EM MAIS CLASSES
   Entrada suave da esquerda para a direita
   Classes afetadas pelo JS:
   section-title, project-card, previews, about, services,
   contact e footer.
   ===================================================== */
.scroll-left-fx {
  position: relative;
  will-change: transform, opacity, filter;
}

html.has-scroll-fx .scroll-left-fx {
  opacity: var(--fx-opacity, 0.08);
  transform: translate3d(var(--fx-x, -120px), var(--fx-y, 18px), 0) scale(var(--fx-scale, .975));
  filter: blur(var(--fx-blur, 10px));
  transition:
    opacity .16s ease-out,
    transform .16s ease-out,
    filter .16s ease-out;
}

html.has-scroll-fx .scroll-line-fx {
  overflow: hidden;
}

html.has-scroll-fx .scroll-line-fx::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: var(--fx-line, 0%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  opacity: var(--fx-line-opacity, 0);
  pointer-events: none;
}

/* Ajustes específicos para ficar bonito em cada área */
html.has-scroll-fx .section-title.scroll-left-fx {
  transform-origin: left center;
}

html.has-scroll-fx .project-card.scroll-left-fx,
html.has-scroll-fx .project-card__hero.scroll-left-fx,
html.has-scroll-fx .preview-box.scroll-left-fx {
  transform-origin: left center;
}

html.has-scroll-fx .services-list .service-row.scroll-left-fx span,
html.has-scroll-fx .services-list .service-row.scroll-left-fx small {
  transition: color .5s ease, opacity .16s ease-out, transform .16s ease-out;
}

html.has-scroll-fx .services-list .service-row.scroll-left-fx span {
  transform: translate3d(calc(var(--fx-x, -120px) * .18), 0, 0);
}

html.has-scroll-fx .services-list .service-row.scroll-left-fx small {
  opacity: calc(var(--fx-opacity, .08) * .85);
  transform: translate3d(calc(var(--fx-x, -120px) * .28), 0, 0);
}

html.has-scroll-fx .contact-form.scroll-left-fx {
  box-shadow: calc(var(--fx-line-opacity, 0) * 0px) 0 0 rgba(255,255,255,0);
}

html.has-scroll-fx .footer img.scroll-left-fx {
  transform: translate3d(var(--fx-x, -95px), var(--fx-y, 18px), 0) scale(var(--fx-scale, .975));
}

@media (prefers-reduced-motion: reduce) {
  html.has-scroll-fx .scroll-left-fx,
  html.has-scroll-fx .services-list .service-row.scroll-left-fx span,
  html.has-scroll-fx .services-list .service-row.scroll-left-fx small {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  html.has-scroll-fx .scroll-line-fx::after {
    width: 100%;
    opacity: .16;
  }
}
.intro__logo img {
    display: block;
    width: min(624px, 480vw);
    height: auto;
    margin: 0 auto;
}