/* === Fonts === */
@font-face {
  font-family: 'Dirtyline';
  src: url('../fonts/Dirtyline 36daysoftype 2022/Dirtyline 36daysoftype 2022.otf') format('opentype');
  font-style: normal;
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('../fonts/Nohemi/Web-PS/Nohemi-Thin.woff2') format('woff2'),
    url('../fonts/Nohemi/Web-PS/Nohemi-Thin.otf') format('opentype');
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('../fonts/Nohemi/Web-PS/Nohemi-ExtraLight.woff2') format('woff2'),
    url('../fonts/Nohemi/Web-PS/Nohemi-ExtraLight.otf') format('opentype');
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('../fonts/Nohemi/Web-PS/Nohemi-Light.woff2') format('woff2'),
    url('../fonts/Nohemi/Web-PS/Nohemi-Light.otf') format('opentype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('../fonts/Nohemi/Web-PS/Nohemi-Regular.woff2') format('woff2'),
    url('../fonts/Nohemi/Web-PS/Nohemi-Regular.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('../fonts/Nohemi/Web-PS/Nohemi-Medium.woff2') format('woff2'),
    url('../fonts/Nohemi/Web-PS/Nohemi-Medium.otf') format('opentype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('../fonts/Nohemi/Web-PS/Nohemi-SemiBold.woff2') format('woff2'),
    url('../fonts/Nohemi/Web-PS/Nohemi-SemiBold.otf') format('opentype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('../fonts/Nohemi/Web-PS/Nohemi-Bold.woff2') format('woff2'),
    url('../fonts/Nohemi/Web-PS/Nohemi-Bold.otf') format('opentype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('../fonts/Nohemi/Web-PS/Nohemi-ExtraBold.woff2') format('woff2'),
    url('../fonts/Nohemi/Web-PS/Nohemi-ExtraBold.otf') format('opentype');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Nohemi';
  src: url('../fonts/Nohemi/Web-PS/Nohemi-Black.woff2') format('woff2'),
    url('../fonts/Nohemi/Web-PS/Nohemi-Black.otf') format('opentype');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* === /Fonts === */

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

html {
  scroll-behavior: smooth;
}

/* === Loading / intro (primeira visita na sessão) === */
body.is-loading .topbar,
body.is-loading #conteudo {
  visibility: hidden;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  min-width: 100%;
  min-height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.loading-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
}

.loading.loading--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* === /Loading === */

body {
  font-family: 'Nohemi', Arial, Helvetica, sans-serif;
  color: #1E1E1E;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}

/* === Grid System === */
:root {
  --grid-cols: 12;
  --grid-gap: 24px;
  --grid-padding: clamp(20px, 5vw, 20px);
  --max-width: 100%;
}

/* Scrollbar overlay no Windows — evita que o scrollbar empurre o layout */
html {
  scrollbar-gutter: stable;
}

/* Scrollbar fina e discreta (Chrome/Edge Windows) */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.35);
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--grid-padding);
}

/* Grid base reutilizável */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--grid-gap);
}

/* === /Grid System === */

a {
  text-decoration: none;
  color: #000;
}

.wevers {
  font-family: 'Dirtyline', 'Daysoftype', sans-serif !important;
  font-size: clamp(32px, 5vw, 42px) !important;
  letter-spacing: 2px;
  display: block;
  margin: 70px 0 20px 0;
}

#titulo-principal {
  font-size: clamp(22px, 3vw, 72px) !important;
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 20px;
}

#titulo-principal .font-bold {
  font-weight: 400;
}

.hero-title-mobile {
  display: none;
}

.hero-title-desktop {
  display: inline;
}

@media (max-width: 600px) {
  .hero-title-desktop {
    display: none;
  }

  .hero-title-mobile {
    display: inline;
  }
}

.hero h4 {
  font-size: clamp(12px, 2vw, 15px);
  letter-spacing: 0.05em;
  font-weight: 300;
  opacity: 0.9;
  margin: 15px 0;
}

.cta-hero {
  color: #7B4BFF !important;
  font-size: clamp(20px, 4vw, 26px) !important;
  gap: 4px !important;
  text-decoration: none;
  font-weight: 500;
  margin: 10px 0;
}

.cta-hero .hover-underline-animation {
  color: #7B4BFF !important;
  font-size: 30px !important;
  font-weight: 500;
}

.cta-hero .hover-underline-animation:after {
  background: #7B4BFF !important;
}

.cta-hero__arrow {
  color: #7B4BFF;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin-bottom: 7px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-hero:hover .cta-hero__arrow {
  transform: translateX(6px);
}

.cta-arrow {
  font-size: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin-bottom: 7px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta:hover .cta-arrow {
  transform: translateX(6px);
}

.cta-hero svg {
  display: none;
}

.cta-hero:hover svg {
  transform: translateX(5px) !important;
}


/* === Header === */
.topbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  will-change: background;
}

.topbar.blend-mode {
  background: #1E1E1E;
  backdrop-filter: none;
}

.topbar.topbar--light {
  background: #fff !important;
  backdrop-filter: none;
}

/* Garante que topbar--light nunca fique escuro pelo blend-mode */
.topbar.topbar--light.blend-mode {
  background: #fff !important;
  backdrop-filter: none;
}

.topbar.topbar--light .logo,
.topbar.topbar--light .menu a {
  color: #000 !important;
}

.topbar.topbar--light .hamburger {
  background: #000 !important;
}

.topbar.topbar--light .menu a::after {
  background-color: #000 !important;
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 14px;
}

.topbar__inner .menu {
  justify-self: end;
}

.logo {
  font-weight: 500;
  font-size: clamp(16px, 2.5vw, 20px);
  color: #000;
  transition: color 0.3s ease;
}

.topbar.blend-mode .logo {
  color: #fff;
}

.menu {
  display: flex;
  gap: clamp(16px, 4vw, 80px);
}

.menu a {
  position: relative;
  text-decoration: none;
  color: #000;
  font-size: clamp(14px, 2vw, 20px);
  padding-bottom: 5px;
  font-weight: 300;
  font-style: normal;
  transition: color 0.3s ease;
}

.topbar.blend-mode .menu a {
  color: #fff;
}

.menu a::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out, background-color 0.3s ease;
}

.topbar.blend-mode .menu a::after {
  background-color: #fff;
}

.menu a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 100;
  width: 44px;
  height: 44px;
  position: relative;
  justify-self: end;
}

.hamburger {
  display: block;
  width: 22px;
  height: 1.2px;
  background: #000;
  position: relative;
  transition: background 0.3s ease;
}

.topbar.blend-mode .hamburger {
  background: #fff;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1.2px;
  background: inherit;
  left: 0;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

/* Estado Aberto */
.menu-toggle.is-active .hamburger {
  background: transparent !important;
}

.menu-toggle.is-active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background: #000 !important;
}

.menu-toggle.is-active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  background: #000 !important;
}

body.is-menu-open {
  overflow: hidden;
}

/* === /Header === */

/* === Hero === */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 110px 0 80px;
  overflow: hidden;
  perspective: 1100px;
}

/* Vídeo um pouco mais afastado + margem para o tilt não vazar */
.hero-video-tilt {
  position: absolute;
  z-index: 2;
  inset: -10%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, -85px) rotateX(0deg) rotateY(0deg) scale(1);
  transform-origin: center center;
  transition: transform 0.12s ease-out;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero h1 {
  font-size: 50px;
  line-height: 0.95;
  letter-spacing: 1px;
  font-weight: 300;
  font-style: medium;
  z-index: 3;
}

.hero-video {
  width: 90%;
  height: auto;
  object-fit: cover;
  object-position: center center;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
  filter: saturate(1.05);
}

.collage {
  position: absolute;
  z-index: 1;
  object-fit: cover;
  filter: saturate(1.05);
}

.c1 {
  width: 140px;
  height: 140px;
  left: 8%;
  top: 70px;
}

.c2 {
  width: 180px;
  height: 120px;
  right: 8%;
  top: 110px;
}

.c3 {
  width: 160px;
  height: 160px;
  left: 15%;
  bottom: 60px;
}

.c4 {
  width: 210px;
  height: 140px;
  right: 14%;
  bottom: 70px;
}

.c5 {
  width: 110px;
  height: 110px;
  right: 35%;
  top: 40px;
}

.btn-reels {
  margin: 18px auto 0;
  outline: 0;
  border: 1px solid black;
  display: flex;
  flex-direction: column;
  width: 245px;
  height: 45px;
  font-size: 12px;
  border-radius: 0.5em;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  font-style: medium;
}

.btn-submit {
  margin: 0;
  width: 100%;
  max-width: 340px;
}

.btn-reels div {
  transform: translateY(0px);
  width: 100%;
}

.btn-reels,
.btn-reels div {
  transition: 0.6s cubic-bezier(.16, 1, .3, 1);
}

.btn-reels div span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 45px;
  padding: 0 1.125em;
}

.btn-reels div:nth-child(1) {
  background: #fff;
  color: #000;
}

.btn-reels div:nth-child(2) {
  background: #000;
  color: #fff;
}

.btn-reels:hover div {
  transform: translateY(-46px);
}

.btn-reels svg path {
  fill: currentColor;
}

.btn-reels p {
  font-size: 30px;
  font-weight: 500;
}

.btn-reels:active {
  transform: scale(0.95);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #666;
  letter-spacing: 1px;
  animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, 0);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, 4px);
  }
}

/* === /Hero === */

/* === Projects === */
.projects {
  background: #1E1E1E;
  padding: 22px 0 0;
}

.projects .wrap {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--grid-gap);
  row-gap: 0;
}

.video-reels-2026-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0 0 0;
}

.section-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 40px 0;
}

.section-header h2 {
  grid-column: 1 / 2;
  font-size: clamp(32px, 5vw, 48px);
}

.section-header .section-sub {
  grid-column: 1 / 2;
}

.section-header .cta {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  align-self: center;
}

.seo-copy {
  grid-column: 1 / -1;
  padding: 24px 0 8px;
}

.video-reels-2026-wrap {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  border-radius: 2px;
}

/* Player (mesmo padrão de sobre_projeto.css) */
.player {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid #2a2a2a;
  aspect-ratio: 16 / 9;
}

.player .video-content {
  display: block;
  width: 100%;
  box-sizing: border-box;
  object-fit: cover;
  object-position: center;
}

.video-reels-2026-wrap:not(.is-reels-active) {
  cursor: pointer;
}

.video-reels-2026-wrap .video-reels-2026.video-content {
  filter: none;
  transform: scale(1);
  transition:
    filter 0.55s cubic-bezier(0.25, 1, 0.45, 1),
    transform 0.55s cubic-bezier(0.25, 1, 0.45, 1);
}

.video-reels-2026-wrap:not(.is-reels-active):hover .video-reels-2026.video-content {
  filter: blur(3px) brightness(0.5);
  transform: scale(1.06);
}

.video-reels-2026-wrap.is-reels-active .video-reels-2026.video-content {
  filter: none;
  transform: scale(1);
}

.video-reels-2026-preview-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-reels-2026-hover-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: blur(3px) brightness(0.5);
  transform: scale(1.06);
}

.video-reels-2026-wrap:not(.is-reels-active):hover .video-reels-2026-preview-layer {
  opacity: 1;
  visibility: visible;
}

.video-reels-2026-wrap.is-reels-active .video-reels-2026-preview-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-reels-2026-label {
  pointer-events: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 122.8px;
  font-weight: 400;
}

/* —— Player reel (home): mini progress no rodapé + play com cursor —— */
.player--cinematic .player-mini-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: 3px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.player--cinematic.is-reels-active:hover .player-mini-progress,
.player--cinematic.is-reels-active.is-paused .player-mini-progress,
.player--cinematic.is-cinematic-on:hover .player-mini-progress,
.player--cinematic.is-cinematic-on.is-paused .player-mini-progress {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  touch-action: none;
}

.player-mini-progress__fill {
  height: 100%;
  width: 0%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  border-radius: 0 1px 1px 0;
  transition: width 0.08s linear;
  pointer-events: none;
}

.player--cinematic .player-controls-cinematic {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.player--cinematic .player-controls-cinematic__cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player--cinematic.is-reels-active:hover .player-controls-cinematic,
.player--cinematic.is-reels-active.is-paused .player-controls-cinematic,
.player--cinematic.is-cinematic-on:hover .player-controls-cinematic,
.player--cinematic.is-cinematic-on.is-paused .player-controls-cinematic {
  opacity: 1;
  visibility: visible;
}

/* Mobile (primeira visita reel): esconde cluster e play; fullscreen fica nas regras @media (max-width: 900px) */
.player--cinematic.is-mobile-first-load .player-controls-cinematic__cluster,
.player--cinematic.is-mobile-first-load .play-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.player--cinematic .btn-skip {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.player--cinematic .btn-skip:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.player--cinematic .volume-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px;
  border-radius: 30px;
  transition: gap 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding-right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.player--cinematic .volume-wrap:hover {
  gap: 8px;
  padding-right: 12px;
}

.player--cinematic .volume-mute {
  background: transparent;
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.player--cinematic .volume-mute:hover {
  background: rgba(255, 255, 255, 0.1);
}

.player--cinematic .volume-slider {
  width: 0;
  opacity: 0;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.player--cinematic .volume-wrap:hover .volume-slider {
  width: 70px;
  opacity: 1;
}

.player--cinematic .fullscreen {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
}

.player--cinematic .fullscreen:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.video-reels-2026-wrap:not(.is-reels-active) .play-btn {
  display: none !important;
}

/* Botão play cinematográfico: círculo branco, triângulo escuro (reel + sobre projeto) */
.player--cinematic .play-btn--cinematic {
  z-index: 6;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  background: #fff;
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  padding: 0;
  margin: 0;
}

.player--cinematic .play-btn--cinematic::before {
  border-left-color: #111;
  margin-left: 5px;
}

.player--cinematic .play-btn--cinematic:hover {
  background: #f5f5f5;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
}

/* Touch: play centralizado (sem seguir o dedo) */
@media (hover: none),
(pointer: coarse) {
  .player--cinematic .play-btn--cinematic {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
}

/* Botão central (sobre_projeto) */
.player .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 70px;
  height: 70px;
  background: rgba(0, 0, 0, 0.55);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.player .play-btn:hover {
  background: #fff;
}

.player .play-btn:hover::before {
  border-left-color: #000;
}

.player .play-btn::before {
  content: '';
  margin-left: 4px;
  border-left: 18px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* Controles (sobre_projeto) */
.player .controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.92) 55%, transparent 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.player .controls button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.player .controls button:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.player .volume-mute__icon {
  pointer-events: none;
  font-size: 14px;
  line-height: 1;
}

.player .time {
  color: #f0f0f0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.player .progress {
  --progress-pct: 0%;
  flex: 1;
  cursor: pointer;
  height: 8px;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
}

.player .progress::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(to right,
      #fff 0%,
      #fff var(--progress-pct),
      #3a3a3a var(--progress-pct),
      #3a3a3a 100%);
}

.player .progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 6px;
  margin-top: 0;
  border-radius: 2px;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
}

.player .progress::-moz-range-track {
  height: 6px;
  border-radius: 2px;
  background: #3a3a3a;
}

.player .progress::-moz-range-progress {
  height: 6px;
  border-radius: 2px;
  background: #fff;
}

.player .progress::-moz-range-thumb {
  width: 0;
  height: 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.player .volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.player .volume-slider {
  --volume-pct: 100%;
  width: 72px;
  height: 8px;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  cursor: pointer;
}

.player .volume-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(to right,
      #fff 0%,
      #fff var(--volume-pct),
      #3a3a3a var(--volume-pct),
      #3a3a3a 100%);
}

.player .volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 6px;
  margin-top: 0;
  border-radius: 2px;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
}

.player .volume-slider::-moz-range-track {
  height: 6px;
  border-radius: 2px;
  background: #3a3a3a;
}

.player .volume-slider::-moz-range-progress {
  height: 6px;
  border-radius: 2px;
  background: #fff;
}

.player .volume-slider::-moz-range-thumb {
  width: 0;
  height: 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

/* Tela cheia: mesmo player + controles (não fullscreen só no <video>) */
.player:fullscreen,
.player:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  background: #000;
  overflow: hidden;
}

.player:fullscreen .video-content,
.player:-webkit-full-screen .video-content {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  cursor: pointer;
}

.video-reels-2026-wrap.player:fullscreen .video-reels-2026.video-content,
.video-reels-2026-wrap.player:-webkit-full-screen .video-reels-2026.video-content {
  filter: none;
  transform: none;
  object-fit: contain;
}

.card {
  display: block;
  overflow: hidden;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
}

/* Thumbnails */
.thumb {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.thumb img,
.thumb video {
  position: absolute;
  width: 100%;
  height: 290px !important;
  object-fit: cover;
  top: 0;
  left: 0;
}

@media (max-width: 900px) {
  .thumb img,
  .thumb video {
    height: auto !important;
  }
}

@media (min-width: 2000px) {
    .thumb img, 
    .thumb video {
      height: 450px !important;
    }
}

/* imagem parada */
.thumb-static {
  z-index: 1;
}

/* gif/video por cima */
.thumb-hover {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.item {
  width: 100%;
  height: 100%;
}

/* hover suave */
.item:hover .thumb-hover {
  opacity: 1;
}

.card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  z-index: 5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.card:hover .card-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Thumbnails */

.cta {
  display: flex !important;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.cta span {
  padding-bottom: 7px;
  font-size: 44px;
}

.cta svg {
  display: inline-block;
  vertical-align: middle;
  transform: translateX(-8px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta:hover svg {
  transform: translateX(0);
}

.cta svg path {
  fill: currentColor;
}

.hover-underline-animation {
  position: relative;
  font-weight: 400;
}

.hover-underline-animation:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  transform-origin: bottom right;
  transition: transform .25s ease-out;
}

.cta:hover .hover-underline-animation:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.font-bold {
  font-weight: 400;
}

.cta--light {
  color: #fff;
  margin-left: 0;
}

.cta--light .hover-underline-animation {
  color: #fff;
}

.cta--light .hover-underline-animation:after {
  background: #fff;
}

.cta--dark {
  color: #000;
  margin-left: 0;
}

.cta--dark .hover-underline-animation {
  color: #000;
}

.cta--dark .hover-underline-animation:after {
  background: #000;
}

/* === /Projects === */

/* === About === */
.about {
  background: #1E1E1E;
  min-height: 100dvh;
  padding: 70px 0 100px;
  color: #fff;
  display: flex;
  align-items: center;
  content-visibility: auto;
  contain-intrinsic-size: 0 100dvh;
}

.about-container {
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  padding-left: var(--grid-padding);
  padding-right: var(--grid-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-title {
  font-size: 44px;
  font-weight: 400;
  margin-bottom: 70px;
  text-align: center;
  color: #fff;
}

.about-title span {
  font-weight: 500;
}

.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  max-width: 900px;
  width: 100%;
}

.about-left {
  display: flex;
  flex-direction: column;
}

.about-img-wrap {
  position: relative;
  display: inline-block;
  border-radius: 2px;
  --spot-x: 50%;
  --spot-y: 50%;
  --spot-r: clamp(72px, 18vmin, 200px);
  --glow-r: 200;
  --glow-g: 200;
  --glow-b: 200;
  transition: box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-img-wrap.is-active {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 50px rgb(var(--glow-r) var(--glow-g) var(--glow-b) / 0.35),
    0 0 100px rgb(var(--glow-r) var(--glow-g) var(--glow-b) / 0.18),
    0 24px 48px rgba(0, 0, 0, 0.35);
  transform: scale(1.01);
}

.about-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.about-img--color {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  z-index: 0;
}

.about-img--mono {
  position: relative;
  z-index: 1;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.35s ease;
}

.about-img-wrap.is-active .about-img--mono {
  filter: grayscale(1) contrast(1.06) brightness(1.03);
  -webkit-mask-image: radial-gradient(circle var(--spot-r) at var(--spot-x) var(--spot-y),
      transparent 0%,
      transparent 40%,
      rgba(0, 0, 0, 0.12) 55%,
      rgba(0, 0, 0, 0.82) 76%,
      #000 100%);
  mask-image: radial-gradient(circle var(--spot-r) at var(--spot-x) var(--spot-y),
      transparent 0%,
      transparent 40%,
      rgba(0, 0, 0, 0.12) 55%,
      rgba(0, 0, 0, 0.82) 76%,
      #000 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .about-img-wrap {
    cursor: default;
    transition: none;
  }

  .about-img-wrap.is-active {
    transform: none;
    box-shadow: none;
  }

  .about-img-wrap.is-active .about-img--mono {
    -webkit-mask-image: none;
    mask-image: none;
    filter: grayscale(0);
  }

  .about-img-wrap:hover .about-img--mono {
    filter: grayscale(0);
  }
}

.about-links {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-links a {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.about-links a:hover {
  opacity: 0.8;
}

.about-content {
  max-width: 100%;
}

.about-content p {
  font-size: clamp(16px, 3vw, 20px);
  line-height: 1.4;
  color: #ccc;
  margin-bottom: 24px;
  font-weight: 300;
  font-style: normal;
}

.about-content strong {
  color: #fff;
  font-weight: 600;
}

/* === /About === */

/* === Contact === */
.contact {
  background: #f0f0f0;
  min-height: 100dvh;
  padding: 40px 0 60px;
  display: flex;
  align-items: center;
  content-visibility: auto;
  contain-intrinsic-size: 0 100dvh;
}

.contact__box {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--grid-gap);
  align-items: start;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.contact__heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.35em;
  margin-bottom: 32px;
  line-height: 1;
  font-size: clamp(24px, 4vw, 40px); /* base para os em dos filhos */
}

.contact__small {
  font-size: 1em;
  font-weight: 300;
  flex-shrink: 0;
  white-space: nowrap;
  padding-top: 0.12em;
}

.contact__heading-right {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.contact__work {
  font-size: 1em;
  font-weight: 300;
  line-height: 1.2;
  white-space: nowrap;
}

.contact h1 {
  font-weight: 400;
  text-align: left;
  transform: none !important;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.form {
  grid-column: 1 / -1;
  width: 680px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--grid-gap);
  text-align: left;
}

.contact__mail {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 0;
  font-size: 12px;
  font-weight: 700;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 0 8px;
  border-bottom: 1px solid #cfcfcf;
}

.form__row.full {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(30, 30, 30, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 20%, rgba(123, 75, 255, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(30, 30, 30, 0.08);
  color: #1E1E1E;
  transform: translateY(0);
  animation: formStatusIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-status[hidden] {
  display: none;
}

.form-status__icon {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 999px;
  background: #7B4BFF;
  box-shadow: 0 0 0 8px rgba(123, 75, 255, 0.12);
  flex-shrink: 0;
}

.form-status__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-status__title {
  font-size: 15px;
  font-weight: 600;
}

.form-status__message {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(30, 30, 30, 0.68);
}

.form-status.is-sending .form-status__icon {
  background: transparent;
  border: 2px solid rgba(123, 75, 255, 0.18);
  border-top-color: #7B4BFF;
  animation: formStatusSpin 0.75s linear infinite;
}

.form-status.is-success .form-status__icon {
  background: #1E1E1E;
  box-shadow: 0 0 0 8px rgba(30, 30, 30, 0.08);
}

.form-status.is-error .form-status__icon {
  background: #d93025;
  box-shadow: 0 0 0 8px rgba(217, 48, 37, 0.10);
}

.btn-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

@keyframes formStatusIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes formStatusSpin {
  to {
    transform: rotate(360deg);
  }
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #1E1E1E;
  transition: color 0.25s ease;
}

.form__row.focused label {
  color: #1E1E1E;
}

input,
textarea {
  border: none;
  background: transparent;
  padding: 6px 0 4px;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  border-bottom-color: #1E1E1E;
}

/* === /Contact === */

/* === Footer === */
.footer {
  background: #1E1E1E;
  padding: 18px 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer a {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

.footer__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.link-underline {
  font-size: clamp(20px, 4vw, 35px);
  position: relative;
  text-decoration: none;
  color: inherit;
  padding-bottom: 4px;
}

.link-underline::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* === /Footer === */

.footer--light {
  background: #fff !important;
  color: #000 !important;
  border-top: 1px solid #f0f0f0;
}

.footer--light a,
.footer--light .footer__copyright {
  color: #000 !important;
}

.footer--light .link-underline::after {
  background-color: #000 !important;
}

/* === Grade de projetos (expansão ao hover) === */
.projects-expand-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0;
  min-height: 0;
}

.projects-expand-grid .card {
  position: relative;
  min-width: 0;
  /* Altura fixa: no hover só a largura muda (flex), o bloco não “cresce” pra cima/baixo */
  height: 350px;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 2px;
  display: block;
  transition: flex 0.55s cubic-bezier(0.25, 1, 0.45, 1), transform 0.55s cubic-bezier(0.25, 1, 0.45, 1);
}

.projects-expand-grid .card > .item,
.projects-expand-grid .card > .item > a.item {
  display: block;
  width: 100%;
  height: 100%;
}

.projects-expand-grid .thumb {
  position: relative;
}

/* Efeito de expansão via flex em telas grandes */
@media (min-width: 901px) {
  .projects-expand-grid {
    display: flex;
    width: 100%;
  }

  .projects-expand-grid .card {
    flex: 1 1 0;
  }

  .projects-expand-grid .card:hover,
  .projects-expand-grid .card:focus-within {
    flex: 1.5 1 0;
  }
}

.projects-expand-grid .card img {
  width: 100% !important;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === /Grade de projetos === */

/* === Grade de projetos estática (projects.html) === */
.projects-static-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.projects-static-grid .card {
  position: relative;
  min-width: 0;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  display: block;
}

.projects-static-grid .card img,
.projects-static-grid .card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Interatividade === */
.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (min-width: 2000px) {
  .projects-expand-grid .card{
    height: 450px !important;
  }
}

.hero__content.reveal-ready {
  transition-delay: 0.5s;
}

.hero .btn-reels.reveal-ready {
  transition-delay: 0.3s;
}

.projects-expand-grid .card img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.topbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.cta {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.footer a {
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer a:hover {
  opacity: 0.85;
}

.footer__copyright {
  font-size: 10px;
  font-weight: 300;
  color: #ccc;
}

@media (min-width: 901px) {
  .footer a {
    font-size: 20px;
  }

  .footer__copyright {
    font-size: 12px;
  }
}

/* === /Interatividade === */

/* === Responsivo === */
@media (max-width: 1200px) {
  .form {
    grid-column: 2 / 12;
  }
}

@media (max-width: 900px) {
  :root {
    --grid-padding: 20px;
    --grid-gap: 16px;
  }

  .about {
    padding: 40px 0 60px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .menu.is-active {
    opacity: 1;
    visibility: visible;
  }

  .menu a {
    font-size: 32px;
    font-weight: 500;
    color: #000 !important;
  }

  .menu a::after {
    background-color: #000 !important;
  }

  .topbar__inner {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .card {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .projects-expand-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .projects-expand-grid .card {
    height: auto;
    aspect-ratio: 12 / 10; /* Taller on mobile as well */
  }

  .projects-static-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .projects-static-grid .card {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .section-header {
    grid-template-columns: 1fr;
  }

  .section-header .cta {
    grid-column: 1 / 2;
    grid-row: auto;
    justify-self: start;
    margin-left: 0;
  }

  .section-header .cta span {
    font-size: 32px;
  }

  .about-container {
    align-items: flex-start;
  }

  .about-title {
    text-align: left;
    margin-bottom: 30px;
    font-size: 32px;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: left;
  }

  .about-content {
    order: -1;
    text-align: left;
  }

  .about-content p {
    margin-bottom: 20px;
  }

  .about-content p br {
    display: none;
  }

  .about-left {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: center;
  }

  .about-img-wrap {
    width: 140px;
  }

  .about-links {
    margin-top: 0;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
  }

  .about-links a {
    font-size: 20px;
    font-weight: 500;
  }

  .form {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    width: 320px;
    max-width: 100%;
  }

  .form__row {
    width: 150px;
  }

  .form__row.full {
    width: 100% !important;
  }

  .contact__small {
    grid-column: 1 / -1;
    text-align: left;
  }

  .contact h1 {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 60px;
  }

  .contact__heading {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.35em;
  }

  .contact__small {
    text-align: left;
  }

  .contact__work {
    text-align: left;
  }

  .contact h1 {
    text-align: left;
  }

  .contact__box {
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
  }

  .collage {
    opacity: .35;
  }

  /* Hide project hover videos and reel preview on mobile (except detail page) */
  body:not(.page-project-detail) .thumb-hover,
  .video-reels-2026-preview-layer {
    display: none !important;
  }

  /* Disable Hero Tilt and Perspective on Mobile */
  .hero-video-tilt {
    transform: none !important;
    perspective: none !important;
    will-change: auto !important;
    transform-style: flat !important;
  }

  /* Disable useless hover transforms/filters on mobile to avoid "sticky" tap states */
  .projects-expand-grid .card:hover,
  .projects-expand-grid .item:hover,
  .projects-static-grid .card:hover,
  .thumb:hover img,
  .thumb:hover video,
  .video-reels-2026-wrap:not(.is-reels-active):hover .video-reels-2026.video-content {
    transform: none !important;
    filter: none !important;
  }

  /* Show play button on mobile since preview layer is hidden */
  .video-reels-2026-wrap:not(.is-reels-active) .play-btn--cinematic {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Página de projeto: play central visível no mobile (mesmo padrão do reel na home) */
  .page-project-detail .project-hero__player.player--cinematic.is-mobile-first-load .play-btn--cinematic {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Hide all .webm videos on mobile (except detail page, hero and loading) */
  body:not(.page-project-detail) video:not(.hero-video):not(.loading-video) source[src*=".webm"],
  body:not(.page-project-detail) video:not(.hero-video):not(.loading-video)[src*=".webm"] {
    display: none !important;
  }

  /* Ensure the video element itself is hidden if it only has .webm sources (except detail page, hero and loading) */
  body:not(.page-project-detail) video:not(.hero-video):not(.loading-video):has(source[src*=".webm"]) {
    display: none !important;
  }

  /* Mobile: mini progress só quando pausado; voltar/avançar/volume só quando pausado (e após 1º play no reel) */
  .player--cinematic:hover .player-mini-progress,
  .player--cinematic:hover .player-controls-cinematic__cluster {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .player--cinematic.is-paused .player-mini-progress {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .player--cinematic.is-paused:not(.is-mobile-first-load) .player-controls-cinematic__cluster {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .player--cinematic:not(.is-paused) .player-controls-cinematic__cluster {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Barra sempre visível no mobile para o fullscreen; cliques só no botão até pausar */
  .player--cinematic .player-controls-cinematic {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
  }

  .player--cinematic .player-controls-cinematic .fullscreen {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .player--cinematic.is-paused .player-controls-cinematic {
    pointer-events: auto !important;
  }
}

/* === Performance Mobile === */
@media (max-width: 900px) {
  /* Desabilita backdrop-filter no mobile (muito pesado para GPU) */
  .topbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
  }

  .topbar.blend-mode {
    background: #1E1E1E !important;
  }

  /* Remove will-change global (libera memória GPU) */
  .player--cinematic .play-btn--cinematic {
    will-change: auto;
  }

  /* Animações mais simples no mobile */
  .reveal-ready {
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  /* Reduz duração de transições pesadas */
  .projects-expand-grid .card,
  .video-reels-2026-wrap .video-reels-2026.video-content {
    transition: none !important;
  }

  /* Touch action para evitar delay de 300ms */
  a, button, .card, .cta, .menu-toggle {
    touch-action: manipulation;
  }

  /* Disable scroll-behavior smooth no mobile (causa jank) */
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 600px) {
  .wevers {
    font-size: 28px !important;
    margin: 40px 0 10px 0;
  }

  #titulo-principal {
    font-size: clamp(32px, 10vw, 52px) !important;
    text-align: center;
  }

  .hero__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-video {
    width: 25cm !important;
  }

  .projects-expand-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    margin-left: calc(-1 * var(--grid-padding));
    margin-right: calc(-1 * var(--grid-padding));
    gap: 10px;
    padding-left: var(--grid-padding);
    padding-right: var(--grid-padding);
    scroll-padding-left: var(--grid-padding);
  }

  .projects-expand-grid::-webkit-scrollbar {
    display: none;
  }

  .projects-expand-grid .card {
    flex: 0 0 70vw;
    height: auto;
    aspect-ratio: 16 / 9;
    scroll-snap-align: start;
    border-radius: 4px;
  }

  .projects-expand-grid .card img {
    height: 100% !important;
  }

  /* No mobile mostra só a thumb, sem hover de opacidade */
  .projects-expand-grid .thumb-hover {
    display: none !important;
  }

  .projects-expand-grid .thumb-static {
    opacity: 1 !important;
  }

  .projects-static-grid {
    grid-template-columns: 1fr;
  }

  .contact h1 {
    font-size: 38px;
    text-align: left;
  }

  .contact__small {
    font-size: 20px;
    text-align: left;
  }

  .contact__work {
    font-size: 20px;
    text-align: left;
  }

  .cta span {
    font-size: 28px;
  }
}

/* === /Responsivo === */

/* === Cursor customizado === */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }

  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: exclusion;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }

  body.cursor-hover .cursor-ring {
    width: 36px;
    height: 36px;
  }
}
/* === /Cursor customizado === */

.is-low-end .cursor-ring {
  display: none !important;
}

.is-low-end * {
  cursor: auto !important;
}